/* =========================================================
   Spin the Wheel — Design System
   Concept: carnival prize wheel + raffle ticket stub
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* ---- paper (default / light) theme ---- */
  --bg: #FBF5E9;
  --surface: #FFFFFF;
  --ink: #1F2233;
  --ink-soft: #52566E;
  --line: #E4DBC6;
  --coral: #FF5A5F;
  --marigold: #FFB627;
  --teal: #06A77D;
  --coral-ink: #7A1E22;
  --shadow: 0 12px 30px rgba(31,34,51,0.12);
  --wedge-stroke: #FBF5E9;
  --glow: none;
  --pin: #1F2233;
}

:root[data-theme="midnight"]{
  --bg: #14162B;
  --surface: #1D2040;
  --ink: #FBF5E9;
  --ink-soft: #B7B9D6;
  --line: #33375E;
  --coral: #FF6B6F;
  --marigold: #FFC94D;
  --teal: #2FD9A4;
  --coral-ink: #FFD9D9;
  --shadow: 0 18px 40px rgba(0,0,0,0.45);
  --wedge-stroke: #14162B;
  --glow: none;
  --pin: #FBF5E9;
}

:root[data-theme="neon"]{
  --bg: #0B0B14;
  --surface: #121225;
  --ink: #F3F1FF;
  --ink-soft: #A7A3D9;
  --line: #2C2A55;
  --coral: #FF3D7F;
  --marigold: #FFD23F;
  --teal: #22F0C9;
  --coral-ink: #FF3D7F;
  --shadow: 0 0 40px rgba(34,240,201,0.15);
  --wedge-stroke: #0B0B14;
  --glow: 0 0 14px currentColor;
  --pin: #FFD23F;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  transition: background 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; }

.eyebrow{
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--coral);
}

h1, h2, h3{ font-family: 'Bungee', system-ui, sans-serif; font-weight: 400; line-height: 1.05; margin: 0; }

p{ line-height: 1.6; color: var(--ink-soft); }

:focus-visible{
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout shell ---------- */
.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Nav ---------- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bungee', system-ui, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark{
  width: 30px; height: 30px;
  border-radius: 50%;
  background: conic-gradient(var(--coral) 0 25%, var(--marigold) 0 50%, var(--teal) 0 75%, var(--coral) 0 100%);
  border: 2px solid var(--ink);
  flex: none;
}
.nav-links{
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.nav-links a{
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.theme-switch{
  display: flex;
  gap: 6px;
  background: var(--surface);
  padding: 5px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.theme-switch button{
  border: none;
  background: transparent;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.theme-switch button[aria-pressed="true"]{
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Hero ---------- */
.hero{
  padding: 56px 0 40px;
}
.hero-head{
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-head h1{
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  margin: 10px 0 14px;
}
.hero-head h1 span{ color: var(--coral); }
.hero-head p{ font-size: 1.05rem; max-width: 52ch; }

.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 960px){
  .hero-grid{
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 40px;
  }
}

/* ---------- Wheel stage ---------- */
.wheel-stage{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.wheel-frame{
  position: relative;
  width: min(92vw, 440px);
  aspect-ratio: 1 / 1;
}
.wheel-pin{
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--pin);
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.25));
  z-index: 5;
}
.wheel-pin::after{
  content: "";
  position: absolute;
  top: -30px; left: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pin);
}
#wheelCanvas{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: var(--shadow), inset 0 0 0 8px var(--surface), inset 0 0 0 10px var(--ink);
  background: var(--surface);
}
.wheel-hub{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22%; height: 22%;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--surface);
  display: grid;
  place-items: center;
  z-index: 4;
  box-shadow: var(--shadow);
}
.wheel-hub svg{ width: 46%; height: 46%; color: var(--bg); }

