@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --night-950: #050611;
  --night-900: #090b1b;
  --night-850: #0e1125;
  --night-800: #14172e;
  --night-700: #1b1f3c;
  --indigo-600: #6458d8;
  --indigo-500: #8074ee;
  --lake-600: #244c68;
  --moon: #edf8f0;
  --moon-dim: #b3bcd3;
  --ember: #ffd66b;
  --danger: #f27688;
  --aqua: #70d5ca;
  --ink: #f4f6ff;
  --ink-soft: #a6aec6;
  --paper: var(--night-900);
  --paper-deep: var(--night-800);
  --card: rgba(19, 22, 46, .9);
  --line: rgba(205, 214, 244, .13);
  --purple: var(--indigo-500);
  --mint: var(--aqua);
  --coral: var(--danger);
  --gold: var(--ember);
  --display: ui-rounded, "SF Pro Rounded", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: Inter, ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --soft-shadow: 0 22px 70px rgba(0, 0, 0, .34);
  --card-shadow: 0 14px 35px rgba(0, 0, 0, .2);
  color-scheme: dark;
}

html {
  background: var(--night-950);
  color: var(--ink);
}

body {
  background:
    radial-gradient(circle at 52% -10%, rgba(86, 70, 194, .27), transparent 32rem),
    radial-gradient(circle at 0 52%, rgba(35, 83, 113, .15), transparent 28rem),
    linear-gradient(180deg, #0a0b1b 0, #080a18 48%, #060711 100%);
  color: var(--ink);
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(237, 248, 240, .95);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(100, 88, 216, .35);
}

.skip-link {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: #15182e;
  box-shadow: var(--card-shadow);
  color: var(--ink);
}

.topbar {
  height: calc(68px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) clamp(16px, 4vw, 44px) 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(8, 9, 24, .82);
  box-shadow: 0 8px 35px rgba(0, 0, 0, .13);
  backdrop-filter: blur(24px) saturate(1.25);
}

.brand { min-height:44px; gap:10px; }
.brand strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand small,
.section-heading small,
.screen-heading small,
.roadmap > small,
.install-card small,
.game-topbar small,
.lab-banner small,
.coming-row > span,
.continue-card small,
.game-copy small {
  color: var(--ember);
  font-family: var(--pixel);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.7;
}
.brand small { color: #8f98b5; font-size: 6px; letter-spacing: .08em; }
.brand-mark,
.install-icon {
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28), inset 0 1px rgba(255,255,255,.11);
  transform: none;
}
.brand-mark i,
.install-icon i { border-radius: 3px; background: #756bea; }
.brand-mark i:nth-child(2), .install-icon i:nth-child(2) { background: #e77c73; }
.brand-mark i:nth-child(3), .install-icon i:nth-child(3) { background: #f0c66a; }
.brand-mark i:nth-child(4), .install-icon i:nth-child(4) { background: #70c9b0; }
.streak-pill,
.circle-button {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ember);
}
.streak-pill { padding-inline: 4px; font-size: 11px; }
.streak-pill b { color: var(--ink); }
.circle-button { width:44px; height:44px; font-size:17px; }

.screen { padding-top: 18px; }
.screen.active { animation:none; }
.welcome-line {
  margin-bottom: 14px;
  color: #8b94ad;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.today-hero {
  min-height: 500px;
  padding: 236px 18px 18px;
  border: 1px solid rgba(224, 239, 239, .17);
  border-radius: 30px;
  background-color: #101127;
  background-image:
    linear-gradient(180deg, rgba(5, 6, 17, .02) 30%, rgba(5, 6, 17, .3) 52%, rgba(5, 6, 17, .96) 82%),
    url("/assets/game-room-pixel-social.png");
  background-position: center, 42% 100%;
  background-repeat: no-repeat;
  background-size: cover, auto 172%;
  box-shadow: var(--soft-shadow), inset 0 1px rgba(255,255,255,.1);
  color: white;
}
.today-hero::before,
.today-hero::after,
.pixel-world { display: none; }
.hero-orbit {
  z-index: 3;
  top: 16px;
  right: 16px;
  width: auto;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(8, 9, 24, .64);
  box-shadow: 0 9px 28px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.hero-orbit::before { display: none; }
.hero-orbit span { color: var(--moon); font-size: 12px; font-weight: 800; }
.hero-copy {
  z-index: 2;
  align-self: end;
  max-width: 510px;
  padding: 0;
}
.hero-copy p { margin-bottom: 10px; color: var(--ember); font-family: var(--pixel); font-size: 7px; line-height: 1.6; }
.hero-copy h1 {
  max-width: 470px;
  font-family: var(--display);
  font-size: clamp(37px, 10.5vw, 64px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 3px 24px rgba(0,0,0,.55);
}
.hero-copy > span { margin-top: 15px; color: rgba(237, 241, 255, .72); font-size: 13px; }
.today-hero > button,
.continue-card > button,
.lab-banner button,
.big-game-card button,
.install-card > button,
.primary-button {
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: linear-gradient(135deg, #766bea, #5147bd);
  box-shadow: 0 12px 26px rgba(52, 40, 155, .32), inset 0 1px rgba(255,255,255,.2);
  color: white;
  font-size: 13px;
  font-weight: 800;
}
.today-hero > button {
  z-index: 2;
  margin-top: 20px;
  background: rgba(245, 248, 255, .95);
  box-shadow: 0 13px 32px rgba(0,0,0,.27);
  color: #17192e;
}

.world-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(224, 232, 255, .14);
  border-radius: 27px;
  background: #0d0f25;
  box-shadow: var(--soft-shadow);
}
.world-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 5, 14, .24));
  content: "";
  pointer-events: none;
}
.world-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.world-progress {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(5, 7, 20, .62);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(14px);
}
.world-progress b { margin-right: 3px; color: white; font-size: 12px; }
.today-callout {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 17px;
  margin: -22px 12px 0;
  padding: 20px;
  border: 1px solid rgba(212, 221, 252, .14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(28, 31, 61, .98), rgba(14, 17, 38, .98));
  box-shadow: 0 18px 46px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.055);
}
.today-callout small { color: var(--ember); font-family: var(--pixel); font-size: 7px; line-height: 1.6; }
.today-callout h1 {
  margin: 7px 0 0;
  color: white;
  font-family: var(--display);
  font-size: clamp(25px, 7vw, 34px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.today-callout p { margin: 8px 0 0; color: #a3abc2; font-size: 12px; line-height: 1.45; }
.today-callout > button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: linear-gradient(135deg, #786deb, #5247bc);
  box-shadow: 0 11px 25px rgba(59,45,172,.27), inset 0 1px rgba(255,255,255,.16);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.section-block,
.library-section { margin-top: 42px; }
.section-heading h2,
.install-card h2,
.lab-banner h2,
.screen-heading h1,
.continue-card h3,
.game-copy strong,
.roadmap > h2,
.roadmap h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
}
.section-heading h2 { font-size: 25px; }
.section-heading > button,
.section-heading > span { color: #8f98b3; }

.continue-card,
.game-card,
.install-card {
  border: 1px solid rgba(203, 213, 245, .13);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(28, 32, 64, .94), rgba(16, 19, 41, .96));
  box-shadow: var(--card-shadow), inset 0 1px rgba(255,255,255,.04);
}
.continue-card { grid-template-columns: 82px minmax(0, 1fr); padding: 17px; }
.continue-card p,
.game-copy > span,
.install-card p { color: #9fa8c0; }
.continue-card h3 { margin-top: 7px; font-size: 23px; }
.game-card { overflow: hidden; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.game-card:has(.game-card-main:active) { transform: scale(.985); box-shadow: var(--card-shadow); }
.game-card-main { grid-template-columns: 72px minmax(0, 1fr); gap: 15px; padding: 15px 46px 15px 15px; }
.game-card.planned { border-style: solid; opacity: .62; box-shadow: none; }
.game-copy strong { margin-top: 3px; font-size: 20px; }
.game-copy > span { font-size: 11px; line-height: 1.45; }
.game-copy em {
  margin-top: 9px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 34%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent) 11%, transparent);
  color: #b7bfd4;
  font-size: 9px;
}
.game-copy em.done { background: rgba(76, 190, 151, .12); color: #85e0bd; }
.favorite-button { border-radius: 50%; color: #566079; }
.favorite-button.active { color: #ffd76e; filter: drop-shadow(0 0 8px rgba(255,215,110,.25)); }

.game-art,
.continue-art {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 22%, rgba(237,248,240,.26) 0 9%, transparent 10%),
    linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 68%, #202444), color-mix(in srgb, var(--card-accent) 20%, #0d1028));
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 10px 22px rgba(0,0,0,.18);
}
.continue-art { width: 82px; min-height: 90px; }
.game-art::before,
.game-art::after,
.game-art i { display: none; }
.game-art b {
  position: static;
  color: white;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 800;
  text-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.game-art img {
  display: block;
  width: 88%;
  height: 88%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.22));
}
.game-art.art-sky-hop {
  background: linear-gradient(145deg, #89d7ef, #4d78d2 58%, #2e316e);
}

/* Art-first launcher: the cover and games do the talking. */
.room-cover {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(224,232,255,.14);
  border-radius: 25px;
  background: #0d0f25;
  box-shadow: 0 20px 55px rgba(0,0,0,.28);
}
.room-cover-poster,
.room-cover-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.room-cover-poster { object-fit: cover; }
.room-cover-canvas {
  opacity: 0;
  pointer-events: none;
}
.room-cover-canvas.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .room-cover-canvas { display: none; }
}
.launcher-shelf { margin-top:31px; }
.shelf-heading,
.plain-heading { display:flex; align-items:baseline; justify-content:space-between; gap:14px; }
.shelf-heading { margin-bottom:13px; }
.shelf-heading h1,
.shelf-heading h2,
.plain-heading h1 { margin:0; color:var(--ink); font-family:var(--display); font-weight:850; letter-spacing:-.04em; }
.shelf-heading h1,
.shelf-heading h2 { font-size:25px; }
.shelf-heading button { min-width:44px; min-height:44px; padding:6px 0; background:none; color:#8f98b3; font-size:11px; font-weight:750; }
.launcher-grid { display:grid; grid-template-columns:1fr; gap:10px; }
.launch-tile {
  position:relative;
  display:grid;
  min-width:0;
  grid-template-columns:120px minmax(0,1fr);
  align-items:center;
  gap:14px;
  min-height:118px;
  padding:10px 12px 10px 10px;
  border:1px solid rgba(76,86,139,.72);
  border-radius:7px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tile-accent) 13%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(19,23,52,.96), rgba(9,12,31,.98));
  box-shadow:
    0 0 0 1px rgba(4,6,18,.8),
    0 11px 25px rgba(0,0,0,.18),
    inset 0 1px rgba(255,255,255,.045);
  text-align:left;
}
.launch-tile::before,
.launch-tile::after {
  position:absolute;
  content:"";
  pointer-events:none;
}
.launch-tile::before {
  inset:5px;
  border:1px dashed rgba(119,130,190,.24);
  border-radius:4px;
}
.launch-tile::after {
  top:14px;
  right:15px;
  width:14px;
  height:14px;
  background:#ffd66b;
  clip-path:polygon(50% 17%, 62% 0, 83% 0, 100% 19%, 100% 42%, 50% 96%, 0 42%, 0 19%, 17% 0, 38% 0);
  filter:drop-shadow(0 0 7px rgba(255,214,107,.2));
}
.tile-art {
  position:relative;
  display:grid;
  width:100%;
  height:96px;
  overflow:hidden;
  place-items:center;
  border:1px solid rgba(97,105,162,.62);
  border-radius:5px;
  background:#10142f;
  box-shadow:inset 0 0 0 1px rgba(5,7,18,.7);
  image-rendering: pixelated;
  transition:transform 150ms ease,border-color 150ms ease;
}
.tile-art::before {
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:4px;
  background:var(--tile-accent);
  opacity:.72;
  content:"";
  pointer-events:none;
}
.launch-tile:active .tile-art { transform:scale(.975); }
.launch-tile:focus-visible { outline:0; box-shadow:none; }
.launch-tile:focus-visible .tile-art { outline:3px solid white; outline-offset:3px; }
.tile-art b { color:white; font-family:var(--display); font-size:clamp(32px,12vw,52px); font-weight:900; text-shadow:0 7px 18px rgba(0,0,0,.3); }
.tile-art img { display:block; width:82%; height:82%; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(0 8px 14px rgba(0,0,0,.24)); }
.simple-icon {
  position:relative;
  z-index:1;
  display:block;
  width:68px;
  height:62px;
}
.simple-icon i,
.simple-icon i::before,
.simple-icon i::after {
  position:absolute;
  display:block;
  box-sizing:border-box;
  font-style:normal;
  content:"";
}
.icon-word i,
.icon-sudoku i,
.icon-number i {
  inset:4px 7px;
  display:grid;
  place-items:center;
  border:4px solid #8d7ce3;
  background:#382c72;
  box-shadow:4px 4px 0 #1b173c;
  color:#fffdf8;
  font-family:var(--pixel);
  font-size:25px;
  line-height:1;
  content:normal;
}
.icon-sudoku i {
  border-color:#cf6e72;
  background:#50263f;
  color:#ffd9a8;
}
.icon-number i {
  border-color:#62c7bd;
  background:#1e555c;
  color:#f6f1c7;
}
.icon-target::before,
.icon-target::after {
  position:absolute;
  box-sizing:border-box;
  border:5px solid #62c7bd;
  content:"";
}
.icon-target::before { inset:4px; }
.icon-target::after { inset:19px; }
.icon-target i {
  top:27px;
  left:30px;
  width:8px;
  height:8px;
  background:#ffd166;
}
.icon-memory i {
  top:9px;
  width:34px;
  height:44px;
  border:4px solid #7566cf;
  background:#2c255c;
  box-shadow:4px 4px 0 #171535;
}
.icon-memory i:first-child { left:4px; }
.icon-memory i:last-child { right:4px; }
.icon-memory i::after {
  top:12px;
  left:9px;
  width:10px;
  height:10px;
  background:#ffd166;
  transform:rotate(45deg);
}
.icon-path i {
  top:27px;
  left:13px;
  width:42px;
  height:8px;
  background:#5bc4ea;
}
.icon-path i::before,
.icon-path i::after {
  top:-5px;
  width:18px;
  height:18px;
  border:4px solid #1a2546;
  background:#5bc4ea;
}
.icon-path i::before { left:-8px; }
.icon-path i::after { right:-8px; }
.icon-bird::before,
.icon-bird::after {
  position:absolute;
  z-index:2;
  content:"";
}
.icon-bird::before {
  top:15px;
  left:35px;
  width:21px;
  height:21px;
  background:#ffe347;
}
.icon-bird::after {
  top:20px;
  left:45px;
  width:5px;
  height:5px;
  background:#20213b;
}
.icon-bird i {
  top:28px;
  left:13px;
  width:39px;
  height:25px;
  background:#ffe347;
  box-shadow:-8px 7px 0 #f4b934;
}
.icon-bird i::before {
  top:7px;
  left:5px;
  width:18px;
  height:12px;
  background:#f6f1d4;
}
.icon-bird i::after {
  top:-7px;
  right:-15px;
  width:15px;
  height:10px;
  background:#f26b4f;
}
.icon-mine::before,
.icon-mine::after {
  position:absolute;
  background:#737b9f;
  content:"";
}
.icon-mine::before {
  top:27px;
  left:7px;
  width:54px;
  height:8px;
}
.icon-mine::after {
  top:4px;
  left:30px;
  width:8px;
  height:54px;
}
.icon-mine i {
  z-index:1;
  top:13px;
  left:17px;
  width:34px;
  height:36px;
  background:#303653;
  clip-path:polygon(22% 0,78% 0,100% 22%,100% 78%,78% 100%,22% 100%,0 78%,0 22%);
}
.icon-mine i::after {
  top:13px;
  left:12px;
  width:10px;
  height:10px;
  background:#f26b5f;
}
.icon-snake i {
  top:34px;
  left:5px;
  width:16px;
  height:16px;
  background:#7fd36a;
  box-shadow:16px 0 #7fd36a, 32px 0 #7fd36a, 32px -16px #7fd36a, 48px -16px #98e173;
}
.icon-snake::after {
  position:absolute;
  top:21px;
  left:57px;
  width:4px;
  height:4px;
  background:#173227;
  content:"";
}
.icon-pac i {
  top:7px;
  left:5px;
  width:48px;
  height:48px;
  background:#ffd447;
  clip-path:polygon(20% 0,80% 0,100% 20%,100% 32%,62% 50%,100% 68%,100% 80%,80% 100%,20% 100%,0 80%,0 20%);
}
.icon-pac::after {
  position:absolute;
  top:28px;
  right:1px;
  width:7px;
  height:7px;
  background:#f5e7a6;
  content:"";
}
.icon-brick i {
  top:12px;
  left:1px;
  width:20px;
  height:14px;
  background:#f06f66;
  box-shadow:23px 0 #f3bd58, 46px 0 #62c7bd;
}
.icon-brick::before,
.icon-brick::after {
  position:absolute;
  background:#e9edf7;
  content:"";
}
.icon-brick::before {
  top:38px;
  left:31px;
  width:7px;
  height:7px;
}
.icon-brick::after {
  bottom:4px;
  left:15px;
  width:38px;
  height:7px;
}
.tile-label { position:relative; z-index:1; display:grid; min-width:0; gap:6px; padding:0 22px 0 0; }
.tile-label strong { overflow:hidden; color:#f4f6ff; font-family:var(--display); font-size:20px; font-weight:850; letter-spacing:-.025em; line-height:1.05; text-overflow:ellipsis; white-space:nowrap; }
.tile-label small {
  width:max-content;
  max-width:100%;
  overflow:hidden;
  padding:4px 7px;
  border:1px solid color-mix(in srgb, var(--tile-accent) 43%, transparent);
  border-radius:999px;
  background:color-mix(in srgb, var(--tile-accent) 11%, transparent);
  color:#b9c1d6;
  font-size:9px;
  font-weight:800;
  line-height:1;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.plain-heading { margin:12px 0 23px; }
.plain-heading > div { display:flex; align-items:baseline; gap:10px; }
.plain-heading h1 { font-size:clamp(34px,10vw,51px); }
.plain-heading time { color:#828ca7; font-size:10px; font-weight:750; }
.install-link { width:100%; min-height:46px; margin-top:34px; border:1px solid rgba(255,255,255,.12); border-radius:13px; background:transparent; color:#aeb5ca; font-size:11px; font-weight:800; }
.rules-intro { margin:-8px 0 18px; color:#aab2c7; font-size:13px; line-height:1.5; }
.rules-list { display:grid; gap:0; margin:0; padding:0; list-style:none; counter-reset:rules; }
.rules-list li { position:relative; min-height:48px; padding:13px 4px 13px 38px; border-top:1px solid rgba(255,255,255,.09); color:#dfe3f1; font-size:12px; line-height:1.45; counter-increment:rules; }
.rules-list li::before { position:absolute; top:13px; left:4px; color:var(--game-accent,#8b7cf6); font-size:10px; font-weight:900; content:counter(rules,decimal-leading-zero); }

@media (min-width:680px) {
  .launcher-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .launch-tile { grid-template-columns:112px minmax(0,1fr); }
  .room-cover { max-height:560px; }
}
@media (min-width:1040px) { .launcher-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* Minimal launcher: one moonlit pixel glyph per game. */
.launcher-grid {
  grid-template-columns:1fr;
  gap:0;
  border-top:1px solid rgba(179,188,211,.12);
}
.launch-tile {
  display:grid;
  min-height:64px;
  grid-template-columns:44px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:8px 2px;
  border:0;
  border-bottom:1px solid rgba(179,188,211,.12);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.launch-tile::before,
.launch-tile::after { content:none; }
.launch-tile:active { background:rgba(237,248,240,.035); }
.launch-tile:focus-visible {
  outline:2px solid var(--moon);
  outline-offset:-2px;
  box-shadow:none;
}
.tile-art {
  width:44px;
  height:44px;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.tile-art::before { content:none; }
.launch-tile:focus-visible .tile-art { outline:0; }
.tile-label {
  gap:0;
  padding:0;
}
.tile-label strong {
  color:var(--moon);
  font-size:16px;
  font-weight:780;
  letter-spacing:0;
}
.tile-label small {
  width:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#78819f;
  font-family:var(--pixel);
  font-size:6px;
  font-weight:400;
  letter-spacing:0;
  line-height:1.45;
}
.simple-icon,
.simple-icon::before,
.simple-icon::after,
.simple-icon i,
.simple-icon i::before,
.simple-icon i::after {
  box-sizing:border-box;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  filter:none;
  opacity:1;
  transform:none;
  clip-path:none;
  image-rendering:pixelated;
}
.simple-icon {
  position:relative;
  display:block;
  width:48px;
  height:48px;
  --glyph-moon:#d8efd7;
  --glyph-light:#9fcfc9;
  --glyph-indigo:#343878;
  --glyph-deep:#171937;
  --glyph-ember:#ffc34b;
  --glyph-flame:#ef7b2c;
  transform:scale(.78);
  transform-origin:center;
}
.simple-icon::before,
.simple-icon::after,
.simple-icon i::before,
.simple-icon i::after {
  position:absolute;
  display:block;
  content:"";
}
.simple-icon i {
  position:absolute;
  display:block;
  font-style:normal;
}
.icon-word i,
.icon-number i {
  inset:0;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  box-shadow:none;
  color:var(--glyph-moon);
  font-family:var(--pixel);
  font-size:28px;
  line-height:1;
}
.icon-number i {
  color:var(--glyph-light);
}
.icon-target::before {
  inset:3px;
  background:var(--glyph-moon);
}
.icon-target::after {
  inset:11px;
  background:var(--glyph-indigo);
}
.icon-target i {
  z-index:2;
  inset:19px;
  background:var(--glyph-ember);
}
.icon-sudoku i {
  inset:4px;
  border:4px solid var(--glyph-moon);
  background:var(--glyph-indigo);
  color:transparent;
}
.icon-sudoku i::before {
  top:0;
  bottom:0;
  left:11px;
  width:4px;
  background:var(--glyph-moon);
  box-shadow:11px 0 0 var(--glyph-moon);
}
.icon-sudoku i::after {
  top:11px;
  right:0;
  left:0;
  height:4px;
  background:var(--glyph-moon);
  box-shadow:0 11px 0 var(--glyph-moon);
}
.icon-memory i {
  top:8px;
  width:26px;
  height:34px;
  border:4px solid var(--glyph-moon);
  background:var(--glyph-indigo);
}
.icon-memory i:first-child { left:2px; }
.icon-memory i:last-child { right:2px; }
.icon-memory i::after {
  top:10px;
  left:7px;
  width:6px;
  height:6px;
  background:var(--glyph-ember);
}
.icon-path::before,
.icon-path::after {
  z-index:2;
  width:12px;
  height:12px;
  background:var(--glyph-moon);
}
.icon-path::before { top:30px; left:1px; }
.icon-path::after { top:5px; right:1px; }
.icon-path i {
  top:33px;
  left:11px;
  width:28px;
  height:6px;
  background:var(--glyph-moon);
}
.icon-path i::after {
  right:0;
  bottom:0;
  width:6px;
  height:28px;
  background:var(--glyph-moon);
}
.icon-bird i {
  top:21px;
  left:6px;
  width:31px;
  height:20px;
  background:var(--glyph-ember);
  box-shadow:-5px 5px 0 var(--glyph-flame);
}
.icon-bird i::before {
  top:-9px;
  right:-7px;
  width:18px;
  height:18px;
  background:var(--glyph-ember);
}
.icon-bird i::after {
  top:-2px;
  right:-17px;
  width:11px;
  height:7px;
  background:var(--glyph-flame);
}
.icon-bird::before {
  z-index:2;
  top:26px;
  left:12px;
  width:14px;
  height:9px;
  background:var(--glyph-moon);
}
.icon-bird::after {
  z-index:2;
  top:16px;
  left:34px;
  width:4px;
  height:4px;
  background:var(--glyph-deep);
}
.icon-mine::before {
  top:21px;
  left:2px;
  width:44px;
  height:6px;
  background:var(--glyph-light);
}
.icon-mine::after {
  top:2px;
  left:21px;
  width:6px;
  height:44px;
  background:var(--glyph-light);
}
.icon-mine i {
  z-index:1;
  top:10px;
  left:10px;
  width:28px;
  height:28px;
  background:var(--glyph-indigo);
  clip-path:polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%);
}
.icon-mine i::after {
  top:10px;
  left:10px;
  width:8px;
  height:8px;
  background:var(--glyph-ember);
}
.icon-snake i {
  top:29px;
  left:1px;
  width:11px;
  height:11px;
  background:var(--glyph-moon);
  box-shadow:
    11px 0 0 var(--glyph-moon),
    22px 0 0 var(--glyph-moon),
    22px -11px 0 var(--glyph-moon),
    33px -11px 0 var(--glyph-light);
}
.icon-snake::after {
  top:21px;
  left:39px;
  width:3px;
  height:3px;
  background:var(--glyph-deep);
}
.icon-snake::before {
  top:5px;
  left:5px;
  width:8px;
  height:8px;
  background:var(--glyph-ember);
}
.icon-pac i {
  top:4px;
  left:1px;
  width:40px;
  height:40px;
  background:var(--glyph-moon);
  clip-path:polygon(25% 0,75% 0,100% 25%,100% 35%,62% 50%,100% 65%,100% 75%,75% 100%,25% 100%,0 75%,0 25%);
}
.icon-pac::after {
  top:21px;
  right:0;
  width:7px;
  height:7px;
  background:var(--glyph-ember);
}
.icon-brick i {
  top:7px;
  left:0;
  width:14px;
  height:10px;
  background:var(--glyph-moon);
  box-shadow:
    17px 0 0 var(--glyph-indigo),
    34px 0 0 var(--glyph-moon);
}
.icon-brick::before {
  top:27px;
  left:21px;
  width:6px;
  height:6px;
  background:var(--glyph-ember);
}
.icon-brick::after {
  bottom:5px;
  left:8px;
  width:32px;
  height:6px;
  background:var(--glyph-light);
}
.icon-lights i {
  top:4px;
  left:4px;
  width:17px;
  height:17px;
  background:var(--glyph-moon);
  box-shadow:
    23px 0 0 var(--glyph-indigo),
    0 23px 0 var(--glyph-indigo),
    23px 23px 0 var(--glyph-light);
}
.icon-lights::after {
  z-index:2;
  right:8px;
  bottom:8px;
  width:5px;
  height:5px;
  background:var(--glyph-ember);
  box-shadow:0 0 0 3px var(--glyph-light);
}
.icon-slide i {
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  background:var(--glyph-moon);
  box-shadow:
    23px 0 0 var(--glyph-light),
    0 23px 0 var(--glyph-indigo);
}
.icon-slide::before {
  z-index:2;
  top:10px;
  left:10px;
  width:4px;
  height:4px;
  background:var(--glyph-deep);
  box-shadow:
    23px 0 0 var(--glyph-deep),
    0 23px 0 var(--glyph-ember);
}
.icon-slide::after {
  right:4px;
  bottom:4px;
  width:16px;
  height:4px;
  background:var(--glyph-ember);
}
.icon-reversi i,
.icon-reversi::before {
  top:5px;
  width:32px;
  height:32px;
  border-radius:50%;
}
.icon-reversi i {
  left:1px;
  background:var(--glyph-moon);
  box-shadow:inset -7px -7px 0 var(--glyph-light);
}
.icon-reversi::before {
  z-index:2;
  right:1px;
  background:var(--glyph-indigo);
  box-shadow:inset -7px -7px 0 var(--glyph-deep);
}
.icon-reversi::after {
  z-index:3;
  right:7px;
  bottom:4px;
  width:5px;
  height:5px;
  background:var(--glyph-ember);
}
.icon-dice i {
  inset:4px;
  background:var(--glyph-moon);
  box-shadow:6px 6px 0 var(--glyph-indigo);
}
.icon-dice i::before {
  top:7px;
  left:7px;
  width:6px;
  height:6px;
  background:var(--glyph-deep);
  box-shadow:
    20px 0 0 var(--glyph-deep),
    10px 10px 0 var(--glyph-ember),
    0 20px 0 var(--glyph-deep),
    20px 20px 0 var(--glyph-deep);
}
.icon-sea::before,
.icon-sea::after {
  right:0;
  left:0;
  height:6px;
  background:var(--glyph-light);
}
.icon-sea::before { bottom:7px; }
.icon-sea::after { bottom:17px; left:8px; right:8px; }
.icon-sea i {
  top:8px;
  left:11px;
  width:29px;
  height:18px;
  background:var(--glyph-moon);
  clip-path:polygon(0 45%,65% 45%,65% 0,82% 0,82% 45%,100% 45%,84% 100%,16% 100%);
}
.icon-sea i::after {
  top:12px;
  left:8px;
  width:6px;
  height:6px;
  background:var(--glyph-ember);
}
.icon-search-word i {
  inset:0;
  display:grid;
  place-items:center;
  color:var(--glyph-moon);
  font-family:var(--pixel);
  font-size:29px;
  line-height:1;
}
.icon-search-word::after {
  right:1px;
  bottom:4px;
  width:12px;
  height:5px;
  background:var(--glyph-ember);
  transform:rotate(45deg);
}
.icon-search-word::before {
  right:5px;
  bottom:9px;
  width:15px;
  height:15px;
  border:4px solid var(--glyph-light);
}
.icon-river i {
  top:7px;
  left:5px;
  width:38px;
  height:7px;
  background:var(--glyph-light);
  box-shadow:0 13px 0 var(--glyph-indigo),0 26px 0 var(--glyph-light);
}
.icon-river::before {
  z-index:2;
  top:14px;
  left:18px;
  width:13px;
  height:13px;
  background:var(--glyph-moon);
}
.icon-river::after {
  z-index:3;
  top:18px;
  left:22px;
  width:5px;
  height:5px;
  background:var(--glyph-ember);
}
.icon-blocks i {
  top:5px;
  left:17px;
  width:14px;
  height:14px;
  background:var(--glyph-moon);
  box-shadow:
    -14px 14px 0 var(--glyph-indigo),
    0 14px 0 var(--glyph-moon),
    14px 14px 0 var(--glyph-light),
    0 28px 0 var(--glyph-ember);
}
.icon-meteor i {
  top:13px;
  right:2px;
  width:26px;
  height:26px;
  background:var(--glyph-moon);
  clip-path:polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%);
  box-shadow:inset -6px -6px 0 var(--glyph-light);
}
.icon-meteor::before {
  top:14px;
  left:1px;
  width:25px;
  height:6px;
  background:var(--glyph-indigo);
  box-shadow:7px 10px 0 var(--glyph-ember);
}
.icon-paddle::before,
.icon-paddle::after {
  top:6px;
  width:7px;
  height:36px;
  background:var(--glyph-moon);
}
.icon-paddle::before { left:4px; }
.icon-paddle::after { right:4px; background:var(--glyph-light); }
.icon-paddle i {
  top:20px;
  left:20px;
  width:9px;
  height:9px;
  background:var(--glyph-ember);
}
.icon-guard i {
  top:7px;
  left:6px;
  width:36px;
  height:8px;
  background:var(--glyph-moon);
  box-shadow:
    5px 10px 0 var(--glyph-indigo),
    21px 10px 0 var(--glyph-indigo);
}
.icon-guard::before {
  bottom:5px;
  left:13px;
  width:22px;
  height:9px;
  background:var(--glyph-light);
}
.icon-guard::after {
  bottom:17px;
  left:21px;
  width:6px;
  height:6px;
  background:var(--glyph-ember);
}
.icon-pixel-logic i {
  top:5px;
  left:5px;
  width:11px;
  height:11px;
  background:var(--glyph-moon);
  box-shadow:
    13px 0 0 var(--glyph-indigo),
    26px 0 0 var(--glyph-moon),
    0 13px 0 var(--glyph-indigo),
    13px 13px 0 var(--glyph-ember),
    26px 13px 0 var(--glyph-indigo),
    0 26px 0 var(--glyph-moon),
    13px 26px 0 var(--glyph-indigo),
    26px 26px 0 var(--glyph-moon);
}
.icon-crate i {
  inset:6px;
  border:6px solid var(--glyph-moon);
  background:var(--glyph-indigo);
}
.icon-crate i::before,
.icon-crate i::after {
  top:12px;
  left:2px;
  width:22px;
  height:5px;
  background:var(--glyph-light);
}
.icon-crate i::before { transform:rotate(45deg); }
.icon-crate i::after { transform:rotate(-45deg); background:var(--glyph-ember); }
.icon-mancala i {
  top:10px;
  left:4px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--glyph-moon);
  box-shadow:
    11px 0 0 var(--glyph-light),
    22px 0 0 var(--glyph-moon),
    33px 0 0 var(--glyph-light),
    0 20px 0 var(--glyph-light),
    11px 20px 0 var(--glyph-moon),
    22px 20px 0 var(--glyph-light),
    33px 20px 0 var(--glyph-moon);
}
.icon-mancala::after {
  top:20px;
  left:21px;
  width:6px;
  height:6px;
  background:var(--glyph-ember);
}
.icon-code i {
  top:6px;
  left:6px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--glyph-moon);
  box-shadow:
    24px 0 0 var(--glyph-indigo),
    0 24px 0 var(--glyph-light),
    24px 24px 0 var(--glyph-moon);
}
.icon-code::after {
  top:21px;
  left:21px;
  width:7px;
  height:7px;
  background:var(--glyph-ember);
}
@media (min-width:680px) {
  .launcher-grid { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:28px; }
}
@media (min-width:1040px) {
  .launcher-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.plain-heading { margin:8px 0 18px; }
.plain-heading h1 {
  color:var(--moon);
  font-size:28px;
  font-weight:800;
  letter-spacing:0;
}
.shelf-heading h1,
.shelf-heading h2 {
  color:var(--moon);
  font-size:23px;
  letter-spacing:0;
}
.shelf-heading button { color:#7f89a5; }

.category-switcher {
  display:grid;
  width:100%;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:3px;
  margin:-2px 0 22px;
  padding:3px;
  border:1px solid rgba(205,214,244,.12);
  border-radius:7px;
  background:rgba(11,13,29,.72);
}
.category-switcher button {
  position:relative;
  display:grid;
  min-width:0;
  min-height:44px;
  grid-template-columns:minmax(0,auto) auto;
  gap:5px;
  place-content:center;
  align-items:baseline;
  padding:0 4px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#8c96b0;
  font-size:10px;
  font-weight:780;
  letter-spacing:0;
}
.category-switcher button span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.category-switcher button b {
  color:#626c86;
  font-size:8px;
  font-weight:800;
}
.category-switcher button.active {
  background:#202343;
  box-shadow:inset 0 0 0 1px rgba(216,239,215,.13);
  color:var(--moon);
}
.category-switcher button.active b { color:var(--ember); }
.planned-category-row {
  display:flex;
  gap:15px;
  align-items:center;
  margin:-14px 0 25px;
  color:#555f76;
  font-size:9px;
  font-weight:750;
  letter-spacing:0;
}
.planned-category-row span {
  display:flex;
  min-width:0;
  gap:4px;
  align-items:center;
  white-space:nowrap;
}
.planned-category-row b { color:#6f7890; font-size:11px; }

@media (max-width:370px) {
  .category-switcher button { gap:3px; padding:0 2px; font-size:9px; }
  .planned-category-row { gap:10px; font-size:8px; }
}

@media (min-width:680px) {
  .category-switcher { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .category-switcher button { font-size:11px; }
}

.lab-banner,
.roadmap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(205, 214, 244, .13);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(32, 29, 74, .94), rgba(13, 20, 43, .96));
  box-shadow: var(--card-shadow), inset 0 1px rgba(255,255,255,.05);
  color: white;
}
.lab-banner {
  min-height: 300px;
  align-content: end;
  padding: 126px 24px 24px;
  background-image:
    linear-gradient(180deg, rgba(7,8,20,.02), rgba(7,8,20,.94) 71%),
    url("/assets/game-room-pixel-social.png");
  background-position: center, center bottom;
  background-size: cover, auto 136%;
}
.lab-banner p,
.roadmap p { color: #a9b1c8; }
.lab-banner h2 { max-width: 430px; font-size: 30px; }
.lab-art { display: none; }
.screen-heading { margin-top: 20px; }
.screen-heading h1 { color: var(--ink); font-size: clamp(42px, 11vw, 68px); }
.screen-heading p { color: #9fa8c0; }
.daily-summary,
.filter-pills button,
.big-game-card {
  border: 1px solid rgba(205, 214, 244, .12);
  border-radius: 18px;
  background: rgba(22, 25, 51, .75);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.daily-summary { padding: 15px; }
.daily-summary strong { color: var(--ink); font-family: var(--display); font-size: 22px; }
.daily-summary span { color: #8f98b2; }
.filter-pills button { color: #9ba4bd; }
.filter-pills button.active { border-color: rgba(135,122,241,.65); background: rgba(105,91,224,.3); color: white; }
.roadmap { padding: 28px 20px; }
.roadmap > h2 { font-size: 34px; }
.roadmap-number { color: var(--ember); font-family: var(--pixel); font-size: 9px; }
.roadmap h3 { font-size: 20px; }
.big-game-card { background: rgba(111, 92, 220, .14); }

.tabbar {
  height: 68px;
  padding: 6px;
  border: 1px solid rgba(221, 229, 255, .15);
  border-radius: 24px;
  background: rgba(11, 13, 29, .86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .44), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(22px) saturate(1.3);
}
.tab { border-radius: 17px; color: #8790a9; font-size: 9px; font-weight: 750; }
.tab.active {
  background:#171937;
  color:var(--moon);
  box-shadow:inset 0 0 0 1px rgba(216,239,215,.16);
}

body.game-open > .app-shell > .topbar,
body:has(.game-screen.active) > .app-shell > .topbar { display: none; }
body.game-open > .app-shell > .tabbar { display:none; }
body.game-open { min-height:100dvh; overflow:hidden; overscroll-behavior:none; }
body.game-open > .app-shell { height:100dvh; min-height:0; padding-bottom:0; overflow:hidden; }
.screen:not(.active) { display:none; }
.game-screen {
  height:100dvh;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  background:
    radial-gradient(circle at 50% -8%, color-mix(in srgb, var(--game-accent) 17%, transparent), transparent 22rem),
    linear-gradient(180deg, #0d1022, #080a18 28rem);
}
.game-screen.active { animation:none; }
.game-topbar {
  top: 0;
  height: calc(66px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(10, 12, 27, .84);
  box-shadow: 0 12px 35px rgba(0,0,0,.14);
  backdrop-filter: blur(24px) saturate(1.2);
}
.game-topbar > button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px rgba(255,255,255,.05);
  color: white;
}
.game-topbar small { color: color-mix(in srgb, var(--game-accent) 60%, white); font-size: 6px; }
.game-topbar strong { margin-top: 4px; color: var(--ink); font-family: var(--display); font-size: 16px; font-weight: 800; }
.game-mount { min-height: calc(100dvh - 66px); padding: 16px 16px max(16px,env(safe-area-inset-bottom)); }
.game-loading,
.game-load-error {
  display:grid;
  min-height:calc(100dvh - 66px - env(safe-area-inset-top));
  align-content:center;
  justify-items:center;
  gap:16px;
  padding:24px;
  color:#aeb7d1;
  text-align:center;
}
.game-loading i {
  width:22px;
  height:22px;
  border:4px solid rgba(255,255,255,.14);
  border-top-color:var(--game-accent);
  border-radius:50%;
  animation:game-loading-spin 800ms steps(8,end) infinite;
}
.game-loading span,
.game-load-error strong { font-size:13px; font-weight:750; }
.game-load-error .primary-button { min-width:144px; min-height:46px; }
@keyframes game-loading-spin { to { transform:rotate(360deg); } }
.game-screen.immersive-game {
  position: fixed;
  z-index: 90;
  inset: 0;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #0d0a1d;
}
.immersive-game .immersive-mount {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
body.game-open[data-active-game="sky-hop"] { height:100dvh; overflow:hidden; overscroll-behavior:none; }

.modal-backdrop { background: rgba(2, 3, 10, .72); backdrop-filter: blur(15px); }
.modal-sheet {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px;
  background: linear-gradient(160deg, #202342, #11142b);
  box-shadow: var(--soft-shadow), inset 0 1px rgba(255,255,255,.07);
}
.modal-sheet > small { color: var(--ember); font-family: var(--pixel); font-size: 7px; }
.modal-sheet h2 { color: var(--ink); font-family: var(--display); font-size: 28px; line-height: 1.1; }
.modal-close { border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(255,255,255,.07); color: white; }
.install-steps li > b { border: 0; border-radius: 12px; background: linear-gradient(135deg, #7569e8, #5145b9); box-shadow: 0 8px 18px rgba(63,48,181,.25); color: white; }
.install-steps span { color: #9fa8c0; }
.toast {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(18, 21, 43, .94);
  box-shadow: 0 14px 38px rgba(0,0,0,.38);
  color: white;
  backdrop-filter: blur(16px);
}

/* Daily Five — clean luminous tiles; pixel art stays in the world around it. */
#game-screen .df-game { --df-purple:#776ae8; --df-gold:#e8b84f; --df-green:#52a98b; --df-gray:#454a5f; color:var(--ink); }
#game-screen .df-intro small { color:var(--ember); font-family:var(--pixel); font-size:7px; }
#game-screen .df-intro h2 { color:var(--ink); font-family:var(--display); font-size:clamp(31px,8vw,40px); font-weight:800; letter-spacing:-.04em; line-height:1; }
#game-screen .df-intro p,
#game-screen .df-status,
#game-screen .df-legend { color:#a5adc2; }
#game-screen .df-mode,
#game-screen .df-tool {
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px rgba(255,255,255,.04);
  color:#b9c0d2;
}
#game-screen .df-board { padding:0; border:0; background:none; box-shadow:none; }
#game-screen .df-cell {
  border:1px solid rgba(204,214,245,.2);
  border-radius:12px;
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px rgba(255,255,255,.04), 0 6px 16px rgba(0,0,0,.09);
  color:white;
  font-family:var(--display);
  font-size:clamp(24px,7vw,32px);
  font-weight:850;
}
#game-screen .df-cell.filled { border-color:rgba(226,232,255,.66); background:rgba(255,255,255,.08); }
#game-screen .df-cell.correct { border-color:#6dc5a5; background:#438f76; color:white; }
#game-screen .df-cell.present { border-color:#f2c75f; background:#cb9a3f; color:#1d1b20; }
#game-screen .df-cell.absent { border-color:#55596b; background:#484b5a; color:#f0f1f6; }
#game-screen .df-key {
  height:49px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:9px;
  background:#252941;
  box-shadow:inset 0 1px rgba(255,255,255,.06), 0 3px 9px rgba(0,0,0,.12);
  color:white;
  font-size:13px;
}
#game-screen .df-key.correct { background:#438f76; }
#game-screen .df-key.present { background:#cb9a3f; color:#1d1b20; }
#game-screen .df-key.absent { background:#474a59; color:#d5d7df; }
#game-screen .df-result {
  border:1px solid rgba(255,255,255,.13);
  border-radius:22px;
  background:linear-gradient(145deg, rgba(39,43,78,.95), rgba(20,23,48,.95));
  box-shadow:var(--card-shadow);
  color:white;
}
#game-screen .df-result h3 { font-family:var(--display); font-size:27px; }
#game-screen .df-result p { color:#aab2c7; }
#game-screen .df-result-actions button { border:1px solid rgba(255,255,255,.1); border-radius:13px; background:#252945; color:white; }
#game-screen .df-result-actions button:first-child { background:linear-gradient(135deg,#766aea,#5146bb); }

/* Sudoku — a quiet glass-and-moonlight number board. */
#game-screen .sd-game { --sd-coral:var(--danger); --sd-purple:#776ae8; --sd-mint:var(--aqua); color:var(--ink); }
#game-screen .sd-intro small { color:var(--ember); font-family:var(--pixel); font-size:7px; }
#game-screen .sd-intro h2 { color:var(--ink); font-family:var(--display); font-size:clamp(31px,8vw,40px); font-weight:800; letter-spacing:-.04em; line-height:1; }
#game-screen .sd-intro p,
#game-screen .sd-status,
#game-screen .sd-mistakes,
#game-screen .sd-hint { color:#a5adc2; }
#game-screen .sd-mode { border:1px solid rgba(255,255,255,.12); border-radius:12px; background:rgba(255,255,255,.055); color:#b9c0d2; }
#game-screen .sd-board {
  border:1px solid rgba(225,232,255,.45);
  border-radius:18px;
  background:#11152b;
  box-shadow:0 18px 44px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.05);
}
#game-screen .sd-cell { border-color:rgba(187,198,232,.12); background:#151930; color:#70d9d0; font-weight:650; }
#game-screen .sd-cell.box-right { border-right-color:rgba(229,235,255,.55); }
#game-screen .sd-cell.box-bottom { border-bottom-color:rgba(229,235,255,.55); }
#game-screen .sd-cell.related { background:#1e2341; }
#game-screen .sd-cell.same { background:#2e315d; color:#c9c3ff; }
#game-screen .sd-cell.selected { background:#4b438d; box-shadow:inset 0 0 0 2px #9e93ff; }
#game-screen .sd-cell.given { color:#f3f5fb; font-weight:800; }
#game-screen .sd-cell.wrong { background:#5b293e; color:#ff9dac; }
#game-screen .sd-notes { color:#a7b0ca; }
#game-screen .sd-digit,
#game-screen .sd-tool {
  border:1px solid rgba(255,255,255,.1);
  border-radius:13px;
  background:#202540;
  box-shadow:inset 0 1px rgba(255,255,255,.05), 0 6px 15px rgba(0,0,0,.1);
  color:#dfe3f2;
}
#game-screen .sd-digit { color:#74ddd4; font-family:var(--display); font-size:22px; }
#game-screen .sd-digit small { color:#8d97b1; font-size:8px; }
#game-screen .sd-digit:disabled,
#game-screen .sd-tool:disabled { opacity:.34; cursor:default; }
#game-screen .sd-tool.active { border-color:#8f84ef; background:#6257cf; color:white; }
#game-screen .sd-result { border:1px solid rgba(255,255,255,.13); border-radius:22px; background:#1b1f3b; box-shadow:var(--card-shadow); }
#game-screen .sd-result h3 { font-family:var(--display); font-size:27px; }
#game-screen .sd-result p { color:#aab2c7; }
#game-screen .sd-result button { border:1px solid rgba(255,255,255,.1); border-radius:13px; background:#252945; color:white; }

.icon-lander i {
  top:8px;
  left:15px;
  width:18px;
  height:23px;
  border:4px solid var(--glyph-moon);
  background:var(--glyph-indigo);
}
.icon-lander i::before,
.icon-lander i::after {
  bottom:-12px;
  width:12px;
  height:4px;
  background:var(--glyph-light);
}
.icon-lander i::before { left:-10px; transform:rotate(-45deg); }
.icon-lander i::after { right:-10px; transform:rotate(45deg); }
.icon-lander::before {
  bottom:2px;
  left:20px;
  width:8px;
  height:11px;
  background:var(--glyph-ember);
  clip-path:polygon(50% 100%,0 0,100% 0);
}
.icon-lander::after {
  top:14px;
  left:21px;
  width:6px;
  height:6px;
  background:var(--glyph-light);
}
.icon-gem i {
  top:4px;
  left:6px;
  width:36px;
  height:40px;
  background:var(--glyph-moon);
  clip-path:polygon(50% 0,100% 28%,82% 78%,50% 100%,18% 78%,0 28%);
}
.icon-gem i::before {
  top:8px;
  left:9px;
  width:18px;
  height:20px;
  background:var(--glyph-light);
  clip-path:polygon(50% 0,100% 30%,78% 100%,0 30%);
}
.icon-gem::after {
  top:24px;
  left:21px;
  width:6px;
  height:6px;
  background:var(--glyph-ember);
}
.icon-cavern i {
  top:5px;
  left:5px;
  width:38px;
  height:39px;
  background:var(--glyph-moon);
  clip-path:polygon(0 0,100% 0,100% 100%,72% 100%,72% 53%,61% 32%,39% 32%,28% 53%,28% 100%,0 100%);
}
.icon-cavern i::before {
  bottom:0;
  left:14px;
  width:10px;
  height:22px;
  background:var(--glyph-deep);
}
.icon-cavern::after {
  bottom:8px;
  left:22px;
  width:5px;
  height:8px;
  background:var(--glyph-ember);
}
.icon-four i {
  top:7px;
  left:4px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--glyph-moon);
  box-shadow:
    15px 0 0 var(--glyph-light),30px 0 0 var(--glyph-moon),
    0 15px 0 var(--glyph-light),15px 15px 0 var(--glyph-moon),30px 15px 0 var(--glyph-light),
    0 30px 0 var(--glyph-moon),15px 30px 0 var(--glyph-light),30px 30px 0 var(--glyph-moon);
}
.icon-four::after {
  top:22px;
  left:19px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--glyph-ember);
}
.icon-pinball i {
  top:3px;
  left:5px;
  width:38px;
  height:42px;
  border:4px solid var(--glyph-moon);
  background:var(--glyph-deep);
  transform:skew(-5deg);
}
.icon-pinball i::before {
  top:7px;
  left:10px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--glyph-light);
}
.icon-pinball::after {
  right:8px;
  bottom:8px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--glyph-ember);
}
.icon-checkers i {
  top:5px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--glyph-moon);
  box-shadow:24px 0 0 var(--glyph-indigo),0 24px 0 var(--glyph-indigo),24px 24px 0 var(--glyph-moon);
}
.icon-checkers::after {
  top:24px;
  left:24px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--glyph-ember);
}
.icon-rally i {
  top:15px;
  left:6px;
  width:36px;
  height:22px;
  background:var(--glyph-moon);
  clip-path:polygon(14% 0,76% 0,100% 40%,100% 78%,80% 78%,80% 100%,62% 100%,62% 78%,32% 78%,32% 100%,14% 100%,14% 78%,0 78%,0 40%);
}
.icon-rally i::before {
  top:5px;
  left:10px;
  width:17px;
  height:6px;
  background:var(--glyph-indigo);
}
.icon-rally::after {
  top:9px;
  right:4px;
  width:7px;
  height:7px;
  background:var(--glyph-ember);
}
.icon-golf i {
  top:3px;
  left:12px;
  width:5px;
  height:34px;
  background:var(--glyph-moon);
}
.icon-golf i::before {
  top:0;
  left:5px;
  width:22px;
  height:14px;
  background:var(--glyph-light);
  clip-path:polygon(0 0,100% 50%,0 100%);
}
.icon-golf::before {
  right:5px;
  bottom:4px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--glyph-ember);
}
.icon-golf::after {
  bottom:2px;
  left:4px;
  width:26px;
  height:5px;
  background:var(--glyph-indigo);
}
.icon-siege i {
  top:6px;
  left:13px;
  width:22px;
  height:36px;
  background:var(--glyph-moon);
  clip-path:polygon(0 18%,24% 18%,24% 0,45% 0,45% 18%,58% 18%,58% 0,79% 0,79% 18%,100% 18%,100% 100%,0 100%);
}
.icon-siege i::before {
  right:7px;
  bottom:0;
  width:8px;
  height:14px;
  background:var(--glyph-deep);
}
.icon-siege::before {
  top:3px;
  left:2px;
  width:7px;
  height:7px;
  background:var(--glyph-light);
  box-shadow:36px 8px 0 var(--glyph-light);
}
.icon-siege::after {
  top:24px;
  left:20px;
  width:8px;
  height:8px;
  background:var(--glyph-ember);
}

@media (min-width: 680px) {
  .today-hero { min-height: 560px; padding: 270px 38px 34px; background-size: cover, auto 155%; }
  .today-hero > button { width: 230px; }
  .today-callout { grid-template-columns: 1fr 180px; align-items: center; margin-right: 24px; margin-left: 24px; padding: 24px; }
  .lab-banner { grid-template-columns: 1fr auto; padding: 180px 32px 30px; }
}

@media (max-width: 370px) {
  .today-hero { min-height: 475px; padding: 220px 17px 17px; background-size: cover, auto 178%; }
  .hero-copy h1 { font-size: 34px; }
  .world-hero { border-radius: 23px; }
  .today-callout { margin-right: 8px; margin-left: 8px; padding: 17px; }
  .game-card-main { grid-template-columns: 66px minmax(0,1fr); gap:12px; padding-left:12px; }
  .game-art { width:66px; height:78px; border-radius:16px; }
  .game-art b { font-size:28px; }
  #game-screen .df-key.wide { font-size:7px; letter-spacing:-.05em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms!important; transition-duration:.001ms!important; }
}

/* Full-bleed Room and scene-first launcher. */
.brand-app-icon {
  display:block;
  width:38px;
  height:38px;
  border:1px solid rgba(216,239,215,.2);
  border-radius:8px;
  box-shadow:0 6px 18px rgba(0,0,0,.28);
}

#screen-room {
  width:100%;
  max-width:none;
  padding:0 0 50px;
}

#screen-room .room-cover {
  width:100%;
  height:auto;
  aspect-ratio:3 / 2;
  min-height:0;
  max-height:none;
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:0 22px 55px rgba(0,0,0,.28);
}

#screen-room .room-cover-poster,
#screen-room .room-cover-canvas {
  object-fit:cover;
  object-position:center center;
}

#screen-room .launcher-shelf {
  width:min(1120px,calc(100% - 32px));
  margin-right:auto;
  margin-left:auto;
}

.launcher-shelf { margin-top:30px; }
.shelf-heading { margin-bottom:14px; }

.launcher-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:19px 11px;
  border:0;
}

.launch-tile {
  display:grid;
  min-width:0;
  min-height:0;
  grid-template-columns:1fr;
  gap:8px;
  align-content:start;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  text-align:left;
}

.launch-tile::before,
.launch-tile::after { content:none; }

.tile-art {
  position:relative;
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1;
  overflow:hidden;
  border:1px solid rgba(173,188,230,.17);
  border-radius:8px;
  background:#090c20;
  box-shadow:0 9px 24px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.045);
  transition:border-color 150ms ease,transform 150ms ease,box-shadow 150ms ease;
}

.tile-art::before { content:none; }

.game-card-screenshot {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.tile-label {
  display:block;
  min-width:0;
  padding:0 2px;
}

.tile-label strong {
  display:block;
  overflow:hidden;
  color:#edf8f0;
  font-size:14px;
  font-weight:780;
  letter-spacing:0;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.launch-tile:active { background:transparent; }
.launch-tile:active .tile-art { transform:scale(.985); }
.launch-tile:focus-visible { outline:0; box-shadow:none; }
.launch-tile:focus-visible .tile-art {
  outline:2px solid #edf8f0;
  outline-offset:3px;
}

@media (hover:hover) {
  .launch-tile:hover .tile-art {
    border-color:rgba(216,239,215,.38);
    box-shadow:0 13px 30px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.06);
    transform:translateY(-2px);
  }
}

@media (min-width:680px) {
  .launcher-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:23px 15px; }
  #screen-room .launcher-shelf { width:min(1120px,calc(100% - 48px)); }
  .tile-label strong { font-size:15px; }
}

@media (min-width:1040px) {
  .launcher-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:27px 18px; }
  #screen-room .launcher-shelf { width:min(1280px,calc(100% - 64px)); }
}

@media (max-width:370px) {
  #screen-room .launcher-shelf { width:calc(100% - 24px); }
  .launcher-grid { gap:17px 9px; }
  .tile-label strong { font-size:13px; }
}

/* App-icon launcher and a quieter two-screen shell. */
.room-dashboard {
  width:min(1120px,calc(100% - 40px));
  margin:0 auto;
}

#screen-room .launcher-shelf {
  width:100%;
}

.shelf-heading {
  display:flex;
  min-height:44px;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

.shelf-heading h1,
.shelf-heading h2 {
  margin:0;
  color:var(--moon);
  font-family:var(--display);
  font-size:18px;
  font-weight:760;
  letter-spacing:0;
}

.shelf-heading time,
.shelf-heading button {
  min-height:44px;
  padding:0;
  background:transparent;
  color:#7f89a5;
  font-size:10px;
  font-weight:700;
  letter-spacing:0;
}

.launcher-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:21px 10px;
}

.launch-tile {
  gap:7px;
  justify-items:center;
  text-align:center;
}

.tile-art {
  width:76px;
  max-width:none;
  aspect-ratio:1;
  border:0;
  border-radius:8px;
  background:rgba(20,23,46,.72);
  box-shadow:inset 0 0 0 1px rgba(205,214,244,.07);
}

.game-icon-canvas {
  display:block;
  width:72px!important;
  height:72px!important;
  margin:2px;
  image-rendering:auto;
}

.tile-label {
  width:100%;
  padding:0 1px;
  text-align:center;
}

.tile-label strong {
  color:#dce4e7;
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
}

@media (hover:hover) {
  .launch-tile:hover .tile-art {
    border-color:transparent;
    background:rgba(27,31,60,.86);
    box-shadow:inset 0 0 0 1px rgba(205,214,244,.1);
    transform:translateY(-1px);
  }
}

.tabbar {
  max-width:360px;
  grid-template-columns:repeat(2,1fr);
}
.tabbar::before {
  background:#171937;
  box-shadow:inset 0 0 0 1px rgba(216,239,215,.16);
}
.tabbar .tab.active {
  background:transparent;
  box-shadow:none;
}

.game-screen {
  position:relative;
}

.game-controls {
  position:fixed;
  z-index:120;
  top:0;
  right:max(10px,env(safe-area-inset-right));
  left:max(10px,env(safe-area-inset-left));
  display:flex;
  height:calc(54px + env(safe-area-inset-top));
  align-items:flex-end;
  justify-content:space-between;
  padding-bottom:6px;
  pointer-events:none;
}

.game-controls button {
  display:grid;
  width:44px;
  height:44px;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  border-radius:50%;
  background:rgba(7,9,24,.58);
  box-shadow:0 8px 22px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.06);
  color:rgba(255,255,255,.94);
  font-size:20px;
  font-weight:800;
  line-height:1;
  pointer-events:auto;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.game-controls button:only-child { margin-right:auto; }
.game-controls button:active { transform:scale(.93); }

.game-mount {
  min-height:100dvh;
  padding:calc(60px + env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));
}

.game-loading,
.game-load-error {
  min-height:100dvh;
}

body.game-open[data-active-game="context-hunt"] .game-mount {
  width:100%;
  max-width:none;
  padding:0;
}

@media (max-width:370px) {
  .room-dashboard { width:calc(100% - 32px); }
  .launcher-grid { gap:19px 6px; }
  .tile-art { width:70px; }
  .game-icon-canvas { width:66px!important; height:66px!important; }
  .tile-label strong { font-size:10px; }
}

@media (min-width:680px) {
  .room-dashboard { width:min(1120px,calc(100% - 48px)); }
  .launcher-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:25px 15px; }
  .room-daily-grid { grid-template-columns:repeat(3,minmax(0,150px)); justify-content:start; }
  .tile-label strong { font-size:11px; }
}

@media (min-width:1040px) {
  .room-dashboard { width:min(1280px,calc(100% - 64px)); }
  .launcher-grid { grid-template-columns:repeat(7,minmax(0,1fr)); gap:28px 18px; }
  .room-daily-grid { grid-template-columns:repeat(3,minmax(0,150px)); }
  .room-continue-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
}

/* The full original cover leads into the personal game shelves. */
#screen-room { padding-bottom:100px; }
#screen-room .room-cover {
  position:relative;
  width:100%;
  height:auto;
  aspect-ratio:3 / 2;
  min-height:0;
  max-height:none;
  margin:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:#0d0f25;
  box-shadow:0 22px 55px rgba(0,0,0,.28);
}
#screen-room .room-cover-poster,
#screen-room .room-cover-canvas {
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
}
.room-dashboard { width:min(1120px,calc(100% - 48px)); }
#screen-room .launcher-shelf { width:100%; margin-top:26px; }
.shelf-heading { min-height:36px; margin-bottom:12px; }
.shelf-heading h2 { font-size:19px; }
.shelf-heading button { min-height:44px; color:#c5c3f6; font-size:13px; font-weight:600; }
.daily-count { color:#b3bcd3; font-size:13px; }
.daily-games { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.daily-game {
  display:grid; grid-template-columns:64px 1fr; gap:4px 14px; align-content:center;
  min-height:116px; padding:18px; border:1px solid rgba(205,214,244,.13); border-radius:12px;
  background:rgba(20,23,46,.56); text-align:left; color:var(--moon);
}
.daily-game .tile-art { grid-row:1/4; align-self:center; width:60px; height:60px; background:transparent; box-shadow:none; }
.daily-game .game-icon-canvas { width:60px!important; height:60px!important; margin:0; }
.daily-game strong { font-size:16px; }
.daily-status { font-size:13px; color:#c0c7da; }
.daily-detail { font-size:12px; color:#aab6cc; line-height:1.4; }
.daily-game[data-status="done"] .daily-status { color:#9edcba; }
.daily-game[data-status="progress"] .daily-status { color:#e9ce82; }
.daily-game:hover { background:#1b203b; border-color:#62658c; }
.resume-shelf { margin-top:22px; }
.resume-primary {
  display:flex; align-items:center; gap:18px; width:100%; padding:18px 22px; border:1px solid #344f4f;
  border-radius:12px; background:#12272c; text-align:left; color:var(--moon);
}
.resume-primary > .tile-art { flex:none; background:#152d30; }
.resume-primary > span:not(.tile-art) { display:grid; gap:5px; }
.resume-primary small { color:#a6c7c4; font:500 12px/1.4 var(--sans); }
.resume-primary strong { font:750 23px/1.15 var(--display); }
.resume-primary > span > span { color:#bed1d4; font-size:13px; }
.resume-primary b { margin-left:auto; padding:12px 16px; border-radius:8px; background:#a1d6c0; color:#122b27; font-size:14px; white-space:nowrap; }
.resume-primary:hover { background:#183339; }
.resume-others { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:10px; }
.resume-others button { display:grid; gap:5px; padding:12px 0; background:transparent; text-align:left; color:var(--moon); border-bottom:1px solid var(--line); }
.resume-others strong { font-size:14px; }
.resume-others span { color:#b3bcd3; font-size:12px; }
.game-item { position:relative; min-width:0; }
.game-item .launch-tile { width:100%; padding:14px 4px 10px; border-radius:10px; }
.game-item .launch-tile:hover { background:rgba(29,33,59,.5); }
.game-item .tile-label { display:grid; gap:5px; }
.game-item .tile-label strong { font-size:14px; line-height:1.3; }
.tile-detail { display:block; color:#aeb9d1; font:400 12px/1.4 var(--sans); letter-spacing:0; text-align:center; }
.favorite-button {
  position:absolute; top:0; right:0; z-index:2; display:grid; place-items:center;
  width:44px; height:44px; padding:0; color:#aeb8cf; background:transparent; border:0; border-radius:10px;
}
.favorite-button svg { pointer-events:none; }
.favorite-button[aria-pressed="true"] { color:#f1d48a; }
.favorite-button[aria-pressed="true"] svg { fill:#f1d48a; }
.favorite-button:hover { background:#252b48; color:#f1d48a; }
.favorite-button:focus-visible,.daily-game:focus-visible,.resume-primary:focus-visible,.resume-others button:focus-visible { outline:2px solid var(--moon); outline-offset:3px; }
.launcher-grid,.favorites-grid,.recent-grid { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:12px; }
.favorites-empty { display:flex; align-items:center; gap:16px; min-height:88px; padding:16px 20px; border:1px dashed #3b405d; border-radius:12px; }
.empty-star { display:grid; place-items:center; width:36px; height:36px; color:#d4bc81; flex:none; }
.empty-star svg { width:26px; height:26px; }
.favorites-empty p { margin:0; color:#dae0ed; font-size:14px; line-height:1.5; }
.favorites-empty p span { display:block; color:#aeb9d1; font-size:13px; }
.local-progress-note { margin:30px 0 10px; font-size:12px; color:#9da9c2; text-align:center; }
.library-hint { color:#b3bcd3; font-size:14px; line-height:1.5; margin:8px 0 0; max-width:480px; }
.plain-heading > div { display:block; }
.category-switcher button { font-size:12px; }
#screen-library { padding-bottom:120px; }
#screen-library .install-link { margin:0; font-size:13px; }
.library-utilities { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px 28px; margin-top:24px; }
.sound-setting { min-height:44px; padding:8px 12px; border-radius:8px; background:transparent; color:var(--moon-dim); font-size:13px; }
.sound-setting:hover { background:rgba(255,255,255,.06); }
#screen-room .recent-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
/* The scene spans the desktop; a direct shortcut keeps the games within reach. */
.room-cover-action { display:none; }
#room-games { scroll-margin-top:24px; }
@media (min-width:1000px) {
  .room-cover-action {
    position:absolute; z-index:2; top:32px; right:32px;
    display:flex; align-items:center; gap:12px; min-height:48px; padding:12px 20px;
    border-radius:10px; background:rgba(10,14,35,.94); color:var(--moon);
    box-shadow:0 8px 24px rgba(0,0,0,.3); font:650 14px/1.4 var(--sans);
  }
  .room-cover-action:hover { background:#252b48; }
  #screen-room .room-dashboard {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 28px;
    width:min(1280px,calc(100% - 64px)); padding-top:28px;
  }
  #screen-room .launcher-shelf, #screen-room .resume-shelf { margin:0; }
  #screen-room .daily-shelf, #screen-room .resume-shelf { grid-column:1 / -1; }
  #screen-room .favorites-shelf, #screen-room .recent-shelf { min-width:0; }
  #screen-room .local-progress-note { grid-column:1 / -1; margin:0; }
  #screen-room .tile-label strong { white-space:normal; overflow:visible; text-overflow:clip; }
}
@media (max-width:679px) {
  .room-dashboard { width:calc(100% - 40px); }
  #screen-room .launcher-shelf { margin-top:20px; }
  .shelf-heading { gap:8px; }
  .shelf-heading h2 { font-size:18px; }
  .shelf-heading button,.daily-count { font-size:12px; }
  .daily-games { gap:8px; }
  .daily-game { min-height:154px; padding:12px 5px; grid-template-columns:1fr; gap:6px; justify-items:center; text-align:center; align-content:start; }
  .daily-game .tile-art { grid-row:auto; width:52px; height:52px; }
  .daily-game .game-icon-canvas { width:52px!important; height:52px!important; }
  .daily-game strong { font-size:14px; }
  .daily-status { font-size:12px; }
  .daily-detail { font-size:11px; }
  .resume-shelf { margin-top:12px; }
  .resume-primary { padding:14px; gap:12px; }
  .resume-primary .tile-art { width:54px; height:54px; }
  .resume-primary .game-icon-canvas { width:52px!important; height:52px!important; margin:1px; }
  .resume-primary strong { font-size:19px; }
  .resume-primary small { font-size:11px; }
  .resume-primary > span > span { font-size:12px; }
  .resume-primary b { padding:10px; font-size:12px; }
  .resume-primary b span { display:none; }
  .resume-others { grid-template-columns:1fr; gap:0; }
  .resume-others button { display:flex; justify-content:space-between; gap:8px; }
  .launcher-grid,.favorites-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 4px; }
  #screen-room .recent-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .game-item .tile-art { width:64px; height:64px; }
  .game-item .game-icon-canvas { width:60px!important; height:60px!important; margin:2px; }
  .game-item .tile-label strong { font-size:13px; }
  .tile-detail { font-size:11px; }
  .game-item .launch-tile { padding-top:18px; }
  .favorite-button { top:-3px; right:-7px; }
  .favorites-empty { gap:10px; padding:14px 12px; }
  .favorites-empty p { font-size:13px; }
  .favorites-empty p span { font-size:12px; }
  .library-hint { font-size:13px; }
  .plain-heading h1 { font-size:30px; }
}
@media (prefers-reduced-motion:reduce) { .game-item *, .daily-game, .resume-primary { transition:none!important; } }
/* Keep category names readable at phone widths instead of truncating them. */
.category-switcher button span { overflow:visible; white-space:normal; text-overflow:clip; line-height:1.3; }
.category-switcher button b { color:#aab6cc; font-size:11px; }

/* Library search and category filters. */
#screen-library .plain-heading { gap:12px; margin-bottom:16px; }
#library-count { color:#b7c2d8; font-size:13px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.library-search-row { margin-bottom:12px; }
#library-search {
  width:100%; min-height:46px; padding:10px 14px; border:1px solid #3a4567;
  border-radius:10px; background:#131831; color:var(--moon); font:16px/1.4 var(--sans);
}
#library-search::placeholder { color:#a7b2cd; }
#screen-library .category-switcher { grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:0; }
#screen-library .category-switcher button { min-height:44px; }
#screen-library .category-switcher button:hover { color:var(--moon); }
#screen-library .tile-label strong { white-space:normal; overflow:visible; text-overflow:clip; }
.library-empty { min-height:180px; display:grid; justify-items:center; align-content:center; gap:14px; color:#c6cfe3; }
.library-empty p { margin:0; }
.library-empty button { min-height:44px; padding:8px 16px; border-radius:9px; background:#252b4b; color:var(--moon); }
#screen-room .new-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (min-width:950px) {
  #screen-library .category-switcher { grid-template-columns:repeat(8,minmax(0,1fr)); }
}
@media (min-width:1000px) {
  #screen-room .new-shelf { grid-column:1 / -1; }
}
@media (max-width:679px) {
  #screen-library .category-switcher button { font-size:11px; padding:4px; gap:3px; }
  #screen-library .category-switcher button b { font-size:10px; }
  #screen-room .new-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* The launcher previews the actual games; each retains its own visual world. */
.arcade-showcase { grid-column:1 / -1; }
.arcade-showcase-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.arcade-preview { display:block; padding:0; min-width:0; overflow:hidden; text-align:left; color:#edf2ee; background:#13162b; border:0; border-radius:14px; transition:transform 150ms ease-out,background 150ms ease-out; }
.arcade-preview-art { display:block; aspect-ratio:1.35; overflow:hidden; background:#000; }
.arcade-preview-art img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 51%; image-rendering:auto; }
.arcade-preview[data-preview="pac-maze"] .arcade-preview-art img { object-position:50% 45%; image-rendering:pixelated; }
.arcade-preview[data-preview="sky-hop"] .arcade-preview-art img { object-position:50% 45%; image-rendering:pixelated; }
.arcade-preview[data-preview="donkey-kong"] .arcade-preview-art img { object-position:50% 30%; image-rendering:pixelated; }
.arcade-preview-label { position:relative; display:grid; gap:5px; padding:15px 42px 15px 16px; }
.arcade-preview-label strong { font-size:17px; line-height:1.2; font-weight:750; }
.arcade-preview-label > span { color:#b3bfd0; font-size:12px; line-height:1.4; }
.arcade-preview-label svg { position:absolute; right:16px; top:50%; transform:translateY(-50%); color:#d1d9e4; }
.arcade-preview:hover { transform:translateY(-3px); background:#222640; }
.arcade-preview:active { transform:scale(.985); }
.arcade-preview:focus-visible { outline:2px solid #f6d47b; outline-offset:4px; }
@media(max-width:700px) {
  .arcade-showcase-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .arcade-preview-art { aspect-ratio:1.18; }
  .arcade-preview-label { padding:12px 29px 13px 12px; gap:4px; }
  .arcade-preview-label strong { font-size:14px; }
  .arcade-preview-label > span { font-size:11px; }
  .arcade-preview-label svg { right:9px; width:15px; }
}
@media(prefers-reduced-motion:reduce) { .arcade-preview { transition:none; } .arcade-preview:hover { transform:none; } }
