/* Robaulks Games v0.8.0 Alpha 2 — dimensional game-room remaster */
:root {
  --rg-midnight: #061827;
  --rg-ink-2: #0b2535;
  --rg-surface: #f7fbfb;
  --rg-line: rgba(31, 81, 91, .16);
  --rg-soft-shadow: 0 16px 42px rgba(4, 34, 48, .14);
  --rg-hard-shadow: 0 8px 0 rgba(8, 45, 58, .16), 0 20px 42px rgba(5, 32, 46, .16);
}

html { background: var(--rg-midnight); }
body {
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 2%, rgba(59, 202, 220, .18), transparent 27rem),
    radial-gradient(circle at 92% 18%, rgba(255, 207, 86, .15), transparent 25rem),
    linear-gradient(180deg, #f5fafb 0, #edf5f4 52%, #e7f0ee 100%);
  font-family: "Avenir Next", "Nunito Sans", ui-rounded, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3,
.brand strong,
.game-card h3,
.score-badge strong {
  font-family: "Avenir Next", "Nunito Sans", ui-rounded, Inter, system-ui, sans-serif;
  font-weight: 950;
}

h1, h2 { letter-spacing: -.052em; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 4px solid #ffd35a;
  outline-offset: 3px;
}

/* Brand chrome */
.topbar {
  min-height: 82px;
  padding-block: .48rem;
  border-bottom: 1px solid rgba(104, 219, 229, .2);
  background:
    radial-gradient(circle at 18% -70%, rgba(77, 215, 231, .28), transparent 16rem),
    linear-gradient(110deg, rgba(3, 20, 34, .98), rgba(7, 52, 71, .97));
  box-shadow: 0 7px 0 rgba(3, 18, 30, .16), 0 18px 42px rgba(2, 24, 37, .22);
}
.brand img,
.robaulks-brand-logo {
  width: clamp(180px, 20vw, 245px);
  max-height: 68px;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 7px 11px rgba(0, 0, 0, .3));
  object-fit: contain;
}
.topbar-actions { gap: .5rem; }
.status-chip, .profile-button, .display-size-button, .sound-button {
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px rgba(0,0,0,.15);
}
.status-chip { color: rgba(255,255,255,.86); }
.profile-avatar { background: rgba(255,255,255,.16); }
main { width: min(1280px, calc(100% - 2rem)); padding-top: 1.7rem; }

