.game-page {
  min-height: 100vh;
  background:
    radial-gradient(80% 50% at 50% -20%, rgba(255, 200, 87, 0.14), transparent 55%),
    radial-gradient(60% 40% at 100% 80%, rgba(61, 255, 194, 0.1), transparent 50%),
    var(--ink);
}

.glow {
  pointer-events: none;
  position: fixed;
  width: 50vw;
  height: 50vw;
  right: -15%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 255, 194, 0.16), transparent 70%);
  filter: blur(20px);
  animation: pulse 7s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.5; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.05); }
}

.bar,
.wrap {
  position: relative;
  z-index: 1;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bar-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--mist);
  font-weight: 600;
}

.bar-meta a {
  color: var(--foam);
  text-decoration: none;
}

.pill {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 194, 0.35);
  color: var(--mint);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wrap {
  padding: 0.5rem clamp(1rem, 4vw, 2rem) 2.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.intro {
  margin-bottom: 0.85rem;
}

.intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  letter-spacing: -0.045em;
}

.intro p {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  color: var(--mist);
  font-size: 0.98rem;
}

.game-page .wallet-chip {
  display: inline-flex;
  flex-direction: column;
  min-width: 4.2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(17, 38, 61, 0.75);
}

.game-page .wallet-chip span {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.game-page .wallet-chip strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.game-page .wallet-chip.mint strong {
  color: var(--mint);
}

.btn-fs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(17, 38, 61, 0.75);
  color: var(--foam);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.btn-fs:hover {
  border-color: rgba(61, 255, 194, 0.45);
  color: var(--mint);
}

.btn-fs:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.btn-fs[aria-pressed="true"] {
  border-color: rgba(61, 255, 194, 0.55);
  color: var(--mint);
  background: rgba(61, 255, 194, 0.1);
}

/* Canvas immersive mode: play shell fills the viewport (not browser window FS) */
body.is-canvas-fs {
  overflow: hidden;
}

body.is-canvas-fs .glow,
body.is-canvas-fs .intro,
body.is-canvas-fs .game-hint {
  display: none !important;
}

body.is-canvas-fs .bar {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}

body.is-canvas-fs .bar .brand,
body.is-canvas-fs .bar .wallet-chip,
body.is-canvas-fs .bar .back-link {
  display: none !important;
}

body.is-canvas-fs .bar .game-nav {
  position: fixed;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 61;
  pointer-events: auto;
  gap: 0;
}

body.is-canvas-fs .wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.is-canvas-fs .game-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  max-width: none;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.is-canvas-fs .game-hud {
  flex-shrink: 0;
  padding-right: 7.5rem;
}

body.is-canvas-fs .game-stage,
body.is-canvas-fs .trivia-stage,
body.is-canvas-fs .hex-stage,
body.is-canvas-fs .crew-stage {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
  width: 100%;
}
