/* ==========================================================================
   Fortunium Gold — steampunk golden city theme
   Palette: smoked bronze, brass, gold, Mystery-emerald, lightning blue
   ========================================================================== */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-var.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0d0906;
  --bg: #15100c;
  --bg-2: #1b140f;
  --panel: #211913;
  --panel-2: #2a2019;
  --line: rgba(201, 150, 63, .22);
  --line-2: rgba(201, 150, 63, .45);
  --brass: #c9963f;
  --brass-dk: #8a5a24;
  --gold: #e8c66a;
  --gold-hi: #fff1c2;
  --copper: #c0703f;
  --emerald: #1f9d6b;
  --emerald-hi: #5fe3a9;
  --emerald-dk: #0b3b27;
  --volt: #a8dcff;
  --text: #efe6d6;
  --muted: #b8a88e;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .85);
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --header-h: 72px;
  --brass-grad: linear-gradient(135deg, #f3d78f 0%, #c9963f 38%, #8a5a24 62%, #e0b25c 100%);
  --gold-grad: linear-gradient(180deg, #fff1c2 0%, #e8c66a 45%, #b07a2c 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201, 150, 63, .10), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgba(31, 157, 107, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.72 var(--f-body);

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration-color: rgba(232, 198, 106, .4); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
p { margin: 0 0 1.1em; }
strong { color: var(--gold-hi); font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.18; font-weight: 600; }
h1, h2 { font-family: var(--f-display); letter-spacing: .01em; }
h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--emerald-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--ink); border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 800 .95rem/1 var(--f-body); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  color: #241606;
  background: var(--gold-grad);
  border-color: #f6dc93;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -2px 0 rgba(120, 72, 20, .45) inset, 0 10px 26px -10px rgba(232, 198, 106, .7);
}
.btn-gold::after {
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg); animation: sheen 4.2s ease-in-out infinite;
}
.btn-gold:hover { color: #241606; box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -2px 0 rgba(120, 72, 20, .45) inset, 0 14px 34px -8px rgba(232, 198, 106, .85); }
.btn-gold svg { fill: none; }
.btn-emerald {
  color: #eafff5;
  background: linear-gradient(180deg, #23b479, #157a52);
  border-color: rgba(95, 227, 169, .7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 10px 26px -12px rgba(31, 157, 107, .9);
}
.btn-emerald svg { fill: currentColor; stroke: none; }
.btn-emerald:hover { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 0 0 4px rgba(95, 227, 169, .15), 0 14px 30px -10px rgba(31, 157, 107, 1); }
.btn-ghost { color: var(--gold); border-color: var(--line-2); background: rgba(201, 150, 63, .06); }
.btn-ghost:hover { color: var(--gold-hi); border-color: var(--gold); background: rgba(201, 150, 63, .12); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .86rem; }
.btn-lg { --h: 58px; padding: 0 32px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.chapter > .btn-row { margin-bottom: 14px; }
@keyframes sheen { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }

.icon-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25);
  color: var(--text); font: 700 .85rem var(--f-body); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-hi); }
[hidden] { display: none !important; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 700 .74rem/1.3 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--emerald-hi);
}
.spark { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-hi); box-shadow: 0 0 0 4px rgba(95, 227, 169, .15), 0 0 14px var(--emerald-hi); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(95, 227, 169, .05), 0 0 22px var(--emerald-hi); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header::before { /* blur lives on a pseudo-element so the fixed mobile menu is not trapped inside the header */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(17, 12, 9, .82);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header::after { /* current running along the brass rail */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 0, var(--volt) 50%, transparent 100%) no-repeat;
  background-size: 180px 1px; animation: current 6s linear infinite; opacity: .8;
}
@keyframes current { from { background-position: -200px 0; } to { background-position: calc(100% + 200px) 0; } }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a {
  position: relative; padding: 10px 14px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem;
}
.main-nav > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.main-nav > a:hover { color: var(--gold-hi); }
.main-nav > a:hover::after { transform: scaleX(1); }
.lang { position: relative; margin-left: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px;
  font: 700 .85rem var(--f-body); cursor: pointer;
}
.lang-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lang-btn .chev { width: 14px; transition: transform .2s; }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s ease;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.lang-menu a b { width: 26px; color: var(--gold); }
.lang-menu a:hover, .lang-menu a[aria-current] { background: rgba(201, 150, 63, .12); }
.header-cta .sm-only { display: none; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 150px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 150, 63, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 150, 63, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
}
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; }
.sl-back { fill: #241a12; opacity: .9; }
.sl-front { fill: #17110d; }
.sl-front .clock, .skyline .clock { fill: #3b2a16; stroke: var(--brass); stroke-width: 1.5; }
.skyline .win { fill: #e8c66a; opacity: .55; }
.skyline .flick { animation: flick 6s steps(1) infinite; }
@keyframes flick { 0%, 40% { opacity: .65; } 41%, 52% { opacity: .1; } 53%, 100% { opacity: .6; } }
.sky-bolt { position: absolute; right: 6%; top: 4%; width: 300px; opacity: 0; filter: drop-shadow(0 0 10px var(--volt)); }
.sky-bolt path { fill: none; stroke: #e4f4ff; stroke-width: 3; stroke-linejoin: round; }
.hero .sky-bolt { animation: strike 9s 2s infinite; }
@keyframes strike { 0%, 92% { opacity: 0; } 93% { opacity: .9; } 94% { opacity: .1; } 95% { opacity: .75; } 98%, 100% { opacity: 0; } }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); font-weight: 700;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5));
  margin-bottom: 20px; text-wrap: balance;
}
.lead { font-size: 1.07rem; color: #e3d7c2; max-width: 64ch; }
.hero .btn-row { margin: 26px 0 34px; }

.gauges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gauge, .plate {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 10px 14px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(42, 32, 25, .9), rgba(25, 18, 13, .9));
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 241, 194, .06) inset;
}
.gauge svg { width: 100%; max-width: 120px; height: auto; overflow: visible; }
.g-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 9; stroke-linecap: round; }
.g-fill { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s cubic-bezier(.2, .8, .2, 1); }
.g-zones { fill: none; stroke-width: 9; stroke-linecap: round; stroke: var(--emerald); stroke-dasharray: 33 1 32 1 33; opacity: .9; }
.gauge-vol .g-zones { stroke: var(--brass); }
.g-needle { transform-origin: 60px 62px; transform: rotate(-90deg); transition: transform 1.6s cubic-bezier(.3, 1.4, .5, 1); }
.g-needle line { stroke: var(--gold-hi); stroke-width: 3; stroke-linecap: round; }
.g-needle circle { fill: var(--brass); stroke: var(--gold-hi); stroke-width: 1.5; }
.gauge b, .plate b { font: 700 1.25rem/1.2 var(--f-display); color: var(--gold-hi); margin-top: 4px; }
.gauge span, .plate span { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.plate { justify-content: center; background: radial-gradient(circle at 50% 0, rgba(31, 157, 107, .25), transparent 70%), linear-gradient(180deg, rgba(42, 32, 25, .9), rgba(25, 18, 13, .9)); }
.plate b { font-size: 2rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plate small { margin-top: 6px; font-size: .74rem; color: var(--emerald-hi); }

.hero-art { position: relative; display: grid; place-items: center; padding: 30px 10px 40px; }
.window {
  position: relative; width: min(400px, 100%); aspect-ratio: 400 / 560;
  border-radius: 200px 200px 18px 18px; overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--brass-grad) border-box;
  box-shadow: 0 0 0 8px rgba(17, 12, 9, .9), 0 0 0 10px rgba(201, 150, 63, .55), 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(232, 198, 106, .45);
}
.window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.02); animation: breathe 14s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.07) translateY(-1.5%); } }
.window::before { /* glass glare */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0 18%, transparent 30% 100%),
              radial-gradient(120% 70% at 50% 110%, rgba(21, 16, 12, .9), transparent 60%);
}
.mullion { position: absolute; z-index: 3; left: 50%; top: 0; bottom: 0; width: 6px; transform: translateX(-50%); background: linear-gradient(90deg, #5c3a16, #e8c66a 50%, #5c3a16); box-shadow: 0 0 10px rgba(0, 0, 0, .6); }
.mullion::before, .mullion::after { content: ""; position: absolute; left: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #fff3c4, #8a5a24); }
.mullion::before { top: 36%; }
.mullion::after { top: 72%; }
.arcs { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.arc { fill: none; stroke: #e9f6ff; stroke-width: 2.2; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--volt)) drop-shadow(0 0 14px #4fb3ff); stroke-dasharray: 260; stroke-dashoffset: 260; opacity: 0; }
.arc-1 { animation: zap 5.5s 1.2s infinite; }
.arc-2 { animation: zap 7s 3.6s infinite; }
@keyframes zap { 0% { stroke-dashoffset: 260; opacity: 0; } 3% { opacity: 1; } 8% { stroke-dashoffset: 0; opacity: 1; } 10% { opacity: .2; } 12% { opacity: .9; } 18%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.cog { position: absolute; fill: #2a1d12; stroke: var(--brass); stroke-width: 1.2; opacity: .85; }
.cog circle { fill: var(--bg); stroke: var(--brass-dk); }
.cog-a { width: 210px; top: -6px; right: -26px; animation: spin 40s linear infinite; }
.cog-b { width: 130px; top: 150px; right: -70px; animation: spin 26s linear infinite reverse; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.window-plate {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 5;
  padding: 9px 20px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(180deg, #2d2118, #19120d); border: 1px solid var(--line-2);
  font: 700 .78rem var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  box-shadow: var(--shadow);
}

/* ---------- demo ---------- */
.demo-section { position: relative; padding: 10px 0 70px; margin-top: -40px; }
.demo-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.demo-head h2 { font-size: clamp(1.55rem, 1rem + 2vw, 2.35rem); color: var(--gold-hi); margin-bottom: 14px; }
.demo-head p:last-child { color: var(--muted); margin: 0; }
.machine {
  position: relative; max-width: 1100px; margin: 0 auto; padding: 18px 18px 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #3a2a1c, #1d150f 40%, #160f0b);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 241, 194, .15) inset, 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 80px -30px rgba(31, 157, 107, .45);
}
.rivet { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, #8a5a24 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.r1 { left: 7px; top: 7px; } .r2 { right: 7px; top: 7px; } .r3 { left: 7px; bottom: 7px; } .r4 { right: 7px; bottom: 7px; }
.demo-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; contain: layout paint;
  border-radius: 12px; background: #000; border: 2px solid #0a0705;
  box-shadow: 0 0 0 2px rgba(201, 150, 63, .35);
}
.demo-stage iframe, .demo-stage .freedemo-game-widget, .demo-stage .freedemo-game-widget iframe {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; border: 0 !important;
}
.demo-poster { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; }
.demo-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.demo-poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(21, 16, 12, .2), rgba(13, 9, 6, .85) 75%); }
.demo-play { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; background: none; border: 0; cursor: pointer; color: var(--text); }
.demo-ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.demo-ring svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(201, 150, 63, .25); stroke: var(--gold); stroke-width: 1.5; animation: spin 18s linear infinite; }
.demo-ring::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #6ff0b8, #1f9d6b 50%, #06301f); box-shadow: 0 0 0 3px var(--gold), 0 0 40px rgba(95, 227, 169, .55); transition: transform .3s ease, box-shadow .3s ease; }
.demo-ring .tri { position: relative; width: 40px; height: 40px; fill: #fff; margin-left: 6px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.demo-play:hover .demo-ring::before { transform: scale(1.07); box-shadow: 0 0 0 3px var(--gold-hi), 0 0 60px rgba(95, 227, 169, .8); }
.demo-label { font: 700 1.25rem var(--f-display); letter-spacing: .08em; color: var(--gold-hi); text-shadow: 0 2px 8px #000; }
.demo-note { position: relative; z-index: 2; margin: 0; font-size: .8rem; color: var(--muted); letter-spacing: .08em; }
.demo-msg { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); background: rgba(13, 9, 6, .75); }
.demo-msg .loader { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(232, 198, 106, .2); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 14px 4px 16px; flex-wrap: wrap; }
.demo-bar-title { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font: 600 .95rem var(--f-display); color: var(--gold); }
.machine.is-fs { position: fixed; inset: 0; z-index: 200; max-width: none; border-radius: 0; padding: 8px 8px 0; display: flex; flex-direction: column; }
.machine.is-fs .demo-stage { flex: 1; aspect-ratio: auto; }
.machine.is-fs .rivet { display: none; }
.machine:fullscreen { max-width: none; border-radius: 0; padding: 8px 8px 0; display: flex; flex-direction: column; }
.machine:fullscreen .demo-stage { flex: 1; aspect-ratio: auto; }

/* ---------- layout & toc ---------- */
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 60px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-box summary { list-style: none; cursor: pointer; font: 700 .74rem var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc-box summary::-webkit-details-marker { display: none; }
.pipe { --fill: 0; position: relative; list-style: none; margin: 0; padding: 4px 0 4px 26px; }
.pipe::before, .pipe::after { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; }
.pipe::before { background: linear-gradient(90deg, #5c3a16, #c9963f, #5c3a16); opacity: .55; }
.pipe::after { background: linear-gradient(180deg, var(--emerald-hi), var(--volt)); box-shadow: 0 0 10px var(--emerald-hi); bottom: auto; height: calc((100% - 20px) * var(--fill)); transition: height .2s linear; }
.pipe a { position: relative; display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.35; transition: color .2s; }
.pipe a:hover { color: var(--gold-hi); }
.valve { position: absolute; left: -24px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #2a1d12; border: 2px solid var(--brass); z-index: 1; transition: .25s; }
.pipe a.active { color: var(--gold-hi); font-weight: 700; }
.pipe a.active .valve, .pipe a.passed .valve { background: var(--emerald-hi); border-color: var(--gold-hi); box-shadow: 0 0 10px var(--emerald-hi); }

/* ---------- article ---------- */
.article { width: 100%; max-width: 860px; min-width: 0; }
.chapter { position: relative; padding: 40px 0 26px; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter + .chapter::before { /* small gear on the divider */
  content: ""; position: absolute; top: -9px; left: 0; width: 18px; height: 18px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9963f' d='M10.3 1h3.4l.5 2.6 1.9.8 2.2-1.5 2.4 2.4-1.5 2.2.8 1.9 2.6.5v3.4l-2.6.5-.8 1.9 1.5 2.2-2.4 2.4-2.2-1.5-1.9.8-.5 2.6h-3.4l-.5-2.6-1.9-.8-2.2 1.5-2.4-2.4 1.5-2.2-.8-1.9L1 13.7v-3.4l2.6-.5.8-1.9-1.5-2.2 2.4-2.4 2.2 1.5 1.9-.8z'/%3E%3Ccircle cx='12' cy='12' r='4' fill='%2315100c'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chapter-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.num {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -2px;
  font: 700 .95rem var(--f-display); color: var(--ink);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: var(--brass-grad);
}
.chapter h2 { font-size: clamp(1.45rem, 1.05rem + 1.4vw, 2.05rem); color: var(--gold-hi); text-wrap: balance; }
.chapter p { color: #e6dccb; }

/* figures */
.shot { margin: 8px 0 26px; }
.shot .zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; }
.shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); transition: transform .6s ease, filter .3s; }
.shot .zoom::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255, 241, 194, .08), inset 0 -60px 60px -40px rgba(0, 0, 0, .55); pointer-events: none; }
.shot .zoom:hover img { transform: scale(1.03); filter: brightness(1.06); }
.shot figcaption { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--emerald); font-size: .86rem; color: var(--muted); line-height: 1.5; }
.float-r { float: right; width: 46%; margin: 4px 0 18px 28px; }
.float-l { float: left; width: 44%; margin: 4px 28px 18px 0; }
.chapter::after { content: ""; display: table; clear: both; }

/* tables */
.table-wrap { clear: both; margin: 10px 0 28px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(42, 32, 25, .65), rgba(24, 17, 12, .65)); }
.ledger { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ledger th, .ledger td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ledger thead th { font: 800 .72rem var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #22160a; background: linear-gradient(180deg, #ecca72, #b8862f); border-bottom: 0; white-space: nowrap; }
.ledger tbody th { font-weight: 700; color: var(--gold); }
.ledger tbody tr:last-child > * { border-bottom: 0; }
.ledger tbody tr { transition: background .2s; }
.ledger tbody tr:hover { background: rgba(201, 150, 63, .07); }
.ledger.spec thead { display: none; }
.ledger.spec tbody { display: grid; grid-template-columns: 1fr 1fr; }
.ledger.spec tbody tr { display: grid; grid-template-columns: 44% 56%; border-bottom: 1px solid var(--line); }
.ledger.spec tbody tr:nth-child(odd) { border-right: 1px solid var(--line); }
.ledger.spec tbody tr:nth-last-child(-n+2) { border-bottom: 0; }
.ledger.spec th, .ledger.spec td { border-bottom: 0; padding: 12px 16px; font-size: .92rem; }
.ledger.compare td:last-child { color: var(--gold-hi); }
.ledger.compare td:nth-child(2) { color: #b9f0d6; }

/* booster widget */
.booster {
  clear: both; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; margin: 14px 0 22px; padding: 24px;
  border-radius: 18px; border: 1px solid var(--line-2);
  background: radial-gradient(circle at 0 0, rgba(31, 157, 107, .15), transparent 55%), linear-gradient(180deg, #241a13, #17110c);
  transition: background .6s;
}
.booster.on { background: radial-gradient(circle at 0 0, rgba(232, 198, 106, .2), transparent 55%), linear-gradient(180deg, #2a1f14, #17110c); }
.booster-panel { display: grid; justify-items: center; gap: 14px; text-align: center; }
.b-title { margin: 0; font: 700 .74rem var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lever {
  position: relative; width: 168px; height: 52px; padding: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #0e0a07, #241a12); border: 2px solid var(--brass);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .8);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; font: 800 .78rem var(--f-body); letter-spacing: .1em;
}
.lv { position: relative; z-index: 2; transition: color .3s; color: var(--muted); }
.lever[aria-checked="false"] .lv-off { color: #0b2a1c; }
.lever[aria-checked="true"] .lv-on { color: #2a1806; }
.knob { position: absolute; z-index: 1; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); border-radius: 999px; background: linear-gradient(180deg, #6ff0b8, #1f9d6b); box-shadow: 0 0 16px rgba(95, 227, 169, .6); transition: transform .45s cubic-bezier(.5, 1.6, .4, 1), background .4s, box-shadow .4s; }
.lever[aria-checked="true"] .knob { transform: translateX(100%); background: var(--gold-grad); box-shadow: 0 0 18px rgba(232, 198, 106, .8); }
.orb { position: relative; width: 104px; height: 104px; border-radius: 50%; padding: 7px; background: var(--brass-grad); box-shadow: 0 10px 30px -10px #000; }
.orb-core { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #9dffd2, #1f9d6b 45%, #052a1a 100%); box-shadow: inset 0 -8px 18px rgba(0, 0, 0, .6), 0 0 30px rgba(95, 227, 169, .55); transition: background .5s, box-shadow .5s; animation: orb 3.5s ease-in-out infinite; }
.booster.on .orb-core { background: radial-gradient(circle at 38% 32%, #fff7d6, #e8c66a 40%, #6b4316 100%); box-shadow: inset 0 -8px 18px rgba(0, 0, 0, .5), 0 0 40px rgba(232, 198, 106, .75); }
.orb-glint { position: absolute; left: 26px; top: 20px; width: 30px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(2px); transform: rotate(-25deg); }
@keyframes orb { 50% { filter: brightness(1.18); } }
.orb-cap { margin: 0; font-size: .9rem; color: var(--muted); }
.orb-cap b { color: var(--gold-hi); }
.booster-rows { margin: 0; display: grid; gap: 10px; align-content: center; }
.booster-rows > div { display: grid; grid-template-columns: minmax(120px, .8fr) 1.2fr; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.booster-rows dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.booster-rows dd { margin: 0; color: #c8f5e0; font-weight: 600; transition: color .3s; }
.booster.on .booster-rows dd { color: var(--gold-hi); }
.booster-rows dd.flip { animation: flip .45s ease; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); opacity: .2; } 100% { transform: rotateX(0); } }
.booster-cap { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: var(--muted); text-align: center; letter-spacing: .06em; }

/* jackpot */
.jackpot { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: center; margin: 12px 0 30px; padding: 28px; border-radius: 20px; border: 1px solid var(--line-2); background: radial-gradient(circle at 25% 50%, rgba(232, 198, 106, .14), transparent 60%), linear-gradient(180deg, #221911, #15100c); }
.wheel-wrap { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }
.wheel { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); }
.jackpot.in .wheel { animation: wheel-spin 4.5s cubic-bezier(.15, .7, .2, 1) both, wheel-idle 60s 4.5s linear infinite; }
@keyframes wheel-spin { from { transform: rotate(-720deg); } to { transform: rotate(9deg); } }
@keyframes wheel-idle { from { transform: rotate(9deg); } to { transform: rotate(369deg); } }
.wheel .rim { fill: #120d09; stroke: var(--brass); stroke-width: 2; }
.wheel .seg { stroke: #120d09; stroke-width: 1.2; }
.wheel .s0 { fill: #b8862f; }
.wheel .s1 { fill: #2b1f15; }
.wheel .bulb { fill: #fff1c2; animation: bulb 1.6s ease-in-out infinite; }
@keyframes bulb { 50% { fill: #6b4b1d; } }
.wheel .hub-ring { fill: #15100c; stroke: var(--gold); stroke-width: 2; }
.hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin-top: -14px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 700 1.6rem var(--f-display); color: var(--ink); background: var(--gold-grad); box-shadow: 0 0 0 3px #2a1806, 0 0 24px rgba(232, 198, 106, .6); }
.pointer { position: absolute; z-index: 2; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 26px solid var(--emerald-hi); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .7)); }
.wheel-label { margin: 10px 0 0; text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tiers-cap { margin: 0 0 12px; font: 700 .74rem var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--emerald-hi); }
.tiers ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.tier { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.t-name { font: 700 .95rem var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.t-val { font: 700 1.15rem var(--f-display); font-variant-numeric: tabular-nums; color: var(--gold-hi); white-space: nowrap; }
.t3 { border-color: var(--gold); background: linear-gradient(90deg, rgba(232, 198, 106, .18), rgba(0, 0, 0, .25)); }
.t3 .t-name { color: var(--gold); }
.t3 .t-val { font-size: 1.4rem; }
.t2 .t-name { color: #e9a46a; } .t1 .t-name { color: #e66a5c; } .t0 .t-name { color: #8fd7ff; }

/* cta strip */
.cta-strip { clear: both; display: flex; align-items: center; gap: 16px; margin: 18px 0 8px; padding: 16px 18px 16px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(90deg, rgba(31, 157, 107, .14), rgba(201, 150, 63, .1)); }
.cta-strip p { margin: 0; flex: 1; font-weight: 700; color: var(--text); }
.bolt { width: 34px; height: 34px; flex: none; fill: var(--gold); filter: drop-shadow(0 0 8px rgba(232, 198, 106, .7)); animation: bolt 3s ease-in-out infinite; }
@keyframes bolt { 0%, 90%, 100% { opacity: 1; } 93% { opacity: .3; } 96% { opacity: 1; } 97% { opacity: .4; } }

/* banner */
.banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: center;
  margin: 26px 0 10px; padding: 34px; border-radius: 22px;
  border: 2px solid transparent;
  background: radial-gradient(circle at 15% 50%, rgba(31, 157, 107, .3), transparent 55%), radial-gradient(circle at 100% 0, rgba(232, 198, 106, .22), transparent 50%), linear-gradient(160deg, #2b1f15, #120d09) padding-box, var(--brass-grad) border-box;
  box-shadow: var(--shadow), 0 0 90px -40px rgba(232, 198, 106, .6);
}
.banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(201, 150, 63, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 150, 63, .06) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.banner-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.banner-cog { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(201, 150, 63, .18); stroke: var(--gold); stroke-width: .8; animation: spin 30s linear infinite; }
.banner-art img { position: relative; width: 78%; border-radius: 50%; box-shadow: 0 0 0 4px #1a120c, 0 0 0 6px var(--gold), 0 0 50px rgba(95, 227, 169, .35); }
.banner-copy { position: relative; }
.banner-title { margin: 0 0 10px !important; font: 700 clamp(1.5rem, 1rem + 1.6vw, 2.2rem)/1.15 var(--f-display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.banner-copy .btn { margin-top: 6px; }
.banner-note { margin: 14px 0 0 !important; font-size: .78rem; letter-spacing: .1em; color: var(--muted) !important; }

/* pros & cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pc { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(42, 32, 25, .7), rgba(21, 16, 12, .7)); }
.pc h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 700 1.2rem var(--f-display); }
.pc h3::before { content: ""; width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; }
.cons h3::before { background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 15px no-repeat; }
.pros { border-top: 3px solid var(--emerald); }
.cons { border-top: 3px solid var(--copper); }
.pc > p { font-size: .95rem; color: var(--muted) !important; }
.pc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pc li { position: relative; padding-left: 24px; font-size: .96rem; line-height: 1.55; }
.pc li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--emerald-hi); box-shadow: 0 0 8px rgba(95, 227, 169, .6); }
.cons li::before { background: var(--copper); box-shadow: none; }

/* steps */
.steps { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--brass), var(--emerald)); opacity: .6; }
.steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 8px 0 14px; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 1.05rem var(--f-display); color: var(--ink); background: var(--gold-grad); box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--line-2); }
.steps p { margin: 8px 0 0; }

/* verdict */
.verdict { padding: 30px; border-radius: 20px; border: 1px solid var(--line-2); background: radial-gradient(circle at 100% 0, rgba(31, 157, 107, .18), transparent 50%), linear-gradient(180deg, #241a13, #15100c); position: relative; }
.verdict::before { content: "“"; position: absolute; right: 24px; top: -10px; font: 700 8rem/1 var(--f-display); color: rgba(232, 198, 106, .12); }

/* faq */
.faq { display: grid; gap: 12px; }
.qa { border-radius: 14px; border: 1px solid var(--line); background: rgba(33, 25, 19, .7); transition: border-color .25s, background .25s; }
.qa[open] { border-color: var(--line-2); background: rgba(42, 32, 25, .85); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 1.04rem; color: var(--text); }
.qa[open] summary h3 { color: var(--gold-hi); }
.qa-icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .35s ease, background .3s; }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--gold); border-radius: 2px; }
.qa-icon::after { transform: rotate(90deg); transition: transform .35s ease; }
.qa[open] .qa-icon { transform: rotate(180deg); background: rgba(31, 157, 107, .25); }
.qa[open] .qa-icon::after { transform: rotate(0); }
.qa-a { padding: 0 20px 6px; }
.qa[open] .qa-a { animation: drop .35s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, #120d09, #0b0806); padding: 50px 0 40px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr .8fr; gap: 40px; }
.site-footer .brand img { height: 50px; margin-bottom: 16px; }
.site-footer p { color: #d5c9b4; }
.rg { display: block; }
.age { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0 12px 6px 0; float: left; border-radius: 50%; border: 2px solid var(--copper); color: var(--copper); font: 800 .85rem var(--f-body); }
.footer-langs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.footer-langs a { color: var(--text); text-decoration: none; }
.footer-langs a[aria-current] { color: var(--gold); font-weight: 700; }
.to-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* sticky bar (mobile) */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(13, 9, 6, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .35s ease; }
.sticky-bar .btn { flex: 1; }
.sticky-bar.show { transform: none; }

/* lightbox */
.lightbox { max-width: min(96vw, 1400px); max-height: 92vh; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: #0b0806; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 3, 2, .86); backdrop-filter: blur(4px); }
.lightbox img { max-height: 92vh; width: auto; margin: 0 auto; }
.lb-close { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; padding: 0; justify-content: center; background: rgba(0, 0, 0, .6); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article { margin: 0 auto; }
  .toc { position: static; max-width: 860px; width: 100%; margin: 0 auto 6px; }
  .toc-box { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(33, 25, 19, .6); }
  .toc-box summary { margin: 0; display: flex; justify-content: space-between; align-items: center; }
  .toc-box summary::after { content: "+"; font-size: 1.3rem; color: var(--gold); }
  .toc-box[open] summary::after { content: "–"; }
  .toc-box[open] summary { margin-bottom: 12px; }
  .pipe { columns: 2; column-gap: 30px; padding-left: 0; }
  .pipe::before, .pipe::after { display: none; }
  .pipe a { padding-left: 20px; break-inside: avoid; }
  .valve { left: 0; width: 9px; height: 9px; margin-top: -4.5px; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .burger { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
  .burger span { display: block; width: 20px; height: 2px; background: var(--gold); border-radius: 2px; transition: .3s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-inner { gap: 12px; }
  .header-cta { margin-left: auto; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; margin: 0; padding: 18px 20px 40px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(13, 9, 6, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(-12px); pointer-events: none; visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; overflow-y: auto;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .3s ease, transform .3s ease; }
  .main-nav > a { padding: 16px 6px; font: 600 1.2rem var(--f-display); border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav > a::after { display: none; }
  .lang { margin: 22px 0 0; }
  .lang-btn { display: none; }
  .lang-menu { position: static; opacity: 1; visibility: visible; transform: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: none; border: 0; box-shadow: none; padding: 0; }
  .lang-menu a { border: 1px solid var(--line); }
  .brand img { height: 38px; }
  .hero { padding: 36px 0 110px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-art { order: -1; padding: 0 0 18px; }
  .window { width: min(300px, 78vw); }
  .cog-a { width: 150px; right: calc(50% - 230px); }
  .cog-b { width: 96px; right: calc(50% - 250px); top: 120px; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jackpot { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .header-cta .lg-only { display: none; }
  .header-cta .sm-only { display: inline; }
  .header-cta { --h: 38px; padding: 0 14px; font-size: .8rem; }
  .hero h1 { text-align: center; }
  .hero .kicker { display: flex; justify-content: center; text-align: center; letter-spacing: .12em; }
  .hero .btn-row { flex-direction: column; }
  .hero .btn-row .btn { flex: none; width: 100%; }
  .hero .spark { display: none; }
  .hero .kicker { font-size: .68rem; letter-spacing: .1em; }
  .demo-section { margin-top: -70px; padding-bottom: 50px; }
  .machine { padding: 10px 10px 0; border-radius: 16px; }
  .rivet { width: 7px; height: 7px; } .r1, .r3 { left: 3px; } .r2, .r4 { right: 3px; } .r1, .r2 { top: 3px; } .r3, .r4 { bottom: 3px; }
  .demo-stage { aspect-ratio: 3 / 4; max-height: 78vh; }
  .demo-ring { width: 108px; height: 108px; }
  .demo-bar { justify-content: center; }
  .demo-bar-title { width: 100%; justify-content: center; margin: 0 0 4px; }
  .demo-bar .btn { flex: 1 1 100%; }
  .float-r, .float-l { float: none; width: 100%; margin: 6px 0 22px; }
  .chapter { padding: 34px 0 20px; }
  .chapter-head { gap: 12px; }
  .num { width: 38px; height: 38px; font-size: .85rem; }
  .booster { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .booster-rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .jackpot { padding: 20px; }
  .wheel-wrap { max-width: 240px; }
  .tier { padding: 11px 14px; }
  .t-val { font-size: 1rem; } .t3 .t-val { font-size: 1.15rem; }
  .cta-strip { flex-direction: column; text-align: center; }
  .cta-strip .btn { width: 100%; }
  .banner { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; text-align: center; gap: 14px; }
  .banner-art { width: 200px; margin: 0 auto; }
  .banner-copy .btn { width: 100%; }
  .proscons { grid-template-columns: minmax(0, 1fr); }
  .pipe { columns: 1; }
  .verdict { padding: 22px; }
  .verdict .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 220px; }
  .ledger th, .ledger td { padding: 11px 12px; }
  .ledger thead th { white-space: normal; letter-spacing: .04em; font-size: .66rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
  .ledger.scatter th, .ledger.scatter td { padding: 10px 8px; font-size: .88rem; }
  .ledger.stack thead { display: none; }
  .ledger.stack tbody tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
  .ledger.stack tbody tr:last-child { border-bottom: 0; }
  .ledger.stack tbody th { display: block; border: 0; padding-bottom: 2px; font-size: 1rem; }
  .ledger.stack td { display: grid; grid-template-columns: 46% 1fr; align-items: baseline; gap: 10px; border: 0; padding-top: 5px; padding-bottom: 5px; }
  .ledger.stack td::before { content: attr(data-label); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .ledger.spec tbody { grid-template-columns: minmax(0, 1fr); }
  .ledger.spec tbody tr { grid-template-columns: 44% 56%; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .ledger.spec tbody tr:last-child { border-bottom: 0 !important; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky-bar { display: flex; }
  .site-footer { padding-bottom: 110px; }
}

@media (max-width: 380px) {
  .brand img { height: 32px; }
  .gauge b { font-size: 1.05rem; }
  .plate b { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
