:root {
  --bg: #0a1014;
  --panel: rgba(16, 24, 31, 0.92);
  --panel-strong: rgba(20, 32, 40, 0.98);
  --line: rgba(197, 226, 216, 0.13);
  --line-strong: rgba(247, 197, 109, 0.28);
  --text: #eef5ef;
  --muted: #9fb5b1;
  --accent: #e79c4b;
  --accent-strong: #f7c56d;
  --success: #7fd1ae;
  --danger: #f28482;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.36);
  --radius: 12px;
  --radius-sm: 8px;
  --texture-stripe: rgba(255, 255, 255, 0.026);
  --texture-dark: rgba(0, 0, 0, 0.12);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 165, 90, 0.16), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(127, 209, 174, 0.12), transparent 18%),
    radial-gradient(circle at bottom right, rgba(214, 173, 132, 0.18), transparent 22%),
    radial-gradient(circle at 50% 118%, rgba(220, 203, 182, 0.22), transparent 28%),
    linear-gradient(180deg, #f4efe6 0%, #efe5d7 34%, #e8dccd 68%, #ddd0bf 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.24;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.055), transparent 18%),
    radial-gradient(circle at 80% 34%, rgba(247, 197, 109, 0.04), transparent 16%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 14px
    );
  mix-blend-mode: soft-light;
}


button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.82rem 1rem;
  cursor: pointer;
  color: #061013;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  touch-action: manipulation;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 20px rgba(242, 165, 90, 0.22);
  filter: saturate(1.05);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.secondary-button,
.ghost-button,
.difficulty-button {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.secondary-button.is-flashing {
  animation: pulse-flash 0.85s ease-in-out infinite;
  border-color: rgba(247, 197, 109, 0.72);
  box-shadow: 0 0 16px rgba(247, 197, 109, 0.38);
}

.difficulty-button {
  min-height: 38px;
  padding: 0.52rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.difficulty-button.is-selected {
  color: #061013;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-color: transparent;
}

.record-button {
  color: #fff6f6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(135deg, #ef6a63, #b42318);
}

.stop-button {
  color: #12181d;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, #d7dce1, #a4adb6);
}

.submit-button {
  color: #f4fff7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(135deg, #55cb83, #1f8f46);
}

.record-button:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 20px rgba(180, 35, 24, 0.28);
}

.stop-button:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 20px rgba(120, 128, 138, 0.24);
}

.submit-button:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 20px rgba(31, 143, 70, 0.28);
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.82rem 0.95rem;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

textarea {
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(238, 245, 239, 0.48);
  letter-spacing: 0.08em;
}

.guess-input {
  background: #ffffff;
  color: #10161c;
  border-color: rgba(255, 255, 255, 0.86);
}

.guess-input::placeholder {
  color: rgba(16, 22, 28, 0.55);
}

.hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.screen {
  position: relative;
  display: grid;
  gap: 18px;
}

.hero-block {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 22px;
  border: 1px solid rgba(247, 197, 109, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(30, 20, 13, 0.62), rgba(15, 25, 32, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%);
  box-shadow: var(--shadow-strong);
}

.hero-block::before,
.hero-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-block::before {
  background:
    radial-gradient(circle at top right, rgba(247, 197, 109, 0.18), transparent 24%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.028) 0,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.75;
}

.hero-block::after {
  inset: auto -10% -1px;
  height: 32px;
  background: linear-gradient(90deg, rgba(247, 197, 109, 0.16), rgba(127, 209, 174, 0.08), rgba(247, 197, 109, 0.16));
  transform: rotate(-1.5deg);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

.title-lockup {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.title-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(247, 197, 109, 0.24);
  border-radius: 999px;
  background: rgba(247, 197, 109, 0.08);
  color: #f9ddb0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f8ebca;
  text-shadow:
    0 2px 0 rgba(73, 38, 11, 0.85),
    0 8px 18px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(242, 165, 90, 0.16);
  -webkit-text-stroke: 1px rgba(80, 41, 14, 0.38);
}

.title-rule {
  width: min(260px, 50vw);
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(247, 197, 109, 0.95), rgba(127, 209, 174, 0.5), rgba(247, 197, 109, 0.25));
  box-shadow: 0 0 18px rgba(242, 165, 90, 0.18);
}

.hero-copy,
.card-copy,
.helper-text,
.phrase-prompt,
.guess-feed-value,
.lobby-copy,
.mode-copy {
  color: var(--muted);
}

.hero-copy {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  max-width: 34rem;
  font-size: 1rem;
}

.splash-grid {
  display: grid;
  gap: 18px;
}

.splash-grid-modes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(145deg, rgba(18, 29, 37, 0.98), rgba(10, 17, 22, 0.93));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.panel::before {
  background:
    repeating-linear-gradient(
      145deg,
      var(--texture-stripe) 0,
      var(--texture-stripe) 1px,
      transparent 1px,
      transparent 16px
    ),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.045), transparent 22%);
  opacity: 0.55;
}