/* Desktop navigation belongs to the room header, not over the content. */
@media (min-width: 1100px) {
  .bottom-nav {
    position: fixed;
    z-index: 35;
    top: 13px;
    bottom: auto;
    left: 50%;
    width: min(520px, 43vw);
    padding: .32rem;
    border-color: rgba(255,255,255,.2);
    border-radius: 21px;
    background: rgba(7, 30, 48, .64);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 25px rgba(0,0,0,.2);
    transform: translateX(-50%);
  }
  .bottom-nav a {
    min-height: 50px;
    color: rgba(255,255,255,.72);
    font-size: .64rem;
  }
  .bottom-nav a span { font-size: 1rem; }
  .bottom-nav a.active {
    background: linear-gradient(145deg, #1ba7cb, #08759f);
    box-shadow: 0 4px 0 #045676, inset 0 1px 0 rgba(255,255,255,.22);
  }
  main { padding-bottom: 4rem; }
}

/* Shared premium surfaces */
.panel {
  border: 1px solid rgba(255,255,255,.88);
  background:
    linear-gradient(145deg, rgba(255,255,255,.97), rgba(234,244,244,.94));
  box-shadow: var(--rg-hard-shadow), inset 0 1px 0 #fff;
}
.section-heading h2,
.game-shelf-heading h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
.section-heading > a {
  padding: .48rem .75rem;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(5,40,51,.08);
}
.eyebrow { color: #a84b25; }
.button {
  border-radius: 15px;
  font-weight: 900;
}
.button.primary {
  background: linear-gradient(145deg, #159fc8, #076b96);
  box-shadow: 0 7px 0 #054f70, 0 14px 25px rgba(6, 79, 112, .25);
}
.button.secondary {
  border-color: rgba(24,74,84,.18);
  background: linear-gradient(145deg, #fff, #e9f1f1);
  box-shadow: 0 5px 0 #cbd9d9, 0 11px 20px rgba(11,53,61,.1);
}

/* Home: cinematic but fast to scan */
#home-view > .hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, .58fr);
  min-height: 570px;
  padding: clamp(1rem, 3vw, 2.65rem);
  border-radius: 34px;
}
#home-view > .hero::after { inset: 10px; border-radius: 26px; }
#home-view .hero-copy {
  max-width: 630px;
  padding: clamp(1rem, 2.2vw, 1.55rem);
  border-radius: 23px;
}
#home-view .hero-copy h1 {
  margin-bottom: .75rem;
  font-size: clamp(2.55rem, 5.5vw, 4.9rem);
  line-height: .94;
}
#home-view .hero-actions { margin-top: 1rem; }
#home-view .daily-card {
  min-height: 280px;
  padding: 1.5rem;
  border-radius: 26px;
}
#home-view .daily-card h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
#home-view .daily-icon {
  width: 58px;
  height: 58px;
  margin-bottom: .9rem;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 0 rgba(2,18,30,.22);
}
#home-view .section-block { margin-top: 2.7rem; }
.cup-panel {
  background:
    radial-gradient(circle at 88% 16%, rgba(255,207,78,.32), transparent 10rem),
    linear-gradient(135deg, #fff8d9, #fff 54%, #dff5fb);
}
.trip-panel {
  background:
    radial-gradient(circle at 88% 18%, rgba(46,171,188,.22), transparent 9rem),
    linear-gradient(135deg, #fff1c9, #fad197 56%, #caedf0);
}

/* Every shelf tile is now a miniature physical game scene. */
.game-grid {
  gap: 1.05rem;
}
.game-grid .game-card,
#all-games .game-card,
#featured-games .game-card {
  --card-accent: #188fb0;
  --card-glow: #f3cb58;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 164px auto auto;
  gap: .78rem;
  min-width: 0;
  min-height: 350px;
  padding: .7rem;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 27px;
  background:
    radial-gradient(circle at 92% 75%, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 11rem),
    linear-gradient(155deg, #fff, #edf4f3);
  box-shadow: 0 8px 0 #cad8d7, 0 18px 34px rgba(7,46,57,.16), inset 0 1px 0 #fff;
  text-align: left;
  transition: transform .23s cubic-bezier(.2,.8,.2,1), box-shadow .23s ease, filter .23s ease;
}
.game-grid .game-card::before,
.game-grid .game-card::after,
#all-games .game-card::before,
#all-games .game-card::after { content: none; }
.game-grid .game-card:hover,
#all-games .game-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 52%, white);
  box-shadow: 0 11px 0 color-mix(in srgb, var(--card-accent) 28%, #b8c9c8), 0 28px 48px rgba(6,42,54,.22);
  filter: saturate(1.06);
  transform: translateY(-7px) rotateX(1deg);
}
.game-card-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  width: 100%;
  min-width: 0;
  height: 164px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 21px;
  background-color: #0b3041;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 7px 15px rgba(4,32,43,.2);
}
.game-card-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,20,31,.05), rgba(3,18,29,.12) 46%, rgba(3,17,28,.78)),
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--card-glow) 55%, transparent), transparent 38%);
}
.game-card-scene::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 15px;
  pointer-events: none;
}
.game-card[data-scene="card"] .game-card-scene { background-image: url("/assets/game-table-card-v081.webp"); }
.game-card[data-scene="puzzle"] .game-card-scene { background-image: url("/assets/game-table-puzzle-v081.webp"); }
.game-card[data-scene="board"] .game-card-scene { background-image: url("/assets/game-table-board-v081.webp"); }
.game-card[data-scene="word"] .game-card-scene { background-image: url("/assets/game-table-word-v081.webp"); }
.game-card[data-scene="logic"] .game-card-scene { background-image: url("/assets/game-table-logic-v081.webp"); }
.game-card[data-scene="arcade"] .game-card-scene { background-image: url("/assets/game-table-arcade-v081.webp"); }
.game-scene-label {
  position: absolute;
  z-index: 2;
  top: .65rem;
  left: .65rem;
  max-width: calc(100% - 4.6rem);
  padding: .3rem .55rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(3,20,31,.74);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  font-size: .56rem;
  font-weight: 950;
  letter-spacing: .09em;
  line-height: 1.15;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.game-grid .game-icon,
#all-games .game-icon,
#featured-games .game-icon {
  position: absolute;
  z-index: 3;
  top: .55rem;
  right: .55rem;
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 17px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-glow) 86%, white), var(--card-accent));
  box-shadow: 0 6px 0 color-mix(in srgb, var(--card-accent) 62%, #24333a), 0 11px 18px rgba(0,0,0,.24), inset 0 2px 0 rgba(255,255,255,.55);
  font-size: 1.75rem;
  transform: rotate(3deg);
}
.game-scene-props {
  position: absolute;
  z-index: 2;
  right: .65rem;
  bottom: .62rem;
  display: flex;
  align-items: flex-end;
  gap: .22rem;
}
.game-scene-props i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 7px;
  background: linear-gradient(145deg, #fff, #e5e6df);
  color: #18343e;
  box-shadow: 0 4px 0 rgba(4,26,35,.35);
  font-size: .72rem;
  font-style: normal;
  font-weight: 1000;
}
.game-scene-props i:nth-child(2) { transform: translateY(-5px) rotate(4deg); color: var(--card-accent); }
.game-scene-props i:nth-child(3) { transform: rotate(8deg); }
.game-card-copy {
  display: block;
  min-width: 0;
  padding: 0 .35rem;
}
.game-grid .game-card h3,
#all-games .game-card h3 {
  margin: 0 0 .28rem;
  color: #102f3c;
  font-size: 1.25rem;
  line-height: 1.08;
}
.game-grid .game-card p,
#all-games .game-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #506a6d;
  font-size: .8rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.game-grid .game-footer,
