/* =========================================================
   Tidy Room Game — tidyroomgame.site
   Brand stylesheet
   ========================================================= */

:root {
  --ink: #16223b;
  --ink-2: #1b2d4f;
  --text: #26344f;
  --muted: #5f6f8a;
  --cream: #fff8ee;
  --paper: #fffdf8;
  --white: #ffffff;
  --blue: #3f7ff0;
  --blue-600: #2f66cc;
  --teal: #2fc2a2;
  --mint: #8fe8d2;
  --gold: #ffc94a;
  --gold-600: #f0a72e;
  --coral: #ff8a6b;
  --line: rgba(22, 34, 59, 0.1);
  --line-strong: rgba(22, 34, 59, 0.16);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 10px rgba(22, 34, 59, 0.05);
  --shadow: 0 20px 50px -24px rgba(22, 34, 59, 0.28);
  --shadow-lg: 0 40px 90px -36px rgba(16, 26, 46, 0.5);

  --font-display: 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max: 1160px;
  --header-h: 60px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg { display: block; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--blue-600); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
  box-shadow: 0 0 0 5px rgba(22, 34, 59, 0.38);
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-y: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.45rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  transform: translateY(var(--btn-y));
  white-space: nowrap;
}

.btn .ico { width: 1.1em; height: 1.1em; }