.panel::after {
  inset: 1px 1px auto;
  height: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.name-card,
.mode-card,
.lobby-card,
.phrase-card,
.meter-card,
.action-card,
.guess-feed-panel,
.score-panel {
  padding: 18px;
}

.mode-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.host-mode-card {
  border-color: rgba(242, 165, 90, 0.22);
}

.host-mode-card::before {
  background:
    linear-gradient(180deg, rgba(242, 165, 90, 0.1), transparent 52%),
    repeating-linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 16px
    );
}

.join-mode-card {
  border-color: rgba(127, 209, 174, 0.2);
}

.join-mode-card::before {
  background:
    linear-gradient(180deg, rgba(127, 209, 174, 0.08), transparent 52%),
    repeating-linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 16px
    );
}

.score-panel {
  padding: 12px 14px;
}

.card-label,
.field-label,
.presence-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mode-copy,
.helper-text,
.guess-feed-value,
.card-copy,
.lobby-copy {
  margin: 0;
}

.guess-feed-value {
  white-space: pre-line;
  line-height: 1.5;
}

.guess-history-line + .guess-history-line {
  margin-top: 0.35rem;
}

.guess-word-correct {
  color: var(--accent-strong);
  font-weight: 700;
}

.host-controls,
.join-stack,
.guess-form {
  display: grid;
  gap: 12px;
}

.split-guess-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.split-guess-submit,
.split-guess-giveup {
  min-height: 48px;
  border-radius: 0;
}

.split-guess-submit {
  color: #f4fff7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(135deg, #55cb83, #1f8f46);
}

.split-guess-giveup {
  color: #fff6f6;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(135deg, #7a3b34, #4b1914);
}

.split-guess-submit:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 20px rgba(31, 143, 70, 0.28);
}

.split-guess-giveup:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 20px rgba(75, 25, 20, 0.28);
}

.difficulty-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.created-room-code {
  margin: 10px 0 8px;
  font-size: clamp(1.65rem, 6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
  text-shadow: 0 0 18px rgba(242, 165, 90, 0.18);
}

.lobby-difficulty {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.presence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.presence-card,
.guess-feed-panel,
.score-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%),
    var(--panel-strong);
}

.presence-card {
  padding: 14px;
}

.presence-name {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.presence-value {
  color: var(--muted);
}

.game-screen {
  width: min(760px, 100%);
  margin: 0 auto;
}

.game-topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(145deg, rgba(18, 29, 37, 0.98), rgba(10, 17, 22, 0.93));
  box-shadow: var(--shadow);
}

.game-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 16px
    ),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.045), transparent 22%);
  opacity: 0.5;
}

.game-topbar > * {
  position: relative;
  z-index: 1;
}

