/* ─── Tokens ─────────────────────────────────────────
   Pulled from the banner: warm paper whites, charcoal
   hardware, late-afternoon sepia light.                */
:root {
  --paper: #f7f4ef;
  --card: #fffdfa;
  --ink: #1d1c1a;
  --ink-2: #4f4b46;
  --ink-3: #8c867e;
  --line: #e7e1d8;
  --line-2: #d9d1c5;
  --sepia: #b39674;
  --sepia-soft: #efe6da;
  --screen: #1a1a19;
  --screen-2: #2a2a28;
  --up: #4c7a59;
  --down: #a4564a;

  --hand: "Nanum Pen Script", "Bradley Hand", cursive;
  --sans: "Jost", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --r: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

/* ─── Type helpers ──────────────────────────────── */
.logo { font-family: var(--hand); font-size: 30px; line-height: 1; letter-spacing: .02em; }
.logo-xl { font-size: 54px; }
.hand { font-family: var(--hand); font-weight: 400; font-size: 30px; line-height: 1; }
.caps { font-size: 11.5px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.caps-xs { font-size: 10px; letter-spacing: .24em; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.fine { font-size: 12px; color: var(--ink-3); }
.up { color: var(--up); }
.down { color: var(--down); }

/* ─── Buttons ───────────────────────────────────── */
.btn {
  border-radius: 999px; padding: 10px 18px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-solid:hover { background: #33312e; }
.btn.is-connected { border-color: var(--sepia); color: var(--ink); background: var(--sepia-soft); }

/* ─── Nav ───────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  max-width: 1320px; margin: 0 auto; padding: 14px 32px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--line-2); }
.online { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(76,122,89,.45); animation: pulse 2.4s infinite; }
.online.off .pulse-dot { background: var(--ink-3); animation: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.nav-links a:hover { color: var(--ink); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76,122,89,.45); }
  70% { box-shadow: 0 0 0 8px rgba(76,122,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,122,89,0); }
}

/* ─── Hero ──────────────────────────────────────── */
.hero { max-width: 1320px; margin: 0 auto; padding: 6px 32px 0; }
.hero-media {
  position: relative; overflow: hidden; border-radius: 26px;
  aspect-ratio: 2170 / 725; background: #ddd5ca;
}
.hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.hero-mobile-title { display: none; }
.hero-live {
  position: absolute; left: 2.4%; bottom: 7%;
  display: grid; gap: 4px; min-width: 260px;
  padding: 14px 18px 15px;
  border-radius: 16px;
  background: rgba(255, 253, 250, .78);
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 10px 40px -12px rgba(29,28,26,.35);
}
.hero-live-row { display: flex; align-items: center; gap: 9px; }
.hero-live strong { font-weight: 500; font-size: 17px; }
.hero-live-sub { font-size: 13px; color: var(--ink-2); }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sepia); animation: pulse-sepia 1.8s infinite; }
.hero-live[data-state="celebrating"] .state-dot { background: var(--up); }
.hero-live[data-state="idle"] .state-dot { background: var(--ink-3); animation: none; }
@keyframes pulse-sepia {
  0% { box-shadow: 0 0 0 0 rgba(179,150,116,.6); }
  70% { box-shadow: 0 0 0 9px rgba(179,150,116,0); }
  100% { box-shadow: 0 0 0 0 rgba(179,150,116,0); }
}
.swap-in { animation: swapIn .5s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ─── Board ─────────────────────────────────────── */
.board {
  max-width: 1320px; margin: 0 auto; padding: 28px 32px 0;
  display: grid; gap: 20px;
  grid-template-columns: 360px minmax(0, 1fr) 380px;
  align-items: start;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tag { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--sepia-soft); color: #7d6447; letter-spacing: .04em; }

/* Agent stage */
.stage { position: relative; width: 196px; height: 196px; margin: 4px auto 18px; }
.stage-avatar {
  position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px);
  border-radius: 50%; object-fit: cover; object-position: 50% 28%;
  background: #fff;
  animation: breathe 5s ease-in-out infinite;
  transition: filter .6s, transform .6s var(--ease);
}
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, var(--sepia) 88%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: 0; transition: opacity .5s;
}
.ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }

@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.015); } }
@keyframes spin { to { transform: rotate(360deg); } }

