:root {
  --bg: #060706;
  --panel: #0c0e0d;
  --panel2: #111413;
  --line: rgba(244, 240, 230, 0.09);
  --line2: rgba(244, 240, 230, 0.16);
  --cream: #f4f0e6;
  --text: #f6f4ef;
  --mute: #8d9590;
  --g: #4cd662;
  --g-dim: rgba(76, 214, 98, 0.14);
  --red: #ff6b6b;
  --amber: #f2b84b;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* the page itself is a sheet: faint cell lines that fade out */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(244, 240, 230, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 240, 230, 0.045) 1px, transparent 1px);
  background-size: 112px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, #000 20%, transparent 85%);
}
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(76, 214, 98, 0.1); color: #b8f5c2; padding: 0.08em 0.4em; border-radius: 6px; white-space: nowrap; }
img { max-width: 100%; }
.hl { color: var(--g); }
.muted { color: var(--mute); }
.ref { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--g); margin: 0 0 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn-green { background: var(--g); color: #04120a; }
.btn-green:hover { box-shadow: 0 8px 30px rgba(76, 214, 98, 0.35); }
.btn-cream { background: var(--cream); color: #0b0c0b; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(6, 7, 6, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { border-radius: 8px; flex: none; }
.brand-name { font: 700 18px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand-tick { font: 500 12px/1 var(--mono); color: var(--g); border: 1px solid rgba(76, 214, 98, 0.35); padding: 4px 7px; border-radius: 6px; }
.nav-links { display: flex; gap: 22px; margin-left: 18px; }
.nav-links a { text-decoration: none; color: var(--mute); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(24px, 4vw, 64px);
  align-items: center; max-width: 1320px; margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(28px, 4vw, 48px);
}
.hero-copy { min-width: 0; container-type: inline-size; }
.hero h1 {
  font: 800 clamp(28px, 9.4cqw, 88px)/0.95 var(--display);
  letter-spacing: -0.035em; margin: 0 0 22px;
}
.lede { font-size: clamp(16px, 1.5vw, 19px); color: #c9cfcb; max-width: 560px; margin: 0 0 28px; }
.lede code { white-space: normal; word-break: break-word; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 580px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.tile-k { display: block; font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }
.tile b { display: block; font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--mono); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.tile small { color: var(--mute); font-size: 12px; }

.hero-art { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.mascot {
  position: relative; width: min(470px, 100%); aspect-ratio: 1; container-type: inline-size;
  overflow: hidden; animation: float 7s ease-in-out infinite;
}
.mascot img { position: absolute; display: block; }
/* before the cut-out is ready: show only the grid, with the black square blended away */
.mascot img.raw { width: 195%; max-width: none; left: -47.6%; top: -47.6%; mix-blend-mode: lighten; }
.mascot img.cut { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(76, 214, 98, 0.12)); }
.mtiles { position: absolute; inset: 0; }
.mt {
  position: absolute; width: 29.3%; height: 29.3%; padding: 7% 0 0 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2.4cqw 2.6cqw; color: #121411; pointer-events: none;
}
.mt .k { font: 500 2.5cqw/1.1 var(--mono); color: #8b877c; text-transform: uppercase; letter-spacing: 0.04em; }
.mt .v { font: 800 5.6cqw/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.4s; }
.mt .v.up { color: #17a432; }
.mt .v.down { color: #d23c3c; }
.mt.on { animation: tileIn 0.5s ease both; }
.mpill { position: absolute; left: 36%; top: 36%; width: 28%; height: 28%; border-radius: 30%; display: grid; place-items: end center; text-decoration: none; }
.mpill span { font: 700 2.6cqw/1 var(--mono); color: var(--g); opacity: 0; transform: translateY(4px); transition: 0.2s; padding-bottom: 1cqw; }
.mpill:hover span, .mpill:focus span { opacity: 1; transform: none; }
.art-cap { font: 500 12px/1.4 var(--mono); color: var(--mute); margin: 10px 0 0; text-align: center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes tileIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ticker */
.ticker { display: flex; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(12, 14, 13, 0.8); height: 44px; overflow: hidden; }
.ticker-tag { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 100%; border-right: 1px solid var(--line); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--g); background: var(--bg); }
.ticker-view { flex: 1; overflow: hidden; min-width: 0; }
.ticker-track { display: flex; gap: 34px; width: max-content; padding-left: 20px; animation: scroll 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1 var(--mono); white-space: nowrap; color: #d4d9d5; }
.tk img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.tk b { color: var(--text); font-weight: 700; }
.tk .up { color: var(--g); } .tk .down { color: var(--red); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 0 rgba(76, 214, 98, 0.6); animation: pulse 1.8s infinite; display: inline-block; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 214, 98, 0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(76, 214, 98, 0); } }

/* sections */
main { display: block; }
.sec { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px) 0; }
.sec-head { max-width: 760px; margin-bottom: 26px; container-type: inline-size; }
.sec h2 { font: 800 clamp(30px, 6.2cqw, 54px)/1.02 var(--display); letter-spacing: -0.03em; margin: 0 0 12px; }
.sub { color: #b9c0bb; margin: 0; font-size: 17px; }

/* the app window */
.app { background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(76, 214, 98, 0.05); }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.app-title { display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--body); min-width: 0; white-space: nowrap; overflow: hidden; }
.app-title img { border-radius: 5px; }
.app-title .sep { color: var(--mute); }
.app-live { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--mute); white-space: nowrap; }
.app-live.off .dot { background: var(--amber); animation: none; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tb { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 6px 11px; font: 500 13px/1 var(--body); cursor: pointer; transition: background 0.15s; }
.tb:hover { background: rgba(255, 255, 255, 0.09); }
.tb-sep { width: 1px; height: 20px; background: var(--line2); margin: 0 4px; }
.tb-label { font: 500 12px/1 var(--mono); color: var(--mute); }
.swatches { display: flex; gap: 6px; }
.sw { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line2); cursor: pointer; padding: 0; transition: transform 0.12s; }
.sw:hover { transform: scale(1.12); }
.sw-none { background: linear-gradient(135deg, transparent 45%, var(--red) 46%, var(--red) 54%, transparent 55%), var(--panel); }
.sw-g { background: #1f5a2a; } .sw-r { background: #6a2424; } .sw-y { background: #6a5020; } .sw-b { background: #213e6a; }
.tb-note { font: 400 12px/1 var(--mono); color: var(--mute); margin-left: auto; }

.fxbar { display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--bg); }
.cellref { width: 64px; flex: none; text-align: center; font: 600 13px/1 var(--mono); color: var(--g); border-right: 1px solid var(--line); padding: 11px 0; }
.fx { font: italic 600 14px/1 Georgia, serif; color: var(--mute); padding: 0 10px; border-right: 1px solid var(--line); }
#fx { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 400 14px/1 var(--mono); padding: 11px 12px; }
.fxhint { font: 400 12px/1.4 var(--mono); color: var(--mute); padding: 6px 12px; border-bottom: 1px solid var(--line); min-height: 29px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxhint b { color: var(--g); font-weight: 600; }

.grid-wrap { position: relative; overflow: auto; max-height: 640px; overscroll-behavior: contain; }
.grid { display: grid; width: max-content; min-width: 100%; font: 400 13px/1 var(--mono); }
.grid > div { height: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 9px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ch, .rh { background: var(--panel2); color: var(--mute); font-size: 11px; justify-content: center; user-select: none; position: sticky; z-index: 2; }
.ch { top: 0; cursor: pointer; gap: 4px; }
.ch:hover { color: var(--text); background: #171b19; }
.ch.sorted { color: var(--g); }
.rh { left: 0; z-index: 3; }
.corner { position: sticky; top: 0; left: 0; z-index: 4; background: var(--panel2); }
.c { cursor: cell; font-variant-numeric: tabular-nums; position: relative; transition: background 0.5s; }
.c.num { justify-content: flex-end; }
.c.txt-h { color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.c.title { font: 700 14px/1 var(--display); color: var(--text); overflow: visible; }
.grid > .c.ov { overflow: visible; z-index: 1; }
.ovt { display: block; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c.sel { outline: 2px solid var(--g); outline-offset: -2px; z-index: 1; }
.c.insel { background: rgba(76, 214, 98, 0.08); }
.c.spill { color: #dfe4e0; }
.c.pos { color: var(--g); } .c.neg { color: var(--red); }
.c.warn { color: var(--amber); }
.c.err { color: var(--red); font-size: 12px; }
.c.wait::after { content: "···"; color: var(--mute); animation: blink 1s infinite; }
.c.dim { color: var(--mute); }
.c.flash-up { background: rgba(76, 214, 98, 0.22); transition: none; }
.c.flash-dn { background: rgba(255, 107, 107, 0.2); transition: none; }
.c.f-g { background: rgba(76, 214, 98, 0.16); } .c.f-r { background: rgba(255, 107, 107, 0.16); }
.c.f-y { background: rgba(242, 184, 75, 0.16); } .c.f-b { background: rgba(106, 168, 255, 0.16); }
.coin { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; }
.coin img, .coin .lb { width: 18px; height: 18px; border-radius: 50%; flex: none; object-fit: cover; background: #1b1f1d; }
.coin .lb { display: inline-grid; place-items: center; font-size: 10px; color: var(--mute); }
.coin b { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.act { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; padding: 5px 9px; font: 700 12px/1 var(--mono); cursor: pointer; background: var(--g); color: #04120a; transition: transform 0.12s, box-shadow 0.12s; }
.act:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(76, 214, 98, 0.35); }
.act.sell { background: #ff8a8a; color: #1d0606; }
@keyframes blink { 50% { opacity: 0.3; } }
.cell-edit { position: absolute; z-index: 6; background: #0b0d0c; color: var(--text); border: 2px solid var(--g); outline: 0; font: 400 13px/1 var(--mono); padding: 0 8px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }

.tabs { display: flex; gap: 2px; padding: 0 8px; background: var(--panel2); border-top: 1px solid var(--line); overflow-x: auto; }
.tab { background: transparent; border: 0; border-top: 2px solid transparent; color: var(--mute); font: 500 13px/1 var(--body); padding: 11px 14px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-top-color: var(--g); background: var(--panel); }
.statusbar { display: flex; justify-content: space-between; gap: 14px; padding: 7px 12px; border-top: 1px solid var(--line); font: 400 12px/1.3 var(--mono); color: var(--mute); }
.statusbar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.try { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--mute); }
.try-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--panel); border: 1px solid var(--line2); color: #cfe9d4; border-radius: 999px; padding: 7px 12px; font: 400 12.5px/1 var(--mono); cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.chip:hover { border-color: var(--g); transform: translateY(-1px); }

/* formula table */
.ftable { border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.fgroup { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--g); padding: 14px 16px 8px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.frow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 0.9fr) 64px; gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); transition: background 0.15s; }
.frow:hover { background: rgba(255, 255, 255, 0.025); }
.frow code { background: none; padding: 0; color: var(--text); font-size: 13px; white-space: normal; word-break: break-word; }
.frow p { margin: 0; color: #b4bbb6; font-size: 14px; }
.frow .live { font: 500 13px/1.3 var(--mono); color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .live.pos { color: var(--g); } .frow .live.neg { color: var(--red); }
.use { background: transparent; border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 6px 0; font: 500 12px/1 var(--body); cursor: pointer; width: 100%; }
.use:hover { border-color: var(--g); color: var(--g); }

/* flow */
.flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.node { flex: 1 1 0; min-width: 150px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); padding: 16px; }
.node.hot { border-color: rgba(76, 214, 98, 0.6); box-shadow: 0 0 40px rgba(76, 214, 98, 0.12); }
.n-k { display: block; font: 500 11px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.node code { display: inline-block; font-size: 13px; }
.node p { margin: 10px 0 0; font-size: 14px; color: #b4bbb6; }
.arrow { flex: 0 0 34px; position: relative; align-self: center; height: 2px; background: linear-gradient(90deg, var(--line2), var(--g)); }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; border: 5px solid transparent; border-left-color: var(--g); border-right: 0; }
.arrow::before { content: ""; position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--g); animation: travel 2.2s linear infinite; }
@keyframes travel { from { left: 0; opacity: 1; } to { left: 28px; opacity: 0; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.fact { border-top: 2px solid var(--g); background: var(--panel); border-radius: 0 0 var(--r) var(--r); padding: 16px; }
.fact b { font: 700 17px/1.2 var(--display); }
.fact p { margin: 8px 0 0; font-size: 14px; color: #b4bbb6; }

/* lore */
.lore { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.lore-art { display: grid; place-items: center; }
.lore-art img { width: min(360px, 100%); aspect-ratio: 1; object-fit: cover; }
.lore-art img.raw { mix-blend-mode: lighten; }
.lore-copy { container-type: inline-size; }
.lore-copy p:not(.ref) { font-size: 18px; color: #c9cfcb; margin: 0 0 14px; max-width: 560px; }

/* token */
.token { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; background: linear-gradient(135deg, rgba(76, 214, 98, 0.08), transparent 55%), var(--panel); border: 1px solid var(--line2); border-radius: 22px; padding: clamp(22px, 4vw, 44px); }
.token-l { container-type: inline-size; min-width: 0; }
.token-l h2 { font-size: clamp(28px, 8cqw, 54px); }
.ca-box { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; background: var(--bg); border: 1px dashed var(--line2); border-radius: 12px; padding: 10px 10px 10px 14px; min-width: 0; }
.ca-k { font: 700 12px/1 var(--mono); color: var(--g); }
#ca { flex: 1; min-width: 0; font: 400 14px/1.3 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.mini { border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; font: 400 13px/1 var(--mono); background: var(--bg); }
.mini-row { display: grid; grid-template-columns: 34px minmax(0, 0.9fr) minmax(0, 1.4fr); border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.mini-row span { padding: 11px 10px; border-right: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row span:first-child { color: var(--mute); text-align: center; background: var(--panel2); font-size: 11px; }
.mini-row span:last-child { border-right: 0; }
.mini-h span { color: var(--mute); background: var(--panel2); text-align: center; font-size: 11px; padding: 7px; }

.foot { max-width: 1320px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px) 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); font-size: 13px; }
.foot-src { font-family: var(--mono); font-size: 12px; }

/* trade modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #101312; border: 1px solid var(--line2); border-radius: 18px; padding: 20px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7); animation: tileIn 0.25s ease; }
.tm-head { display: flex; justify-content: space-between; align-items: center; }
.tm-head h3 { margin: 0; font: 700 22px/1.1 var(--display); }
.x { background: none; border: 0; color: var(--mute); font-size: 26px; cursor: pointer; line-height: 1; }
.tm-coin { display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: 400 13px/1.4 var(--mono); }
.tm-coin img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tm-coin b { font: 700 16px/1.2 var(--display); display: block; }
.tm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-form label span { display: block; font: 500 11px/1 var(--mono); text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.tm-form input, .tm-form select { width: 100%; background: var(--bg); border: 1px solid var(--line2); color: var(--text); border-radius: 10px; padding: 10px; font: 400 15px/1 var(--mono); }
.tm-quote { margin: 12px 0 0; font: 400 13px/1.5 var(--mono); color: #cfd5d1; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.tm-xray { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: #d7dcd8; }
.tm-xray .xk { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber); display: block; margin-bottom: 6px; }
.tm-xray ul { margin: 0; padding-left: 18px; }
.tm-go { width: 100%; margin-top: 16px; padding: 14px; font-size: 15px; }
.tm-msg { min-height: 20px; margin: 10px 0 0; font-size: 14px; }
.tm-msg a { color: var(--g); }
.tm-fine { margin: 6px 0 0; font-size: 12px; color: var(--mute); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: var(--cream); color: #0b0c0b; font: 600 14px/1 var(--body); padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }

/* reveal: never leaves content hidden (fallback class after 1.5 s) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in, .show-all .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mascot, .ticker-track, .dot { animation: none; }
}

@media (max-width: 1060px) {
  .nav-links { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .mascot { width: min(340px, 82vw); }
  .lore, .token { grid-template-columns: minmax(0, 1fr); }
  .frow { grid-template-columns: minmax(0, 1fr) 64px; gap: 6px 12px; }
  .frow p { grid-column: 1 / -1; grid-row: 2; }
  .frow .live { grid-column: 1 / -1; grid-row: 3; }
  .frow .use { grid-column: 2; grid-row: 1; }
  .flow { flex-direction: column; }
  .node { min-width: 0; }
  .arrow { flex: 0 0 26px; width: 2px; height: 26px; align-self: center; background: linear-gradient(180deg, var(--line2), var(--g)); }
  .arrow::after { right: -4px; top: auto; bottom: 0; border: 5px solid transparent; border-top-color: var(--g); border-bottom: 0; }
  .arrow::before { left: -2px; animation: travel-v 2.2s linear infinite; }
}
@keyframes travel-v { from { top: 0; opacity: 1; } to { top: 20px; opacity: 0; } }
@media (max-width: 560px) {
  .nav { gap: 10px; padding: 10px 14px; }
  .brand-name, .brand-tick { display: none; }
  .nav-actions .btn { padding: 9px 12px; font-size: 13px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tile { padding: 10px; }
  .tile small { display: none; }
  .tile-k { font-size: 9.5px; }
  .tile b { font-size: 17px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .tb-note { display: none; }
  .tm-form { grid-template-columns: 1fr; }
  .grid-wrap { max-height: 520px; }
}

/* layout-check fixes: wrap instead of cut off */
.fxhint { white-space: normal; overflow: visible; text-overflow: clip; }
.mini-row span, .frow .live, .statusbar span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }
.tabs { flex-wrap: wrap; overflow-x: visible; }
.grid > div { padding: 0 6px; text-overflow: clip; }
.grid > div:has(> .act) { overflow: visible; }
.act { white-space: nowrap; flex: none; }
