/* ---------- Themes ---------- */
:root,
[data-theme="overworld"] {
  --bg: #fff6dc;
  --bg-alt: #5c94fc;
  --text: #1b1b2f;
  --muted: #4a4a63;
  --card: #ffffff;
  --edge: #000;
  --shadow: #000;
  --hero-bg: linear-gradient(#4f86f0 0%, #5c94fc 40%, #9cc4ff 100%);
  --brickbg: #c84c0c;
  --brick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect width='32' height='32' fill='%23c84c0c'/%3E%3Cpath d='M0 1h32M0 17h32M1 0v16M17 16v16' stroke='%23000' stroke-width='2' opacity='.6'/%3E%3Cpath d='M3 3h12M19 19h12' stroke='%23ff9a5a' stroke-width='2' opacity='.5'/%3E%3C/svg%3E");
  --head: "Press Start 2P", monospace;
  --body: "Nunito", system-ui, sans-serif;
  --hw: 400;
  --bd: 4px solid var(--edge);
  --sh: 6px 6px 0 var(--shadow);
  --r: 0px;
  --btnbd: 4px solid #000;
  --btnsh: 4px 4px 0 #000;
  --btnr: 0px;
  --btnfont: "Press Start 2P", monospace;
  --hud-bg: #000;
  --hud-text: #fff;
  --accent: #e52521;
  --gold: #fbd000;
  --pipe-a: #0a7a1e;
  --pipe-b: #52d83b;
  --pipe-edge: #000;
  --hill: #35c24b;
  --band: #000;
  --on-alt: #fff;
}

[data-theme="underground"] {
  --bg: #0a0f2c;
  --bg-alt: #101847;
  --text: #e9efff;
  --muted: #9fb0e8;
  --card: #17216a;
  --edge: #5b7bff;
  --shadow: #04061a;
  --hero-bg: radial-gradient(ellipse at 70% 30%, #1a2a8f 0%, #0a0f2c 70%);
  --brickbg: #1f3fd6;
  --brick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect width='32' height='32' fill='%231f3fd6'/%3E%3Cpath d='M0 1h32M0 17h32M1 0v16M17 16v16' stroke='%23000a40' stroke-width='2'/%3E%3Cpath d='M3 3h12M19 19h12' stroke='%238ea6ff' stroke-width='2' opacity='.45'/%3E%3C/svg%3E");
  --hud-bg: #04061a;
  --hill: #1a2a8f;
  --band: #04061a;
  --on-alt: #e9efff;
}

[data-theme="clean"] {
  --bg: #ffffff;
  --bg-alt: #f1f6ff;
  --text: #13214f;
  --muted: #5a6690;
  --card: #ffffff;
  --edge: #e1e8f8;
  --shadow: rgba(20, 40, 120, 0.12);
  --hero-bg: linear-gradient(135deg, #eaf2ff 0%, #ffffff 60%, #fff6d6 100%);
  --head: "Poppins", system-ui, sans-serif;
  --hw: 700;
  --bd: 1px solid var(--edge);
  --sh: 0 12px 32px var(--shadow);
  --r: 20px;
  --btnbd: 0;
  --btnsh: 0 8px 20px rgba(20, 40, 120, 0.18);
  --btnr: 999px;
  --btnfont: "Poppins", system-ui, sans-serif;
  --hud-bg: #ffffff;
  --hud-text: #13214f;
  --band: #13214f;
  --on-alt: #13214f;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
img, svg { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--hw); line-height: 1.3; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.6rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.15rem, 2.8vw, 1.8rem); }
h3 { font-size: 0.95rem; }
[data-theme="clean"] h1 { line-height: 1.1; letter-spacing: -0.02em; }
[data-theme="clean"] h2 { letter-spacing: -0.01em; }
[data-theme="clean"] h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.sec { padding: clamp(56px, 9vw, 104px) 0; background: var(--bg); }
.sec.alt { background: var(--bg-alt); }
.sec.alt > .wrap > .sec-head { color: var(--on-alt); }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head p { color: var(--muted); }
.sec.alt .sec-head p { color: inherit; opacity: 0.85; }
.eyebrow {
  display: inline-block; font-family: var(--head); font-size: 0.65rem; letter-spacing: 0.08em;
  background: var(--gold); color: #000; padding: 6px 10px; margin-bottom: 18px;
  border: var(--btnbd); border-radius: var(--btnr); text-transform: uppercase;
}
[data-theme="clean"] .eyebrow { font-weight: 600; background: #fff0b8; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--btnfont); font-size: 0.7rem; font-weight: 600; text-decoration: none; text-transform: uppercase;
  padding: 16px 20px; cursor: pointer; color: #fff; background: var(--accent);
  border: var(--btnbd); border-radius: var(--btnr); box-shadow: var(--btnsh);
  transition: transform 0.1s, box-shadow 0.1s; line-height: 1.2;
}
[data-theme="clean"] .btn { font-size: 0.95rem; text-transform: none; padding: 15px 26px; }
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn-wa { background: #25d366; color: #000; }
.btn-ghost { background: #fff; color: #000; }
.btn svg { width: 1.3em; height: 1.3em; flex: none; }

/* ---------- HUD header ---------- */
.hud {
  position: sticky; top: 0; z-index: 50; background: var(--hud-bg); color: var(--hud-text);
  border-bottom: 4px solid #000;
}
[data-theme="underground"] .hud { border-bottom-color: var(--edge); }
[data-theme="clean"] .hud { border-bottom: 1px solid var(--edge); box-shadow: 0 4px 20px rgba(20, 40, 120, 0.06); }
.hud-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-size: 0.62rem; line-height: 1.4; text-transform: uppercase; }
[data-theme="clean"] .brand { font-size: 0.95rem; font-weight: 700; text-transform: none; line-height: 1.15; }
.brand svg { width: 44px; height: 38px; }
.nav { display: none; gap: 22px; margin-left: auto; font-family: var(--head); font-size: 0.6rem; text-transform: uppercase; }
[data-theme="clean"] .nav { font-size: 0.9rem; font-weight: 500; text-transform: none; }
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--gold); }
[data-theme="clean"] .nav a:hover { color: var(--accent); }
.hud-stats { margin-left: auto; display: flex; gap: 18px; font-family: var(--head); font-size: 0.6rem; align-items: center; }
[data-theme="clean"] .hud-stats { font-size: 0.85rem; font-weight: 600; }
.hud-stats .coin-ic { display: inline-block; width: 12px; height: 16px; background: var(--gold); border: 2px solid #b8860b; border-radius: 50%; vertical-align: -2px; margin-right: 4px; animation: spin 1.6s infinite linear; }
.hud .btn { padding: 11px 14px; font-size: 0.6rem; display: none; }
[data-theme="clean"] .hud .btn { font-size: 0.9rem; padding: 10px 20px; }
@media (min-width: 640px) { .hud .btn { display: inline-flex; } }
@media (min-width: 960px) { .nav { display: flex; } .hud-stats { margin-left: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-bg); padding: 48px 0 64px; overflow: hidden; border-bottom: 0; }
.hero-grid { position: relative; z-index: 3; display: grid; gap: 24px; align-items: end; }
.hero-copy { align-self: center; padding-bottom: 24px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero-copy { padding-bottom: 96px; } }
.hero h1 { color: #fff; text-shadow: 4px 4px 0 #000; }
.hero h1 em { font-style: normal; color: var(--gold); }
[data-theme="clean"] .hero h1 { color: var(--text); text-shadow: none; }
[data-theme="clean"] .hero h1 em { color: var(--accent); }
.hero .lede { font-size: 1.15rem; color: #fff; max-width: 34em; text-shadow: 1px 1px 0 rgba(0,0,0,0.5); }
[data-theme="clean"] .hero .lede { color: var(--muted); text-shadow: none; }
.badge-live {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #000; border: 3px solid #000;
  font-family: var(--head); font-size: 0.6rem; padding: 8px 12px; margin-bottom: 22px; text-transform: uppercase;
}
[data-theme="clean"] .badge-live { border: 1px solid var(--edge); border-radius: 999px; font-size: 0.8rem; font-weight: 600; text-transform: none; box-shadow: var(--sh); }
.badge-live i { width: 10px; height: 10px; border-radius: 50%; background: #20c933; animation: pulse 1.4s infinite; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #fff; font-weight: 700; font-size: 0.95rem; text-shadow: 1px 1px 0 #000; }
[data-theme="clean"] .trust { color: var(--muted); text-shadow: none; }
.trust .stars { color: var(--gold); letter-spacing: 2px; }

/* scene decor */
.scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cloud { position: absolute; width: 110px; height: 36px; background: #fff; border-radius: 40px; opacity: 0.95; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 54px; height: 54px; left: 14px; top: -26px; }
.cloud::after { width: 40px; height: 40px; left: 58px; top: -18px; }
.c1 { top: 40px; animation-duration: 70s; }
.c2 { top: 120px; transform: scale(1.4); animation-duration: 95s; animation-delay: -40s; }
.c3 { top: 220px; transform: scale(0.8); animation-duration: 60s; animation-delay: -15s; }
.hill { position: absolute; bottom: 64px; border: 4px solid #000; border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--hill); }
.hill::before, .hill::after { content: ""; position: absolute; top: 34%; width: 8px; height: 22px; background: #000; border-radius: 4px; }
.hill::before { left: 40%; } .hill::after { left: 54%; }
.h1 { left: -60px; width: 340px; height: 96px; }
.h2 { left: 26%; width: 240px; height: 70px; background: #2da843; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 2; background: var(--brickbg) var(--brick); border-top: 4px solid #000; image-rendering: pixelated; }
[data-theme="underground"] .ground { border-top-color: #000; }
[data-theme="underground"] .cloud, [data-theme="underground"] .hill { display: none; }
[data-theme="clean"] .cloud, [data-theme="clean"] .hill, [data-theme="clean"] .ground { display: none; }
[data-theme="clean"] .hero { padding-bottom: 72px; }
[data-theme="clean"] .scene::before, [data-theme="clean"] .scene::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
[data-theme="clean"] .scene::before { width: 360px; height: 360px; background: #cfe0ff; top: -80px; right: 10%; }
[data-theme="clean"] .scene::after { width: 260px; height: 260px; background: #ffe58a; bottom: -60px; left: 5%; }

/* stage (right column) */
.stage { position: relative; height: 340px; }
@media (min-width: 900px) { .stage { height: 460px; } }
.pipe { position: absolute; width: 120px; filter: drop-shadow(0 0 0 #000); }
.pipe .lip, .pipe .body { background: linear-gradient(90deg, var(--pipe-a) 0%, var(--pipe-b) 35%, var(--pipe-a) 100%); border: 4px solid var(--pipe-edge); }
.pipe .lip { height: 38px; margin: 0 -8px; border-radius: 4px; position: relative; z-index: 1; }
.pipe .body { border-top: 0; height: var(--h, 180px); }
.pipe.big { right: 10%; bottom: 0; --h: 170px; }
.pipe.small { right: 48%; bottom: 0; width: 84px; --h: 70px; }
.drops { position: absolute; right: calc(10% + 44px); bottom: 215px; width: 32px; height: 120px; z-index: 0; }
.drops i { position: absolute; bottom: 0; left: 50%; width: 10px; height: 14px; background: #4fc3ff; border: 2px solid #0a4a9f; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: spout 1.6s infinite ease-out; opacity: 0; }
.drops i:nth-child(2) { animation-delay: 0.3s; margin-left: -12px; --dx: -16px; }
.drops i:nth-child(3) { animation-delay: 0.6s; --dx: 14px; }
.drops i:nth-child(4) { animation-delay: 0.9s; margin-left: -6px; --dx: -6px; }
.drops i:nth-child(5) { animation-delay: 1.2s; margin-left: 8px; --dx: 20px; }
.qblock {
  position: absolute; width: 64px; height: 64px; display: grid; place-items: center; cursor: pointer; user-select: none;
  font-family: "Press Start 2P", monospace; font-size: 1.6rem; color: #7a3a00; background: var(--gold);
  border: 4px solid #000; box-shadow: inset -4px -4px 0 #d08a00, inset 4px 4px 0 #ffe97a; animation: bob 2.4s ease-in-out infinite;
  padding: 0; line-height: 1;
}
.qblock.hit { animation: bump 0.25s; }
.qblock.used { background: #9a6b3c; color: transparent; box-shadow: inset -4px -4px 0 #6d4521, inset 4px 4px 0 #bf8f5a; animation: none; }
.q1 { left: 4%; bottom: 150px; } .q2 { left: 26%; bottom: 230px; animation-delay: -0.8s; } .q3 { left: 48%; bottom: 150px; animation-delay: -1.6s; }
.pick { position: absolute; width: 22px; height: 30px; background: var(--gold); border: 3px solid #b8860b; border-radius: 50%; cursor: pointer; animation: spin 1.4s infinite linear; box-shadow: inset 3px 0 0 #fff3a0; padding: 0; }
.p1 { left: 14%; bottom: 60px; } .p2 { left: 34%; bottom: 120px; } .p3 { left: 58%; bottom: 280px; } .p4 { left: 70%; bottom: 40px; }
@media (max-width: 899px) { .p3 { bottom: 200px; } }
.quote-card { display: none; }
[data-theme="clean"] .stage > :not(.quote-card) { display: none; }
[data-theme="clean"] .quote-card {
  display: block; position: absolute; right: 0; bottom: 0; width: min(340px, 100%); background: var(--card); border: var(--bd); border-radius: var(--r); box-shadow: var(--sh); padding: 26px;
}
.quote-card h3 { margin-bottom: 6px; }
.quote-card .slot { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--edge); font-weight: 700; }
.quote-card .slot span:last-child { color: #17a34a; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 28px; }
.services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: var(--bd); border-radius: var(--r); box-shadow: var(--sh); padding: 26px; color: var(--text); }
.service { transition: transform 0.15s; position: relative; }
.service:hover { transform: translate(-3px, -3px); }
.service .ico {
  position: relative; width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 18px;
  background: var(--gold); border: 4px solid #000; box-shadow: inset -4px -4px 0 #d08a00, inset 4px 4px 0 #ffe97a;
}
[data-theme="clean"] .service .ico { border: 0; border-radius: 16px; background: #eaf2ff; box-shadow: none; }
.service p { margin: 0 0 12px; color: var(--muted); }
.service a { font-weight: 800; text-decoration: none; color: var(--accent); }
.service a:hover { text-decoration: underline; }
[data-theme="underground"] .service a { color: var(--gold); }

/* ---------- Process ---------- */
.steps { position: relative; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { text-align: center; position: relative; }
.step .lvl {
  display: grid; place-items: center; margin: 0 auto 18px; width: 84px; height: 84px; font-family: var(--head); font-size: 0.8rem;
  background: var(--accent); color: #fff; border: var(--btnbd); border-radius: 50%; box-shadow: var(--btnsh);
}
[data-theme="overworld"] .step .lvl, [data-theme="underground"] .step .lvl { border: 4px solid #000; border-radius: 0; }
[data-theme="clean"] .step .lvl { font-size: 1.2rem; }
.step h3 { color: var(--on-alt); }
.step p { color: inherit; opacity: 0.88; max-width: 28ch; margin-inline: auto; }
.sec.alt .steps { color: var(--on-alt); }
@media (min-width: 800px) {
  .steps::before {
    content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 16px; z-index: 0;
    background: repeating-linear-gradient(90deg, #4fc3ff 0 14px, #1b7fd1 14px 28px); border: 3px solid #000; animation: flow 1s linear infinite;
  }
  [data-theme="clean"] .steps::before { border: 0; border-radius: 99px; height: 6px; top: 40px; opacity: 0.6; }
  .step .lvl { position: relative; z-index: 1; }
}

/* ---------- Stats band ---------- */
.band { background: var(--band); color: #fff; padding: 44px 0; border-block: 4px solid #000; }
[data-theme="clean"] .band { border: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; text-align: center; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: var(--head); font-size: clamp(1.3rem, 3.6vw, 2.2rem); color: var(--gold); font-weight: var(--hw); }
.stat span { font-size: 0.95rem; opacity: 0.85; }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.portrait {
  position: relative; aspect-ratio: 4 / 4.2; display: grid; place-items: center; text-align: center; padding: 20px;
  background: var(--hero-bg); border: var(--bd); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden;
}
.portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: var(--brickbg) var(--brick); border-top: 4px solid #000; }
[data-theme="clean"] .portrait::after { display: none; }
.portrait .ph { font-family: var(--head); font-size: 0.65rem; background: #fff; color: #000; border: 3px solid #000; padding: 12px; position: relative; z-index: 1; }
[data-theme="clean"] .portrait .ph { font-family: var(--body); font-size: 0.9rem; border-radius: 12px; border: 1px solid var(--edge); }
.portrait .ph b { display: block; font-size: 2.2rem; margin-bottom: 6px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.ticks li::before { content: "★"; color: var(--gold); text-shadow: 1px 1px 0 #000; font-size: 1.2rem; line-height: 1.2; }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.score { font-family: var(--head); color: var(--on-alt); font-size: 0.8rem; }
.score b { font-size: 2rem; color: var(--gold); text-shadow: 3px 3px 0 #000; margin-right: 8px; }
[data-theme="clean"] .score b { text-shadow: none; }
.track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px; margin-inline: -4px; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { height: 12px; }
.track::-webkit-scrollbar-thumb { background: #000; border: 3px solid transparent; background-clip: padding-box; }
.review { flex: 0 0 min(340px, 84%); scroll-snap-align: start; display: flex; flex-direction: column; }
.review .stars { color: #f5a700; font-size: 1.15rem; letter-spacing: 3px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 18px; flex: 1; }
.review footer { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.95rem; }
.review footer small { display: block; font-weight: 400; color: var(--muted); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--head); font-size: 0.7rem; border: 3px solid #000; flex: none; }
[data-theme="clean"] .avatar { border: 0; font-family: var(--body); font-weight: 700; font-size: 0.95rem; }
.g-tag { margin-left: auto; font-size: 0.75rem; color: var(--muted); font-weight: 700; }

/* ---------- Areas & FAQ ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--card); color: var(--text); border: 3px solid var(--edge); border-radius: var(--btnr); padding: 8px 14px; font-weight: 800; }
[data-theme="clean"] .chip { border-width: 1px; }
.two { display: grid; gap: 48px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
details { background: var(--card); border: var(--bd); border-radius: var(--r); margin-bottom: 14px; box-shadow: 4px 4px 0 var(--shadow); }
[data-theme="clean"] details { box-shadow: none; }
summary { cursor: pointer; padding: 18px 20px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--head); color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 32px; }
@media (min-width: 860px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; font-weight: 700; }
.contact-list small { display: block; font-weight: 400; color: var(--muted); }
.map { border: var(--bd); border-radius: var(--r); box-shadow: var(--sh); width: 100%; height: 240px; display: block; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 800; font-size: 0.95rem; }
input, select, textarea {
  font: inherit; font-weight: 600; padding: 13px 14px; color: #000; background: #fff;
  border: 3px solid #000; border-radius: var(--btnr) ; width: 100%;
}
[data-theme="clean"] input, [data-theme="clean"] select, [data-theme="clean"] textarea { border: 1px solid #cdd7ee; border-radius: 12px; }
[data-theme="clean"] input, [data-theme="clean"] select, [data-theme="clean"] textarea { border-radius: 12px; }
textarea { min-height: 110px; resize: vertical; }
.fine { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
footer.site { background: var(--band); color: #fff; padding: 0 0 100px; }
footer.site .brickline { height: 48px; background: var(--brickbg) var(--brick); border-bottom: 4px solid #000; }
[data-theme="clean"] footer.site .brickline { display: none; }
footer.site .wrap { padding-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; font-size: 0.95rem; }
footer.site a { opacity: 0.85; }
@media (min-width: 640px) { footer.site { padding-bottom: 48px; } }

/* ---------- Floating bits ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 62px; height: 62px; display: none; place-items: center;
  background: #25d366; border: 4px solid #000; border-radius: 50%; box-shadow: 4px 4px 0 #000; transition: transform 0.15s;
}
[data-theme="clean"] .wa-float { border: 0; box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 34px; height: 34px; }
@media (min-width: 640px) { .wa-float { display: grid; } }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; background: var(--hud-bg); border-top: 4px solid #000; }
[data-theme="clean"] .mbar { border-top: 1px solid var(--edge); }
.mbar .btn { padding: 14px 8px; }
@media (min-width: 640px) { .mbar { display: none; } }
.switcher {
  position: fixed; left: 12px; bottom: 82px; z-index: 70; display: flex; align-items: center; gap: 6px; background: #000; color: #fff; padding: 6px 8px;
  border: 3px solid #fff; font-family: "Press Start 2P", monospace; font-size: 0.5rem; text-transform: uppercase;
}
.switcher button { all: unset; cursor: pointer; padding: 7px 8px; border: 2px solid transparent; }
.switcher button[aria-pressed="true"] { background: var(--gold); color: #000; }
.switcher span { display: none; opacity: 0.7; }
@media (min-width: 640px) { .switcher { bottom: 16px; font-size: 0.55rem; } .switcher span { display: inline; } }

.toast {
  position: fixed; left: 50%; top: 84px; z-index: 80; transform: translate(-50%, -300%); visibility: hidden; transition: transform 0.4s cubic-bezier(.3,1.5,.5,1), visibility 0.4s;
  background: var(--gold); color: #000; border: 4px solid #000; box-shadow: 5px 5px 0 #000; padding: 14px 18px; font-family: var(--head); font-size: 0.62rem; line-height: 1.7; text-align: center; width: min(92vw, 420px);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.fly-coin { position: fixed; z-index: 90; width: 22px; height: 30px; background: var(--gold); border: 3px solid #b8860b; border-radius: 50%; pointer-events: none; animation: rise 0.8s ease-out forwards; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.rv.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes drift { from { left: -200px; } to { left: 110%; } }
@keyframes spin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.15); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes bump { 0% { translate: 0 0; } 40% { translate: 0 -14px; } 100% { translate: 0 0; } }
@keyframes spout { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 55% { transform: translate(calc(var(--dx, 0px) * 0.6), -110px); } 100% { transform: translate(var(--dx, 0px), 40px); opacity: 0; } }
@keyframes flow { to { background-position: 28px 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(32, 201, 51, 0.25); } }
@keyframes rise { to { transform: translateY(-90px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}