.stage[data-state="idle"] .stage-avatar { filter: saturate(.75) brightness(1.02); }
.stage[data-state="watching"] .ring { opacity: 1; animation: spin 2.6s linear infinite; }
.stage[data-state="thinking"] .ring { opacity: .9; animation: spin 1.1s linear infinite; }
.stage[data-state="thinking"] .stage-avatar { transform: rotate(-3deg) scale(1.02); animation: none; }
.stage[data-state="trading"] .ring {
  opacity: 1; animation: none;
  background: conic-gradient(var(--ink) 0 100%);
}
.stage[data-state="trading"] .stage-avatar { animation: nudge .5s var(--ease) 2; }
.stage[data-state="celebrating"] .ring {
  opacity: 1; animation: spin 4s linear infinite;
  background: conic-gradient(var(--up), var(--sepia), var(--up));
}
.stage[data-state="celebrating"] .stage-avatar { animation: hop .9s var(--ease) 3; }
@keyframes nudge { 50% { transform: translateX(3px); } }
@keyframes hop { 0%,100% { transform: translateY(0); } 35% { transform: translateY(-10px) rotate(2deg); } 60% { transform: translateY(0) rotate(-1deg); } }

/* thought bubble */
.thought {
  position: absolute; top: 4px; right: -14px;
  display: flex; gap: 4px; align-items: center;
  padding: 9px 12px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 6px 18px -8px rgba(29,28,26,.25);
  opacity: 0; transform: translateY(6px) scale(.9); transform-origin: bottom left;
  transition: opacity .35s, transform .35s var(--ease);
}
.thought::after {
  content: ""; position: absolute; left: 6px; bottom: -9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--card); border: 1px solid var(--line-2);
}
.thought i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); animation: dot 1.2s infinite; }
.thought i:nth-child(2) { animation-delay: .15s; }
.thought i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.stage[data-state="thinking"] .thought { opacity: 1; transform: none; }

/* sparkles */
.sparkles i {
  position: absolute; width: 8px; height: 8px; opacity: 0;
  background: var(--sepia);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.sparkles i:nth-child(1) { top: 6%; left: 8%; }
.sparkles i:nth-child(2) { top: 0; right: 18%; width: 11px; height: 11px; }
.sparkles i:nth-child(3) { top: 46%; right: -6px; }
.sparkles i:nth-child(4) { bottom: 6%; left: -2px; width: 10px; height: 10px; background: var(--up); }
.sparkles i:nth-child(5) { bottom: -2px; right: 14%; background: var(--up); }
.stage[data-state="celebrating"] .sparkles i { animation: twinkle 1.4s var(--ease) infinite; }
.stage[data-state="celebrating"] .sparkles i:nth-child(2n) { animation-delay: .4s; }
.stage[data-state="celebrating"] .sparkles i:nth-child(3n) { animation-delay: .8s; }
@keyframes twinkle { 0% { opacity: 0; transform: scale(.3) rotate(0); } 40% { opacity: 1; transform: scale(1.1) rotate(45deg); } 100% { opacity: 0; transform: scale(.6) rotate(90deg); } }

.float-pnl {
  position: absolute; left: 50%; top: 40%;
  font: 500 15px var(--mono); color: var(--up);
  background: var(--card); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
  opacity: 0; transform: translate(-50%, 0); pointer-events: none;
}
.float-pnl.go { animation: floatUp 2.2s var(--ease) forwards; }
.float-pnl.is-down { color: var(--down); }
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -90px); }
}

.state-copy { text-align: center; }
.state-copy .ko { display: block; font-family: var(--hand); font-size: 22px; color: var(--sepia); line-height: 1; margin-bottom: 4px; }
.state-copy h3 { font-size: 19px; font-weight: 500; }
.state-copy p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; min-height: 2.9em; }

.state-track {
  list-style: none; margin: 14px 0 18px; padding: 4px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  background: var(--paper); border-radius: 999px; border: 1px solid var(--line);
}
.state-track li {
  text-align: center; font-size: 11px; letter-spacing: .03em; padding: 5px 0; border-radius: 999px;
  color: var(--ink-3); transition: background .35s, color .35s;
}
.state-track li.on { background: var(--ink); color: var(--paper); }

