/* ============================================================
   KHONSHU LUNAR RESEARCH — site pages (home, games)
   Shares the palette and CRT language of styles.css
   ============================================================ */

:root {
  /* — Khonshu palette — */
  --navy-deep:  #020f2e;
  --navy:       #051c44;
  --royal:      #0c3a8a;
  --cobalt:     #125fd8;
  --moon:       #f2f6fc;
  --silver:     #b9c8dd;
  --silver-dim: #7187a8;
  --gold:       #f5a623;
  --gold-soft:  #ffc94d;

  --glow-moon: rgba(190, 214, 255, 0.32);
  --glow-gold: rgba(245, 166, 35, 0.14);
  --line:      rgba(185, 200, 221, 0.16);
  --panel:     rgba(4, 19, 50, 0.84);

  --speed-twinkle: 5s;
  --speed-pulse:   3.2s;

  --font-display: "VT323", "Courier New", monospace;
  --font-mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;

  color-scheme: dark;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  height: 100%;
  background: var(--navy-deep);
  scroll-behavior: smooth;
  /* iOS Safari: don't auto-inflate text in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* iOS ignores overflow-x on body for touch panning — clamp at the root */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-mono);
  color: var(--moon);
  background:
    radial-gradient(ellipse 120% 90% at 50% 30%,
      #0e3e94 0%,
      #07265f 48%,
      var(--navy-deep) 100%);
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ------------------------------------------------------------
   Sky — stars and sparkles
   ------------------------------------------------------------ */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--moon);
  opacity: var(--o, 0.7);
  animation: twinkle var(--speed-twinkle) ease-in-out var(--d, 0s) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: var(--o, 0.7); }
  50%      { opacity: calc(var(--o, 0.7) * 0.3); }
}

.sparkle {
  position: absolute;
  width: 20px;
  height: 20px;
  animation: sparkle-breathe 7s ease-in-out infinite;
}

.sparkle path { fill: var(--moon); }
.sparkle--a { left: 10%; top: 30%; opacity: 0.45; }

@keyframes sparkle-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(0.78); }
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(2, 14, 42, 0.82);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-block: 14px;
  text-decoration: none;
}

.nav__brand img { display: block; }

.nav__name {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--silver-dim);
  white-space: nowrap;
}

.nav__name b {
  font-weight: 600;
  color: var(--moon);
}

.nav__links {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
}

.nav__links a {
  display: flex;
  align-items: center;
  /* generous tap target on touch screens */
  padding-inline: 8px;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  transition: color 0.15s ease;
}

.nav__links a:hover { color: var(--moon); }

.nav__links a.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  color: var(--moon);
  border-color: rgba(185, 200, 221, 0.45);
}

.btn--gold {
  border-color: rgba(245, 166, 35, 0.55);
  color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 0 22px rgba(245, 166, 35, 0.35);
}

/* ------------------------------------------------------------
   Home — hero
   ------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
  padding-block: clamp(40px, 7vh, 80px);
  min-height: calc(100dvh - 160px);
}

.hero__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.92;
  color: var(--moon);
  text-shadow:
    0 0 1px #fff,
    0 0 22px var(--glow-moon),
    0 0 70px var(--glow-gold);
  animation: moon-glow 5s ease-in-out infinite;
}

@keyframes moon-glow {
  0%, 100% {
    text-shadow:
      0 0 1px #fff,
      0 0 22px var(--glow-moon),
      0 0 70px var(--glow-gold);
  }
  50% {
    text-shadow:
      0 0 1px #fff,
      0 0 34px rgba(190, 214, 255, 0.48),
      0 0 90px rgba(245, 166, 35, 0.2);
  }
}

.hero__lead {
  margin-top: 26px;
  max-width: 54ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--silver);
}

.hero__lead strong {
  font-weight: 600;
  color: var(--moon);
}

.hero__lead a,
.games__sub a,
.footer a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 166, 35, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero__lead a:hover,
.games__sub a:hover,
.footer a:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}

.hero__body {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--silver-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 460px;
  margin-top: 36px;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.hero__status li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 14px;
  background: rgba(4, 19, 50, 0.9);
}

.hero__status span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.hero__status b {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moon);
}

.hero__status b.gold { color: var(--gold); }

/* ------------------------------------------------------------
   Home — solar system (pure CSS)
   ------------------------------------------------------------ */

