/* Self-hosted Google Fonts (OFL), latin + latin-ext. */
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-normal-latin-ext.v1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-normal-latin.v1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-italic-latin-ext.v1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-italic-latin.v1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-normal-latin-ext.v1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-normal-latin.v1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-normal-latin-ext.v1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-normal-latin.v1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================================
   $NAP: style. Cream paper, coin gold, hammock brown, Zzz blue.
   Everything eases slowly. Nothing is in a hurry.
   ============================================================= */
:root {
  --paper: #fbf1dc; --paper-2: #f6e7c6; --paper-3: #efd8a6; --card: #fff8e8;
  --ink: #3a2412; --ink-2: #5e4128; --ink-3: #6f5030;
  --gold: #f2b01e; --gold-2: #ffd86b; --gold-deep: #c98a0a;
  --brown: #7d4f24; --brown-2: #b57a3e; --brown-dark: #4a2e17;
  --zzz: #2f7be8; --zzz-deep: #1c56b8; --zzz-soft: #dbe9ff;
  --hot: #e0432a;
  --night: #1b2147; --night-2: #2a2250; --night-ink: #f7ebd0; --night-ink-2: #d4c6aa;
  --line: rgba(138,90,43,.22); --line-hi: rgba(138,90,43,.45);
  --f-display: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, 'Times New Roman', serif;
  --f-sans: 'Instrument Sans', 'Instrument Sans Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: max(clamp(20px, 4vw, 56px), calc(env(safe-area-inset-left, 0px) + 12px), calc(env(safe-area-inset-right, 0px) + 12px));
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 22px; --nav-h: 76px;
  --ease: cubic-bezier(.3, .7, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); --ease-sleepy: cubic-bezier(.45, .05, .25, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--paper); scrollbar-gutter: stable; scrollbar-color: var(--brown-2) var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
::selection { background: var(--gold-2); color: var(--ink); }
:focus-visible { outline: 3px solid var(--zzz); outline-offset: 3px; border-radius: 8px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
code { font-family: var(--f-mono); }
[hidden] { display: none !important; }
em { font-style: italic; }
.mono { font-family: var(--f-mono); }
.is-broken { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 999; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* launch-state helper classes */
[data-launch="pre"] .only-live, [data-launch="live"] .only-pre { display: none !important; }
:root:not([data-lp="stonkfun"]) .only-lp-stonkfun { display: none !important; }

main, .footer { position: relative; z-index: 1; }
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 125; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 140; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 150; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--brown-2)); transform-origin: 0 50%; transform: scaleX(0); border-radius: 0 4px 4px 0; }

/* =============================================================
   NAV
   ============================================================= */
