/* SpinZuno website. Emerald felt + gold palette. No inline styles anywhere (strict CSP). */
:root {
  --gold: #d4af37;
  --gold-light: #f1d989;
  --gold-dark: #9c7a1f;
  --emerald: #0b6e4f;
  --emerald-light: #12925f;
  --emerald-dark: #073e2c;
  --ink: #0a1f16;
  --ink-soft: #33564a;
  --cream: #f8f4e9;
  --parchment: #e7dcc1;
  --line: #e1ded1;
  --white: #fff;
  --radius: 18px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Roboto, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--emerald); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 800; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--gold-light); box-shadow: 0 4px 0 #000; }
.btn-dark:hover { color: #fff3d0; box-shadow: 0 6px 0 #000; }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--ink); box-shadow: 0 4px 0 var(--gold-dark); }
.btn-gold:hover { color: var(--ink); box-shadow: 0 6px 0 var(--gold-dark); }
.btn-lg { padding: 16px 34px; font-size: 20px; }
.btn .play-icon { width: 0; height: 0; border-left: 14px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--emerald); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: block; flex: none; }
.brand img { display: block; height: 30px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { text-decoration: underline; color: var(--gold-light); }
.header-row .btn { padding: 9px 20px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(241, 217, 137, .30), transparent 60%),
    linear-gradient(180deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  padding: 56px 0 72px;
  overflow: hidden;
  color: var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.eyebrow { margin: 0 0 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--gold-light); opacity: .9; }
.hero h1 { margin: 0 0 16px; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; font-style: italic; font-weight: 900; letter-spacing: -.01em; color: #fff; }
.hero h1 span { display: block; color: var(--gold-light); text-shadow: 0 3px 0 rgba(7, 62, 44, .55); }
.lead { margin: 0 0 26px; font-size: 19px; max-width: 34em; color: var(--parchment); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badges { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .30); color: var(--gold-light); font-size: 14px; font-weight: 700; }

/* hero illustration: fanned cards + a chip stack, pure SVG/CSS, no external sprite needed */
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.table-art { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / .82; border-radius: 26px;
  background: radial-gradient(120% 120% at 50% 20%, var(--emerald-light), var(--emerald-dark) 78%);
  border: 10px solid #6b4a24; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 40px rgba(0, 0, 0, .35); }
.cardfan { position: absolute; left: 50%; bottom: 14%; width: 78%; height: 60%; transform: translateX(-50%); }
.pcard { position: absolute; left: 50%; bottom: 0; width: 30%; aspect-ratio: 5 / 7; margin-left: -15%;
  background: var(--cream); border-radius: 10px; border: 2px solid var(--ink); box-shadow: 0 8px 16px rgba(0, 0, 0, .35);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: clamp(20px, 4vw, 30px); transform-origin: bottom center; }
.pcard.red { color: #b3261e; } .pcard.black { color: var(--ink); }
.pcard.c1 { transform: rotate(-22deg) translateX(-46%); z-index: 1; }
.pcard.c2 { transform: rotate(-8deg) translateX(-16%) translateY(-6%); z-index: 2; }
.pcard.c3 { transform: rotate(8deg) translateX(16%) translateY(-6%); z-index: 2; }
.pcard.c4 { transform: rotate(22deg) translateX(46%); z-index: 1; }
.chipstack { position: absolute; right: 8%; top: 10%; width: 22%; }
.chipstack .chip { width: 100%; aspect-ratio: 1; border-radius: 50%; margin-top: -62%; box-shadow: 0 3px 0 rgba(0,0,0,.4); border: 3px dashed rgba(255,255,255,.5); }
.chipstack .chip:first-child { margin-top: 0; }
.chipstack .chip:nth-child(1) { background: var(--gold); }
.chipstack .chip:nth-child(2) { background: #b3261e; }
.chipstack .chip:nth-child(3) { background: var(--emerald-light); }
.chipstack .chip:nth-child(4) { background: var(--gold); }
.caption { margin: 0; font-size: 13px; color: var(--parchment); opacity: .85; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; }
.section h2 { margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; font-style: italic; font-weight: 900; }
.section .sub { margin: 0 0 36px; max-width: 42em; color: var(--ink-soft); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.alt .card { background: var(--cream); }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p, .card address { margin: 0; color: var(--ink-soft); font-size: 16px; font-style: normal; }
.card .ico { width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--ink); font-weight: 900; font-size: 20px; box-shadow: 0 3px 0 var(--gold-dark); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; position: relative; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-light); font-weight: 900; font-size: 18px; }
.steps h3 { margin: 6px 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.cta-band { text-align: center; padding: 64px 0; background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-dark) 100%); color: #fff; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); font-style: italic; font-weight: 900; color: var(--gold-light); }
.cta-band p { margin: 0 0 24px; font-size: 18px; color: var(--parchment); }

/* ---------- Games grid ---------- */
.games-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.game-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--ink); border: 1px solid rgba(0,0,0,.1); text-decoration: none; color: inherit; box-shadow: 0 10px 22px rgba(0,0,0,.18); transition: transform .12s ease, box-shadow .12s ease; }
a.game-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0,0,0,.26); }
.game-card img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; }
.gc-body { padding: 16px 18px 20px; }
.gc-body h3 { margin: 0 0 4px; font-size: 18px; color: var(--gold-light); }
.gc-body p { margin: 0 0 12px; font-size: 14px; color: var(--parchment); }
.gc-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.gc-live { background: var(--gold); color: var(--ink); }
.gc-soon { background: rgba(255,255,255,.14); color: var(--parchment); }
.gc-soon-card { cursor: default; opacity: .92; }