#all-games .game-footer {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: .45rem;
  width: 100%;
  margin-top: 0;
  padding: .65rem .35rem .18rem;
  border-top: 1px solid rgba(24,73,80,.11);
  color: #245c61;
  font-size: .68rem;
}
.game-grid .game-footer::after,
#all-games .game-footer::after { content: none; }
.game-grid .difficulty-pill,
#all-games .difficulty-pill {
  padding: .26rem .5rem;
  background: color-mix(in srgb, var(--card-accent) 13%, white);
  color: #244a50;
  white-space: nowrap;
}
#all-games.game-grid.large {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.15rem;
}
#all-games .game-card[data-game="roadtrip"],
#all-games .game-card[data-game="battlechess"],
#all-games .game-card[data-game="arena"] {
  grid-column: auto;
  min-height: 350px;
  padding: .7rem;
  background:
    radial-gradient(circle at 92% 75%, color-mix(in srgb, var(--card-accent) 15%, transparent), transparent 11rem),
    linear-gradient(155deg, #fff, #edf4f3);
}

/* The collection entrance now reads like a destination. */
.games-masthead {
  min-height: clamp(430px, 50vw, 570px);
  margin-top: -.5rem;
  border-radius: 34px;
}
.games-masthead::after { inset: 10px; border-radius: 26px; }
.games-masthead-copy { width: min(600px, 68%); }
.games-masthead h1 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: .92;
}
.game-shelf-heading { margin-top: 2.4rem; }
.game-shelf-heading > strong {
  border: 1px solid rgba(255,255,255,.75);
  background: linear-gradient(145deg, #174d59, #0a303e);
  box-shadow: 0 4px 0 #061d27;
}

/* Cup, Trip Pack and Profiles get distinct rooms, not repeated generic panels. */
#cup-view > .page-heading,
#trip-view > .page-heading,
#profile-view > .page-heading {
  min-height: 235px;
  margin-top: 0;
  border-radius: 30px;
}
#cup-view > .page-heading h1,
#trip-view > .page-heading h1,
#profile-view > .page-heading h1 { line-height: .92; }
.leaderboard-filters {
  border-radius: 22px;
  box-shadow: var(--rg-hard-shadow);
}
.leader-row {
  margin-inline: -.15rem;
  padding: .78rem .55rem;
  border: 1px solid transparent;
  border-radius: 14px;
}
.leader-row:nth-child(1) {
  border-color: #eed072;
  background: linear-gradient(100deg, #fff4c3, #fff);
  box-shadow: 0 5px 0 #d5b957;
}
.leader-row:nth-child(2) { background: linear-gradient(100deg, #edf3f5, #fff); }
.leader-row:nth-child(3) { background: linear-gradient(100deg, #f5e3d1, #fff); }
.trip-options { gap: .9rem; }
.trip-option {
  overflow: hidden;
  border-radius: 24px;
}
.trip-option::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -38%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(39,145,154,.09);
}
.trip-option > * { position: relative; z-index: 1; }
.trip-option span { filter: drop-shadow(0 7px 5px rgba(20,54,55,.17)); }
.profile-card {
  border-radius: 22px;
}
.profile-card .profile-avatar,
.leader-avatar { box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 5px 10px rgba(8,50,58,.12); }
.account-panel, .accessibility-panel, .install-panel, .member-admin-panel { border-radius: 24px; }

/* Dialogs are part of the same world. */
.dialog-card {
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(68,198,216,.18), transparent 12rem),
    linear-gradient(145deg, #fff, #eaf4f4);
}
.dialog-close {
  border: 1px solid rgba(26,74,82,.13);
  box-shadow: 0 4px 0 #cbd9d9;
}

/* Game setup and every live game inherit one of six physical-room identities. */
.game-kind-card {
  --game-table-image: url("/assets/game-table-card-v081.webp");
}
.game-kind-puzzle {
  --game-table-image: url("/assets/game-table-puzzle-v081.webp");
}
.game-kind-board {
  --game-table-image: url("/assets/game-table-board-v081.webp");
}
.game-kind-word {
  --game-table-image: url("/assets/game-table-word-v081.webp");
}
.game-kind-logic {
  --game-table-image: url("/assets/game-table-logic-v081.webp");
}
.game-kind-arcade {
  --game-table-image: url("/assets/game-table-arcade-v081.webp");
}
.game-shell:not(.game-shell-roadtrip),
.game-setup-shell {
  border-radius: 29px;
  background:
    radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--game-accent, #1c94b2) 58%, transparent), transparent 18rem),
    radial-gradient(circle at 14% 26%, color-mix(in srgb, var(--game-glow, #f0c85a) 22%, transparent), transparent 17rem),
    linear-gradient(145deg, #0a4051, #061a2b 72%);
  box-shadow: 0 11px 0 #041722, 0 30px 70px rgba(3,24,35,.32), inset 0 1px 0 rgba(255,255,255,.26);
}
.game-shell:not(.game-shell-roadtrip)::after,
.game-setup-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 72px;
  right: -25px;
  width: min(34vw, 310px);
  aspect-ratio: 720 / 420;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  background: var(--game-table-image) center/cover no-repeat;
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
  opacity: .31;
  pointer-events: none;
  transform: rotate(5deg);
}
.game-setup-shell::after {
  top: 96px;
  right: 2%;
  width: min(32vw, 340px);
  opacity: .4;
}
.game-shell:not(.game-shell-roadtrip) .game-topline {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 17px;
  background: rgba(2,18,30,.58);
}
.game-shell:not(.game-shell-roadtrip) .game-heading {
  position: relative;
  z-index: 2;
}
.game-shell:not(.game-shell-roadtrip) .game-heading h1 {
  font-size: clamp(1.7rem, 4.6vw, 3.1rem);
  line-height: .95;
}
.game-shell:not(.game-shell-roadtrip) .game-focus-content {
  border-radius: 22px;
  box-shadow: 0 8px 0 rgba(2,20,30,.2), 0 21px 42px rgba(0,0,0,.22), inset 0 1px 0 #fff;
}
.game-shell.game-kind-card .game-focus-content { background: linear-gradient(145deg, rgba(245,252,249,.97), rgba(222,240,232,.96)); }
.game-shell.game-kind-board .game-focus-content { background: linear-gradient(145deg, rgba(255,252,241,.98), rgba(240,228,198,.96)); }
.game-shell.game-kind-word .game-focus-content { background: linear-gradient(145deg, rgba(255,253,241,.98), rgba(244,232,190,.94)); }
.game-shell.game-kind-logic .game-focus-content { background: linear-gradient(145deg, rgba(247,253,254,.98), rgba(221,239,242,.96)); }
.game-shell.game-kind-puzzle .game-focus-content { background: linear-gradient(145deg, rgba(253,250,255,.98), rgba(234,226,243,.95)); }
.game-shell.game-kind-arcade .game-focus-content { background: linear-gradient(145deg, rgba(247,249,255,.98), rgba(225,229,248,.95)); }

/* Physical depth inside the games. */
.game-kind-card .memory-board,
.game-kind-card .solitaire-table,
.game-kind-card .fish-pond,
.game-kind-card .rummy-table,
.game-kind-card .poker-table {
  border-color: #744425;
  box-shadow: 0 10px 0 #412617, 0 20px 36px rgba(34,22,14,.31), inset 0 0 34px rgba(0,0,0,.2), inset 0 0 0 2px rgba(255,255,255,.14);
}
.game-kind-card .memory-card,
.game-kind-card .solitaire-card,
.game-kind-card .fp-card,
.game-kind-card .arena-poker-card {
  border-color: #d9d1c2;
  box-shadow: 0 7px 0 #afa697, 0 12px 18px rgba(0,0,0,.2), inset 0 1px 0 #fff;
}
.game-kind-board .ludo-board,
.game-kind-board .dots-board,
.game-kind-board .race-board,
.game-kind-board .chess-board,
.game-kind-board .checkers-board,
.game-kind-board .battle-chess-board {
  box-shadow: 0 10px 0 #45291b, 0 22px 40px rgba(45,29,18,.3), inset 0 0 0 2px rgba(255,255,255,.18);
}
.game-kind-word .letter-cell,
.game-kind-word .qwerty-row button,
.game-kind-word .jumble-answer span,
.game-kind-word .jumble-scramble span,
.game-kind-word .word-guess-cell {
  box-shadow: 0 4px 0 #c8bfa7, 0 7px 10px rgba(56,45,21,.12), inset 0 1px 0 #fff;
}
.game-kind-logic .sudoku-cell,
.game-kind-logic .cruise-cell,
.game-kind-logic .mine-cell,
.game-kind-logic .number-path-cell,
.game-kind-logic .nonogram-cell,
.game-kind-logic .alfa-cell {
  box-shadow: inset 0 0 0 1px rgba(26,73,83,.12), inset 0 2px 0 rgba(255,255,255,.38);
}
.game-kind-puzzle .spot-layout section,
.game-kind-puzzle .odd-one-card,
.game-kind-puzzle .jigsaw-board,
.game-kind-puzzle .maze-board,
.game-kind-puzzle .fp-face-grid {
  box-shadow: 0 8px 0 rgba(70,49,83,.16), 0 18px 28px rgba(55,36,68,.15);
}
.game-kind-arcade .blockdrop-board {
  border-color: #24225c;
  background: #090d29;
  box-shadow: 0 8px 0 #11122f, 0 0 34px rgba(77,194,224,.32), inset 0 0 20px rgba(31,35,94,.7);
}

/* Setup pages show the identity before play starts. */
.game-setup-shell .setup-game-icon {
  border-color: color-mix(in srgb, var(--game-glow) 60%, white);
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.7), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--game-glow) 82%, white), var(--game-accent));
  box-shadow: 0 9px 0 color-mix(in srgb, var(--game-accent) 55%, #102932), 0 21px 38px rgba(0,0,0,.28);
}
.game-setup-shell .setup-game-heading { position: relative; z-index: 2; }
.setup-level-card { border-radius: 18px; }
.setup-level-card.selected {
  border-color: var(--game-glow, #ffd45e);
  background: linear-gradient(145deg, #fff9d8, color-mix(in srgb, var(--game-glow, #ffd45e) 78%, white));
}

/* Stronger legibility for text that failed the first visual audit. */
.hero-copy > p:not(.eyebrow),
.games-masthead-copy > p:not(.eyebrow),
#trip-view > .page-heading p,
#cup-view > .page-heading p,
#profile-view > .page-heading p { color: rgba(255,255,255,.9); }
.daily-card p { color: rgba(255,255,255,.88); }
.daily-meta { color: rgba(255,255,255,.84); }
.game-card p, .privacy-note, .leader-name small { color: #536d6c; }
.trip-panel p:not(.eyebrow) { color: #574b3c; }

/* Responsive remaster */
@media (max-width: 1099px) {
  body { padding-bottom: max(6.3rem, calc(5.6rem + env(safe-area-inset-bottom))); }
  .bottom-nav {
    bottom: max(.6rem, env(safe-area-inset-bottom));
  }
}
@media (max-width: 900px) {
  #all-games.game-grid.large { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .games-masthead-copy { width: 82%; }
  .game-shell:not(.game-shell-roadtrip)::after { width: 220px; opacity: .2; }
}
@media (max-width: 760px) {
  body { min-width: 0; }
  .topbar {
    min-height: 68px;
    padding: .38rem .45rem;
  }
  .brand img,
  .robaulks-brand-logo { width: clamp(124px, 34vw, 164px); max-height: 52px; }
  .topbar-actions { gap: .27rem; }
  .sound-button, .display-size-button { width: 38px; height: 38px; border-radius: 12px; }
  .profile-button { min-height: 40px; padding: .25rem; }
  .profile-button > span:last-child { display: none; }
  main {
    width: min(100% - .7rem, 1280px);
    padding-top: .55rem;
    padding-bottom: 2rem;
  }
  #home-view > .hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: .55rem;
    border-radius: 25px;
    background-color: #071a2d;
    background-position: 62% 0;
    background-repeat: no-repeat;
    background-size: auto 310px;
  }
  #home-view > .hero::before {
    background: linear-gradient(180deg, rgba(3,18,33,.08), rgba(3,18,33,.3) 250px, rgba(3,18,33,.97) 360px);
  }
  #home-view > .hero::after { inset: 7px; border-radius: 19px; }
  #home-view .hero-copy {
    align-self: auto;
    margin-top: 235px;
    padding: .9rem;
    border-radius: 19px;
  }
  #home-view .hero-copy h1 { font-size: clamp(2rem, 10vw, 3rem); line-height: .96; }
  #home-view .hero-copy > p:not(.eyebrow) { font-size: .86rem; }
  #home-view .hero-actions { gap: .5rem; }
  #home-view .hero-actions .button { flex: 1 1 150px; min-height: 45px; padding: .6rem .7rem; font-size: .8rem; }
  #home-view .daily-card {
    min-height: 205px;
    padding: 1rem;
    border-radius: 20px;
  }
  #home-view .daily-icon { width: 46px; height: 46px; margin-bottom: .55rem; font-size: 1.5rem; }
  #home-view .daily-card h2 { margin-bottom: .35rem; font-size: 1.55rem; }
  #home-view .daily-card p { margin-bottom: .65rem; font-size: .78rem; }
  #home-view .daily-meta {
    position: static;
    margin-top: .65rem;
    font-size: .65rem;
  }
  #home-view .section-block { margin-top: 2rem; }
  .section-heading { align-items: center; }
  .section-heading h2, .game-shelf-heading h2 { font-size: 1.85rem; }
  .game-grid,
  #featured-games { grid-template-columns: 1fr; gap: .85rem; }
  .game-grid .game-card,
  #featured-games .game-card,
  #all-games .game-card,
  #all-games .game-card[data-game] {
    grid-template-columns: 132px minmax(0,1fr);
    grid-template-rows: auto auto;
    min-height: 166px;
    padding: .55rem;
    gap: .55rem .7rem;
    border-radius: 21px;
  }
  .game-card-scene {
    grid-row: 1 / 3;
    height: 100%;
    min-height: 151px;
    border-radius: 16px;
  }
  .game-scene-label {
    top: .42rem;
    left: .42rem;
    right: .42rem;
    max-width: none;
    padding: .26rem .36rem;
    font-size: .46rem;
    text-align: center;
  }
  .game-grid .game-icon,
  #all-games .game-icon,
  #featured-games .game-icon {
    top: auto;
    right: .45rem;
    bottom: .48rem;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    font-size: 1.4rem;
  }
  .game-scene-props { left: .45rem; right: auto; bottom: .45rem; }
  .game-scene-props i { width: 21px; height: 27px; border-radius: 5px; font-size: .55rem; }
  .game-card-copy { align-self: end; padding: .25rem .2rem 0 0; }
  .game-grid .game-card h3,
  #all-games .game-card h3 { font-size: 1.03rem; }
  .game-grid .game-card p,
  #all-games .game-card p { font-size: .69rem; line-height: 1.34; }
  .game-grid .game-footer,
  #all-games .game-footer {
    grid-column: 2;
    align-self: start;
    padding: .45rem .2rem 0 0;
    font-size: .58rem;
  }
  .game-grid .difficulty-pill,
  #all-games .difficulty-pill { font-size: .55rem; }
  .games-masthead {
    min-height: 390px;
    margin: -.15rem -.05rem 1.3rem;
    padding: .65rem;
    border-radius: 24px;
    background-position: 59% center;
  }
  .games-masthead::after { inset: 7px; border-radius: 18px; }
  .games-masthead-copy {
    width: 100%;
    padding: .85rem;
    border-radius: 18px;
  }
  .games-masthead h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
  .games-masthead-copy > p:not(.eyebrow) { font-size: .8rem; }
  .games-masthead-feature { display: none; }
  .games-masthead-badges { gap: .3rem; margin-top: .7rem; }
  .games-masthead-badges span { padding: .3rem .45rem; font-size: .56rem; }
  .game-shelf-heading { margin: 1.7rem 0 .7rem; }
  .game-shelf-heading > strong { display: none; }
  #cup-view > .page-heading,
  #trip-view > .page-heading,
  #profile-view > .page-heading {
    min-height: 205px;
    padding: 1.15rem;
    border-radius: 23px;
  }
  #cup-view > .page-heading { padding-right: 1rem; }
  #cup-view > .page-heading::after { background: linear-gradient(90deg,rgba(5,23,40,.97),rgba(5,23,40,.78) 72%,rgba(5,23,40,.4)); }
  #cup-view > .page-heading p,
  #trip-view > .page-heading p,
  #profile-view > .page-heading p { font-size: .86rem; }
  .leaderboard-filter-group { grid-template-columns: 1fr; gap: .2rem; }
  .leaderboard-filter-group > strong { padding-top: 0; }
  .trip-options { grid-template-columns: 1fr; }
  .trip-option { min-height: 110px; grid-template-columns: auto 1fr; justify-items: start; }
  .trip-option span { grid-row: 1 / 3; font-size: 2.4rem; }
  .bottom-nav {
    width: calc(100% - .7rem);
    padding: .3rem;
    border-radius: 19px;
  }
  .bottom-nav a { min-width: 0; min-height: 50px; font-size: .56rem; }
  .bottom-nav a span { font-size: 1rem; }
  .game-shell:not(.game-shell-roadtrip),
  .game-setup-shell { border-radius: 21px; }
  .game-shell:not(.game-shell-roadtrip)::after {
    top: 66px;
    right: -12px;
    width: 140px;
    border-radius: 15px;
    opacity: .14;
  }
  .game-setup-shell::after { top: 78px; right: -22px; width: 180px; opacity: .17; }
  .game-shell:not(.game-shell-roadtrip) .game-focus-content { border-radius: 17px; }
  .game-shell:not(.game-shell-roadtrip) .game-heading h1 { font-size: clamp(1.25rem, 6vw, 1.8rem); }
}
@media (max-width: 420px) {
  .topbar { padding-inline: .35rem; }
  .brand img, .robaulks-brand-logo { width: 116px; }
  .sound-button, .display-size-button { width: 35px; height: 35px; }
  .profile-avatar { width: 31px; height: 31px; }
  #home-view > .hero { background-size: auto 278px; }
  #home-view .hero-copy { margin-top: 205px; }
  .game-grid .game-card,
  #featured-games .game-card,
  #all-games .game-card,
  #all-games .game-card[data-game] { grid-template-columns: 116px minmax(0,1fr); }
  .game-card-scene { min-height: 149px; }
  .game-grid .game-footer,
  #all-games .game-footer { grid-template-columns: 1fr; }
  .game-grid .difficulty-pill,
  #all-games .difficulty-pill { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .game-grid .game-card,
  .game-grid .game-icon,
  .game-scene-props i,
  .game-shell::after,
  .game-setup-shell::after { transition: none !important; transform: none !important; }
}