/* His screen — echoes the black monitors in the banner */
.screen {
  background: var(--screen); color: #e9e4dc; border-radius: 14px; padding: 14px 14px 12px;
  font-family: var(--mono); font-size: 11.5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.screen-top { display: flex; justify-content: space-between; color: #8f8a83; font-size: 10.5px; letter-spacing: .06em; }
.screen-brand { color: #cfc8bd; }
.screen-mode { text-transform: uppercase; }
.screen-token { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 2px; }
.ticker { font-size: 17px; color: #fff; letter-spacing: .02em; }
.screen-change { font-size: 12px; }
.screen-change.up { color: #8fc39d; }
.screen-change.down { color: #e19a8e; }
.screen-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 10px; }
.screen-stats div { background: var(--screen-2); border-radius: 8px; padding: 6px 8px; }
.screen-stats dt { color: #8f8a83; font-size: 9.5px; letter-spacing: .08em; }
.screen-stats dd { margin: 1px 0 0; color: #f1ece4; }

.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 10px; border-top: 1px solid var(--line); }
.stats div { padding: 14px 0 12px; }
.stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
.stats dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { margin: 3px 0 0; font-size: 16px; }

.ticker-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.token-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--screen-2); }
.ticker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tape { display: flex; align-items: flex-end; gap: 3px; height: 48px; margin-top: 8px; border-bottom: 1px solid var(--screen-2); }
.tape i { flex: 1; max-width: 14px; min-height: 3px; border-radius: 2px 2px 0 0; background: #8f8a83; transform-origin: bottom; animation: grow .6s var(--ease); }
.tape i.sell { background: #8fc39d; }
.tape i.sell.loss { background: #e19a8e; }
.tape i.gift { background: transparent; border: 1px dashed #8f8a83; border-bottom: 0; }
.tape:empty::after { content: "no trades yet"; color: #6d6862; font-size: 10.5px; margin: auto; align-self: center; }
@keyframes grow { from { transform: scaleY(0); } }
.screen-link { display: inline-block; margin-top: 2px; color: #cfc8bd; font-size: 10.5px; text-decoration: none; letter-spacing: .04em; }
.screen-link:hover { color: #fff; }
.fine a { color: inherit; }
.fine a:hover { color: var(--ink); }

/* Journal */
.entries { list-style: none; margin: 0; padding: 0; position: relative; }
.entries::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.entry { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 0 0 20px 26px; }
.entry::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--ink-3);
}
.entry[data-kind="spot"]::before { border-color: var(--sepia); }
.entry[data-kind="research"]::before { border-color: var(--ink-2); border-style: dashed; }
.entry[data-kind="open"]::before { background: var(--ink); border-color: var(--ink); }
.entry[data-kind="win"]::before { background: var(--up); border-color: var(--up); }
.entry[data-kind="loss"]::before { background: var(--down); border-color: var(--down); }
.entry[data-kind="fee"]::before { background: var(--sepia); border-color: var(--sepia); }
.entry[data-kind="gift"]::before { border-color: var(--sepia); border-style: dashed; }
.entry-title { font-weight: 500; font-size: 15px; display: flex; align-items: center; min-width: 0; }
.entry-time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.entry-body { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.entry-body em { font-family: var(--hand); font-style: normal; font-size: 19px; color: var(--ink); line-height: 1; }
.entry-meta { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; align-items: center; }
.chip { font-size: 10.5px; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.chip { white-space: nowrap; flex: none; }
.chip-amt { font-family: var(--mono); border: 0; padding: 0; font-size: 12.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-meta a { margin-left: auto; white-space: nowrap; flex: none; font-size: 11.5px; color: var(--ink-3); text-decoration: none; }
.entry-meta a:hover { color: var(--ink); }
.entry-token { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; margin-right: 7px; }
.entry-token + .entry-token { margin-left: -12px; box-shadow: 0 0 0 2px var(--card); }
.empty { text-align: center; padding: 34px 12px 26px; color: var(--ink-2); }
.empty .hand { display: block; font-size: 30px; color: var(--sepia); margin-bottom: 8px; }
.empty p { font-size: 14px; max-width: 34ch; margin: 0 auto; }
.entry.is-new { animation: entryIn .7s var(--ease); }
@keyframes entryIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Chat */
.chat { display: flex; flex-direction: column; position: sticky; top: 80px; }
.quota { font-size: 12px; color: var(--ink-2); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.messages {
  display: flex; flex-direction: column; gap: 12px;
  height: 340px; overflow-y: auto; padding: 4px 2px 8px; scroll-behavior: smooth;
}
.msg { display: flex; gap: 9px; align-items: flex-end; max-width: 92%; animation: swapIn .4s var(--ease); }
.msg img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; flex: none; }
.msg.err p { color: var(--down); }
.msg p { padding: 10px 14px; border-radius: 16px; font-size: 14px; }
.msg.k p { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.u { align-self: flex-end; }
.msg.u p { background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.msg.typing p { display: flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); animation: dot 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.suggest button { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); transition: border-color .2s, color .2s; }
.suggest button:hover { border-color: var(--ink); color: var(--ink); }
.composer { display: flex; gap: 8px; padding: 5px 5px 5px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); transition: border-color .2s; }
.composer:focus-within { border-color: var(--ink); }
.composer input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink); }
.composer input::placeholder { color: var(--ink-3); }
.send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex: none; transition: transform .2s var(--ease), opacity .2s; }
.send:active { transform: scale(.92); }
.composer.is-locked { opacity: .55; }
.composer.is-locked .send { cursor: not-allowed; }
.chat .fine { margin-top: 10px; }

/* ─── Token ─────────────────────────────────────── */
.token {
  max-width: 1320px; margin: 72px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center;
}
.token-title { font-family: var(--hand); font-weight: 400; font-size: 84px; line-height: .9; margin: 12px 0 8px; }
.lede { font-size: 22px; font-weight: 300; }
.token .body { color: var(--ink-2); margin: 14px 0 22px; max-width: 46ch; }
.token .fine { margin-top: 10px; min-height: 1.4em; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.utility { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.utility th, .utility td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.utility tbody tr:last-child > * { border-bottom: 0; }
.utility thead th { font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.utility tbody th { font-weight: 400; }
.utility td { color: var(--ink-2); }
.utility td:last-child { color: var(--ink); font-weight: 500; }
.utility thead th:last-child { color: #7d6447; }

.ca { margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); display: grid; gap: 8px; max-width: 520px; }
.ca .caps { color: #7d6447; }
.ca-row { display: flex; align-items: center; gap: 10px; }
.ca code { flex: 1; min-width: 0; font: 13.5px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.ca-copy:hover { border-color: var(--ink); }
.ca a { font-size: 13px; color: var(--ink-2); }
.ca .fine { margin: 0; }
.chat-meta { display: flex; align-items: center; gap: 8px; }
.holder-badge { font-size: 11px; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--sepia-soft); color: #7d6447; }

/* ─── How ───────────────────────────────────────── */
.how { max-width: 1320px; margin: 88px auto 0; padding: 0 32px; }
.how-title { font-size: 40px; margin-bottom: 22px; }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.how-grid li { padding: 18px 24px 0 0; }
.how-grid li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.how-grid .num { font-size: 12px; color: var(--sepia); }
.how-grid h3 { font-size: 17px; font-weight: 500; margin: 6px 0 4px; }
.how-grid p { font-size: 14px; color: var(--ink-2); }
.rules { margin-top: 36px; padding: 16px 20px; border-radius: 14px; background: var(--sepia-soft); font-size: 14px; color: var(--ink-2); display: flex; gap: 16px; align-items: baseline; }
.rules .caps { color: #7d6447; white-space: nowrap; }

/* ─── Footer ────────────────────────────────────── */
.foot {
  max-width: 1320px; margin: 88px auto 0; padding: 28px 32px 40px;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.foot .fine { margin-left: auto; }

/* ─── Toast ─────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 999px; font-size: 13.5px;
  transition: opacity .3s, transform .4s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1180px) {
  .board { grid-template-columns: 340px minmax(0, 1fr); }
  .chat { grid-column: 1 / -1; position: static; }
  .messages { height: 300px; }
}
@media (max-width: 860px) {
  .nav { padding: 12px 16px; gap: 14px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; padding: 8px 14px; font-size: 12.5px; }
  .hero { padding: 4px 16px 0; }
  .hero-media { aspect-ratio: 4 / 5; border-radius: 22px; }
  .hero-media > img { object-position: 57% 40%; }
  .hero-mobile-title {
    display: grid; gap: 8px; position: absolute; left: 20px; right: 20px; top: 22px;
  }
  .hero-mobile-title .caps { font-size: 10px; color: var(--ink); line-height: 1.8; }
  .hero-media::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 38%; z-index: 0;
    background: linear-gradient(rgba(247,244,239,.85), rgba(247,244,239,0));
  }
  .hero-mobile-title { z-index: 1; }
  .hero-live { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
  .board { grid-template-columns: 1fr; padding: 20px 16px 0; gap: 16px; }
  .card { padding: 18px; }
  .token { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; padding: 0 16px; }
  .token-title { font-size: 68px; }
  .utility th, .utility td { padding: 13px 14px; font-size: 13.5px; }
  .how { margin-top: 64px; padding: 0 16px; }
  .how-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .how-grid li, .how-grid li + li { padding: 16px 12px 0 0; border-left: 0; }
  .rules { flex-direction: column; gap: 6px; }
  .foot { padding: 24px 16px 32px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot .fine { margin-left: 0; }
}
@media (max-width: 420px) {
  .online { display: none; }
  .state-track li { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
