/* CALLOUT — tokos.tech (cobalt halftone, rounded grotesk, mono live line) × liquidv.xyz (serif headline, word chip,
   chevron nav edge, hex buttons, medallions). Flat colours only; texture comes from the halftone canvas. */
:root {
  --cobalt: #0a102c; --cobalt-2: #121b48; --ink: #060b22; --ink-2: #121b48; --paper: #f3f2ec; --ice: #dfe5ff; --ice-2: #b9c4ff;
  --blue: #2448fa; --blue-2: #3a5cff; --card: #121b48;
  --sage: #8fa5ff; --sage-ink: #0a102c; --pink: #e2a3a8; --pink-ink: #3a1418; --line: rgba(223, 229, 255, .22); --dim: rgba(223, 229, 255, .62);
  --win: #9be3b5; --lose: #ff9a9a;
  --serif: "Instrument Serif", Georgia, serif; --sans: "Bricolage Grotesque", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--cobalt); color: var(--ice); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
#ht { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, header, footer { position: relative; z-index: 1; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.cap { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }

/* nav: light bar with a chevron edge (liquidv), sits on the cobalt */
.nav { background: rgba(6,11,34,.78); color: var(--ice); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(223,229,255,.09); }
.nav .in { display: flex; align-items: center; gap: 22px; height: 62px; }
.nav a { text-decoration: none; font-size: 15px; }
.nav .links { display: flex; gap: 22px; }
.nav .brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 28px; letter-spacing: -.01em; margin-right: auto; }
.nav .brand i { font-style: normal; font-family: var(--mono); font-size: 11px; background: var(--sage); color: var(--sage-ink); padding: 3px 7px; border-radius: 6px; letter-spacing: .08em; }
.edge { display: none; }
.edge svg { display: block; width: 100%; height: 22px; }
.net { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(223,229,255,.2); padding: 4px 8px; border-radius: 6px; color: var(--dim); }

/* hex-ended pill buttons (liquidv) */
.hex { --bg: var(--blue); --fg: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 30px;
  background: var(--bg); color: var(--fg); border: 0; font: 600 16px var(--sans); cursor: pointer; text-decoration: none;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%); transition: transform .15s; }