/* Alpha 2 QA refinements */
.trip-details span { color: #455f5b; }
@media (max-width: 760px) {
  #all-games.game-grid.large { grid-template-columns: 1fr; }
  .bottom-nav a { min-height: 46px; }
  #home-view > .hero { background-size: auto 282px; }
  #home-view .hero-copy { margin-top: 210px; }
}
@media (max-width: 420px) {
  #home-view > .hero { background-size: auto 258px; }
  #home-view .hero-copy { margin-top: 184px; }
}

/* Keep card tables inside the upholstered play surface on narrow screens. */
body.game-playing .game-shell-solitaire .solitaire-game,
body.game-playing .game-shell-solitaire .solitaire-top-row,
body.game-playing .game-shell-solitaire .solitaire-tableau {
  width: 100%;
}
@media (max-width: 600px) {
  body.game-playing .game-shell-solitaire .solitaire-top-row {
    gap: .3rem;
  }
  body.game-playing .game-shell-solitaire .solitaire-draw-area,
  body.game-playing .game-shell-solitaire .solitaire-foundations {
    min-width: 0;
    gap: .2rem;
  }
  body.game-playing .game-shell-solitaire .solitaire-slot {
    width: 100%;
    min-width: 0;
  }
}

.word-list-title,
.arena-choice-title {
  margin: 0 0 .6rem;
  color: var(--forest);
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

/* The arcade rooms use an illuminated cabinet surface rather than paper. */
.game-shell.game-kind-arcade .game-focus-content {
  background:
    radial-gradient(circle at 50% 0, rgba(62,198,228,.18), transparent 22rem),
    linear-gradient(150deg, #121b42, #071526 72%);
}
.game-shell-blockdrop .blockdrop-board {
  border-color: #353879;
  background: #071024;
  box-shadow: 0 8px 0 #050a18, 0 0 34px rgba(61,205,229,.34), inset 0 0 22px rgba(30,43,101,.72);
}
.game-shell-blockdrop .blockdrop-cell {
  border: 1px solid rgba(91,126,183,.16);
  background: #0d1733;
}
.game-shell-blockdrop .blockdrop-cell[class*="piece-"] {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 2px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 0 9px currentColor;
  opacity: 1;
}
.game-shell-blockdrop .blockdrop-next,
.game-shell-blockdrop .blockdrop-score {
  border-color: rgba(119,202,225,.34);
  background: linear-gradient(145deg, #f7fbff, #dce8f4);
  box-shadow: 0 5px 0 #778ca6, 0 10px 18px rgba(0,0,0,.2);
}
.game-shell-blockdrop .blockdrop-controls button {
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 5px 0 #75828f, 0 9px 15px rgba(0,0,0,.28);
}
