/* ============================================================
   Neon Spins — lightweight static casino
   Zero dependencies. System fonts only. CSS animations use
   transform / opacity for compositor-friendly performance.
   ============================================================ */

:root {
  --bg: #0a0e1a;
  --surface: #121a2e;
  --surface-2: #18223c;
  --line: rgba(255, 255, 255, 0.10);
  --text: #eef2ff;
  --muted: #a6b3d0;
  --gold: #ffcc66;
  --cyan: #5eead4;
  --pink: #f472b6;
  --reel-h: 96px;
  --radius: 16px;
  --wrap: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 50% -140px, rgba(94, 234, 212, 0.14), transparent 70%),
    radial-gradient(900px 500px at 100% 8%, rgba(244, 114, 182, 0.10), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: #12141f;
  font-weight: 700;
  border-radius: 8px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; color: #12141f; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 26, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand__mark { font-size: 26px; line-height: 1; }
.brand__name { font-size: 1.02rem; }
.brand__name small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--gold); }
.header-badge {
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.header-badge span { font-size: 0.62rem; margin-right: 4px; }

/* ---------- Hero ---------- */
.hero { padding: 78px 0 58px; text-align: center; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--gold), var(--pink) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 span {
  display: block;
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 0.42em;
  margin-top: 10px;
  -webkit-text-fill-color: var(--muted);
}
.lede {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 30px;
}
.fact {
  padding: 16px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.fact strong {
  display: block;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.fact span { color: var(--muted); font-size: 0.78rem; }
.cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(120deg, var(--gold), #ffb347);
  color: #17151f;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(255, 204, 102, 0.22);
}
.btn--primary:hover { color: #17151f; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--spin {
  min-width: 190px;
  min-height: 58px;
  font-size: 1.06rem;
  background: linear-gradient(120deg, var(--cyan), #34d399);
  color: #06251f;
  border-color: transparent;
  box-shadow: 0 10px 34px rgba(94, 234, 212, 0.22);
}
.btn--spin:hover { color: #06251f; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
kbd {
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font: inherit;
  font-size: 0.72em;
  opacity: 0.75;
}

/* ---------- Sections ---------- */
.section { padding: 54px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-index {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.25; }
.section-desc { margin: 0; color: var(--muted); }

/* ---------- Casino ---------- */
.casino {
  padding: 22px;
  background: linear-gradient(160deg, var(--surface), #0d1426);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}
.casino__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat__label { display: block; color: var(--muted); font-size: 0.76rem; }
.stat__value { font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--gold); }
.stat__value.is-win { color: var(--cyan); }

.machine { display: flex; justify-content: center; margin-bottom: 18px; }
.machine__frame {
  padding: 14px 14px 10px;
  background: linear-gradient(145deg, #24304f, #0f1629);
  border: 2px solid rgba(255, 204, 102, 0.45);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 36px rgba(0, 0, 0, 0.35);
}
.machine__glass {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #070b16;
  border-radius: 12px;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.7);
}
.reel {
  width: 92px;
  height: var(--reel-h);
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: inset 0 8px 12px rgba(15, 23, 42, 0.16), inset 0 -8px 12px rgba(15, 23, 42, 0.16);
}
.reel__strip { will-change: transform; }
.reel__symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--reel-h);
  font-size: calc(var(--reel-h) * 0.56);
  line-height: 1;
  color: #0f172a;
  font-weight: 800;
  user-select: none;
}
.reel__symbol[data-id="seven"] { color: #dc2626; }
.reel__symbol[data-id="diamond"] { filter: saturate(1.15); }
.payline {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  box-shadow: 0 0 12px var(--pink);
  pointer-events: none;
}
.machine__caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-align: center;
}

.bet-control {
  margin: 0 0 16px;
  padding: 12px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.bet-control legend { padding: 0 8px; color: var(--muted); font-size: 0.8rem; }
.bet-option { display: inline-block; margin: 0 6px; cursor: pointer; }
.bet-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bet-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: all 0.15s ease;
}
.bet-option input:checked + span {
  border-color: var(--gold);
  background: rgba(255, 204, 102, 0.14);
  color: var(--gold);
}
.bet-option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }

.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.result {
  min-height: 56px;
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(94, 234, 212, 0.07);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 10px;
  color: var(--cyan);
  font-weight: 700;
  text-align: center;
}
.result.is-loss { color: var(--muted); background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.session { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 0; text-align: center; }
.session div { padding: 8px; }
.session dt { color: var(--muted); font-size: 0.76rem; }
.session dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Steps ---------- */
.steps { margin: 0; padding-left: 1.4rem; max-width: 820px; }
.steps li { margin-bottom: 12px; color: var(--muted); }
.steps strong { color: var(--text); }

/* ---------- Table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.paytable { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.9rem; }
.paytable caption { padding: 12px 14px; color: var(--muted); text-align: left; font-size: 0.82rem; }
.paytable th, .paytable td { padding: 11px 14px; border-top: 1px solid var(--line); text-align: left; }
.paytable thead th { color: var(--gold); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.paytable tbody th { font-weight: 700; white-space: nowrap; }
.paytable td { color: var(--muted); font-variant-numeric: tabular-nums; }
.paytable tbody tr:hover { background: rgba(255, 255, 255, 0.035); }

.note {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(244, 114, 182, 0.07);
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 12px;
}
.note h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--pink); }
.note ul { margin: 0 0 10px; padding-left: 1.2rem; }
.note li { color: var(--muted); margin-bottom: 4px; }
.note strong { color: var(--text); }
.note p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-list details {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-list summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* ---------- Sources ---------- */
.source-list { max-width: 860px; margin: 0; padding-left: 1.2rem; color: var(--muted); }
.source-list li { margin-bottom: 10px; }
.source-list strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; background: rgba(0, 0, 0, 0.16); }
.footer-inner p { margin: 4px 0; color: var(--muted); font-size: 0.86rem; }
.footer-inner strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-badge { margin-left: auto; }
}
@media (max-width: 720px) {
  :root { --reel-h: 78px; }
  .hero { padding: 52px 0 40px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .reel { width: 74px; }
  .machine__glass { gap: 6px; padding: 8px; }
  .casino { padding: 14px; }
  .casino__stats { gap: 8px; }
  .stat { padding: 10px; }
  .stat__value { font-size: 1.15rem; }
}
@media (max-width: 520px) {
  .header-badge { display: none; }
}
@media (max-width: 440px) {
  :root { --reel-h: 66px; }
  .reel { width: 62px; }
  .btn--spin { min-width: 160px; }
  .session { gap: 4px; }
}

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