:root {
  --bg: #1C1C1E;
  --panel: #2A2A2C;
  --line: #3A3A3D;
  --text: #F2F0ED;
  --muted: #B9B4AD;
  --amber: #D6A76C;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: #1C1C1E; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(28,28,30,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); display: inline-block; }
.nav ul { list-style: none; display: flex; gap: 24px; align-items: center; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--text); }

/* type */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; padding: 72px 0 96px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 16px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
p { margin: 0; }
.card p, .points li, .ticks li { color: var(--muted); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; background: var(--amber); color: #1C1C1E; font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 12px; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-small { padding: 8px 14px; font-size: .9rem; }

/* layout */
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1fr 1fr; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ico { width: 36px; height: 36px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
#ways .cards { margin-top: 32px; }

.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.shot.wide { margin: 8px 0 28px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 15px; font-size: .95rem; }
.chips.big li { font-size: 1.05rem; padding: 10px 18px; }

/* ticks */
.ticks li { position: relative; padding: 0 0 0 30px; margin: 0 0 14px; font-size: 1.05rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg); }
.points li { border-left: 2px solid var(--line); padding: 4px 0 4px 16px; }

/* layers */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 32px; counter-reset: s; }
.layers li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; margin-right: 32px; }
.layers li:not(:last-child)::after { content: ""; position: absolute; right: -33px; top: 50%; width: 32px; height: 1px; background: var(--muted); }
.layers li:last-child { margin-right: 0; }
.layers p { color: var(--muted); }
.layers .live { border-color: var(--amber); }
.layers .live h3 { color: var(--amber); }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #1C1C1E; border: 1px solid var(--line); font-size: .85rem; font-weight: 700; margin-bottom: 12px; }

/* commands */
.commands { display: flex; flex-wrap: wrap; gap: 10px; }
.commands li { font-family: var(--mono); font-size: 1rem; background: #141415; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }

/* poker flip */
.flip-demo { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 40px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pcard { width: 120px; height: 168px; perspective: 800px; }
.pcard-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: flip 6s ease-in-out infinite; }
.pcard.d1 .pcard-in { animation-delay: .08s; }
.pcard.d2 .pcard-in { animation-delay: .16s; }
.face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; display: grid; place-content: center; text-align: center; }
.back { background: repeating-linear-gradient(45deg, #333336 0 8px, #2A2A2C 8px 16px); border: 1px solid var(--line); }
.front { background: var(--amber); color: #1C1C1E; transform: rotateY(180deg); }
.front span { font-size: 3.4rem; font-weight: 800; line-height: 1; }
.front small { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.voted { width: 100%; text-align: center; color: var(--muted); margin-top: 6px; }
@keyframes flip { 0%, 35% { transform: rotateY(0); } 45%, 85% { transform: rotateY(180deg); } 95%, 100% { transform: rotateY(0); } }

/* grow */
.grow { display: grid; grid-template-columns: 3fr 1fr; gap: 16px; margin-top: 28px; align-items: stretch; }
.grow .grid4 { grid-template-columns: repeat(2, 1fr); }
.room { display: flex; flex-direction: column; justify-content: center; border-color: var(--amber); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--amber); margin-bottom: 12px; }

/* reactions */
.loud { background: radial-gradient(1200px 500px at 50% 0%, #2c2620, transparent 70%); }

/* packs */
.packs { margin-top: 8px; }
.packs h3 { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.sign { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-weight: 600; }
.mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mini li { aspect-ratio: 5 / 7; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.note { color: var(--muted); margin-top: 28px; max-width: 70ch; }

/* themes */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.themes li { border-radius: var(--radius); padding: 28px 22px 18px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.themes span { padding: 12px 14px; font-weight: 700; }
.themes b { font-weight: 600; font-size: .95rem; }
.t-graphite { background: #2A2A2C; } .t-graphite span { background: #1C1C1E; border-left: 4px solid var(--amber); border-radius: 10px; }
.t-hacker { background: #031a09; color: #39ff7a; font-family: var(--mono); } .t-hacker span { border: 1px solid #39ff7a; }
.t-80s { background: #1a0b2e; color: #fff; } .t-80s span { background: linear-gradient(90deg, #ff2fb3, #7a5cff); border-radius: 6px; }
.t-win95 { background: #008080; color: #000; } .t-win95 span { background: #c0c0c0; border: 2px outset #fff; font-family: Tahoma, Verdana, sans-serif; } .t-win95 b { color: #fff; }
.t-mac { background: #e8e8e8; color: #000; } .t-mac span { background: #fff; border: 2px solid #000; box-shadow: 3px 3px 0 #000; font-family: Chicago, Charcoal, Geneva, sans-serif; }
.t-vapor { background: linear-gradient(160deg, #ff71ce, #01cdfe); color: #1a1033; } .t-vapor span { background: rgba(255,255,255,.75); border-radius: 8px; }

/* flow */
.flow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 1.15rem; margin: 8px 0 32px; }
.flow span:not([aria-hidden]) { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-weight: 600; }
.flow span[aria-hidden] { color: var(--muted); }

/* browser */
.browser { margin: 8px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #111; }
.bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a4a4d; }
.bar span { margin-left: 12px; font: .82rem var(--mono); color: var(--muted); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 48px; }
.stats div { display: flex; flex-direction: column-reverse; padding: 8px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dd { margin: 0; font-size: clamp(2.4rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
.stats dt { color: var(--muted); }
.sub { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); }
.foot ul { display: flex; gap: 24px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero-grid, .split, .split.rev, .grow { grid-template-columns: 1fr; gap: 32px; }
  .grid4, .stats { grid-template-columns: repeat(2, 1fr); }
  .layers { grid-template-columns: 1fr; }
  .layers li { margin: 0 0 24px; }
  .layers li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -25px; width: 1px; height: 24px; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .nav ul li:not(:last-child) { display: none; }
  .stats div { padding: 12px 0; border-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 32px); }
  .grid4, .grid2, .grow .grid4, .themes { grid-template-columns: 1fr; }
  .foot, .foot ul { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pcard-in { animation: none; transform: rotateY(180deg); }
}

/* reaction placeholder (until the real screenshot) */
.placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(600px 300px at 50% 40%, #33302b, #1f1f21); }
.placeholder span { background: #1C1C1E; border: 1px solid var(--line); border-radius: 999px; padding: 14px 28px; font-size: clamp(1rem, 2.4vw, 1.6rem); font-weight: 700; }
.why { font-size: .85rem; margin-top: 6px; color: var(--muted); }

/* real theme captures */
.themes.real li { padding: 0; border: 0; display: block; }
.themes.real figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.themes.real figcaption { padding: 12px 16px; font-weight: 600; }
#streamdeck .placeholder { aspect-ratio: 4 / 3; }

/* sponsor badges */
.sponsor { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 8px 16px; border: 1px solid var(--amber); border-radius: 999px; color: var(--text); font-size: .95rem; background: rgba(214,167,108,.08); }
.sponsor strong { color: var(--amber); font-weight: 800; letter-spacing: .01em; }
#vote .sponsor { font-size: 1.1rem; padding: 10px 20px; }

/* real poker reveal with theme switcher */
.reveal { margin: 0; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reveal img { width: 100%; }
.reveal figcaption { background: var(--panel); padding: 14px 16px; border-top: 1px solid var(--line); }
#reveal-label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.theme-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-btns button { font: inherit; font-size: .9rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.theme-btns button[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.theme-btns button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Stream Deck photo grid */
.sd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sd-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.sd-grid img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.sd-grid figcaption { padding: 8px 12px; font-size: .9rem; font-weight: 600; }