.game-topbar-copy {
  min-width: 0;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill,
.stage-meta-item,
.meter-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stage-meta-neutral {
  color: var(--text);
}

.stage-meta-recorder {
  color: #fff6f6;
  border-color: rgba(239, 106, 99, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(239, 106, 99, 0.9), rgba(180, 35, 24, 0.92));
}

.stage-meta-guesser {
  color: #08110f;
  border-color: rgba(127, 209, 174, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(127, 209, 174, 0.96), rgba(70, 181, 139, 0.92));
}

.stage-meta-count {
  color: #1a1406;
  border-color: rgba(247, 197, 109, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(247, 197, 109, 0.98), rgba(231, 156, 75, 0.92));
}

.stage-meta-final {
  color: #eef5ef;
  border-color: rgba(121, 164, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(68, 103, 194, 0.96), rgba(41, 67, 130, 0.96));
}

.stage-meta-reveal {
  color: #eef5ef;
  border-color: rgba(173, 137, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(125, 90, 214, 0.96), rgba(84, 56, 152, 0.96));
}

.is-turn-flashing {
  animation: turn-badge-flash 0.45s ease-in-out 3;
}

.pill-online {
  color: var(--success);
}

.pill-offline {
  color: var(--danger);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(145deg, rgba(18, 29, 37, 0.98), rgba(10, 17, 22, 0.93));
  box-shadow: var(--shadow);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-card {
  padding: 10px 12px;
}

.score-total {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  line-height: 1;
}

.score-panel .card-label {
  margin-bottom: 6px;
  font-size: 0.7rem;
}

.score-panel .helper-text {
  margin: 6px 0 0;
  font-size: 0.76rem;
}

.phrase-card.turn-recorder {
  border-color: rgba(242, 165, 90, 0.42);
  box-shadow: inset 0 0 0 1px rgba(242, 165, 90, 0.12), var(--shadow);
}

.phrase-card.turn-recorder::before {
  background:
    linear-gradient(180deg, rgba(242, 165, 90, 0.08), transparent 46%),
    repeating-linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.024) 0,
      rgba(255, 255, 255, 0.024) 1px,
      transparent 1px,
      transparent 16px
    );
}

.phrase-card.turn-guesser {
  border-color: rgba(127, 209, 174, 0.36);
  box-shadow: inset 0 0 0 1px rgba(127, 209, 174, 0.1), var(--shadow);
}

.phrase-card.turn-guesser::before {
  background:
    linear-gradient(180deg, rgba(127, 209, 174, 0.08), transparent 46%),
    repeating-linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.024) 0,
      rgba(255, 255, 255, 0.024) 1px,
      transparent 1px,
      transparent 16px
    );
}

.phrase-prompt {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.45;
}

.phrase-value {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.95rem);
  line-height: 1.3;
}

.guesser-scratchpad {
  margin-top: 12px;
  min-height: 96px;
  line-height: 1.4;
}

.phrase-reversed-action {
  margin-top: 12px;
}

.phrase-reversed-button {
  width: 100%;
}

.phrase-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.phrase-refresh-button {
  min-width: 48px;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  font-size: 1.2rem;
  line-height: 1;
}

.action-card {
  display: grid;
  gap: 12px;
}

.meter-card {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
}

.action-card.recorder-compact {
  gap: 8px;
}

.meter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.meter-tools {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.meter-replay-button {
  min-height: 36px;
  padding: 0.48rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.25;
}

.meter-track {
  position: relative;
  height: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(247, 197, 109, 0.95), rgba(127, 209, 174, 0.78));
  transform-origin: left center;
  transform: scaleX(0.04);
  opacity: 0.3;
  transition: transform 90ms linear, opacity 90ms linear;
}

.action-title {
  font-size: 1.2rem;
}

.action-section {
  display: grid;
  gap: 12px;
}

.button-row,
.playback-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.playback-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.playback-row .secondary-button {
  color: #eef5ef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    linear-gradient(145deg, rgba(18, 29, 37, 0.98), rgba(10, 17, 22, 0.93));
  border-color: rgba(247, 197, 109, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.playback-row .secondary-button:hover:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.26);
}

@keyframes pulse-flash {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(247, 197, 109, 0.2);
  }

  50% {
    box-shadow: 0 0 22px rgba(247, 197, 109, 0.48);
  }
}

@keyframes turn-badge-flash {
  0%,
  100% {
    transform: scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  50% {
    transform: scale(1.06);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 0 24px rgba(255, 255, 255, 0.24);
  }
}

@media (max-width: 900px) {
  .splash-grid-modes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .hero-block {
    padding: 18px 16px 20px;
  }

  h1 {
    letter-spacing: 0.035em;
  }

  .game-topbar,
  .meter-heading,
  .topbar-actions,
  .host-controls {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .difficulty-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-strip,
  .presence-grid,
  .score-grid,
  .button-row,
  .playback-row {
    grid-template-columns: 1fr;
  }

  .pill,
  .stage-meta-item,
  .meter-status,
  .button-row > *,
  .playback-row > *,
  .difficulty-button {
    width: 100%;
  }
}