.hero__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.solar {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  /* the rotating ring boxes sweep a bbox wider than the circle —
     clip it so the page never gains horizontal scroll */
  overflow: hidden;
  overflow: clip;
}

/* faint crosshair behind the orbits */
.solar::before,
.solar::after {
  content: "";
  position: absolute;
}

.solar::before {
  left: 50%;
  top: 2%;
  bottom: 2%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(185, 200, 221, 0.08), transparent);
}

.solar::after {
  top: 50%;
  left: 2%;
  right: 2%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 200, 221, 0.08), transparent);
}

.sun {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-soft), var(--gold) 60%, #b97708);
  box-shadow:
    0 0 24px rgba(245, 166, 35, 0.5),
    0 0 64px rgba(245, 166, 35, 0.22);
  animation: sun-pulse 6s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(245, 166, 35, 0.5),  0 0 64px rgba(245, 166, 35, 0.22); }
  50%      { box-shadow: 0 0 32px rgba(245, 166, 35, 0.65), 0 0 84px rgba(245, 166, 35, 0.3); }
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--diam);
  height: var(--diam);
  translate: -50% -50%;
  border: 1px solid rgba(185, 200, 221, 0.14);
  border-radius: 50%;
  animation: orbit-spin var(--t) linear infinite;
}

@keyframes orbit-spin {
  to { rotate: 360deg; }
}

.planet,
.earth-sys {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -50%;
  border-radius: 50%;
}

.planet {
  width: var(--s);
  height: var(--s);
  background: var(--c, var(--silver));
}

.planet--jupiter {
  background: linear-gradient(180deg,
    #c8d4e6 0 28%,
    #9fb2cc 28% 44%,
    #c8d4e6 44% 68%,
    #9fb2cc 68% 100%);
}

.planet--saturn { background: #e8d9b0; }

.planet--saturn::after {
  content: "";
  position: absolute;
  inset: -3px -8px;
  border: 1px solid rgba(245, 166, 35, 0.55);
  border-radius: 50%;
  transform: rotate(-24deg) scaleY(0.42);
}

/* Earth + Moon — the research sector */
.earth-sys {
  width: 11px;
  height: 11px;
  background: radial-gradient(circle at 35% 35%, #5b90f0, var(--cobalt) 65%, #0a40a8);
  box-shadow: 0 0 10px rgba(18, 95, 216, 0.65);
}

.moon-orbit {
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(245, 166, 35, 0.45);
  border-radius: 50%;
  animation: orbit-spin 4s linear infinite;
}

.moon-dot {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 5px rgba(242, 246, 252, 0.9);
}

.solar__caption {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--silver-dim);
  text-align: center;
}

/* ------------------------------------------------------------
   Games page
   ------------------------------------------------------------ */

.games {
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: start;
  gap: clamp(36px, 5vw, 72px);
  padding-block: clamp(44px, 7vh, 76px);
}

.games__intro {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.emblem {
  position: relative;
  width: 148px;
  height: 148px;
  margin-bottom: 26px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 7px;
  background: var(--panel);
  box-shadow:
    0 0 28px rgba(245, 166, 35, 0.3),
    inset 0 0 14px rgba(245, 166, 35, 0.12);
  animation: emblem-glow 5s ease-in-out infinite;
}

@keyframes emblem-glow {
  0%, 100% { box-shadow: 0 0 28px rgba(245, 166, 35, 0.3),  inset 0 0 14px rgba(245, 166, 35, 0.12); }
  50%      { box-shadow: 0 0 40px rgba(245, 166, 35, 0.45), inset 0 0 14px rgba(245, 166, 35, 0.12); }
}

.emblem img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.games__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--moon);
  text-shadow:
    0 0 1px #fff,
    0 0 22px var(--glow-moon),
    0 0 70px var(--glow-gold);
  animation: moon-glow 5s ease-in-out infinite;
}

.games__sub {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--silver);
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 30px;
}

.social {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--silver);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--silver-dim);
  transition: fill 0.15s ease;
}

.social:hover {
  color: var(--moon);
  border-color: rgba(245, 166, 35, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 8, 24, 0.5);
}

.social:hover svg { fill: var(--gold); }

/* — game cards — */

.games__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  border-color: rgba(245, 166, 35, 0.45);
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(2, 8, 24, 0.55),
    0 0 30px rgba(245, 166, 35, 0.07);
}

