:root {
  --bg: #03110d;
  --bg-2: #061a14;
  --panel: rgba(9, 22, 19, .88);
  --panel-line: #24403a;
  --text: #e8f5ef;
  --dim: #8fb0a6;
  --green: #22ff7a;
  --green-dk: #0fbf55;
  --red: #ff3d5e;
  --orange: #ffa10a;
  --orange-2: #ff7a00;
  --ink: #0b0b0b;

  --f-stonk: "Bowlby One", Impact, "Arial Black", sans-serif;
  --f-body: "Fredoka", system-ui, sans-serif;
  --f-doge: "Comic Neue", "Comic Sans MS", cursive;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: max(16px, env(safe-area-inset-left));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    linear-gradient(rgba(34, 255, 122, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(34, 255, 122, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  -webkit-tap-highlight-color: rgba(255, 161, 10, .3);
  touch-action: manipulation;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2 { line-height: 1; text-wrap: balance; }
section { scroll-margin-top: 80px; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.green { color: var(--green); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: 10px 14px;
  border: 3px solid var(--ink); border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- STONK lettering (matches the banner) ---------- */
.stonk {
  font-family: var(--f-stonk);
  font-weight: 400;
  color: #fff;
  letter-spacing: -.01em;
  -webkit-text-stroke: .14em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--ink), 0 .16em .35em rgba(0, 0, 0, .6);
  font-style: italic;
  transform: skewX(-7deg);
  transform-origin: left bottom;
}
.stonk.center { transform-origin: center bottom; }
.stonk--xl { font-size: clamp(76px, 13vw, 168px); line-height: .95; }
.stonk--lg { font-size: clamp(42px, 6.4vw, 80px); }
.stonk--md { font-size: clamp(30px, 4vw, 46px); }
.stonk--sm { font-size: 30px; -webkit-text-stroke-width: .16em; }

.pill {
  display: inline-block;
  font-family: var(--f-body); font-weight: 700; font-style: normal;
  color: var(--ink);
  background: linear-gradient(180deg, #ffc23d 0%, var(--orange) 45%, var(--orange-2) 100%);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: .08em .5em .12em;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 6px 0 var(--ink);
  -webkit-text-stroke: 0; text-shadow: none;
  transform: skewX(-7deg);
  font-size: .5em;
  vertical-align: middle;
  letter-spacing: .01em;
}
.pill--lg { font-size: clamp(24px, 3.4vw, 40px); margin-top: 18px; }

.sub { margin-top: 18px; color: var(--dim); font-size: 19px; }

/* ---------- Ticker tape ---------- */
.tape {
  background: #000; border-bottom: 1px solid var(--panel-line);
  font-family: var(--f-mono); font-size: 13px; overflow: hidden; white-space: nowrap;
}
.tape__track { display: inline-flex; gap: 40px; padding: 8px 0; animation: tape 45s linear infinite; }
.tape:hover .tape__track { animation-play-state: paused; }
.tape__item b { color: #fff; margin-right: 8px; }
.up { color: var(--green); }
.down { color: var(--red); }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape__track { animation: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 10px var(--gutter);
  background: rgba(3, 17, 13, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-line);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand img { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink); }
.nav__brand .stonk { transform: skewX(-7deg) translateY(-2px); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  text-decoration: none; padding: 8px 12px; border-radius: 10px;
  color: var(--dim); font-weight: 600; transition: color .15s, background-color .15s;
}
.nav__links a:hover { color: var(--green); background: rgba(34,255,122,.08); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__x {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px;
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--text);
  background: rgba(0,0,0,.35); border: 2px solid var(--panel-line); border-radius: 14px;
  transition: color .15s, border-color .15s;
}
.nav__x:hover { color: var(--green); border-color: var(--green); }
@media (max-width: 800px) {
  .nav__links { display: none; }
  .nav__right { margin-left: auto; }
}
@media (max-width: 400px) { .nav__brand .stonk { display: none; } }

/* ---------- Loading screen ---------- */
.loader { display: none; }
html.is-loading .loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(rgba(34, 255, 122, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(34, 255, 122, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
  /* if the script ever breaks, never trap the page behind the loader */
  animation: loaderFailsafe .5s ease-in 9s forwards;
}
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
html.lock-scroll { overflow: hidden; }
.loader.is-done { translate: 0 -100%; transition: translate .75s cubic-bezier(.7, 0, .3, 1); }

.pulse {
  position: absolute; left: 50%; top: 50%;
  width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34,255,122,.4) 0 1.5%, transparent 9%),
    repeating-radial-gradient(circle, transparent 0 3.3%, rgba(34,255,122,.4) 3.5% 3.85%, transparent 4.05% 5.2%);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%);
  mask: radial-gradient(circle, #000 25%, transparent 70%);
  animation: pulseGrow 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes pulseGrow { from { scale: .12; opacity: 0; } 30% { opacity: 1; } to { scale: 1.1; } }

.loader__inner {
  position: relative; width: min(440px, 86vw);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.stonk--intro { font-size: clamp(64px, 11vw, 120px); line-height: .9; transform-origin: center bottom; }
.loader__title { animation: popIn .6s cubic-bezier(.3, 1.5, .5, 1) .1s both; }
.loader__pill { font-size: clamp(18px, 2.6vw, 26px); animation: popIn .5s cubic-bezier(.3, 1.5, .5, 1) .35s both; }
@keyframes popIn { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }

.mon {
  width: min(100%, 48vh); margin-top: 8px; padding: 12px; border-color: #2f5a50;
  box-shadow: 0 0 0 1px rgba(34,255,122,.15), 0 0 70px rgba(34,255,122,.2), 0 30px 80px rgba(0,0,0,.6);
  animation: monIn .6s cubic-bezier(.2, .9, .3, 1.2) .55s both;
}
@keyframes monIn { from { scale: .6; opacity: 0; translate: 0 30px; } to { scale: 1; opacity: 1; translate: 0 0; } }
.mon__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 2px 4px 10px; font-family: var(--f-mono); font-size: 14px; font-weight: 700;
}
.mon__dots { display: flex; gap: 6px; }
.mon__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mon__dots i:nth-child(2) { background: #febc2e; }
.mon__dots i:nth-child(3) { background: #28c840; }
.mon__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 12px; border: 2px solid var(--ink); background: #000;
}
.ch { position: absolute; inset: 0; opacity: 0; transition: opacity .1s; }
.ch--on { opacity: 1; }
.ch img { width: 100%; height: 100%; object-fit: cover; }
.ch--face img { object-position: 50% 25%; }
.mon__fx {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px),
    radial-gradient(100% 100% at 50% 50%, transparent 60%, rgba(0,0,0,.5) 100%);
}
.mon__static {
  position: absolute; inset: -20%; pointer-events: none; opacity: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");
}
.mon__screen.is-static .mon__static { opacity: .9; }

.loadbar {
  width: 100%; height: 18px; margin-top: 10px; overflow: hidden;
  background: #0d2a22; border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink);
  animation: popIn .4s ease-out .7s both;
}
.loadbar i {
  display: block; height: 100%; width: 100%;
  background: repeating-linear-gradient(-45deg, var(--green) 0 10px, var(--green-dk) 10px 20px);
  transform-origin: left; scale: var(--p, 0) 1;
}
.loader__msg { font-family: var(--f-mono); font-size: 14px; color: var(--green); min-height: 1.5em; }
.loader__skip {
  position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 44px; padding: 0 16px; cursor: pointer;
  background: rgba(0,0,0,.4); color: var(--dim); border: 1.5px solid var(--panel-line); border-radius: 12px;
  font: 700 14px var(--f-mono); transition: color .15s, border-color .15s;
}
.loader__skip:hover { color: var(--green); border-color: var(--green); }
@media (prefers-reduced-motion: reduce) {
  .pulse, .loader__title, .loader__pill, .mon, .loadbar { animation: none; }
  .loader.is-done { translate: none; opacity: 0; transition: opacity .3s; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 26px;
  font-family: var(--f-body); font-weight: 700; font-size: 19px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; color: var(--ink);
  border: 4px solid var(--ink); border-radius: 16px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 6px 0 var(--ink);
  transition: transform .1s ease-out, box-shadow .1s ease-out, filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 8px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 1px 0 var(--ink); }
.btn--orange { background: linear-gradient(180deg, #ffc23d 0%, var(--orange) 45%, var(--orange-2) 100%); }
.btn--green { background: linear-gradient(180deg, #8dffb9 0%, var(--green) 45%, var(--green-dk) 100%); }
.btn--dark { background: #13231f; color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 6px 0 var(--ink); }
.btn--sm { min-height: 44px; padding: 6px 18px; font-size: 16px; border-width: 3px; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 4px 0 var(--ink); }
.btn--sm:hover { box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 6px 0 var(--ink); }
.btn--lg { min-height: 64px; padding: 14px 34px; font-size: 22px; }

.panel {
  background: var(--panel);
  border: 1.5px solid var(--panel-line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 96px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 50% at 80% 70%, rgba(34,255,122,.14), transparent 70%),
              radial-gradient(40% 40% at 10% 20%, rgba(0,190,170,.12), transparent 70%);
}
.hero__chart { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }

.banner {
  border-radius: 22px; overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: 0 0 0 1.5px var(--panel-line), 0 30px 80px rgba(0,0,0,.6);
}
.banner img { width: 100%; }

.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start;
  margin-top: 56px;
}
.hero h1 { position: relative; display: inline-block; padding-right: .2em; }
.strike { position: relative; color: #9aa9a4; }
.strike::after {
  content: ""; position: absolute; left: -8%; right: -8%; top: 48%;
  height: .14em; background: var(--red); border: 4px solid var(--ink); border-radius: 6px;
  transform: rotate(-14deg);
}
.scribble {
  position: absolute; right: -.35em; top: -.42em;
  font-size: .78em; color: var(--orange);
  transform: rotate(10deg);
}
.lede { margin-top: 28px; font-size: clamp(19px, 1.8vw, 23px); max-width: 30em; }
.lede b { color: #fff; }
.lede--small { margin-top: 12px; color: var(--dim); font-size: 19px; }
.lede--small b { color: var(--green); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.ca {
  display: flex; align-items: center; gap: 10px;
  margin-top: 28px; max-width: 560px;
  background: #000; border: 1.5px solid var(--panel-line); border-radius: 14px;
  padding: 6px 6px 6px 14px;
}
.ca__label { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--green); }
.ca__value {
  flex: 1; min-width: 0; font-family: var(--f-mono); font-size: 14px; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ca__copy {
  min-height: 40px; padding: 0 16px; cursor: pointer;
  background: var(--green); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px;
  font: 700 14px var(--f-body);
}
.ca__copy:disabled { background: #2b3b37; color: var(--dim); cursor: not-allowed; }

/* Top memes board */
.board { padding: 20px; transform: rotate(1.2deg); }
.board__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.board h2 { font-size: 24px; font-weight: 700; font-family: var(--f-body); }
.live { font-family: var(--f-mono); font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 8px; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .live__dot { animation: none; } }
.board__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row {
  display: grid; grid-template-columns: 22px 36px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.03);
}
.row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.row__rank { font-family: var(--f-mono); color: var(--dim); font-size: 14px; }
.row__tick { font-weight: 700; font-size: 18px; }
.row__chg { font-family: var(--f-mono); font-weight: 700; font-size: 15px; }
.row--me { background: rgba(255,161,10,.14); outline: 2px solid var(--orange); }
.row--me .row__tick { color: var(--orange); }
.board__fine { margin-top: 10px; font-size: 13px; color: var(--dim); }
.board__foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.board__count { font-family: var(--f-mono); font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }

.hero__grid > * { min-width: 0; }
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; margin-top: 40px; }
  .hero__chart { opacity: .28; }
  .board { transform: none; }
  .banner { border-radius: 14px; border-width: 3px; }
}

/* ---------- VS table ---------- */
.vs { padding: 110px 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35) 30%, rgba(0,0,0,.35) 70%, transparent); }
.vs__vs { color: var(--orange); font-size: .6em; vertical-align: middle; }
.vs__table { margin-top: 48px; max-width: 920px; margin-inline: auto; }
.vs__head, .vs__row { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 12px; align-items: center; }
.vs__head { margin-bottom: 12px; }
.vs__col {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 22px; padding: 10px 14px; border-radius: 16px;
}
.vs__col img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 3px solid var(--ink); }
.vs__col small { display: block; font-size: 14px; font-weight: 500; color: var(--dim); }
.vs__col--k { background: rgba(255,61,94,.1); grid-column: 2; }
.vs__col--m { background: rgba(34,255,122,.12); color: var(--green); grid-column: 3; }
.vs__row { padding: 14px 0; border-top: 1px dashed var(--panel-line); }
.vs__label { color: var(--dim); font-size: 16px; }
.vs__k, .vs__m { display: flex; gap: 10px; align-items: baseline; }
.vs__k { color: #c9c9c9; }
.vs__m { color: #fff; font-weight: 600; }
.vs__k i, .vs__m i { font-style: normal; font-weight: 700; flex-shrink: 0; }
.vs__k i { color: var(--red); }
.vs__m i { color: var(--green); }

@media (max-width: 680px) {
  .vs__head, .vs__row { grid-template-columns: 1fr 1fr; }
  .vs__head > [role="columnheader"]:first-child { display: none; }
  .vs__col--k { grid-column: 1; }
  .vs__col--m { grid-column: 2; }
  .vs__col { font-size: 17px; padding: 8px; gap: 8px; }
  .vs__col img { width: 40px; height: 40px; }
  .vs__label { grid-column: 1 / -1; font-size: 14px; }
  .vs__k, .vs__m { font-size: 16px; }
}

/* ---------- Doge ---------- */
.doge { padding: 40px 0 100px; }
.doge__inner { display: flex; gap: 40px; align-items: center; }
.doge__img {
  width: 200px; flex-shrink: 0; border-radius: 20px; border: 4px solid var(--ink);
  transform: rotate(-5deg); box-shadow: 0 8px 0 var(--ink);
}
.doge__words {
  position: relative; margin-top: 18px; min-height: 150px;
  font-family: var(--f-doge); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px);
}
.doge__words span { position: absolute; white-space: nowrap; }
.w1 { left: 0; top: 0; color: #ff4fd8; }
.w2 { left: 38%; top: 10px; color: #22ff7a; transform: rotate(-6deg); }
.w3 { left: 72%; top: 0; color: #ffe14a; }
.w4 { left: 10%; top: 62px; color: #4fc3ff; font-size: 1.4em; }
.w5 { left: 44%; top: 74px; color: #ff9f40; transform: rotate(4deg); }
.w6 { left: 14%; top: 118px; color: #b98cff; }
@media (max-width: 720px) {
  .doge__inner { flex-direction: column; text-align: center; gap: 24px; }
  .doge__img { width: 150px; }
  .doge__words { min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
  .doge__words span { position: static; }
}

/* ---------- Calculator ---------- */
.calc { padding: 100px 0; }
.calc__body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin-top: 44px; align-items: start; }
.calc__form { padding: 28px; display: grid; gap: 28px; }
.field label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-weight: 600; margin-bottom: 10px;
}
.field output { font-family: var(--f-mono); font-weight: 700; color: var(--green); font-size: 22px; font-variant-numeric: tabular-nums; }
.fine { font-size: 14px; color: var(--dim); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: #0d2a22; border: 2px solid var(--ink); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 99px; background: #0d2a22; border: 2px solid var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -12px;
  border-radius: 50%; background: var(--green); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
}
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--green); border: 3px solid var(--ink); }

.calc__results { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.result {
  position: relative; padding: 26px 22px 24px; border-radius: 20px;
  border: 4px solid var(--ink); display: flex; flex-direction: column; gap: 8px; min-height: 270px;
  box-shadow: 0 8px 0 var(--ink);
}
.result--k { background: #2a2d2c; color: #d8d8d8; transform: rotate(-1.5deg); }
.result--m { background: linear-gradient(180deg, #ffc23d, var(--orange) 50%, var(--orange-2)); color: var(--ink); transform: rotate(1.5deg); }
.result__face { position: absolute; top: -26px; right: 16px; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); }
.result__label { font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.result__value { font-family: var(--f-stonk); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; overflow-wrap: anywhere; }
.result__note { flex: 1; font-size: 16px; }
.result .btn { align-self: flex-start; }
.result--m.shake { animation: shake .4s; }
@keyframes shake {
  0%, 100% { transform: rotate(1.5deg); }
  25% { transform: rotate(-3deg) translateX(-6px); }
  50% { transform: rotate(4deg) translateX(6px); }
  75% { transform: rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) { .result--m.shake { animation: none; } }
@media (max-width: 920px) { .calc__body { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .calc__results { grid-template-columns: 1fr; gap: 40px; }
  .result { min-height: 0; }
}

/* ---------- Reviews ---------- */
.reviews { padding: 100px 0; background: rgba(0,0,0,.35); }
.reviews .pill { font-size: .45em; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.review {
  background: #f4f1e8; color: var(--ink);
  border: 4px solid var(--ink); border-radius: 18px;
  padding: 22px; box-shadow: 0 8px 0 var(--ink);
  display: flex; flex-direction: column; gap: 14px;
}
.review--tilt-l { transform: rotate(-1.8deg); }
.review--tilt-r { transform: rotate(1.6deg); }
.review img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); }
.review blockquote { font-size: 22px; font-weight: 700; line-height: 1.25; flex: 1; overflow-wrap: anywhere; }
.review blockquote::before { content: "“"; }
.review blockquote::after { content: "”"; }
.review figcaption { font-weight: 700; }
.review figcaption span { display: block; font-weight: 500; color: #555; font-size: 15px; }
@media (max-width: 920px) { .reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .reviews__grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- How to buy ---------- */
.buy { padding: 100px 0; }
.steps { list-style: none; padding: 0; margin: 44px 0 48px; display: grid; gap: 14px; max-width: 760px; }
.steps li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 20px; border-radius: 16px;
  background: var(--panel); border: 1.5px solid var(--panel-line);
}
.steps li:nth-child(odd) { margin-left: 24px; }
.steps__n {
  flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center;
  font-family: var(--f-stonk); font-size: 26px; color: var(--ink);
  background: var(--green); border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink); transform: rotate(-6deg);
}
.steps b { font-size: 21px; }
.steps p { color: var(--dim); }
@media (max-width: 580px) { .steps li:nth-child(odd) { margin-left: 0; } }

/* ---------- FAQ ---------- */
.faq { padding: 100px 0 120px; background: rgba(0,0,0,.35); }
.faq__list { display: grid; gap: 12px; margin-top: 44px; }
details { background: var(--panel); border: 1.5px solid var(--panel-line); border-radius: 16px; transition: border-color .15s; }
details[open] { border-color: var(--green); }
summary {
  list-style: none; cursor: pointer; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 700; font-size: 20px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--orange); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px;
  font-family: var(--f-stonk); font-size: 20px; line-height: 1; transition: transform .2s ease-out;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 20px; color: var(--dim); }

/* ---------- Footer ---------- */
.footer { background: #000; border-top: 1px solid var(--panel-line); padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__links a {
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
  padding: 8px 18px; border: 2px solid var(--panel-line); border-radius: 12px; font-weight: 600;
  transition: border-color .15s, color .15s;
}
.footer__links a:hover { border-color: var(--green); color: var(--green); }
.footer__legal { margin-top: 40px; max-width: 880px; font-size: 14px; line-height: 1.6; color: #7d8f89; }

/* ---------- The Fund (401M Index) ---------- */
.fund { padding: 110px 0; background: radial-gradient(60% 40% at 50% 0%, rgba(34,255,122,.08), transparent 70%); }
.pill--md { font-size: clamp(18px, 2.4vw, 26px); margin-top: 22px; }
.fund__intro { max-width: 640px; margin: 22px auto 0; }
.fund__h {
  font-family: var(--f-stonk); font-weight: 400; font-size: clamp(24px, 3vw, 34px); line-height: 1.1;
  color: #fff; -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill;
  text-transform: uppercase; letter-spacing: .01em;
}

.flow { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.flow__step { position: relative; padding: 26px 22px 24px; }
.flow__step:not(:last-child)::after {
  content: "→"; position: absolute; right: -32px; top: 50%; transform: translateY(-50%);
  color: var(--green); font-size: 28px; font-weight: 700;
}
.flow__n {
  width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--f-stonk); font-size: 22px; color: var(--ink);
  background: var(--green); border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink); transform: rotate(-6deg);
}
.flow__step h3 { font-size: 22px; font-weight: 700; margin: 14px 0 6px; }
.flow__step p { color: var(--dim); font-size: 16px; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 36px; }
  .flow__step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -34px; transform: translateX(-50%); }
}

.split { margin-top: 80px; }
.split__bar {
  display: flex; height: 56px; margin-top: 18px; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink);
}
.split__seg {
  display: flex; align-items: center; justify-content: center; min-width: 0;
  font-family: var(--f-mono); font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap;
}
.split__seg + .split__seg { border-left: 3px solid var(--ink); }
.split__seg--basket { background: var(--green); }
.split__seg--buyback { background: var(--orange); }
.split__seg--ops { background: #9fb3ad; }
.split__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.split__card {
  padding: 18px 20px; border-radius: 16px;
  background: var(--panel); border: 1.5px solid var(--panel-line); border-top: 6px solid var(--c);
}
.split__pct { font-family: var(--f-stonk); font-size: 40px; line-height: 1; color: var(--c); }
.split__label { font-weight: 700; font-size: 19px; margin-top: 8px; }
.split__note { color: var(--dim); font-size: 15px; }
@media (max-width: 680px) { .split__cards { grid-template-columns: 1fr; } }

.totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { padding: 18px; border-radius: 16px; background: #000; border: 1.5px solid var(--panel-line); min-width: 0; }
.stat__label { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.stat__value {
  font-family: var(--f-mono); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px);
  color: var(--green); margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.stat__value small { font-size: .55em; color: var(--dim); margin-left: 4px; }
@media (max-width: 860px) { .totals { grid-template-columns: repeat(2, 1fr); } }

.basket { margin-top: 80px; }
.basket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; flex-wrap: wrap; }
.basket__updated { font-family: var(--f-mono); font-size: 13px; color: var(--dim); }
.basket__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 22px; }
.coin {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 18px; border-radius: 18px; background: var(--panel); border: 1.5px solid var(--panel-line);
}
.coin__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin__top > div { min-width: 0; }
.coin__badge {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--c); color: var(--ink); border: 3px solid var(--ink);
  font-family: var(--f-stonk); font-size: 20px;
}
.coin__tick { font-weight: 700; font-size: 19px; line-height: 1.2; }
.coin__name { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin__weight { font-family: var(--f-stonk); font-size: 34px; line-height: 1; color: #fff; }
.coin__weight small { font-family: var(--f-body); font-size: 13px; color: var(--dim); margin-left: 4px; }
.coin__rows { display: grid; gap: 6px; font-family: var(--f-mono); font-size: 13px; }
.coin__rows div { display: flex; justify-content: space-between; gap: 8px; }
.coin__rows dt { color: var(--dim); }
.coin__rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.meter { height: 10px; border-radius: 99px; background: #0d2a22; border: 1.5px solid var(--ink); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); background: var(--c); }
.coin__meter-label { font-family: var(--f-mono); font-size: 12px; color: var(--dim); margin-top: -6px; }
@media (max-width: 1100px) { .basket__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .basket__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .basket__grid { grid-template-columns: 1fr; } }

.rules { margin-top: 80px; padding: 28px; }
.rules__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.rules__list li { position: relative; padding-left: 26px; }
.rules__list li::before { content: "▸"; position: absolute; left: 4px; color: var(--green); }
.rules__list b { color: #fff; margin-right: 6px; text-transform: uppercase; font-size: 15px; letter-spacing: .03em; }
.rules__list a { color: var(--green); overflow-wrap: anywhere; }
.rules__fine { margin-top: 18px; font-size: 14px; color: var(--dim); }


/* ---------- Motion: things animate in as u scroll ---------- */
html.reveal-on [data-reveal] {
  opacity: 0;
  transition:
    opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s),
    translate .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s),
    scale .6s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0s),
    transform .2s ease-out, background-color .3s, border-color .2s;
}
html.reveal-on [data-reveal="up"] { translate: 0 32px; }
html.reveal-on [data-reveal="left"] { translate: -48px 0; }
html.reveal-on [data-reveal="right"] { translate: 48px 0; }
html.reveal-on [data-reveal="pop"] { scale: .82; }
html.reveal-on [data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }

/* hero headline: line crosses out the k, then the M drops in */
html.reveal-on .strike::after { scale: 0 1; transform-origin: left center; transition: scale .35s ease-out .45s; }
html.is-ready .strike::after { scale: 1 1; }
html.reveal-on .scribble { opacity: 0; }
html.is-ready .scribble { animation: scribbleDrop .7s cubic-bezier(.3, 1.6, .5, 1) .75s both; }
@keyframes scribbleDrop { from { opacity: 0; translate: 0 -90px; scale: 1.8; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* fee bar fills in, meters fill up */
html.reveal-on .split__seg { scale: 0 1; transform-origin: left center; transition: scale .9s cubic-bezier(.2, .7, .2, 1); }
html.reveal-on .split__seg:nth-child(2) { transition-delay: .25s; }
html.reveal-on .split__seg:nth-child(3) { transition-delay: .45s; }
html.reveal-on .split__bar.is-in .split__seg { scale: 1 1; }
html.reveal-on .meter i { scale: 0 1; transform-origin: left center; transition: scale 1s cubic-bezier(.2, .7, .2, 1) .35s; }
html.reveal-on .coin.is-in .meter i { scale: 1 1; }

/* hover: lift */
.flow__step:hover, .split__card:hover, .stat:hover, .coin:hover, .steps li:hover { transform: translateY(-6px); }
.coin:hover { border-color: var(--c); }
.review:hover { transform: rotate(0deg) scale(1.03); }
.flow__step, .split__card, .stat, .coin, .steps li, .review { transition: transform .2s ease-out, border-color .2s; }

/* Top Memes rows flash when they swap places */
.row { transition: background-color .4s; }
.row--bump { background: rgba(34, 255, 122, .14); }

/* floating meme heads */
.floaty {
  position: absolute; z-index: 0; pointer-events: none;
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  animation: bob var(--dur, 5s) ease-in-out var(--fd, 0s) infinite;
}
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: -7deg; }
  50% { translate: 0 -16px; rotate: 7deg; }
}
.fund, .reviews, .calc { position: relative; }
.fund > .wrap, .reviews > .wrap, .calc > .wrap { position: relative; z-index: 1; }
@media (max-width: 1000px) { .floaty { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .floaty, html.is-ready .scribble { animation: none; }
  .flow__step:hover, .split__card:hover, .stat:hover, .coin:hover, .steps li:hover, .review:hover { transform: none; }
}