.nav { position: fixed; z-index: 100; left: 0; right: 0; top: 0; height: calc(var(--nav-h) + var(--safe-top)); padding: var(--safe-top) var(--gutter) 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: background .5s, transform .7s var(--ease), box-shadow .5s; }
.nav.is-scrolled { background: rgba(251,241,220,.86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 2px 0 var(--line); }
[data-fx="mid"] .nav.is-scrolled { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
[data-fx="low"] .nav.is-scrolled { background: rgba(251,241,220,.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__coin { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 3px 0 2px var(--brown); }
.brand__word { font-family: var(--f-display); font-style: italic; font-size: 30px; letter-spacing: .02em; color: var(--ink); line-height: 1; }
.nav__links { display: none; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255,248,232,.8); box-shadow: inset 0 0 0 2px var(--line); }
.nav__links a { padding: 8px 15px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .3s, background .3s; }
.nav__links a:hover { color: var(--ink); background: var(--gold-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.sleepbtn { height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--f-sans); color: var(--zzz-deep); background: var(--zzz-soft); box-shadow: inset 0 0 0 2px rgba(47,123,232,.35), 0 3px 0 rgba(47,123,232,.35); transition: transform .35s var(--ease-spring), box-shadow .3s, background .3s; }
.sleepbtn svg { width: 20px; height: 20px; flex: none; }
.sleepbtn:hover { background: #cfe1ff; }
.sleepbtn:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px rgba(47,123,232,.35), 0 1px 0 rgba(47,123,232,.35); }
.sleepbtn[aria-pressed="true"] { background: var(--night); color: var(--gold-2); box-shadow: inset 0 0 0 2px var(--gold-2), 0 3px 0 #000; }
.sleepbtn__t { display: none; }
.nav__menu { position: relative; }
.nav__menu summary { list-style: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; gap: 6px; box-shadow: inset 0 0 0 2px var(--line-hi); cursor: pointer; background: rgba(255,248,232,.8); }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s; }
.nav__menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__sheet { position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 2 * var(--gutter))); padding: 10px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 2px var(--line-hi), 0 26px 50px -20px rgba(74,46,23,.55); display: grid; }
.nav__sheet a, .nav__sheet button { text-align: left; padding: 14px 16px; border-radius: 14px; font-size: 17px; color: var(--ink); min-height: 48px; }
.nav__sheet a:hover, .nav__sheet button:hover { background: var(--gold-2); }
.nav__sheet hr { border: 0; height: 2px; background: var(--line); margin: 6px 8px; }
@media (min-width: 1100px) { .nav__links { display: flex; } .nav__menu { display: none; } .sleepbtn__t { display: inline; } .sleepbtn { padding: 0 18px 0 14px; } }
@media (max-width: 1099px) { .nav { --nav-h: 66px; } }
@media (max-width: 339px) { .brand__word { display: none; } }

/* =============================================================
   BUTTONS / PILLS / CA
   ============================================================= */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; font: 600 16px/1 var(--f-sans); white-space: nowrap; transition: transform .35s var(--ease-spring), box-shadow .3s, background .3s; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 64px; padding: 0 34px; font-size: 18px; }
.btn--gold { color: var(--ink); background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: inset 0 0 0 2px var(--brown), 0 5px 0 var(--brown), 0 14px 22px -10px rgba(138,90,43,.6); }
.btn--gold:hover { background: linear-gradient(180deg, #ffe38f, #f7b92d); }
.btn--gold:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--brown), 0 1px 0 var(--brown); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-hi); background: rgba(255,248,232,.55); }
.btn--ghost:hover { background: var(--gold-2); box-shadow: inset 0 0 0 2px var(--brown); }
.btn--ghost-l { color: var(--night-ink); box-shadow: inset 0 0 0 2px rgba(255,216,107,.5); }
.btn--ghost-l:hover { background: rgba(255,216,107,.16); box-shadow: inset 0 0 0 2px var(--gold-2); }
.btn.is-soon { background: transparent; color: var(--ink-2); box-shadow: none; outline: 2px dashed var(--line-hi); outline-offset: -2px; cursor: help; }
.btn:active { transform: scale(.97); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px; border-radius: 999px; font: 500 11.5px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-2); }
.pill b { color: var(--ink); font-weight: 700; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--zzz); flex: none; animation: breathe 4s ease-in-out infinite; }
[data-launch="live"] .pulse { background: var(--gold); animation: none; }
[data-launch="live"] .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); animation: ping 2.6s var(--ease) infinite; }
@keyframes breathe { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
.hero__proof.is-pending { visibility: hidden; }

.ca { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line-hi); }
.ca__label { font: 700 12px/1 var(--f-mono); letter-spacing: .16em; color: var(--brown); }
.ca__value { font: 500 14px/1 var(--f-mono); letter-spacing: .02em; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca[data-state="empty"] .ca__value { font-family: var(--f-sans); letter-spacing: 0; font-size: 15px; color: var(--ink-2); }
.ca__copy { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--f-sans); flex: none; transition: transform .35s var(--ease-spring), background .3s; }
.ca__copy:hover { background: var(--brown-dark); }
.ca__copy svg { width: 16px; height: 16px; }
.ca__copy .i-check { display: none; }
.ca.is-copied .ca__copy { background: var(--zzz-deep); }
.ca.is-copied .i-copy { display: none; } .ca.is-copied .i-check { display: block; }
.ca.is-manual .ca__value { white-space: normal; word-break: break-all; user-select: all; -webkit-user-select: all; text-overflow: clip; }
.ca--lg { padding: 8px 8px 8px 24px; gap: 16px; }
.ca--lg .ca__value { font-size: clamp(13px, 1.3vw, 17px); }
.ca--lg .ca__copy { height: 48px; }
.mini { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-hi); }
.mini svg { width: 15px; height: 15px; }
.mini:hover { background: var(--gold-2); }
.linkbtn { color: var(--zzz-deep); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.linkbtn:hover { color: var(--ink); }

/* =============================================================
   HERO: the rig, hung in its hammock from a beam
   ============================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 20px) 0 64px; overflow: hidden; background: radial-gradient(120% 80% at 18% 8%, #fff7dc 0%, var(--paper) 55%, var(--paper-2) 100%); }
.hero__sun { position: absolute; left: -12%; top: -34%; width: 72vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle closest-side, rgba(255,216,107,.6), rgba(255,216,107,.2) 55%, transparent 100%); animation: sunDrift 40s ease-in-out infinite alternate; }
@keyframes sunDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 5vh) scale(1.08); } }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.rigwrap { --D: clamp(260px, min(36vw, 52svh), 500px); width: var(--D); justify-self: center; position: relative; display: flex; flex-direction: column; align-items: center; }
.beam { position: relative; z-index: 2; display: block; width: calc(var(--D) * .62); height: 16px; border-radius: 10px; background: linear-gradient(var(--brown-2), var(--brown)); box-shadow: 0 4px 0 var(--brown-dark); }
.beam::before, .beam::after { content: ""; position: absolute; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--brown-dark); }
.beam::before { left: 10px; } .beam::after { right: 10px; }
.swing { position: relative; width: var(--D); padding-top: calc(var(--D) * .44); margin-top: -6px; transform-origin: 50% 0; animation: sway 9s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.swing__rope { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--D) * .84); overflow: visible; pointer-events: none; }
.swing__rope path { fill: none; stroke: var(--brown); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1 0; }
.rig { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; cursor: pointer; filter: drop-shadow(0 22px 26px rgba(74,46,23,.3)); -webkit-tap-highlight-color: transparent; }
.rig__disc, .grig__coin .rig__disc, .last__coin .rig__disc { position: absolute; inset: 4%; border-radius: 50%; display: grid; place-items: center; container-type: inline-size; background: radial-gradient(circle at 35% 30%, #ffe9a0, var(--gold) 58%, var(--gold-deep)); box-shadow: inset 0 0 0 4cqw rgba(138,90,43,.2); }
.rig__disc b { font: italic 400 34cqw/1 var(--f-display); color: var(--brown-dark); letter-spacing: .02em; }
.rig__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.vein { position: absolute; width: 14%; aspect-ratio: 1; left: 16%; top: 10%; color: var(--hot); opacity: 0; transform: scale(.4) rotate(-12deg); transition: opacity .3s, transform .5s var(--ease-spring); pointer-events: none; }
.is-grumpy > .vein, .is-grumpy .vein { opacity: 1; transform: none; }
.is-grumpy .rig__img, .is-grumpy.buddy .buddy__img { animation: grump .55s ease-in-out 3; }
@keyframes grump { 0%, 100% { transform: translate(0, 0) rotate(0); } 12% { transform: translate(-1.6%, .4%) rotate(-3.2deg); } 28% { transform: translate(1.8%, -.5%) rotate(3.4deg); } 44% { transform: translate(-1.4%, .3%) rotate(-2.6deg); } 60% { transform: translate(1.2%, -.2%) rotate(2.2deg); } 80% { transform: translate(-.6%, 0) rotate(-1deg); } }
.rig:active .rig__img { transform: scale(.985); }
.bubble { position: absolute; z-index: 3; padding: 8px 15px 9px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; font: italic 400 clamp(17px, 1.5vw, 22px)/1.1 var(--f-display); white-space: nowrap; opacity: 0; transform: translateY(8px) scale(.9); transform-origin: 20% 100%; transition: opacity .5s var(--ease), transform .7s var(--ease-spring); pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: 22px; bottom: -9px; width: 14px; height: 14px; background: #fff; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) skew(8deg, 8deg); border-radius: 0 0 4px 0; }
.bubble.is-on { opacity: 1; transform: none; }
.bubble--rig { left: -3%; top: calc(var(--D) * .3); }
.rigstatus { margin-top: 14px; display: inline-flex; align-items: center; gap: 9px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rigstatus b { color: var(--zzz-deep); font-weight: 700; transition: color .4s; }
.rigstatus__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--zzz); animation: breathe 4s ease-in-out infinite; transition: background .4s; }
html[data-rig="awake"] .rigstatus b { color: var(--hot); }
html[data-rig="awake"] .rigstatus__dot { background: var(--hot); animation-duration: .5s; }
html[data-rig="stirring"] .rigstatus__dot { animation-duration: 1.6s; }

.hero__ui { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; position: relative; }
.hero__title { font: 400 clamp(66px, 9.4vw, 150px)/.84 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.hero__title .line { display: block; }
.hero__title .line--em { margin-left: .5em; }
.hero__title em, .h2 em { font-style: italic; color: var(--ink); background: linear-gradient(transparent 60%, rgba(242,176,30,.65) 60% 92%, transparent 92%); padding: 0 .08em; margin: 0 -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__tag { font: italic 400 clamp(26px, 2.8vw, 42px)/1.05 var(--f-display); color: var(--zzz-deep); max-width: 16em; }
.hero__sub { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); max-width: 31em; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__hint { font: italic 400 20px/1.2 var(--f-display); color: var(--ink-3); }
.hint--touch { display: none; }
@media (hover: none) { .hint--fine { display: none; } .hint--touch { display: inline; } }
.hero__scroll { position: absolute; z-index: 2; right: var(--gutter); bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.hero__scroll i { width: 2px; height: 38px; background: linear-gradient(var(--brown), transparent); animation: scrollCue 3.6s ease-in-out infinite; transform-origin: top; }
@keyframes scrollCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
/* drowsy entrance: it takes a moment to wake up the page, too */
@keyframes drowse { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero__ui > *, .rigwrap { animation: drowse 1.8s var(--ease) both; }
.hero__ui > :nth-child(2) { animation-delay: .15s; } .hero__ui > :nth-child(3) { animation-delay: .3s; } .hero__ui > :nth-child(4) { animation-delay: .45s; } .hero__ui > :nth-child(5) { animation-delay: .6s; } .hero__ui > :nth-child(6) { animation-delay: .75s; } .hero__ui > :nth-child(7) { animation-delay: .9s; } .hero__ui > :nth-child(8) { animation-delay: 1.05s; }

/* =============================================================
   TICKER
   ============================================================= */
.ticker { border-block: 3px solid var(--brown); background: var(--gold-2); padding: 13px 0; overflow: hidden; font: 600 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--brown-dark); }
.ticker__track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.ticker__row { display: flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap; }
.ticker__row svg { width: 15px; height: 15px; color: var(--zzz-deep); flex: none; }
.ticker b { font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }
.is-off .ticker__track, .ticker.is-off .ticker__track { animation-play-state: paused; }
html.alert-on .ticker__track, html.sleep .ticker__track { animation-play-state: paused; }

/* =============================================================
   SECTIONS
   ============================================================= */
section { position: relative; padding: clamp(88px, 11vw, 160px) 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin-bottom: 20px; }
.eyebrow svg { width: 16px; height: 16px; color: var(--zzz); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 60rem; }
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; max-width: none; }
.h2 { font: 400 clamp(44px, 6.4vw, 100px)/.96 var(--f-display); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.h2--xl { font-size: clamp(56px, 9vw, 140px); }
.h3 { font: 400 clamp(27px, 2.4vw, 34px)/1.05 var(--f-display); color: var(--ink); }
.lede { margin-top: 24px; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
.is-split > div { padding-bottom: .14em; margin-bottom: -.14em; }
.tag, .cat { font: 600 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.note-small { margin-top: 20px; font-size: 14px; color: var(--ink-3); max-width: 34em; }

/* paper cards with hammock-stitch borders */
.fig, .tile, .step, .fine, .riot__card, .gcard, .clip, .pair { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 14px 26px -18px rgba(74,46,23,.5); }
.fig::before, .tile::before, .step::before, .riot__card::before, .clip::before, .gcard::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(138,90,43,.28); border-radius: calc(var(--radius) - 8px); pointer-events: none; }
.fig, .tile, .step, .clip { transition: transform .8s var(--ease), box-shadow .8s; }
@media (hover: hover) { .fig:hover, .tile:hover, .step:hover, .clip:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 22px 30px -18px rgba(74,46,23,.55); } }

/* lore */
.lore { background: var(--paper); }
.lore__text { font: 400 clamp(36px, 5.6vw, 92px)/1.04 var(--f-display); letter-spacing: -.012em; color: var(--ink); max-width: min(100%, 20em); text-wrap: balance; }
.lore__text.is-words .w { display: inline-block; color: #c9b48a; }
.lore__text .w--key { font-style: italic; }
.no-motion .lore__text .w { color: var(--ink) !important; } .no-motion .lore__text .w--key { color: var(--zzz-deep) !important; }
.clips { margin-top: clamp(44px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.clip { padding: 30px 28px 28px; }
.clip:nth-child(1) { rotate: -1.2deg; } .clip:nth-child(2) { rotate: .8deg; } .clip:nth-child(3) { rotate: -.6deg; }
.clip::after { content: ""; position: absolute; left: 50%; top: -13px; width: 84px; height: 24px; translate: -50% 0; rotate: -2deg; background: rgba(242,176,30,.55); box-shadow: 0 1px 0 rgba(138,90,43,.2); }
.clip__big { margin: 8px 0 10px; font: 400 clamp(46px, 4.6vw, 68px)/1 var(--f-display); font-style: italic; color: var(--zzz-deep); }
.clip__txt { color: var(--ink-2); font-size: 16px; max-width: 24em; }
.lore__sig { display: flex; align-items: flex-start; gap: 16px; margin-top: 52px; font-size: 15px; color: var(--ink-2); max-width: 52em; }
.lore__sig img { width: 52px; height: 52px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--paper), 0 3px 0 2px var(--brown); }
.lore__sig b { color: var(--ink); }

/* how */
.how { background: var(--paper-2); }
.figs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fig { min-height: 270px; display: flex; flex-direction: column; gap: 14px; }
.fig__ico { width: 64px; height: 64px; margin: 6px 0; }
.fig p:not(.tag) { color: var(--ink-2); font-size: 16px; max-width: 26em; }
.pair { margin-top: 22px; background: var(--zzz-soft); border-color: rgba(47,123,232,.3); }
.pair__txt { margin-top: 10px; font: 400 clamp(24px, 2.6vw, 36px)/1.15 var(--f-display); color: var(--ink); max-width: 30em; }
.pair__txt b { font-weight: 400; font-style: italic; color: var(--zzz-deep); }
.fine { margin-top: 22px; background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line-hi); }
.fine ul { margin-top: 14px; display: grid; gap: 10px; }
.fine li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-2); max-width: 62em; }
.fine li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--brown-2); }