.game-card__reg {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.8;
}

.game-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--navy);
  object-fit: cover;
}

.game-card__content h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--moon);
  padding-right: 64px; /* keep clear of the REG tag */
}

.game-card__content > p {
  margin-top: 8px;
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--silver-dim);
}

.game-card__meta {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold) !important;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(185, 200, 221, 0.3);
  border-radius: 999px;
  background: rgba(242, 246, 252, 0.05);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--moon);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chip svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 166, 35, 0.08);
}

/* ------------------------------------------------------------
   Support page
   ------------------------------------------------------------ */

.support {
  padding-block: clamp(44px, 7vh, 76px);
}

.support__head {
  text-align: center;
  margin-bottom: clamp(36px, 6vh, 56px);
}

.support__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  color: var(--moon);
  text-shadow:
    0 0 1px #fff,
    0 0 22px var(--glow-moon),
    0 0 70px var(--glow-gold);
  animation: moon-glow 5s ease-in-out infinite;
}

.support__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  max-width: 980px;
  margin-inline: auto;
}

.support__card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.support__card h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moon);
}

.support__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--silver-dim);
}

.support__note strong {
  font-weight: 600;
  color: var(--silver);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.contact-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(242, 246, 252, 0.04);
  font-size: 13px;
  font-weight: 600;
  color: var(--silver-dim);
}

.contact-badge svg {
  width: 15px;
  height: 15px;
  fill: var(--silver-dim);
}

.contact-label {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.contact-list a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 166, 35, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}

.support__cta { margin-top: 26px; }

.support__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.capy-ring {
  width: min(100%, 300px);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--panel);
  box-shadow:
    0 0 30px rgba(245, 166, 35, 0.32),
    inset 0 0 16px rgba(245, 166, 35, 0.12);
  animation: emblem-glow 5s ease-in-out infinite;
}

.capy-ring img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.support__caption {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--silver-dim);
  text-align: center;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(2, 14, 42, 0.6);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

/* ------------------------------------------------------------
   CRT overlays
   ------------------------------------------------------------ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.overlay--scanlines {
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0 1px,
    transparent 1px 3px
  );
}

.overlay--noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

.overlay--vignette {
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(2, 10, 32, 0.45) 100%
  );
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
    padding-block: 48px;
  }

  .hero__viz { order: 2; }

  .solar { width: min(86vw, 420px); }

  .games { grid-template-columns: 1fr; }

  .games__intro {
    position: static;
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 940px) and (min-width: 601px) {
  .support__grid { gap: 40px; }
}

@media (max-width: 760px) {
  .support__grid { grid-template-columns: 1fr; }

  .support__logo { order: -1; }

  .capy-ring { width: min(60vw, 240px); }
}

@media (max-width: 600px) {
  .nav__name { display: none; }

  .hero__status { grid-template-columns: 1fr; max-width: none; }

  .hero__status li {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .game-card {
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .game-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ------------------------------------------------------------
   Touch devices — drop paint-heavy glow pulses (text-shadow /
   box-shadow animations repaint every frame and cause jank on
   phones). The static glow stays; orbits/twinkles are cheap
   composited transforms and keep running.
   ------------------------------------------------------------ */

@media (hover: none) and (pointer: coarse) {
  .hero__title,
  .games__title,
  .support__title,
  .sun,
  .emblem,
  .capy-ring {
    animation: none;
  }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- página /spellcast ---- */
.play { padding-block: clamp(28px, 5vh, 56px); }
.play__title { margin-top: 14px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: .95; color: var(--moon);
  text-shadow: 0 0 1px #fff, 0 0 22px var(--glow-moon), 0 0 70px var(--glow-gold); }
.play__sub { margin-top: 12px; max-width: 64ch; font-size: 13px; line-height: 1.8;
  color: var(--silver); }
.play__frame { position: relative; margin-top: 26px; aspect-ratio: 16 / 9;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; }
.play__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; }
.play__offline { position: absolute; inset: 0; display: grid; place-content: center;
  gap: 8px; text-align: center; color: var(--silver-dim); font-size: 13px; }
.play__hint { margin-top: 12px; font-size: 10px; letter-spacing: .18em;
  color: var(--silver-dim); }
.play__offline[hidden] { display: none; }
@media (max-width: 720px) { .play__frame { aspect-ratio: 9 / 16; } }