/* ---------- Legal pages ---------- */
.legal-hero { background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-dark) 100%); padding: 44px 0 40px; color: #fff; }
.legal-hero h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 46px); font-style: italic; font-weight: 900; line-height: 1.1; color: var(--gold-light); }
.legal-hero p { margin: 0; font-weight: 700; color: var(--parchment); }
.legal { max-width: 800px; margin: 0 auto; padding: 40px 20px 72px; }
.legal h2 { margin: 40px 0 10px; font-size: 24px; line-height: 1.25; padding-top: 6px; }
.legal h3 { margin: 24px 0 6px; font-size: 18px; }
.legal p, .legal li { color: #223d33; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .key { border: 2px solid var(--gold); background: #fdf8e8; border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.legal .key h2 { margin-top: 0; font-size: 20px; }
.legal .key ul { margin-bottom: 0; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin: 24px 0; }
.toc h2 { margin: 0 0 8px; font-size: 18px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal dl { margin: 0; }
.legal dt { font-weight: 800; margin-top: 12px; }
.legal dd { margin: 2px 0 0; color: #223d33; }
.legal address { font-style: normal; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.legal .todo { background: #fdf3cf; border-left: 4px solid var(--gold-dark); padding: 10px 14px; border-radius: 6px; }
.notfound { text-align: center; padding: 96px 20px; }
.notfound h1 { font-size: 48px; margin: 0 0 8px; font-style: italic; font-weight: 900; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--parchment); padding: 48px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1.2fr; gap: 36px; }
.footer-logo { display: block; height: 30px; width: auto; margin-bottom: 14px; }
.footer-note { margin: 0; max-width: 30em; color: var(--parchment); font-size: 14px; opacity: .9; }
.site-footer h2 { margin: 0 0 10px; font-size: 15px; color: var(--gold-light); letter-spacing: .04em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.55; }
.footer-contact { margin: 12px 0 0; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(241, 217, 137, .2); }
.footer-bottom p { margin: 0; font-size: 13px; color: #b7ab8c; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .table-art { max-width: 360px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .steps li { margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .toc ol { columns: 1; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .header-row { justify-content: space-between; }
  .brand img { height: 26px; }
  .hero { padding: 32px 0 48px; }
  .section { padding: 52px 0; }
  .notice { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .games-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { background: #fff; }
}

/* ---------- Screenshots, help cards, FAQ ---------- */
.center { text-align: center; }
.shots { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); background: var(--emerald); }
.shots figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }

.helpcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 24px; }
.helpcard { background: #fdf8e8; border: 2px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; }
.section.alt .helpcard { background: var(--cream); }
.helpcard h3 { margin: 0 0 4px; font-size: 19px; }
.helpcard p { margin: 0 0 8px; font-size: 15px; color: var(--ink-soft); }
.helpcard .helpnum { font-size: 30px; font-weight: 900; line-height: 1.2; color: var(--ink); }
.helpcard .helpnum a { color: var(--ink); text-decoration: none; }
.helpcard .helpnum a:hover { text-decoration: underline; }
.legal .helpcards { grid-template-columns: 1fr 1fr; }
.legal .note { font-size: 14px; color: var(--ink-soft); }

.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.footer-help { margin: 12px 0 0; max-width: 30em; color: var(--parchment); font-size: 14px; opacity: .9; }
.footer-help strong { color: var(--gold-light); }

@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .helpcards, .legal .helpcards, .faq { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shots { gap: 14px; }
}
