/* Stonk Intern — Stonkfun's design system, with the intern's scribbles on top. */

:root {
  --bg: #071013;
  --panel: #0b181c;
  --card: #102127;
  --card-2: #132a31;
  --line: #20363d;
  --line-2: #2b4750;
  --text: #f3f8f8;
  --muted: #93a9ae;
  --dim: #5d767c;
  --accent: #69aac1;
  --accent-2: #8cc3d6;
  --accent-ink: #071013;
  --s: #a3c4cf;
  --green: #4fd18b;
  --red: #f06a6a;
  --ink: #f4f7f7;
  --void: #070f12;

  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --r: 12px;
  --r-lg: 18px;
  --wrap: 1240px;
  --pad: clamp(16px, 3.2vw, 32px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
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; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.hand { font-family: var(--hand); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn:active { transform: translateY(1px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.02);
  white-space: nowrap; flex: none;
}
.chip.g { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.chip.r { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); background: color-mix(in srgb, var(--red) 8%, transparent); }
.chip.a { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.up { color: var(--green); }
.down { color: var(--red); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--card); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.brand-mark svg { width: 28px; height: 30px; margin-top: 4px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  font: 500 13px/1 var(--mono); color: var(--muted);
}
.live-chip b { color: var(--text); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- hero ---------- */
.hero { padding-top: 22px; }
.hero-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 600px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(105,170,193,.13), transparent 60%),
    linear-gradient(180deg, #11242a 0%, #0c1b20 100%);
}
.hero-copy { position: relative; z-index: 3; padding: clamp(28px, 5vw, 64px); align-self: center; }
.eyebrow { margin: 0 0 22px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.strike { position: relative; color: var(--dim); }
.strike::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; background: var(--red); transform: rotate(-6deg); border-radius: 2px; }
h1 {
  margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: 1;
  font-size: clamp(42px, 5.2vw, 72px);
}
h1 .hl { color: var(--accent); }
.uline { position: relative; display: inline-block; white-space: nowrap; }
.uline svg { max-width: none; position: absolute; left: 0; bottom: -.1em; width: 100%; height: .28em; overflow: visible; pointer-events: none; }
.uline path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.lede { margin: 26px 0 0; max-width: 34ch; color: var(--muted); font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; }
.lede b { color: var(--text); font-weight: 600; }
.lede-hand { margin: 10px 0 0; font-size: clamp(26px, 2.4vw, 32px); color: var(--ink); transform: rotate(-2deg); transform-origin: left; display: inline-block; }
.lede-hand svg { display: inline-block; vertical-align: middle; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ca-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 10px; background: rgba(7,16,19,.5);
  font: 500 14px/1 var(--mono); color: var(--muted); transition: border-color .15s, color .15s;
}
.ca-btn:hover { border-color: var(--accent); color: var(--text); }
.ca-btn .lbl { color: var(--dim); }
.ca-btn svg { width: 16px; height: 16px; }

.hero-art { position: relative; min-height: 460px; }
.hero-chart { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-chart .line { fill: none; stroke: rgba(243,248,248,.75); stroke-width: 2.4; stroke-dasharray: 12 9; stroke-linecap: round; animation: flow 1.6s linear infinite; }
.hero-chart .area { fill: url(#heroFill); }
@keyframes flow { to { stroke-dashoffset: -21; } }
.hero-dot { fill: var(--red); }
.hero-dot-ring { fill: none; stroke: var(--red); stroke-opacity: .35; stroke-width: 6; }

.hero-intern {
  position: absolute; z-index: 2; right: 8%; top: 4%;
  width: min(430px, 78%); aspect-ratio: 1370 / 1525;
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
  cursor: pointer;
}
.hero-intern:hover { transform: rotate(-3deg) scale(1.02); }
.hero-intern.jump { animation: jump .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes jump { 40% { transform: translateY(-24px) rotate(4deg); } }
.hero-intern img, .hero-intern svg { width: 100%; height: 100%; }
.speech {
  position: absolute; z-index: 4; right: calc(8% + min(430px, 78%) - 60px); top: 7%;
  max-width: 230px; padding: 12px 16px; border-radius: 16px 16px 4px 16px;
  background: var(--ink); color: var(--void); font-size: 25px; line-height: 1.05;
  transform-origin: bottom right; animation: pop .3s cubic-bezier(.3,1.6,.5,1);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
@keyframes pop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
.note {
  position: absolute; z-index: 4; font-family: var(--hand); font-weight: 700; color: var(--ink);
  font-size: 28px; line-height: 1; pointer-events: none; white-space: nowrap;
}
.note svg { overflow: visible; }
.note path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.note-me { right: calc(8% + min(430px, 78%) - 30px); top: 48%; transform: rotate(-8deg); }
.note-me svg { width: 70px; height: 34px; margin: 2px 0 0 36px; }

.token-pill {
  position: absolute; z-index: 5; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  width: min(330px, calc(100% - 32px));
  padding: 14px 16px; border-radius: 12px;
  background: rgba(12,26,31,.86); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  transition: border-color .15s, transform .15s;
}
.token-pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.tp-top { display: flex; align-items: center; gap: 10px; }
.tp-av { width: 34px; height: 34px; border-radius: 50%; background: var(--void); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; flex: none; }
.tp-av svg { width: 30px; height: 33px; margin-top: 5px; }
.tp-name { font-weight: 700; font-size: 14px; }
.tp-name span { color: var(--dim); font-weight: 500; margin-left: 4px; }
.tp-pair { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.coin-mini { width: 16px; height: 16px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line-2); display: inline-grid; place-items: center; }
.coin-mini svg { width: 10px; height: 10px; }
.tp-arrow { margin-left: auto; color: var(--dim); }
.tp-bot { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.tp-bot b { font-size: 22px; letter-spacing: -.03em; font-weight: 700; }
.tp-bot small { color: var(--dim); font-size: 12px; }
.tp-bot .chg { margin-left: auto; font: 600 13px/1 var(--mono); }

/* ---------- marquee ---------- */
.marquee { margin-top: 22px; border-block: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.track { display: flex; width: max-content; animation: marq 48s linear infinite; }
.track span { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.track span b { color: var(--text); font-weight: 600; }
.track span::after { content: "✦"; color: var(--accent); margin-left: 20px; font-size: 10px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding-top: clamp(72px, 10vw, 128px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; margin-bottom: 32px; }
.kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h2 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(32px, 4.4vw, 56px); max-width: 17ch; }
.sec-note { margin: 0; max-width: 36ch; color: var(--muted); }
.scrawl { position: relative; display: inline-block; }
.scrawl svg { max-width: none; position: absolute; left: -7%; top: -4%; width: 114%; height: 112%; overflow: visible; pointer-events: none; }
.scrawl path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }

.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s, transform .2s;
}

/* lore cards — deliberately cloned from Stonkfun's token cards */
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lore { padding: 18px 18px 20px; min-height: 360px; display: flex; flex-direction: column; }
.lore:hover { border-color: var(--line-2); transform: translateY(-3px); }
.lore-top { display: flex; align-items: center; justify-content: space-between; }
.lore-av { width: 42px; height: 42px; border-radius: 50%; background: var(--void); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.lore-av svg { width: 34px; height: 34px; }
.lore-tools { display: flex; gap: 6px; }
.lore-tools i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card-2); display: grid; place-items: center; font: 600 9px/1 var(--mono); color: var(--dim); font-style: normal; }
.lore-tools i.w { width: auto; padding: 0 8px; border-radius: 12px; }
.lore-tick { margin: 22px 0 2px; font: 600 12px/1 var(--mono); color: var(--accent); letter-spacing: .04em; }
.lore-name { font-size: 13px; color: var(--muted); }
.lore-big { margin: 10px 0 8px; font-size: 36px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.lore-text { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 26ch; position: relative; z-index: 2; }
.lore-text b { color: var(--text); font-weight: 600; }
.lore-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); color: var(--dim); position: relative; z-index: 2; }
.lore-art { position: absolute; right: -26px; bottom: -26px; width: 150px; height: 150px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: radial-gradient(circle, var(--card-2), var(--card) 70%); opacity: .95; }
.lore-art::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--line); opacity: .6; }
.lore-art svg { width: 96px; height: 96px; transform: translate(-6px, -8px); }
.lore-spark { position: absolute; left: 18px; bottom: 44px; width: 90px; height: 26px; z-index: 1; }
.lore-spark path { fill: none; stroke-width: 1.6; }

/* ---------- shift ---------- */
.grid3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
.duty { padding: 20px; display: flex; flex-direction: column; min-height: 470px; }
.duty-head { display: flex; align-items: center; gap: 10px; }
.duty-head h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.duty-head .chip { margin-left: auto; }
.duty-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.chat { margin-top: 16px; flex: 1; min-height: 240px; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); scrollbar-width: thin; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.4; animation: pop .25s ease-out; }
.msg.them { align-self: flex-end; background: var(--card-2); border: 1px solid var(--line-2); border-bottom-right-radius: 4px; }
.msg.me { align-self: flex-start; background: var(--accent); color: var(--accent-ink); border-bottom-left-radius: 4px; font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1.15; }
.msg.typing { display: flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.quick button { padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 13px; color: var(--muted); transition: all .15s; }
.quick button:hover { color: var(--text); border-color: var(--accent); }
.quick button:disabled { opacity: .45; cursor: wait; }

.stage { position: relative; margin-top: 16px; flex: 1; min-height: 240px; border-radius: 10px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%231a3038'/%3E%3C/svg%3E"); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.stage > div:not(.stamp-el) { width: 62%; max-width: 240px; transition: transform .5s cubic-bezier(.3,1.5,.5,1), opacity .4s; }
.stage > div svg { width: 100%; height: auto; max-height: 230px; }
.stage .stamp-el {
  position: absolute; left: 50%; top: 50%; padding: 6px 16px; border: 5px solid var(--red); border-radius: 8px;
  color: var(--red); font: 800 clamp(26px, 3vw, 36px)/1 var(--font); letter-spacing: .04em;
  transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); opacity: 0; pointer-events: none;
  mix-blend-mode: screen;
}
.stage.cancelled .stamp-el { animation: slam .35s cubic-bezier(.5,0,.6,1.4) forwards; }
.stage.cancelled > div:not(.stamp-el) { transform: translateY(18px) rotate(8deg) scale(.92); opacity: .55; }
@keyframes slam { to { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 1; } }
.stage.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translate(4px, -2px); } 50% { transform: translate(-4px, 2px); } 75% { transform: translate(2px, 1px); } }
.duty-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.duty-foot .btn { flex: none; }
.counter { font: 500 12px/1.35 var(--mono); color: var(--dim); }
.counter b { color: var(--text); font-size: 15px; }
.fine { margin: 10px 0 0; font-size: 12px; color: var(--dim); }

.coin-rain { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.coin-rain i {
  position: absolute; top: -60px; width: 38px; height: 38px; border-radius: 50%;
  background: #16303a url("../img/s.svg") center / 56% no-repeat; border: 2.5px solid var(--ink);
  animation: fall var(--d, 1.8s) cubic-bezier(.4,.1,.7,1) forwards; animation-delay: var(--delay, 0s);
}
@keyframes fall { to { transform: translate(var(--x, 0), 110vh) rotate(var(--r, 360deg)); } }

/* ---------- review ---------- */
.review { padding: 0; overflow: visible; }
.review-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.review-table th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 16px 22px; border-bottom: 1px solid var(--line); }
.review-table td { padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.review-table tr:last-child td { border-bottom: 0; }
.review-table td:first-child { font-weight: 600; }
.review-table .req { color: var(--muted); }
.review-table .got { font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1; color: var(--ink); }
.score { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; }
.score.x { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.score.ok { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.review-table tr.win td { background: color-mix(in srgb, var(--green) 4%, transparent); }
.circled { position: relative; display: inline-block; }
.circled svg { max-width: none; position: absolute; left: -16px; top: -14px; width: calc(100% + 32px); height: calc(100% + 28px); overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; }
.review-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 22px; border-top: 1px solid var(--line); background: var(--panel); border-radius: 0 0 var(--r) var(--r); }
.review-foot p { margin: 0; }
.mgr { font-family: var(--hand); font-weight: 700; font-size: 26px; line-height: 1.1; transform: rotate(-1.5deg); }
.mgr small { display: block; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; transform: rotate(1.5deg); }
.rubber {
  margin-left: auto; padding: 10px 16px; border: 4px double var(--accent); border-radius: 8px; color: var(--accent);
  font: 800 18px/1.1 var(--font); letter-spacing: .08em; text-transform: uppercase; text-align: center;
  transform: rotate(-7deg); opacity: .9;
}
.rubber small { display: block; font: 600 10px/1 var(--mono); letter-spacing: .14em; margin-top: 4px; }

/* ---------- evidence ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.filters .lbl { font-size: 13px; color: var(--dim); margin-right: 6px; }
.filters button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); transition: all .15s; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--card-2); color: var(--text); border-color: var(--accent); }
.memes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.meme { padding: 0; display: flex; flex-direction: column; }
.meme[hidden] { display: none; }
.meme:hover { border-color: var(--line-2); }
.meme-view { display: block; width: 100%; border-bottom: 1px solid var(--line); cursor: zoom-in; background: var(--panel); }
.meme-view svg { width: 100%; height: auto; aspect-ratio: 1; }
.meme-meta { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.meme-meta .fig { font: 500 11px/1 var(--mono); color: var(--dim); }
.meme-meta .acts { margin-left: auto; display: flex; gap: 6px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: all .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon-btn svg { width: 15px; height: 15px; }

dialog.lightbox { padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); color: var(--text); width: min(92vw, 720px); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(4,9,11,.82); backdrop-filter: blur(6px); }
.lb-body svg { width: 100%; height: auto; }
.lb-bar { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.lb-bar .t { font-weight: 600; margin-right: auto; font-size: 14px; }

/* ---------- onboarding ---------- */
.onb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 14px; align-items: start; }
.steps { display: grid; gap: 10px; counter-reset: s; }
.step { padding: 18px 20px 18px 74px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2);
  font: 600 13px/1 var(--mono); color: var(--accent);
}
.step h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.step p a { color: var(--accent); }
.step p a:hover { text-decoration: underline; }

.tok { padding: 22px; }
.tok-top { display: flex; align-items: center; gap: 14px; }
.tok-av { width: 58px; height: 58px; border-radius: 50%; background: var(--void); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; flex: none; }
.tok-av svg { width: 48px; height: 52px; margin-top: 8px; }
.tok-name { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.tok-name span { color: var(--dim); font-weight: 500; font-size: 15px; margin-left: 6px; letter-spacing: 0; }
.tok-pair { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.tok-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; }
.tok-price b { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.tok-price .chg { font: 600 15px/1 var(--mono); }
.tok-price small { color: var(--dim); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats div { background: var(--panel); padding: 14px 16px; }
.stats dt { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.stats dd { margin: 8px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.ca-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 12px 12px 16px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--panel); }
.ca-row code { font: 500 13px/1.3 var(--mono); color: var(--text); word-break: break-all; }
.ca-row .lbl { font: 600 11px/1 var(--mono); color: var(--dim); letter-spacing: .08em; }
.ca-row .icon-btn { margin-left: auto; flex: none; }
.tok-acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.tok-acts .btn-accent { grid-column: 1 / -1; justify-content: center; height: 50px; font-size: 15px; }
.tok-acts .btn-ghost { justify-content: center; }
.src { margin: 12px 0 0; font: 500 11px/1.4 var(--mono); color: var(--dim); display: flex; align-items: center; gap: 8px; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(80px, 11vw, 140px); border-top: 1px solid var(--line); background: var(--panel); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: 44px; }
.foot-intern { width: 150px; }
.foot h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: none; }
.foot .hand { font-size: 26px; color: var(--muted); margin: 6px 0 0; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: all .15s; }
.socials a:hover { color: var(--text); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.legal { border-top: 1px solid var(--line); padding-block: 22px 30px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 12.5px; color: var(--dim); }
.legal p { margin: 0; max-width: 78ch; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--void); font-weight: 600; font-size: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.4); transition: all .25s cubic-bezier(.3,1.4,.5,1); pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .hand { font-size: 20px; margin-left: 6px; }

/* ---------- scroll-in + hand-drawn strokes ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .draw path, .draw.in path { animation: drawon 1s .25s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes drawon { to { stroke-dashoffset: 0; } }

/* ---------- doodle primitives (see doodles.js) ---------- */
.doodle .k { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.doodle .kt { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.doodle .kf { fill: var(--ink); }
.doodle .v { fill: var(--void); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.doodle .vf { fill: var(--void); }
.doodle .vt { fill: none; stroke: var(--void); stroke-width: 2.2; stroke-linecap: round; }
.doodle .s { fill: var(--s); }
.doodle .g { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.doodle .rf { fill: var(--red); }
.doodle .af { fill: var(--accent); }
.doodle .paper { fill: var(--panel); }
.doodle .scr { fill: #08161a; stroke: var(--line-2); stroke-width: 2; }
.doodle .bub { fill: var(--card-2); stroke: var(--line-2); stroke-width: 2; }
.doodle .bubme { fill: var(--accent); }
.doodle .bill, .doodle .coinf { fill: #16303a; }
.doodle .stamp { fill: rgba(11,24,28,.82); stroke: var(--red); stroke-width: 7; }
.doodle .stamptxt { fill: var(--red); font-family: var(--font); font-weight: 800; letter-spacing: .04em; }
.doodle .spill { fill: #7a5536; }
.doodle text { fill: var(--ink); }
.doodle .hand { font-family: var(--hand); font-weight: 700; }
.doodle .mono { font-family: var(--mono); }
.doodle .on-accent { fill: var(--accent-ink); }
.doodle .gtxt { fill: var(--green); }
.doodle .rtxt { fill: var(--red); }
.doodle .itxt { fill: var(--ink); }
.doodle .dim { fill: var(--dim); }
.doodle .cap { font-family: var(--font); font-weight: 800; font-size: 36px; letter-spacing: -.035em; }
.doodle .cap-sub { font-family: var(--font); font-weight: 500; font-size: 23px; fill: var(--muted); }
.doodle .wm { fill: var(--dim); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 .duty:first-child { grid-column: 1 / -1; }
  .memes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-chart { display: none; }
  .hero-art { min-height: 480px; }
  .hero-intern { right: auto; left: 50%; transform: translateX(-50%); top: 2%; width: min(340px, 74%); }
  .hero-intern:hover { transform: translateX(-50%) rotate(-3deg); }
  .speech { right: auto; left: 6%; top: 2%; }
  .note-me { display: none; }
  .sec-head { grid-template-columns: 1fr; }
  .onb { grid-template-columns: 1fr; }
  .review-table th:nth-child(2), .review-table td:nth-child(2) { display: none; }
  .foot-in { grid-template-columns: 1fr; text-align: left; }
  .foot-intern { width: 120px; }
}
@media (max-width: 620px) {
  .live-chip { display: none; }
  .brand > span:last-child { font-size: 15px; }
  .cards4, .grid3, .memes { grid-template-columns: 1fr; }
  .grid3 .duty:first-child { grid-column: auto; }
  .lore { min-height: 300px; }
  .review-table th, .review-table td { padding: 14px 14px; }
  .review-table .got { font-size: 21px; }
  .rubber { margin-left: 0; }
  .tok-acts { grid-template-columns: 1fr 1fr; }
  .tok-acts .btn-ghost:last-child { grid-column: 1 / -1; }
  .hero-art { min-height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .track { animation: none; }
  .rv { opacity: 1; transform: none; }
  .draw path { stroke-dashoffset: 0; }
}

/* HR security memo under the onboarding steps */
.memo { padding: 20px 22px; border-style: dashed; border-color: var(--line-2); background: var(--panel); display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 16px; align-items: start; }
.memo .lore-av { width: 64px; height: 64px; }
.memo .lore-av svg { width: 52px; height: 56px; margin-top: 8px; }
.memo h3 { margin: 0; font-size: 15px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.memo p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.memo p b { color: var(--text); }
.memo .hand { color: var(--ink); font-size: 22px; margin-top: 8px; display: block; }