.spin-btn{
  font-family: 'Bungee', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 16px 44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 0 var(--coral-ink), var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.spin-btn:hover{ transform: translateY(-2px); }
.spin-btn:active{ transform: translateY(4px); box-shadow: 0 4px 0 var(--coral-ink); }
.spin-btn:disabled{ opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: 0 10px 0 var(--coral-ink); }

.result-announce{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* winner ticket */
.winner-ticket{
  position: relative;
  margin-top: 4px;
  min-width: 240px;
  max-width: 92vw;
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateY(-16px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.2,1.4,.4,1), opacity 0.3s ease;
}
.winner-ticket.show{
  transform: translateY(0) scale(1);
  opacity: 1;
}
.winner-ticket .label{
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.winner-ticket .pick{
  font-family: 'Bungee', system-ui, sans-serif;
  font-size: 1.5rem;
  color: var(--teal);
  margin-top: 2px;
  word-break: break-word;
}

/* ---------- Ticket card (controls) ---------- */
.ticket{
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 24px 22px;
  position: relative;
}
.ticket h2{
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.ticket .sub{ font-size: 0.86rem; margin-bottom: 16px; }

.field label{
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
textarea#choicesInput{
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 12px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
}
textarea#choicesInput:focus{ border-color: var(--teal); }

.hint{
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.chip-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
  list-style: none;
  padding: 0;
}
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-size: 0.82rem;
}
.chip button{
  border: none;
  background: var(--coral);
  color: #fff;
  width: 18px; height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* perforated stub divider */
.stub-divider{
  position: relative;
  margin: 20px -24px;
  border-top: 2px dashed var(--line);
}
.stub-divider::before, .stub-divider::after{
  content: "";
  position: absolute;
  top: -10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
}
.stub-divider::before{ left: -10px; }
.stub-divider::after{ right: -10px; }

.ticket-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.btn-secondary{
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover{ border-color: var(--teal); color: var(--teal); }
.btn-secondary[aria-pressed="false"] .icon-on,
.btn-secondary[aria-pressed="true"] .icon-off{ display:none; }

.toast{
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 80;
}
.toast.show{ opacity: 1; transform: translate(-50%, 0); }

/* ---------- Presets ---------- */
.presets{
  padding: 10px 0 46px;
}
.presets-row{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
}
.preset-chip{
  flex: none;
  border: 1.5px solid var(--line);
  background: var(--surface);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.preset-chip:hover{ border-color: var(--marigold); }

/* ---------- History strip ---------- */
.history{
  padding: 6px 0 50px;
}
.history-row{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}
.history-stub{
  flex: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.history-stub b{ color: var(--ink); font-weight: 600; }
.history-empty{ font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- How it works ---------- */
.how{ padding: 20px 0 60px; border-top: 1px solid var(--line); }
.how h2{ font-size: 1.7rem; margin: 14px 0 30px; }
.how-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px){
  .how-grid{ grid-template-columns: repeat(3, 1fr); }
}
.how-card{
  background: var(--surface);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.how-card .num{
  font-family: 'Bungee', system-ui, sans-serif;
  color: var(--marigold);
  font-size: 1.6rem;
}
.how-card h3{ font-size: 1.02rem; margin: 8px 0 6px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.how-card p{ font-size: 0.88rem; margin: 0; }

/* ---------- Blog teaser ---------- */
.teaser{ padding: 10px 0 60px; }
.teaser-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px){
  .teaser-grid{ grid-template-columns: repeat(3, 1fr); }
}
.teaser-card{
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.teaser-card .tag{
  display: inline-block;
  margin: 16px 0 0 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.teaser-card h3{ font-size: 1.02rem; margin: 8px 18px 16px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
}
.footer-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.footer-links{
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links a{ text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover{ color: var(--coral); }

/* ---------- Simple pages (about / blog / privacy) ---------- */
.page{
  padding: 56px 0 70px;
  max-width: 760px;
  margin: 0 auto;
}
.page h1{ font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 18px; }
.page p{ margin-bottom: 16px; font-size: 1.02rem; }
.page h2{ font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; margin: 30px 0 10px; }
.post-list{ list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.post-list li{
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.post-list .tag{ font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--teal); letter-spacing: 0.1em; text-transform: uppercase; }
.post-list h2{ margin: 6px 0 6px; font-size: 1.05rem; }
.post-list p{ margin: 0; font-size: 0.9rem; }
.post-list a{ text-decoration: none; color: inherit; }

/* ---------- Full blog post articles ---------- */
.post-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.post-back:hover{ color: var(--coral); }
.post-meta{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.post-meta .tag{
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.post-meta .date{ font-size: 0.82rem; color: var(--ink-soft); }
.page ul.post-body-list, .page ol.post-body-list{ margin: 0 0 20px; padding-left: 22px; }
.page ul.post-body-list li, .page ol.post-body-list li{ margin-bottom: 8px; font-size: 1.02rem; color: var(--ink); }
.post-cta{
  margin: 34px 0;
  background: var(--surface);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.post-cta p{ margin-bottom: 14px; }
.related-posts{
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.related-posts h2{ margin-top: 0; }
.related-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px){
  .related-grid{ grid-template-columns: repeat(2, 1fr); }
}
.related-grid a{
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
}
.related-grid a:hover{ color: var(--coral); }

/* ---------- Games ---------- */
.games-intro{ padding: 56px 0 10px; }
.games-intro .hero-head{ max-width: 640px; }
.games-intro h1{ font-size: clamp(2.1rem, 5.5vw, 3.2rem); margin: 10px 0 14px; }
.games-intro h1 span{ color: var(--teal); }

.games-tabs{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 30px;
}
.games-tab{
  flex: none;
  border: 1.5px solid var(--line);
  background: var(--surface);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.games-tab[aria-selected="true"]{
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.game-panel{ display: none; padding-bottom: 70px; }
.game-panel.active{ display: block; }

.game-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 860px){
  .game-layout{ grid-template-columns: minmax(0,1fr) 260px; }
}

.game-stage{
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.game-canvas-wrap{
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.game-canvas-wrap.tall{ aspect-ratio: 3 / 4; }
.game-canvas-wrap.pacman-board{ aspect-ratio: 1 / 1; background: #0A0A18; }
.game-canvas-wrap canvas{
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.game-hud{
  display: flex;
  gap: 22px;
  font-family: 'JetBrains Mono', monospace;
}
.game-hud .stat{ text-align: center; }
.game-hud .stat .n{ font-size: 1.3rem; font-weight: 700; color: var(--ink); display:block; }
.game-hud .stat .l{ font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* On-screen touch controls — shown only on touch devices, hidden for mouse/keyboard */
.touch-dpad{
  display: none;
  grid-template-areas:
    ".    up    ."
    "left .     right"
    ".    down  .";
  grid-template-columns: 54px 54px 54px;
  grid-template-rows: 54px 54px 54px;
  gap: 6px;
  margin-top: 4px;
}
.touch-dpad button{
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--ink);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.touch-dpad .up{ grid-area: up; }
.touch-dpad .down{ grid-area: down; }
.touch-dpad .left{ grid-area: left; }
.touch-dpad .right{ grid-area: right; }

.touch-lr{
  display: none;
  gap: 16px;
  margin-top: 4px;
  width: 100%;
  max-width: 320px;
}
.touch-lr button{
  flex: 1;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--ink);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.spin-btn, .games-tab, .preset-chip, .btn-secondary{
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

@media (hover: none) and (pointer: coarse){
  .touch-dpad{ display: grid; }
  .touch-lr{ display: flex; }
}

/* ---------- Fullscreen / immersive mobile mode ---------- */
.fullscreen-btn{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

body.game-immersive-active{
  overflow: hidden;
}

.game-stage.immersive{
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
  box-shadow: none;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  gap: 16px;
  touch-action: none;
}
.game-stage.immersive .game-hud{
  font-size: 1.05rem;
  gap: 30px;
}
.game-stage.immersive .game-hud .stat .n{ font-size: 1.5rem; }
.game-stage.immersive .game-canvas-wrap{
  width: auto;
  height: auto;
  max-width: none;
  flex: none;
}
.game-stage.immersive .touch-dpad{
  grid-template-columns: 64px 64px 64px;
  grid-template-rows: 64px 64px 64px;
  gap: 10px;
}
.game-stage.immersive .touch-dpad button{ font-size: 1.6rem; }
.game-stage.immersive .touch-lr{ max-width: 460px; }
.game-stage.immersive .touch-lr button{ padding: 22px; font-size: 1.7rem; }
.game-stage.immersive .spin-btn{ padding: 18px 44px; font-size: 1.05rem; }
.game-stage.immersive .game-overlay{ border-radius: 0; }

.game-overlay{
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}
.game-overlay h3{ font-family: 'Bungee', system-ui, sans-serif; font-size: 1.3rem; }
.game-overlay p{ color: color-mix(in srgb, var(--bg) 80%, transparent); font-size: 0.85rem; margin: 0; }
.game-overlay.hidden{ display: none; }

.game-side{
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.game-side h3{ font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.game-side ul{ margin: 0; padding-left: 18px; font-size: 0.86rem; color: var(--ink-soft); }
.game-side li{ margin-bottom: 6px; }
.game-side .high{
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.game-side .high b{ color: var(--teal); font-size: 1rem; }

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