.hex:hover { transform: translateY(-1px); } .hex:active { transform: translateY(1px); }
.hex.dark { --bg: var(--card); --fg: var(--ice); } .hex.light { --bg: var(--paper); --fg: var(--ink); } .hex.sage { --bg: var(--sage); --fg: var(--sage-ink); } .hex.pink { --bg: var(--pink); --fg: var(--pink-ink); }
.hex.sm { height: 38px; padding: 0 22px; font-size: 14px; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
.hex[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* hero */
.hero { min-height: calc(100vh - 62px); display: flex; flex-direction: column; justify-content: center; padding: 60px 0 40px; text-align: center; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 10vw, 132px); line-height: .95; letter-spacing: -.02em; margin: 0; color: var(--paper); }
.chip { display: inline-block; background: var(--blue); color: #fff; border-radius: 18px; padding: 0 .18em .06em; line-height: 1; min-width: 2.6em; transition: background .3s; }
.chip.p { background: var(--blue); color: #fff; }
.hero .sub { font-size: clamp(17px, 2vw, 21px); color: var(--ice); text-shadow: 0 0 16px #0a102c, 0 0 5px #0a102c; max-width: 620px; margin: 26px auto 0; }
.hero .cta { display: flex; gap: 16px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero { justify-content: flex-start; padding-top: 9vh; }
.ticker { margin: 40px auto 0; border: 1px solid rgba(223,229,255,.16); border-radius: 999px; padding: 6px 14px; background: rgba(5,7,27,.55); width: fit-content; font-family: var(--mono); font-size: 13px; color: var(--dim); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.ticker b { color: var(--paper); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); display: inline-block; box-shadow: 0 0 0 3px rgba(155, 227, 181, .2); }

/* medallions row (liquidv coins, our flavour: SOL pots) */
.medals { display: flex; justify-content: center; gap: 18px; margin-top: 46px; flex-wrap: wrap; }
.medal { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: var(--ink); position: relative; }
.medal::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(11, 13, 26, .35); }
.medal.s { background: var(--sage); } .medal.p { background: var(--pink); } .medal.i { background: var(--ice); } .medal.w { background: var(--paper); }

/* sections */
section.block { padding: 90px 0; }
section.ink { background: rgba(6,11,34,.9); border-top: 1px solid rgba(223,229,255,.07); border-bottom: 1px solid rgba(223,229,255,.07); }
section.paper { background: rgba(6,11,34,.92); color: var(--ice); }
section.paper .cap { color: var(--dim); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.015em; margin: 10px 0 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--card); }
section.paper .step { border-color: var(--line); background: rgba(11,13,26,.6); }
.step .n { font-family: var(--serif); font-size: 54px; line-height: 1; }
.step h3 { margin: 14px 0 6px; font-size: 21px; } .step p { margin: 0; color: var(--dim); } section.paper .step p { color: var(--dim); }

/* cards: callouts */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.co { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: var(--card); transition: border-color .15s, transform .15s; }
.co:hover { border-color: var(--ice-2); transform: translateY(-2px); }
.co .vs { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 14px; }
.co .vs .x { font-family: var(--serif); font-size: 22px; color: var(--dim); }
.co .meta { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.co .pot { font-family: var(--serif); font-size: 34px; color: var(--paper); margin-top: 4px; }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--sage); color: var(--sage-ink); }
.tag.open { background: var(--ice); color: var(--ink); } .tag.done { background: transparent; border: 1px solid var(--line); color: var(--dim); } .tag.pink { background: var(--pink); color: var(--pink-ink); }
section.paper .empty { border-color: var(--line); color: var(--dim); }
.empty { border: 1px dashed var(--line); border-radius: 18px; padding: 28px; text-align: center; color: var(--dim); font-family: var(--mono); font-size: 13px; }

/* forms */
.panel { background: var(--paper); color: var(--ink); border-top: 6px solid var(--blue); border-radius: 24px; padding: 34px; max-width: 640px; margin: 50px auto; }
.panel h1 { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1; margin: 0 0 8px; }
.panel .lead { color: #55544e; margin: 0 0 26px; }
label.f { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6b6a63; margin: 20px 0 8px; }
.in-row { display: flex; gap: 10px; flex-wrap: wrap; }
input.t { width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid #d8d6cc; background: #fff; padding: 0 16px; font: 500 17px var(--sans); color: var(--ink); outline: none; }
input.t:focus { border-color: var(--blue); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { height: 42px; padding: 0 16px; border-radius: 12px; border: 1.5px solid #d8d6cc; background: #fff; font: 600 15px var(--sans); cursor: pointer; color: var(--ink); }
.pill.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.note { font-size: 13px; color: #6b6a63; margin-top: 8px; }
.err { color: #b3261e; font-size: 14px; margin-top: 14px; min-height: 20px; }
.sum { margin-top: 24px; border-top: 1px solid #e2e0d6; padding-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-family: var(--mono); font-size: 13px; color: #55544e; }
.sum b { color: var(--ink); font-weight: 600; text-align: right; }

/* callout page */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 30px; }
.side { border-radius: 22px; padding: 24px; color: var(--ink); }
.side.a { background: var(--sage); } .side.b { background: var(--pink); } .side.wait { background: transparent; border: 1.5px dashed var(--line); color: var(--dim); display: grid; place-items: center; text-align: center; }
.side .who { font-family: var(--mono); font-size: 13px; opacity: .8; } .side .handle { font-family: var(--serif); font-size: 38px; line-height: 1.05; margin: 6px 0 14px; word-break: break-all; }
.side .pnl { font-family: var(--serif); font-size: 58px; line-height: 1; } .side .pnl small { font-size: 22px; } .side .det { font-family: var(--mono); font-size: 12px; margin-top: 10px; opacity: .8; }
.side.won { outline: 3px solid var(--paper); outline-offset: 4px; }
.vsbig { font-family: var(--serif); font-size: 64px; color: var(--paper); align-self: center; }
.clock { text-align: center; margin-top: 34px; font-family: var(--mono); }
.clock .t { font-size: clamp(42px, 8vw, 84px); color: var(--paper); letter-spacing: .02em; line-height: 1; }
.facts { display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: center; margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.facts a { color: var(--ice); }
.actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.share { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.copy { font-family: var(--mono); font-size: 13px; background: rgba(11, 13, 26, .55); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--ice); cursor: pointer; }
.banner { margin: 24px auto 0; max-width: 760px; text-align: center; font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); color: var(--paper); }

footer { padding: 40px 0 60px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
footer .in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; }
.toast.on { opacity: 1; }

/* intro (troy-style particles, our story) */
#intro { position: fixed; inset: 0; z-index: 100; background: #0a102c; transition: opacity 1.1s ease; }
#intro.settled { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: 0; background: #0a102c; }
body { overflow-x: clip; }
#intro.settled .skip, #intro.settled .cap2 { display: none; }
.hero { position: relative; }
.hero > :not(#intro) { position: relative; z-index: 1; }
/* the film plays over everything; when it settles into the hero, the page fades in on top of it */
html.intro-run:not(.intro-done) main, html.intro-run:not(.intro-done) header, html.intro-run:not(.intro-done) .edge { visibility: hidden; }
html.intro-run.intro-done .hero > :not(#intro) { animation: fadeup .9s cubic-bezier(.2,.7,.2,1) both; }
html.intro-run.intro-done .hero > :nth-child(3) { animation-delay: .1s; } html.intro-run.intro-done .hero > :nth-child(4) { animation-delay: .18s; }
html.intro-run.intro-done .hero > :nth-child(5) { animation-delay: .26s; } html.intro-run.intro-done .hero > :nth-child(6) { animation-delay: .34s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro .cap2 { position: absolute; left: 0; right: 0; bottom: 17%; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .38em; color: #dfe5ff; opacity: 0; transition: opacity .6s; text-transform: uppercase; text-shadow: 0 0 18px rgba(169,200,189,.35); }
#intro .cap2.on { opacity: .85; }
#intro .skip { position: absolute; right: 28px; bottom: 26px; background: none; border: 1px solid var(--line); color: var(--dim); font: 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
#intro .skip:hover { color: var(--ice); border-color: var(--ice); }


@media (max-width: 760px) {
  .nav .links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; } .vsbig { justify-self: center; font-size: 44px; }
  .panel { margin: 24px 16px; padding: 24px; } .panel h1 { font-size: 42px; }
  .wrap { padding: 0 16px; }
  .medal { width: 64px; height: 64px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- polish pass ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); animation: rise 1s cubic-bezier(.2,.75,.15,1) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
html.intro-run:not(.intro-done) .hero h1 .ln > span { animation: none; }
.chip { position: relative; overflow: hidden; vertical-align: bottom; }
.chip .w { display: inline-block; transition: transform .45s cubic-bezier(.6,0,.2,1), opacity .45s; }
.chip .w.out { transform: translateY(-80%); opacity: 0; } .chip .w.pre { transform: translateY(80%); opacity: 0; transition: none; }
.hex { box-shadow: none; outline: 1px solid transparent; }
.hex::after { content: ""; position: absolute; inset: 3px; clip-path: inherit; border: 0; background: transparent; box-shadow: inset 0 0 0 1px rgba(11,13,26,.14); pointer-events: none; }
.hex.dark::after { box-shadow: inset 0 0 0 1px rgba(223,229,255,.16); }
.hex:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
/* hero live card (liquidv-style framed card) */
.livecard { width: 100%; max-width: 760px; margin: 46px auto 0; text-align: left; background: var(--card); border: 1px solid rgba(223,229,255,.18); border-radius: 26px; padding: 22px 24px 18px; backdrop-filter: blur(6px); }
.livecard .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.livecard .names { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; gap: 14px; }
.livecard .nm { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--paper); }
.livecard .nm small { display: block; font-family: var(--mono); font-size: 13px; margin-top: 6px; }
.livecard .nm.a small { color: var(--sage); } .livecard .nm.b small { color: var(--pink); } .livecard .nm.b { text-align: right; }
.livecard canvas { width: 100%; height: 150px; display: block; margin-top: 10px; }
.livecard .ex { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 7px; border-radius: 6px; }
/* cards */
.co .pl { display: inline-flex; align-items: center; gap: 8px; } .co .pl.r { flex-direction: row; }
.md { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 10.5px var(--mono); font-style: normal; color: var(--ink); }
.md.s { background: var(--sage); } .md.p { background: var(--pink); }
.co .row2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 6px; }
.co .pot small { font-size: 16px; color: var(--dim); } .co .race { font-size: 11.5px; color: var(--sage); }
.co canvas.spark { width: 120px; height: 44px; flex: none; }
.racechart { width: 100%; height: 220px; display: block; margin-top: 26px; background: rgba(11,13,26,.55); border: 1px solid var(--line); border-radius: 20px; }
.clock .t { font-variant-numeric: tabular-nums; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.medals { display: none; }
@media (max-width: 760px) { .livecard .nm { font-size: 22px; } .livecard canvas { height: 120px; } .co canvas.spark { width: 90px; } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .hero h1 .ln > span { animation: none; transform: none; } }
.net { white-space: nowrap; }
@media (max-width: 760px) { .net { display: none; } }