.btn-primary {
  background: linear-gradient(180deg, #ffd873 0%, #ffbf2e 100%);
  color: #33260a;
  box-shadow: 0 6px 0 #d8911f, 0 18px 28px -14px rgba(240, 167, 46, 0.7);
}
.btn-primary:hover {
  --btn-y: -2px;
  box-shadow: 0 8px 0 #d8911f, 0 22px 32px -14px rgba(240, 167, 46, 0.75);
}
.btn-primary:active {
  --btn-y: 3px;
  box-shadow: 0 3px 0 #d8911f, 0 10px 18px -12px rgba(240, 167, 46, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue-600); }

.btn-sm { padding: 0.62rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 248, 238, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.96);
  border-color: var(--line);
  box-shadow: 0 16px 40px -30px rgba(22, 34, 59, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 5px 12px -6px rgba(63, 127, 240, 0.55);
}
.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-badge {
  font-family: var(--font-body);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: var(--gold);
  color: #3a2a00;
  padding: 0.24rem 0.45rem;
  border-radius: 6px;
  transform: translateY(-3px);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  position: relative;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.16s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav a:hover { color: var(--blue-600); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav .nav-play { display: none; }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: clamp(16px, 2vw, 28px) 0 clamp(64px, 8vw, 96px);
  background:
    radial-gradient(110% 85% at 84% 6%, rgba(63, 127, 240, 0.42), transparent 56%),
    radial-gradient(90% 80% at 4% 96%, rgba(49, 201, 167, 0.22), transparent 60%),
    linear-gradient(158deg, #101a2e 0%, #16223b 48%, #1c3054 100%);
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
}
.orb-blue { width: 520px; height: 520px; top: -190px; right: -120px; background: #3f7ff0; }
.orb-teal { width: 430px; height: 430px; bottom: -190px; left: -140px; background: #2fc2a2; opacity: 0.35; }
.orb-gold { width: 260px; height: 260px; top: 34%; left: 36%; background: #ffc94a; opacity: 0.12; }
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.hero-copy { padding-top: 4px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #cfe0ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.16);
}

.hero-copy h1 {
  margin: 1rem 0 1.1rem;
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgba(8, 16, 32, 0.35);
}
.grad-text {
  background: linear-gradient(100deg, #8fe8d2 4%, #ffd873 52%, #ffb1a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34rem;
  color: #c4d4ee;
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.7;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #dbe7fa;
  font-size: 0.875rem;
  font-weight: 600;
}
.hero-chips svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}
.micro {
  margin-top: 1rem;
  color: #93a9cc;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-game {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.game-glow {
  position: absolute;
  z-index: 0;
  width: 125%;
  height: 78%;
  left: -12%;
  top: 8%;
  background: radial-gradient(closest-side, rgba(63, 127, 240, 0.55), rgba(49, 201, 167, 0.16) 55%, transparent 72%);
  filter: blur(42px);
  opacity: 0.8;
  pointer-events: none;
}

.game-shell {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(38, 64, 115, 0.92), rgba(13, 23, 41, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 55px 110px -45px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.game-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 6px;
  color: #b9cbea;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.game-status { display: inline-flex; align-items: center; gap: 0.5rem; }
.game-bar-title {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.84rem;
  font-weight: 800;
  color: #eef4ff;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52e0a8;
  box-shadow: 0 0 0 4px rgba(82, 224, 168, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe7fa;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Prominent fullscreen control */
.fullscreen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd873 0%, #ffbf2e 100%);
  color: #33260a;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: 0 3px 0 #d8911f, 0 10px 18px -10px rgba(240, 167, 46, 0.85);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.fullscreen-btn:hover {
  background: linear-gradient(180deg, #ffd873 0%, #ffbf2e 100%);
  color: #33260a;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #d8911f, 0 12px 20px -10px rgba(240, 167, 46, 0.9);
}
.fullscreen-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #d8911f;
}
.fullscreen-btn svg { width: 15px; height: 15px; stroke-width: 2.4; }
.fullscreen-label { line-height: 1; }


.game-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #16223b;
  height: clamp(560px, 74vh, 820px);
  aspect-ratio: 16 / 25;
  margin: 0 auto;
  max-width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  scroll-margin-top: 96px;
}
.game-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #16223b;
}

.game-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 42%, #243a63 0%, #14203a 76%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.game-loading strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}
.game-loading span:last-child {
  color: #9fb3d4;
  font-size: 0.82rem;
  font-weight: 600;
}
.spinner {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.game-frame.is-loaded .game-loading {
  opacity: 0;
  visibility: hidden;
}
.game-frame noscript {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 4;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(16, 26, 46, 0.92);
  color: #dbe7fa;
  font-size: 0.8rem;
}
.game-frame noscript a { color: var(--gold); }

.game-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 8px 2px;
  color: #8fa6c8;
  font-size: 0.72rem;
  font-weight: 700;
}
.game-foot a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #cfe0ff;
  text-decoration: none;
  font-weight: 800;
}
.game-foot a:hover { color: var(--gold); }
.game-foot svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-spark {
  position: absolute;
  z-index: 3;
  color: var(--gold);
  filter: drop-shadow(0 6px 16px rgba(255, 201, 74, 0.35));
  pointer-events: none;
}
.hero-spark svg { width: 100%; height: 100%; }
.spark-a { width: 34px; height: 34px; top: 5%; left: calc(50% - 212px); animation: float 7s ease-in-out infinite; }
.spark-b { width: 20px; height: 20px; bottom: 11%; right: calc(50% - 202px); animation: float 6s ease-in-out 1.4s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(12deg); }
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 5;
  margin-top: -48px;
}
.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.stat {
  padding: 18px 26px;
  border-left: 1px solid var(--line);
  text-align: center;
}
.stat:first-child { border-left: 0; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 8vw, 96px) 0;
  scroll-margin-top: 88px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 52px);
  text-align: center;
}
.section-head .kicker { display: block; }
.section-head p:not(.kicker) {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.section h2 {
  font-weight: 800;
  font-size: clamp(2rem, 3.7vw, 2.85rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.kicker {
  margin-bottom: 0.55rem;
  color: var(--blue-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- About ---------- */
.about {
  padding-top: clamp(56px, 7vw, 80px);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-media {
  position: relative;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
.cover-wrap {
  overflow: hidden;
  border-radius: 22px;
  background: #e9eef7;
}
.cover-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.media-badge {
  position: absolute;
  right: -14px;
  bottom: -20px;
  display: grid;
  place-items: center;
  padding: 12px 22px;
  background: linear-gradient(180deg, #ffd873, #ffbf2e);
  color: #3a2a00;
  border-radius: 18px;
  box-shadow: 0 16px 30px -14px rgba(240, 167, 46, 0.8);
  transform: rotate(3.5deg);
}
.media-badge strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}
.media-badge span {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-copy > p:not(.kicker) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.about-copy h2 { margin-bottom: 0.9rem; }

.check-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.6rem;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background-color: rgba(47, 194, 162, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23189e82' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5 9-10'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Features ---------- */
.features {
  background: linear-gradient(180deg, #fffdf8 0%, #fff8ee 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
}
.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-blue { background: #e8f1ff; color: #2f66cc; }
.icon-gold { background: #fff3d1; color: #b97a12; }
.icon-teal { background: #e2f8f1; color: #189e82; }
.icon-coral { background: #ffe9e2; color: #d95b3b; }
.icon-purple { background: #efe9ff; color: #6a4cc9; }
.icon-green { background: #e9f8e4; color: #3f8a3e; }

.feature-card h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.18rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ---------- How to play ---------- */
.how {
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(63, 127, 240, 0.08), transparent 60%),
    #eef6fb;
}
.how-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.steps { display: grid; gap: 14px; }
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 34, 59, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd873, #ffbf2e);
  color: #3a2a00;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.steps h3 { margin-bottom: 0.3rem; font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: 0.94rem; line-height: 1.65; }

.controls-card {
  position: sticky;
  top: 100px;
  padding: 30px;
  color: #fff;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(63, 127, 240, 0.32), transparent 60%),
    linear-gradient(160deg, #1b2d4f 0%, #131e35 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.controls-card h3 {
  margin-bottom: 0.7rem;
  color: #fff;
  font-size: 1.35rem;
}
.controls-card dl { margin: 0; }
.controls-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.controls-card dt {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.controls-card dd {
  color: #b9cbea;
  font-size: 0.88rem;
  text-align: right;
}
.callout {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 201, 74, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  color: #dbe7fa;
  font-size: 0.88rem;
  line-height: 1.6;
}
.callout strong { color: var(--gold); }
.controls-card .btn { margin-top: 1.4rem; }

/* ---------- Tips ---------- */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tip-card {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.tip-card:nth-child(2) { border-top-color: var(--teal); }
.tip-card:nth-child(3) { border-top-color: var(--coral); }
.tip-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #fff3d1;
  color: #a06f0f;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tip-card:nth-child(2) .tip-tag { background: #e2f8f1; color: #14836c; }
.tip-card:nth-child(3) .tip-tag { background: #ffe9e2; color: #c44f31; }
.tip-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.tip-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.65; }

/* ---------- Rooms ---------- */
.rooms { background: #fffdf8; }
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.rooms-copy > p:not(.kicker) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.room-progress { margin-top: 1.8rem; }
.room-progress-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.room-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #efe4d0;
  overflow: hidden;
}
.room-progress-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--gold) 58%, var(--coral));
}
.room-progress-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-content: center;
}
.room-tag {
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 0.18s ease;
}
.room-tag:hover { transform: translateY(-2px); }
.t-blue { background: #e8f1ff; color: #2f66cc; border-color: #cfe0ff; }
.t-teal { background: #e2f8f1; color: #14836c; border-color: #c2ecdf; }
.t-gold { background: #fff3d1; color: #a06f0f; border-color: #f6e2ae; }
.t-coral { background: #ffe9e2; color: #c44f31; border-color: #fbd3c8; }
.t-purple { background: #efe9ff; color: #6a4cc9; border-color: #ddd2fb; }
.t-green { background: #e9f8e4; color: #3f8a3e; border-color: #cdecc4; }
.room-tags .room-tag:nth-child(3n) { transform: rotate(1.6deg); }
.room-tags .room-tag:nth-child(4n) { transform: rotate(-1.4deg); }

/* ---------- More games ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.game-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.game-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  background: #e9eef7;
  overflow: hidden;
}
.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-media img { transform: scale(1.05); }
.game-card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 26, 46, 0.24);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.game-card-play svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(16, 26, 46, 0.78);
  color: #fff;
}
.game-card:hover .game-card-play { opacity: 1; }
.game-card-body {
  display: grid;
  gap: 2px;
  padding: 14px 16px 16px;
}
.game-card-body strong { font-size: 1rem; font-weight: 800; }
.game-card-meta { color: var(--muted); font-size: 0.79rem; font-weight: 700; }
.more-note {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.more-note a { font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { background: #fffdf8; }
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 0 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-list details[open] {
  border-color: rgba(63, 127, 240, 0.32);
  box-shadow: 0 18px 40px -30px rgba(22, 34, 59, 0.4);
}
.faq-list summary {
  position: relative;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--blue-600);
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary { color: var(--blue-600); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 0 20px;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

/* ---------- Final CTA ---------- */
.final-cta { padding-top: 0; }
.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(34px, 5vw, 58px);
  color: #fff;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(63, 127, 240, 0.42), transparent 55%),
    radial-gradient(70% 100% at 0% 100%, rgba(49, 201, 167, 0.25), transparent 55%),
    linear-gradient(150deg, #16223b 0%, #1b2d4f 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.cta-panel p {
  margin-top: 0.7rem;
  max-width: 30rem;
  color: #c4d4ee;
  font-size: 1rem;
}
.cta-panel .btn { flex: none; position: relative; z-index: 2; }
.cta-spark {
  position: absolute;
  top: 14%;
  right: 6%;
  width: 34px;
  height: 34px;
  color: var(--gold);
  opacity: 0.85;
  transform: rotate(12deg);
  pointer-events: none;
}
.cta-spark svg { width: 100%; height: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 28px;
  color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(63, 127, 240, 0.16), transparent 60%),
    #101a2e;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.brand-footer .brand-name { color: #fff; }
.footer-brand p {
  margin-top: 1rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h3 {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  padding: 0.34rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-disclaimer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100ch;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  line-height: 1.7;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .hero-chips, .hero-actions { justify-content: center; }
  .hero-game { margin-top: 4px; }
  .game-shell { width: 100%; max-width: 420px; }
  .game-frame { height: auto; width: 100%; aspect-ratio: 16 / 25; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 560px; margin-inline: auto; }
  .features .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .controls-card { position: static; }
  .rooms-grid { grid-template-columns: 1fr; }
  .rooms-copy { text-align: center; max-width: 620px; margin-inline: auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 59;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px 24px 24px;
    background: rgba(255, 253, 248, 0.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px -30px rgba(22, 34, 59, 0.45);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 1rem;
  }
  .site-nav a::after { display: none; }
  .site-nav a:hover { background: rgba(63, 127, 240, 0.08); }
  .site-nav .nav-play {
    display: inline-flex;
    justify-content: center;
    margin-top: 10px;
    padding: 13px 18px;
    background: linear-gradient(180deg, #ffd873, #ffbf2e);
    color: #33260a;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: 0 5px 0 #d8911f;
  }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .container { width: min(100% - 36px, var(--max)); }
  .stats { margin-top: -36px; }
  .stats-card { grid-template-columns: repeat(2, 1fr); padding: 6px; }
  .stat { padding: 16px 14px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat strong { font-size: 1.75rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px; }
  .tip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .cta-panel .btn { width: 100%; }
  .spark-a { left: 0; }
  .spark-b { right: 0; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--max)); }
  .brand-name { font-size: 1.22rem; }
  .brand-icon { width: 40px; height: 40px; border-radius: 12px; }
  .brand-badge { font-size: 0.52rem; padding: 0.2rem 0.38rem; }
  .hero { padding-top: 30px; }
  .hero-copy h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.05em; padding: 0.38rem 0.8rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .game-shell { padding: 8px; border-radius: 24px; }
  .game-frame { border-radius: 17px; }
  .game-bar { padding-bottom: 8px; }
  .hero-spark { display: none; }
  .card-grid { gap: 14px; }
  .game-card-body { padding: 12px 13px 14px; }
  .game-card-body strong { font-size: 0.92rem; }
  .game-card-meta { font-size: 0.72rem; }
  .section { padding: 60px 0; }
  .faq-list details { padding: 0 18px; }
  .faq-list summary { font-size: 0.97rem; }
  .cta-panel { padding: 30px 24px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-media { transform: none; }
  .media-badge { right: 6px; bottom: -16px; }
}

@media (hover: none) {
  .game-card-play { opacity: 1; background: transparent; }
  .game-card-play svg {
    width: 40px;
    height: 40px;
    padding: 10px;
    background: rgba(16, 26, 46, 0.7);
  }
}

@media (max-height: 780px) and (min-width: 981px) {
  .game-frame { height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
/* ---------- Fullscreen game ---------- */
.game-frame:fullscreen,
.game-frame:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  background: #16223b;
}
.game-frame:fullscreen iframe,
.game-frame:-webkit-full-screen iframe { border-radius: 0; }

/* ---------- Inline code (policy pages) ---------- */
code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: #eef3fb;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

/* ---------- Game frame pulse (play CTA) ---------- */
.game-frame.is-pulsing { animation: frame-pulse 1.4s ease; }
@keyframes frame-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
  30% { box-shadow: inset 0 0 0 4px var(--gold), 0 0 0 10px rgba(255, 201, 74, 0.22); }
}

/* ---------- Legal / utility pages ---------- */
.legal-page { padding: clamp(44px, 6vw, 76px) 0 clamp(64px, 8vw, 96px); }
.legal-card {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.legal-card h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}
.legal-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.legal-card h2 {
  margin-top: 2.1rem;
  font-size: 1.32rem;
}
.legal-card p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}
.legal-card ul {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.legal-card li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.legal-card a { font-weight: 700; }
.legal-back {
  display: inline-flex;
  margin-bottom: 1.6rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--blue-600);
  text-decoration: none;
}
.legal-back:hover { text-decoration: underline; }

/* ---------- Error page ---------- */
.error-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  place-items: center;
  padding: clamp(60px, 9vw, 120px) 0;
  text-align: center;
}
.error-art {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 1.6rem;
  border-radius: 32px;
  background: linear-gradient(140deg, #528ff8, #31c9a7);
  box-shadow: 0 26px 50px -20px rgba(49, 201, 167, 0.55);
}
.error-art img { width: 96px; height: 96px; border-radius: 24px; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.error-page h1 {
  margin: 0.7rem 0 0.6rem;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
.error-page p {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.error-actions .btn-outline { box-shadow: var(--shadow-sm); }


/* =========================================================
   Mobile: game-first, edge-to-edge play
   ========================================================= */
@media (max-width: 760px) {
  :root { --header-h: 54px; }
  .container { width: min(100% - 32px, var(--max)); }
  .brand-icon { width: 30px; height: 30px; border-radius: 9px; }
  .brand-name { font-size: 1.12rem; }
  .brand-badge { font-size: 0.5rem; }

  .hero { padding: 10px 0 56px; }
  .hero-grid { gap: 18px; }

  .hero-game {
    order: -1;
    margin: 0 -16px 2px;
  }
  .game-glow,
  .hero-spark { display: none; }

  .game-shell {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #0f1a2e;
    box-shadow: none;
  }
  .game-bar { padding: 6px 14px; }
  .game-frame {
    width: 100%;
    height: auto;
    border-radius: 0;
    aspect-ratio: 16 / 25;
    scroll-margin-top: 70px;
  }
  .game-foot { display: none; }

  .hero-copy { order: 1; text-align: center; }
  .hero-copy h1 { font-size: clamp(2.1rem, 9.5vw, 2.7rem); }
  .hero-copy .lede { font-size: 0.98rem; }

  .features .feature-grid { grid-template-columns: 1fr; }

  /* Phones get instantly visible content — no scroll-in fade */
  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* =========================================================
   Wide desktop: use the game's widescreen mode
   ========================================================= */
@media (min-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(36px, 4vw, 56px);
  }
  .hero-copy h1 { font-size: clamp(2.5rem, 3.7vw, 3.6rem); }

  .game-shell {
    width: 100%;
    max-width: none;
  }
  .game-frame {
    width: 100%;
    max-width: none;
    height: clamp(380px, calc(100vh - 220px), 700px);
    aspect-ratio: auto;
  }
}
