/* Neon Reels — single stylesheet, no webfonts, no external requests. */

:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-2: #0b1120;
  --panel: #111a2c;
  --panel-2: #16213a;
  --line: rgba(148, 173, 214, 0.16);
  --line-strong: rgba(148, 173, 214, 0.3);
  --text: #eef3fb;
  --muted: #a9b8d0;
  --cyan: #35e0f2;
  --magenta: #f472b6;
  --gold: #fbbf24;
  --green: #4ade80;
  --radius: 16px;
  --cell: 92px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (max-width: 720px) {
  :root { --cell: 64px; }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 15% -10%, rgba(53, 224, 242, 0.16), transparent 62%),
    radial-gradient(900px 560px at 92% 4%, rgba(244, 114, 182, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 52%, #05080f 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 99;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04121a;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; color: #04121a; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.02rem;
  white-space: nowrap;
  flex: none;
}
.brand:hover { color: var(--text); }
.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: linear-gradient(145deg, var(--cyan), #2f6df6 55%, var(--magenta));
  box-shadow: 0 0 18px rgba(53, 224, 242, 0.4);
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: rgba(148, 173, 214, 0.1); }

@media (max-width: 560px) {
  .site-nav { display: none; }
}

/* ---------------- hero ---------------- */

.hero-block {
  padding: 38px 0 8px;
  scroll-margin-top: 78px;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: start;
}

.hero > * { min-width: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-block { padding-top: 26px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(53, 224, 242, 0.1);
  border: 1px solid rgba(53, 224, 242, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
  font-weight: 850;
}

h1 .accent {
  background: linear-gradient(100deg, var(--cyan), #a78bfa 52%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 48ch;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(148, 173, 214, 0.09);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}
.hero-facts li::before { content: "✓ "; color: var(--green); }

/* ---------------- quick answer ---------------- */

.quick-answer {
  border-left: 3px solid var(--cyan);
  background: rgba(53, 224, 242, 0.06);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 0 0 22px;
}
.quick-answer h2 {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 8px;
}
.quick-answer p { margin: 0; font-size: 0.97rem; color: #dbe5f5; }

/* ---------------- machine ---------------- */

.machine-shell {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(22, 33, 58, 0.96), rgba(11, 17, 32, 0.98));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 30px 60px -28px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 60px -20px rgba(53, 224, 242, 0.28);
}

.hud {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
}

.hud-item {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid var(--line);
}
.hud-item dt {
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1px;
}
.hud-item dd {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.hud-item.is-win dd { color: var(--gold); }
.hud-item.is-balance dd { color: var(--cyan); }

.machine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #0d1526, #070c16);
  border: 1px solid var(--line-strong);
}

.reel {
  position: relative;
  height: calc(var(--cell) * 3);
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 10px 18px -12px #000, inset 0 -10px 18px -12px #000;
}

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.75), transparent 22%, transparent 78%, rgba(7, 10, 18, 0.75));
}

.strip { will-change: transform; }

.cell {
  height: var(--cell);
  display: grid;
  place-items: center;
  position: relative;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cell .glyph {
  font-size: calc(var(--cell) * 0.5);
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}

.cell .seven {
  font-size: calc(var(--cell) * 0.52);
  font-weight: 900;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.6), 0 2px 0 #7c4a03;
  letter-spacing: -0.04em;
}

.cell.win {
  background: rgba(251, 191, 36, 0.14);
  box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.85), 0 0 24px -4px rgba(251, 191, 36, 0.7);
  border-radius: 10px;
}

.controls {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  margin-top: 14px;
}

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(148, 173, 214, 0.1);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover:not(:disabled) { background: rgba(148, 173, 214, 0.18); border-color: var(--cyan); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; }

.btn-bet {
  min-width: 46px;
  padding: 12px 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.btn-spin {
  background: linear-gradient(135deg, var(--cyan), #3b82f6 58%, #a855f7);
  border: none;
  color: #04121a;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px -14px rgba(53, 224, 242, 0.95);
}
.btn-spin:hover:not(:disabled) { filter: brightness(1.08); background: linear-gradient(135deg, var(--cyan), #3b82f6 58%, #a855f7); }

.sub-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.sub-controls .btn {
  flex: 1 1 auto;
  font-size: 0.82rem;
  padding: 9px 12px;
  font-weight: 600;
  color: var(--muted);
}

.result-line {
  margin: 12px 0 0;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(7, 10, 18, 0.62);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.result-line strong { color: var(--text); }

.status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 3px;
}

.fair-note {
  margin: 12px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ---------------- content sections ---------------- */

main { display: block; }

.section {
  padding: 54px 0 0;
  scroll-margin-top: 78px;
}

.section > .wrap > h2,
.section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.86rem);
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 68ch;
  font-size: 0.98rem;
}

.prose { max-width: 72ch; }
.prose p { margin: 0 0 14px; color: #cfdaeb; }
.prose strong { color: #fff; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(22, 33, 58, 0.8), rgba(11, 17, 32, 0.72));
  border: 1px solid var(--line);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 750;
}
.card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  border-radius: 14px;
  background: rgba(148, 173, 214, 0.06);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  color: #cfdaeb;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 13px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #04121a;
  background: var(--cyan);
}
.steps li strong { color: #fff; }

.table-scroll {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 17, 32, 0.6);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 460px;
}
caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
th, td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: rgba(148, 173, 214, 0.06);
}
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.sym { font-size: 1.15rem; }
td.sym .seven { color: var(--gold); font-weight: 900; font-family: Georgia, serif; }

.faq { display: grid; gap: 10px; max-width: 76ch; }

/* ---------------- responsive tables ---------------- */

@media (max-width: 640px) {
  table { min-width: 0; font-size: 0.78rem; }
  th, td { padding: 8px 7px; }
  caption { padding: 10px 12px; font-size: 0.74rem; }
  .opt { display: none; }
  td.sym { white-space: nowrap; font-size: 0.84rem; }
  td.sym .seven { font-size: 0.95rem; }

  /* Key-facts table collapses to label-above-value rows. */
  .facts table,
  .facts tbody,
  .facts tr,
  .facts th,
  .facts td { display: block; width: 100%; }
  .facts tr { padding: 11px 14px; border-bottom: 1px solid var(--line); }
  .facts tr:last-child { border-bottom: none; }
  .facts th[scope="row"] {
    background: none;
    border: none;
    padding: 0 0 2px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
  .facts td { padding: 0; border: none; font-size: 0.92rem; }
  .facts td.sym { font-size: 1rem; }
  .facts caption { display: block; width: 100%; border-bottom: none; padding: 12px 14px; }
}

details {
  border-radius: 13px;
  background: rgba(148, 173, 214, 0.055);
  border: 1px solid var(--line);
  padding: 0 18px;
}
details[open] { border-color: rgba(53, 224, 242, 0.4); background: rgba(53, 224, 242, 0.05); }
summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--cyan);
  background: rgba(53, 224, 242, 0.14);
}
details[open] summary::before { content: "−"; }
details p { margin: 0 0 14px; font-size: 0.93rem; color: #cfdaeb; }

.callout {
  margin: 0;
  padding: 16px 20px;
  border-radius: 13px;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 0.9rem;
  color: #f3e3bd;
}
.callout strong { color: var(--gold); }

.src-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 88ch; }
.src-list li {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(148, 173, 214, 0.05);
  font-size: 0.9rem;
  color: var(--muted);
}
.src-list b { color: var(--text); display: block; margin-bottom: 2px; font-size: 0.93rem; }

/* ---------------- footer ---------------- */

.site-footer {
  margin-top: 66px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- utilities ---------------- */

.u-m0 { margin: 0; }
.u-mt14 { margin-top: 14px; }
.u-mt16 { margin-top: 16px; }
.u-mt18 { margin-top: 18px; }
.u-mt20 { margin-top: 20px; }
.u-mt22 { margin-top: 22px; }
.u-mb18 { margin-bottom: 18px; }
.u-mb24 { margin-bottom: 24px; }
.u-ink { color: var(--text); }

.note { font-size: 0.86rem; color: var(--muted); }
.note-sm { font-size: 0.84rem; color: var(--muted); }

.btn { text-decoration: none; }
a.btn { color: #04121a; }

.error-page { padding-top: 72px; padding-bottom: 96px; }
.error-page h1 { max-width: 20ch; }
.error-page__note { max-width: 60ch; }

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

@media print {
  body { background: #fff; color: #000; }
  .site-header, .machine-shell, .site-footer nav { display: none; }
}