/* riot */
.riot { background: var(--paper); }
.riot__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.credit { display: inline-grid; place-items: center; flex: none; width: 58px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a0, var(--gold) 60%, var(--gold-deep)); box-shadow: inset 0 0 0 3px var(--brown), 0 4px 0 var(--brown-dark); color: var(--brown-dark); }
.credit svg { width: 52%; height: 52%; }
.credit--sm { width: 34px; margin-right: 12px; vertical-align: -8px; box-shadow: inset 0 0 0 2px var(--brown), 0 2px 0 var(--brown-dark); }
.riot__card { padding: 32px; }
.riot__top { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.riot__sym { font: 400 44px/1 var(--f-display); color: var(--ink); }
.riot__name { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.riot__rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 2px dotted var(--line-hi); font-size: 15px; flex-wrap: wrap; }
.riot__rows dt { color: var(--ink-3); font: 600 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.riot__rows dd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.riot__rows code { font-size: 14px; color: var(--ink); }
.js-rt-price { font-size: 20px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.chg { font: 600 13px/1 var(--f-mono); color: var(--zzz-deep); }
.chg.is-neg { color: var(--hot); }
.src { margin-top: 6px; font: 400 12px/1 var(--f-mono); color: var(--ink-3); }
.riot__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.riot__links .btn svg { width: 14px; height: 14px; }
.riot__foot { margin-top: 20px; font-size: 13px; color: var(--ink-3); }

/* nap mining game */
.mine { background: linear-gradient(var(--paper-2), var(--paper-3)); }
.gamebadge { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; background: var(--ink); color: var(--paper); font-size: 15px; max-width: 100%; }
.gamebadge svg { width: 20px; height: 20px; color: var(--gold-2); flex: none; }
.gamebadge b { color: var(--gold-2); }
.game { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.gcard { padding: 26px; }
.grig__top { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 34px; }
.grig__coin { position: relative; width: min(100%, 200px); aspect-ratio: 1; flex: none; filter: drop-shadow(0 14px 16px rgba(74,46,23,.3)); }
.grig__img { position: relative; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 80%; animation: breathe-coin 6s ease-in-out infinite; }
@keyframes breathe-coin { 0%, 100% { transform: rotate(-1.4deg) scale(1); } 50% { transform: rotate(1.4deg) scale(1.025); } }
.grig__img.is-twitch { animation: twitch 1.2s var(--ease-spring) 1; }
@keyframes twitch { 0% { transform: scale(1); } 15% { transform: scale(1.08) rotate(-5deg); } 35% { transform: scale(1.04) rotate(4deg); } 60% { transform: scale(1.02) rotate(-2deg); } 100% { transform: scale(1); } }
.bubble--g { left: 50%; bottom: calc(100% - 4px); translate: -50% 0; transform-origin: 50% 100%; }
.bubble--g::after { left: calc(50% - 7px); }
.gstats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gstats > div { padding: 10px 14px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.gstats dt { font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.gstats dd { margin-top: 6px; font: 600 22px/1 var(--f-mono); color: var(--ink); }
.gstats dd.is-bump { animation: bump .7s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.25); color: var(--zzz-deep); } 100% { transform: scale(1); } }
.pile { position: relative; height: 96px; margin-top: 18px; border-radius: 14px; overflow: hidden; background: linear-gradient(transparent, rgba(138,90,43,.1)); border-bottom: 4px solid var(--brown-2); }
.cc { position: absolute; left: calc(var(--x) * 1% - 13px); bottom: calc(var(--b) * 1px); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe9a0, var(--gold) 60%, var(--gold-deep)); box-shadow: inset 0 0 0 2px var(--brown), 0 2px 0 var(--brown-dark); color: var(--brown-dark); }
.cc svg { width: 12px; height: 12px; }
.cc.is-drop { animation: ccdrop 1s var(--d, 0s) cubic-bezier(.3, .8, .4, 1) both; }
@keyframes ccdrop { 0% { transform: translateY(-190px) rotate(-200deg); opacity: 0; } 12% { opacity: 1; } 68% { transform: translateY(0) rotate(0); } 80% { transform: translateY(-12px); } 92% { transform: translateY(0); } 100% { transform: none; } }
.gnote { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.gtimer { display: flex; align-items: center; gap: 14px; }
.gtimer__label { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brown); min-width: 8ch; }
.gtimer__bar { flex: 1; height: 14px; border-radius: 10px; background: rgba(138,90,43,.16); overflow: hidden; box-shadow: inset 0 2px 0 rgba(74,46,23,.12); }
.gtimer__bar i { display: block; height: 100%; border-radius: 10px; transform-origin: 0 50%; transform: scaleX(var(--t, 1)); background: linear-gradient(90deg, var(--zzz), #6fb0ff); }
.gtimer.is-low .gtimer__bar i { background: linear-gradient(90deg, var(--hot), var(--gold)); }
.gtimer.is-low .gtimer__num { color: var(--hot); animation: breathe 1s ease-in-out infinite; }
.gtimer__num { font: 700 20px/1 var(--f-mono); min-width: 5ch; text-align: right; color: var(--ink); }
.gpot { margin: 12px 0 18px; font-size: 14px; color: var(--ink-2); }
.gpot b { color: var(--ink); font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 540px; margin: 0 auto; }
.grid.is-locked .blk { pointer-events: none; }
.blk { position: relative; aspect-ratio: 1; min-width: 0; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 2px var(--brown-2), 0 5px 0 var(--brown); color: var(--ink-3); font: 600 12px/1 var(--f-mono); transition: transform .3s var(--ease-spring), box-shadow .25s, background .4s, opacity .5s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.blk:hover { background: #fff; }
.blk:active { transform: translateY(4px) scale(.95); box-shadow: inset 0 0 0 2px var(--brown-2), 0 1px 0 var(--brown); }
.blk.pop { animation: blkpop .5s var(--ease-spring); }
@keyframes blkpop { 0% { transform: translateY(4px) scale(.93); } 55% { transform: translateY(-3px) scale(1.06); } 100% { transform: none; } }
.blk__n { position: absolute; left: 8px; top: 6px; }
.blk__crowd { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--c, 0) * 62%); background: linear-gradient(rgba(47,123,232,.05), rgba(47,123,232,.2)); transition: height .6s var(--ease); pointer-events: none; }
.blk__mine { position: relative; display: none; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; background: var(--zzz); color: #fff; font: 700 14px/30px var(--f-mono); text-align: center; box-shadow: 0 2px 0 var(--zzz-deep); }
.blk.has-mine { background: #eaf2ff; box-shadow: inset 0 0 0 2px var(--zzz), 0 5px 0 var(--zzz-deep); }
.blk.has-mine .blk__mine { display: block; }
.blk.is-scan { background: var(--gold-2); transform: translateY(-2px); }
.blk.is-dim { opacity: .5; }
.blk.is-hit { background: var(--gold); opacity: 1; box-shadow: inset 0 0 0 3px var(--brown-dark), 0 0 0 5px rgba(242,176,30,.55), 0 5px 0 var(--gold-deep); color: var(--brown-dark); animation: hitpulse 1.1s ease-in-out 3; z-index: 1; }
@keyframes hitpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
.plus { position: absolute; left: 50%; top: 22%; translate: -50% 0; font: 700 14px/1 var(--f-mono); color: var(--zzz-deep); pointer-events: none; animation: plusup .9s var(--ease) forwards; z-index: 2; }
@keyframes plusup { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-34px); } }
.gctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line-hi); }
.seg__b { min-width: 52px; height: 44px; border-radius: 999px; font: 700 16px/1 var(--f-mono); color: var(--ink-2); transition: background .3s, transform .35s var(--ease-spring), box-shadow .3s; }
.seg__b[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: inset 0 0 0 2px var(--brown), 0 3px 0 var(--brown); }
.seg__b:active { transform: scale(.94); }
.gmsg { margin-top: 18px; min-height: 3.2em; font-size: 16px; color: var(--ink); }
.gfoot { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.game__nojs { color: var(--ink-2); text-align: center; padding: 20px; }

/* live */
.live { background: var(--paper); }
.board { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.tile__label { font: 600 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brown); }
.tile__num { font: 600 clamp(26px, 2.6vw, 38px)/1 var(--f-mono); letter-spacing: -.03em; color: var(--ink); margin-top: auto; }
.tile__big { white-space: nowrap; font: 600 clamp(40px, 5.2vw, 80px)/.9 var(--f-mono); letter-spacing: -.04em; margin-top: auto; color: var(--ink); }
.tile__meta { font: 400 13px/1.4 var(--f-mono); color: var(--ink-3); min-height: 1.4em; }
.tile--paid { grid-column: 1; grid-row: 1 / span 2; }
.tile--grad { grid-column: 1 / -1; min-height: 0; }
.bar { height: 10px; border-radius: 8px; background: rgba(138,90,43,.16); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 8px; transition: width 1.4s var(--ease); }
.board[data-state="pre"] .tile { border-style: dashed; }
.board[data-state="pre"] :is(.tile__num, .tile__big) { color: var(--ink-3); opacity: .6; }
.board[data-state="pre"] .tile--price { border-style: solid; }
.board[data-state="pre"] .tile--price .tile__num { color: var(--ink); opacity: 1; }
.board__off { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-1.5deg); text-align: center; padding: 22px 30px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 3px var(--brown), 0 6px 0 3px var(--brown-dark), 0 22px 30px -12px rgba(74,46,23,.5); z-index: 2; width: min(92%, 440px); }
.board[data-state="pre"] .board__off { display: block; }
.board__off-t { font: italic 400 36px/1 var(--f-display); color: var(--ink); }
.board__off-s { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.board__stale { margin-top: 12px; font: 400 12px/1.4 var(--f-mono); color: var(--ink-3); }
.tile.is-tick .tile__big, .tile.is-tick .tile__num { animation: tick 1.2s var(--ease); }
@keyframes tick { 0% { color: var(--zzz-deep); transform: scale(1.06); } 100% { transform: none; } }
.chart { margin-top: 22px; }
.chart__frame { position: relative; height: clamp(min(440px, calc(100svh - var(--nav-h) - 32px)), 62vh, 700px); border-radius: var(--radius); border: 2px solid var(--line-hi); background: var(--card); overflow: hidden; background-image: linear-gradient(rgba(138,90,43,.1) 2px, transparent 2px), linear-gradient(90deg, rgba(138,90,43,.1) 2px, transparent 2px); background-size: 48px 48px; }
.chart__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chart__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 10px; }
.chart__path { position: absolute; left: 6%; right: 6%; top: 24%; width: 88%; height: 34%; opacity: .8; }
.chart__line { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.chart__msg { position: relative; font: italic 400 clamp(28px, 3vw, 36px)/1.1 var(--f-display); color: var(--ink); margin-top: 18%; max-width: 20em; }
.chart__sub { position: relative; font: 400 13px/1.4 var(--f-mono); color: var(--ink-3); }
.chart__links { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.chart__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; box-shadow: inset 0 0 0 2px var(--line-hi); }
.chart__links a:hover { background: var(--gold-2); }
.source { margin-top: 18px; font: 400 12px/1.6 var(--f-mono); color: var(--ink-3); max-width: 70em; }

/* anatomy */
.anatomy { background: var(--paper-2); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); grid-auto-flow: dense; gap: 16px; }
.bento .tile { justify-content: flex-start; }
.bento .tile--tax { grid-column: span 2; grid-row: span 2; }
.bento .tile--w2 { grid-column: span 2; }
.cat { position: absolute; right: 24px; top: 22px; }
.tile__huge { font: italic 400 clamp(120px, 17vw, 250px)/.8 var(--f-display); letter-spacing: -.03em; margin: auto 0 12px; color: var(--zzz-deep); padding-bottom: .05em; text-shadow: 0 .04em 0 var(--gold-2); }
.tile__val { font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--f-display); color: var(--ink); margin-top: auto; }
.tile__note { font-size: 14px; color: var(--ink-2); }
.footnote { margin-top: 36px; text-align: center; font: italic 400 21px/1.4 var(--f-display); color: var(--ink-3); }

/* buy */
.buy { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__n { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 21px/1 var(--f-mono); color: var(--ink); background: radial-gradient(circle at 35% 30%, #ffe9a0, var(--gold) 60%, var(--gold-deep)); box-shadow: inset 0 0 0 3px var(--brown), 0 4px 0 var(--brown-dark); margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 16px; }
.buy__cta { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.wallets { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.wallets p { width: 100%; text-align: center; color: var(--ink-2); font-size: 15px; }
.buy__note { margin: 44px auto 0; display: flex; gap: 12px; max-width: 46em; font-size: 14px; color: var(--ink-2); padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--line); }
.buy__note svg { width: 20px; height: 20px; flex: none; color: var(--zzz); margin-top: 2px; }

/* faq */
.faq { background: var(--paper-2); }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 30px); margin-bottom: 0; }
.faq__secret { margin-top: 40px; font: italic 400 21px/1.3 var(--f-display); color: var(--zzz-deep); }
.faq__list { display: grid; gap: 12px; }
.qa { border: 2px solid var(--line); border-radius: 18px; background: var(--card); }
.qa summary { list-style: none; cursor: pointer; position: relative; display: block; padding: 22px 64px 22px 26px; font: 400 clamp(22px, 2vw, 28px)/1.15 var(--f-display); color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "z"; position: absolute; right: 26px; top: 50%; margin-top: -16px; font: italic 400 34px/1 var(--f-display); color: var(--zzz); transition: transform .6s var(--ease), color .4s; }
.qa[open] summary::after { content: "Z"; transform: rotate(-12deg) scale(1.1); color: var(--zzz-deep); }
.qa__a { padding: 0 26px 24px; color: var(--ink-2); font-size: 16px; max-width: 42em; }
.qa__a a { color: var(--zzz-deep); text-decoration: underline; text-underline-offset: 3px; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: clip; transition: block-size .6s var(--ease), content-visibility .6s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}

/* last: night falls */
.last { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; text-align: center; overflow: hidden; color: var(--night-ink); background: radial-gradient(90% 70% at 50% 0%, var(--night-2), var(--night) 70%); }
.last::before { content: ""; position: absolute; left: 6vw; top: 8%; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 14vw 6vh #ffe9a8, 30vw 2vh #fff, 52vw 9vh #fff, 71vw 4vh #ffe9a8, 84vw 11vh #fff, 92vw 3vh #fff, 20vw 15vh #fff, 62vw 16vh #ffe9a8; opacity: .7; animation: twinkle 7s ease-in-out infinite alternate; }
.last .h2, .last .eyebrow { color: var(--night-ink); }
.last .eyebrow { color: var(--gold-2); justify-content: center; }
.last .h2 em { color: var(--night-ink); background: linear-gradient(transparent 60%, rgba(47,123,232,.65) 60% 92%, transparent 92%); }
.last__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 0; }
.last__coin { position: relative; width: min(52vw, 34svh, 300px); aspect-ratio: 1; margin: 0 auto 36px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); }
.last__img { position: relative; width: 100%; height: 100%; object-fit: contain; animation: breathe-coin 8s ease-in-out infinite; }
.lz { position: absolute; font: 700 clamp(26px, 4vw, 44px)/1 var(--f-sans); color: var(--zzz); -webkit-text-stroke: 4px #fff; paint-order: stroke fill; opacity: 0; animation: zfloat 7s ease-in-out infinite; pointer-events: none; }
.lz--1 { right: 2%; top: 10%; } .lz--2 { right: -8%; top: -2%; animation-delay: 2.3s; font-size: clamp(34px, 5vw, 56px); } .lz--3 { right: 12%; top: -10%; animation-delay: 4.6s; }
@keyframes zfloat { 0% { opacity: 0; transform: translate(0, 10px) rotate(-8deg) scale(.7); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -70px) rotate(10deg) scale(1.2); } }
@keyframes twinkle { from { opacity: .35; } to { opacity: .9; } }
.last__sub { margin-top: 20px; color: var(--night-ink-2); font-size: clamp(17px, 1.35vw, 20px); }
.last .ca { margin-top: 32px; background: rgba(255,248,232,.08); box-shadow: inset 0 0 0 2px rgba(255,216,107,.45); }
.last .ca__label { color: var(--gold-2); } .last .ca__value { color: var(--night-ink); } .last .ca[data-state="empty"] .ca__value { color: var(--night-ink-2); }
.last .ca__copy { background: var(--gold-2); color: var(--ink); } .last .ca__copy:hover { background: var(--gold); }
.last__cta, .share { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.share { align-items: center; margin-top: 36px; }
.share__t { font: 600 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--night-ink-2); margin-right: 6px; }
.share .btn svg { width: 15px; height: 15px; fill: currentColor; }

/* footer */
.footer { padding: 40px 0 calc(40px + var(--safe-bottom)); overflow: hidden; background: #131833; color: var(--night-ink-2); }
.footer__word { font: italic 400 24vw/.8 var(--f-display); text-align: center; letter-spacing: .02em; background: linear-gradient(180deg, rgba(255,216,107,.35), rgba(255,216,107,0)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: rgba(255,216,107,.12); margin-bottom: 40px; padding: .05em .1em 0; user-select: none; }
.footer .brand__word { color: var(--night-ink); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 2px dashed rgba(255,216,107,.22); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.footer__links a:hover { color: var(--gold-2); }
.parody { margin-top: 28px; font-size: 16px; color: var(--night-ink); max-width: 900px; }
.parody b { color: var(--gold-2); }
.legal { margin-top: 14px; font-size: 13px; line-height: 1.65; color: var(--night-ink-2); max-width: 900px; }
.copy { margin-top: 20px; font: 400 12px/1 var(--f-mono); color: var(--night-ink-2); }

/* dock + toast */
.dock { position: fixed; z-index: 100; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); display: none; align-items: center; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(255,248,232,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 2px var(--line-hi), 0 18px 34px -10px rgba(74,46,23,.5); transform: translateY(140%); transition: transform .7s var(--ease); }
.dock.is-on { transform: none; }
.dock .ca { flex: 1; min-width: 0; background: none; box-shadow: none; padding: 0 0 0 10px; gap: 8px; }
.dock .ca__copy { height: 36px; padding: 0 12px; }
@media (max-width: 760px) { [data-launch="live"] .dock { display: flex; } }
.toast { position: fixed; z-index: 180; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 24px); max-width: min(92vw, 520px); padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 15px/1.35 var(--f-sans); text-align: center; opacity: 0; pointer-events: none; transition: opacity .4s, transform .6s var(--ease); box-shadow: 0 8px 0 -2px rgba(0,0,0,.2); }
.toast.is-top { bottom: auto; top: calc(var(--nav-h) + 16px); transform: translate(-50%, -24px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   HEAT-WAVE THERMOMETER + FAKE GRID ALERT
   ============================================================= */
.heat { position: fixed; z-index: 90; right: max(4px, calc(var(--gutter) / 2 - 22px)); top: 52%; translate: 0 -50%; width: 46px; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; font: 600 10px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-3); transition: opacity .8s; }
.heat__label { letter-spacing: .2em; font-size: 9.5px; margin-bottom: 4px; }
.heat__tube { --h: 0; position: relative; width: 14px; height: clamp(140px, 30vh, 260px); border-radius: 10px 10px 0 0; background: rgba(255,248,232,.92); box-shadow: inset 0 0 0 2px var(--brown), 0 4px 10px -4px rgba(74,46,23,.4); }
.heat__mercury { position: absolute; left: 3px; right: 3px; bottom: 0; height: calc(var(--h) * 100%); background: linear-gradient(#ff8a5c, var(--hot)); border-radius: 6px 6px 0 0; transition: height 1.6s var(--ease-sleepy); }
.heat__tick { position: absolute; left: -5px; bottom: calc(var(--p) * 100%); width: 7px; height: 2px; background: var(--brown); }
.heat__tick em { position: absolute; right: calc(100% + 3px); top: -4px; font-style: normal; font-size: 9px; color: var(--ink-3); }
.heat__line { position: absolute; left: -9px; right: -9px; bottom: calc(var(--p) * 100%); height: 0; border-top: 2px dashed var(--hot); }
.heat__line em { position: absolute; right: calc(100% - 4px); top: -14px; font-style: normal; font-size: 8.5px; color: var(--hot); }
.heat__bulb { position: relative; z-index: 1; width: 28px; height: 28px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9a70, var(--hot)); box-shadow: inset 0 0 0 2px var(--brown), 0 0 0 0 rgba(224,67,42,0); transition: box-shadow 1.6s; }
.heat.is-hot .heat__bulb { box-shadow: inset 0 0 0 2px var(--brown), 0 0 16px 4px rgba(224,67,42,.55); }
.heat__read { margin-top: 4px; font-size: 13px; color: var(--ink); font-weight: 700; transition: color .6s; }
.heat.is-hot .heat__read { color: var(--hot); }
.heat__fans { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.fan { width: 20px; height: 20px; color: var(--brown-dark); }
.heat__fanlbl { font-size: 9px; letter-spacing: .12em; }
.heat.is-hot .heat__fanlbl { color: var(--hot); }
.alert { position: fixed; z-index: 105; left: 50%; top: calc(var(--nav-h) + var(--safe-top) + 14px); translate: -50% -190%; width: min(560px, calc(100vw - 2 * var(--gutter) - 28px)); transform-origin: 50% -50px; pointer-events: none; transition: translate 1.4s cubic-bezier(.3, 1.45, .5, 1); }
.alert.is-on { translate: -50% 0; pointer-events: auto; animation: asway 6s ease-in-out 1.4s infinite alternate; }
@keyframes asway { from { rotate: -.7deg; } to { rotate: .7deg; } }
.alert__cord { position: absolute; top: -60px; width: 3px; height: 66px; background: var(--brown); border-radius: 2px; }
.alert__cord--l { left: 16%; } .alert__cord--r { right: 16%; }
.alert__card { position: relative; overflow: hidden; border-radius: 16px; background: #fff3cf; box-shadow: 0 0 0 3px var(--brown-dark), 0 8px 0 3px var(--brown-dark), 0 28px 40px -12px rgba(74,46,23,.6); }
.alert__head { padding: 12px 18px 10px; font: 700 13px/1.2 var(--f-mono); letter-spacing: .14em; color: var(--gold-2); background: var(--brown-dark); }
.alert__head::before { content: ""; display: block; height: 7px; margin: -12px -18px 10px; background: repeating-linear-gradient(-45deg, var(--gold) 0 12px, var(--brown-dark) 12px 24px); }
.alert__tri { color: var(--gold); margin-right: 4px; }
.alert__body { padding: 14px 18px 4px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.alert__fine { padding: 0 18px; font: 400 12px/1.4 var(--f-mono); color: var(--ink-3); margin-top: 4px; }
.alert__x { margin: 12px 18px 16px; padding: 10px 16px; border-radius: 999px; font: 600 14px/1 var(--f-sans); background: var(--ink); color: var(--paper); min-height: 44px; }
.alert__x:hover { background: var(--brown-dark); }

/* =============================================================
   SLEEPY CURSOR BUDDY
   ============================================================= */
.buddy { position: fixed; left: 0; top: 0; z-index: 120; width: 64px; height: 64px; pointer-events: none; opacity: 0; transition: opacity .8s; will-change: transform; }
.buddy.is-on { opacity: 1; }
.buddy__in { position: relative; width: 100%; height: 100%; animation: buddybob 5s ease-in-out infinite; }
@keyframes buddybob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(5px) rotate(4deg); } }
.buddy__img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(74,46,23,.3)); }
.bubble--buddy { left: 52px; top: -34px; font-size: 18px; }
.buddy .vein { left: 10%; top: 4%; }
@media (hover: none), (pointer: coarse) { .buddy { display: none; } }

/* =============================================================
   SLEEP MODE: dim the page, tuck it into bed
   ============================================================= */
.sleepveil { position: fixed; inset: 0; z-index: 155; pointer-events: none; opacity: 0; transition: opacity 2.4s var(--ease-sleepy); background: linear-gradient(rgba(40,48,110,.62), rgba(58,44,100,.5)); mix-blend-mode: multiply; }
html.sleep .sleepveil { opacity: 1; }
.stars { position: fixed; left: 8vw; top: 7vh; z-index: 156; width: 3px; height: 3px; border-radius: 50%; background: #fff; pointer-events: none; opacity: 0; transition: opacity 3s 1s; }
.stars--a { box-shadow: 14vw 4vh #fff, 33vw 9vh 1px #ffe9a8, 47vw 2vh #fff, 66vw 7vh 1px #fff, 81vw 3vh #ffe9a8, 90vw 10vh #fff, 22vw 14vh #fff, 58vw 15vh #ffe9a8; }
.stars--b { left: 3vw; top: 11vh; box-shadow: 20vw 2vh #ffe9a8, 38vw 12vh #fff, 55vw 5vh 1px #fff, 74vw 12vh #fff, 86vw 6vh 1px #ffe9a8, 96vw 14vh #fff, 11vw 17vh #fff; }
html.sleep .stars--a { opacity: 1; animation: twinkle 5s 3.5s ease-in-out infinite alternate; }
html.sleep .stars--b { opacity: 1; animation: twinkle 7s 3.5s ease-in-out infinite alternate-reverse; }
.blanket { position: fixed; left: -2%; right: -2%; bottom: 0; z-index: 158; height: clamp(130px, 21vh, 230px); translate: 0 112%; pointer-events: none; transition: translate 2.6s cubic-bezier(.25, .7, .25, 1); border-radius: 56px 56px 0 0 / 30px 30px 0 0; background:
    repeating-linear-gradient(45deg, transparent 0 39px, rgba(255,236,190,.4) 39px 41px),
    repeating-linear-gradient(-45deg, transparent 0 39px, rgba(255,236,190,.4) 39px 41px),
    linear-gradient(#4f74bd, #3a58a0);
  box-shadow: 0 -12px 34px rgba(20,24,60,.4), inset 0 4px 0 rgba(255,255,255,.22); }
html.sleep .blanket { translate: 0 0; animation: tuck 1.4s 2.5s var(--ease) both; }
@keyframes tuck { 0% { transform: translateY(0); } 35% { transform: translateY(-12px) scaleY(1.03); } 100% { transform: translateY(0); } }
.blanket__hem { position: absolute; left: 0; right: 0; top: 0; height: 36px; z-index: 2; border-radius: 56px 56px 0 0 / 30px 30px 0 0; background: var(--paper); box-shadow: inset 0 -3px 0 var(--paper-3); border-bottom: 3px dashed rgba(138,90,43,.5); }
.blanket__pal { position: absolute; right: 9%; top: calc(-1 * clamp(44px, 6.4vw, 70px)); width: clamp(64px, 9vw, 96px); aspect-ratio: 1; z-index: 1; }
.blanket__pal img { width: 100%; height: 100%; object-fit: contain; }
.bz { position: absolute; font: 700 22px/1 var(--f-sans); color: var(--zzz); -webkit-text-stroke: 3px #fff; paint-order: stroke fill; opacity: 0; animation: zfloat 5s ease-in-out infinite; }
.bz--1 { right: -6px; top: -4px; } .bz--2 { right: -20px; top: -26px; animation-delay: 1.6s; font-size: 28px; } .bz--3 { right: 6px; top: -40px; animation-delay: 3.2s; }
html:not(.sleep) .bz { animation: none; }
.sleepui { position: fixed; z-index: 160; left: 50%; bottom: calc(clamp(6px, 1.6vh, 14px) + var(--safe-bottom)); translate: -50% 0; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(27,33,71,.88); color: var(--night-ink); font: italic 400 20px/1 var(--f-display); white-space: nowrap; opacity: 0; transition: opacity 1.2s 2s; }
html.sleep .sleepui { opacity: 1; }
html:not(.sleep) .sleepui { transition-delay: 0s; pointer-events: none; }
.sleepui[hidden] { display: none !important; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1180px) { .nav__links a { padding: 8px 12px; font-size: 14px; } }
@media (max-width: 960px) {
  .hero { align-items: flex-start; min-height: 0; padding-bottom: 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .rigwrap { --D: min(72vw, 42svh, 340px); }
  .swing { padding-top: calc(var(--D) * .34); }
  .swing__rope { height: calc(var(--D) * .74); }
  .hero__scroll { display: none; }
  .hero__title { font-size: clamp(66px, 20vw, 130px); }
  .clips, .figs { grid-template-columns: 1fr; }
  .fig { min-height: 0; }
  .riot__grid, .faq__grid, .game { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .board { grid-template-columns: 1fr 1fr; }
  .tile--paid { grid-column: 1 / -1; grid-row: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .tile--tax { grid-row: span 1; }
  .grig__top { flex-direction: row; align-items: center; padding-top: 38px; gap: 18px; }
  .grig__coin { width: 112px; }
  .gstats { flex: 1; }
}
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .heat__tick em, .heat__line em { display: none; } }
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: clamp(72px, 14vw, 100px) 0; }
  .btn { height: 52px; padding: 0 22px; }
  .btn--sm { height: 44px; }
  .btn--lg { height: 58px; font-size: 17px; }
  .ca { padding-left: 14px; gap: 10px; }
  .ca--lg { padding-left: 16px; }
  .section-head--row { align-items: flex-start; }
  .footer__word { font-size: 30vw; }
  .last { min-height: 0; padding-top: 72px; }
  .heat { width: 30px; right: 2px; }
  .heat__tick em, .heat__line em { display: none; }
  .heat__tube { width: 11px; height: clamp(110px, 24vh, 200px); }
  .heat__bulb { width: 22px; height: 22px; }
  .heat__label { font-size: 8px; letter-spacing: .12em; }
  .heat__read { font-size: 10.5px; }
  .fan { width: 15px; height: 15px; }
  .heat__fanlbl { display: none; }
  .gamebadge { font-size: 14px; }
  .gcard { padding: 20px; }
  .sleepui { font-size: 17px; gap: 10px; padding-left: 16px; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .tile { padding: 22px; } .qa summary { padding: 18px 56px 18px 20px; } .qa__a { padding: 0 20px 20px; } .grid { gap: 6px; } .blk { border-radius: 13px; } .gtimer__label { min-width: 0; font-size: 11px; } }
@media (max-width: 419px) { .bento { grid-template-columns: 1fr; } .bento .tile--tax, .bento .tile--w2 { grid-column: auto; } }
@media (max-width: 374px) { .board { gap: 10px; } .hero__cta .btn { padding: 0 18px; } .ca__label { display: none; } .grig__coin { width: 90px; } }
@media (max-height: 520px) { .heat { display: none; } }
@media (pointer: coarse) { .mini { width: 44px; height: 44px; } .nav__links a { min-height: 44px; } .btn--sm { min-height: 44px; } }

/* low tier: no blur, no grain, no ambient drift */
[data-fx="low"] .grain, [data-fx="low"] .hero__sun { display: none; }
[data-fx="low"] .sleepveil { mix-blend-mode: normal; background: rgba(36,40,96,.5); }

/* reduced motion: nothing drifts, nothing shakes; state changes still happen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .ticker__track { animation: marquee 240s linear infinite !important; animation-duration: 240s !important; animation-iteration-count: infinite !important; }
  .swing { transform: none; }
  .grain { display: none; }
  .alert.is-on { rotate: 0deg; }
  .heat__mercury { transition: none; }
}
html.no-motion .swing, html.static-fx .swing { animation: none; }

/* forced colors */
@media (forced-colors: active) {
  .hero__title em, .h2 em { background: none; }
  .grain, .sleepveil { display: none; }
  .fig, .tile, .step, .fine, .riot__card, .gcard, .qa, .ca, .pill, .clip, .pair { border: 1px solid CanvasText; }
  .btn { border: 1px solid CanvasText; }
}

/* overflow guards */
.riot__grid > *, .faq__grid > *, .board > *, .bento > *, .figs > *, .steps > *, .game > *, .clips > * { min-width: 0; }
