/* ================= INTRO ================= */
.no-intro #intro { display: none; }
body.locked { overflow: hidden; }
.with-intro main .split-line > span { animation-play-state: paused; }
.intro { position: fixed; inset: 0; z-index: 200; background: #050302; overflow: hidden; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.intro.ready canvas { opacity: 1; }
.intro.leaving { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.65) 100%), linear-gradient(transparent 70%, rgba(0, 0, 0, 0.55)); }
.intro-cap {
  position: absolute; left: 0; right: 0; bottom: clamp(70px, 14vh, 140px); margin: 0; padding: 0 24px; text-align: center;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4.4vw, 60px); letter-spacing: -0.04em; line-height: 1;
  color: #fff4e2; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(18px); filter: blur(8px);
}
.intro-cap.show { animation: capIn 2.6s var(--ease) forwards; }
@keyframes capIn { 0% { opacity: 0; transform: translateY(18px); filter: blur(8px); } 18% { opacity: 1; transform: none; filter: blur(0); } 82% { opacity: 1; transform: none; filter: blur(0); } 100% { opacity: 0; transform: translateY(-10px); filter: blur(6px); } }
.intro-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 178, 63, 0.12); }
.intro-bar i { position: absolute; inset: 0; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }
.intro-skip {
  position: absolute; top: max(18px, env(safe-area-inset-top)); right: 18px; z-index: 3;
  border: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(20, 14, 10, 0.55); color: #f6efe4; box-shadow: inset 0 0 0 1px rgba(255, 222, 180, 0.18);
  backdrop-filter: blur(8px); transition: background 0.2s;
}
.intro-skip:hover { background: rgba(40, 28, 18, 0.8); }
.at-gate .intro-skip, .at-gate .intro-bar { opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.gate { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 24px; opacity: 0; pointer-events: none; background: radial-gradient(60% 60% at 50% 50%, rgba(10, 6, 3, 0.15), rgba(5, 3, 2, 0.7)); transition: opacity 1.2s var(--ease); }
.at-gate .gate { opacity: 1; pointer-events: auto; }
.gate .split-line > span { animation-play-state: paused; }
.at-gate .gate .split-line > span { animation-play-state: running; }
.gate-title { margin: 0 0 36px; font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 12vw, 190px); line-height: 0.86; letter-spacing: -0.055em; color: #fff4e2; text-shadow: 0 10px 80px rgba(0, 0, 0, 0.6); }
.gate-title .accent { color: var(--amber); text-shadow: 0 0 60px rgba(255, 154, 31, 0.45); }
.gate-btn { opacity: 0; transform: translateY(14px); transition: opacity 0.8s 0.5s var(--ease), transform 0.8s 0.5s var(--ease), box-shadow 0.35s var(--ease), background 0.25s; box-shadow: 0 0 0 0 rgba(255, 178, 63, 0.6); }
.at-gate .gate-btn { opacity: 1; transform: none; animation: beckon 2.4s 1.4s ease-out infinite; }
.gate-btn:hover { animation: none; }
@keyframes beckon { 0% { box-shadow: 0 0 0 0 rgba(255, 178, 63, 0.55); } 70%, 100% { box-shadow: 0 0 0 22px rgba(255, 178, 63, 0); } }
.gate-hint { margin: 18px 0 0; font-size: 13px; color: rgba(246, 239, 228, 0.55); font-family: var(--f-mono); }
.gate-mark { display: block; width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%; background: var(--amber) url("/img/ant-ink.svg") center / 70% no-repeat; box-shadow: 0 0 80px rgba(255, 154, 31, 0.55); opacity: 0; transform: scale(0.6); transition: 0.9s 0.2s var(--ease); }
.at-gate .gate-mark { opacity: 1; transform: none; }
.no-gl { background: radial-gradient(70% 60% at 50% 45%, #3a1f0c 0%, #120904 55%, #050302 100%); }

/* ================= HOME ================= */
.hero { padding-top: 12px; }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; top: clamp(34px, 6vh, 80px); padding: 0 20px; text-align: center; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-title { margin: 20px 0 22px; font-size: clamp(44px, 7.2vw, 116px); text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.hero-lead { text-align: center; margin-inline: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.colony-frame {
  position: relative; margin: 0 auto; width: min(1480px, 100% - 2 * var(--gutter));
  height: clamp(980px, calc(100vh - var(--nav-h) - 16px) * 1.6, 1340px); border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(80% 50% at 50% 0%, rgba(255, 154, 31, 0.08), transparent 70%), #0b0806;
  box-shadow: var(--sh-3), inset 0 0 0 1px var(--line);
}
.colony-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.colony-legend { position: absolute; left: 20px; right: 20px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--text-2); pointer-events: none; }
.colony-legend .mono { margin-left: auto; color: var(--text-3); }
.lg-ant { display: inline-block; width: 14px; height: 6px; border-radius: 4px; margin-right: 8px; vertical-align: middle; }
.lg-ant.buy { background: var(--amber); box-shadow: 0 0 10px rgba(255, 178, 63, 0.7); }
.lg-ant.sell { background: #ff6a5c; }
.colony-tip {
  position: absolute; top: 0; left: 0; width: 240px; z-index: 3; pointer-events: none;
  padding: 16px; border-radius: var(--r-lg); background: rgba(24, 18, 13, 0.94); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.2s, transform 0.35s var(--ease);
}
.colony-tip.show { opacity: 1; }
.tip-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tip-top b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-top .mono { color: var(--text-3); font-size: 12px; }
.tip-price { display: flex; justify-content: space-between; margin: 8px 0 12px; font-size: 15px; }
.colony-tip dl { margin: 0; display: grid; gap: 6px; }
.colony-tip dl div { display: flex; justify-content: space-between; font-size: 13px; }
.colony-tip dt { color: var(--text-3); }
.colony-tip dd { margin: 0; }
.tip-bar { height: 4px; border-radius: 4px; background: var(--down); margin: 12px 0 6px; overflow: hidden; }
.tip-bar i { display: block; height: 100%; background: var(--up); }
.tip-foot { display: flex; justify-content: space-between; font-size: 12px; }
.tip-open { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--amber); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: clamp(56px, 8vw, 110px) 0 0; }
.stat { text-align: center; padding: 0 16px; }
.stat + .stat { box-shadow: -1px 0 0 var(--line); }
.stat-n { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.05em; line-height: 1; font-feature-settings: "tnum" 1; }
.stat-l { display: block; margin-top: 12px; color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; gap: 34px; }
  .stat + .stat { box-shadow: none; }
  .colony-frame { height: 1080px; border-radius: var(--r-lg); width: calc(100% - 20px); }
  .hero-copy { top: 30px; }
  .hero-cta .btn { --h: 52px; padding: 0 22px; }
  .colony-legend { font-size: 12px; gap: 6px 14px; left: 14px; }
  .colony-legend .mono { margin-left: 0; width: 100%; }
  .colony-tip { width: 220px; }
}

.fresh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.fresh-head .lead { max-width: 40ch; }
.fresh-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 24px;
}
.fresh-rail::-webkit-scrollbar { display: none; }
.fresh-card {
  flex: 0 0 210px; scroll-snap-align: start; padding: 18px; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
a.fresh-card:hover { transform: translateY(-4px); background: var(--surface-2); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-2); }
.fc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.fc-age { font-size: 12px; color: var(--amber); background: var(--amber-soft); padding: 3px 8px; border-radius: 999px; }
.fc-name { margin-top: 16px; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-sym { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.fc-row { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.fc-row.dim { margin-top: 6px; color: var(--text-3); }
.fresh-rail .state { flex: 1; padding: 40px 0; }

.cta-band {
  position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 64px);
  border-radius: var(--r-xl); background: radial-gradient(70% 90% at 50% 120%, rgba(255, 154, 31, 0.22), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cta-band .h2 { font-size: clamp(42px, 7vw, 104px); }
.cta-band .lead { margin: 20px auto 32px; }
.cta-band #cta-ca { margin-top: 28px; display: flex; flex-direction: column; align-items: center; }
.cta-band .ca { position: relative; z-index: 1; }
.cta-hill { position: absolute; left: 50%; bottom: -2px; width: min(900px, 140%); transform: translateX(-50%); pointer-events: none; }
.cta-band > :not(svg) { position: relative; z-index: 1; }

/* ================= PAGE HEAD (inner pages) ================= */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 7vw, 104px); line-height: 0.9; letter-spacing: -0.05em; margin: 0; }
.page-head .lead { margin-top: 14px; }

/* ================= BOARD ================= */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.tabs-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); width: min(380px, 100%); transition: box-shadow 0.25s; }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--amber); }
.search svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; }
.search input::placeholder { color: var(--text-3); }
kbd { font-family: var(--f-mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.table-card { border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); overflow: clip; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: var(--nav-h); z-index: 2; background: var(--surface); text-align: right; font-weight: 600; font-size: 13px; color: var(--text-3); padding: 14px 14px; white-space: nowrap; box-shadow: inset 0 -1px 0 var(--line); }
.tbl th:first-child, .tbl td:first-child { padding-left: 22px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl th.l, .tbl td.l { text-align: left; }
.tbl th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; border-radius: 4px; }
.tbl th button:hover, .tbl th[aria-sort] button { color: var(--text); }
.tbl th button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.tbl th .arr { opacity: 0; font-size: 10px; transition: transform 0.25s; }
.tbl th[aria-sort] .arr { opacity: 1; color: var(--amber); }
.tbl th[aria-sort="ascending"] .arr { transform: rotate(180deg); }
.tbl td { padding: 13px 14px; text-align: right; white-space: nowrap; box-shadow: inset 0 -1px 0 var(--line); font-family: var(--f-mono); font-feature-settings: "tnum" 1; }
.tbl tbody tr { cursor: pointer; transition: background 0.18s; }
.tbl tbody tr:hover { background: rgba(255, 236, 210, 0.035); }
.tbl tbody tr:last-child td { box-shadow: none; }
.tbl tbody tr.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: rgba(255, 178, 63, 0.12); } }
.tbl .rank { color: var(--text-3); width: 44px; }
.coin-cell { display: flex; align-items: center; gap: 12px; font-family: var(--f-body); min-width: 0; }
.coin-cell .nm { display: flex; flex-direction: column; min-width: 0; }
.coin-cell b { font-weight: 600; font-size: 15px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.coin-cell .sy { color: var(--text-3); font-size: 13px; font-family: var(--f-mono); }
.boost { font-family: var(--f-mono); font-size: 11px; color: var(--amber); margin-left: 6px; }
.trades { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.bs { width: 84px; height: 4px; border-radius: 4px; background: var(--down); overflow: hidden; }
.bs i { display: block; height: 100%; background: var(--up); }
.star { all: unset; cursor: pointer; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--text-3); transition: color 0.2s, background 0.2s, transform 0.3s var(--ease); }
.star svg { width: 17px; height: 17px; fill: none; }
.star:hover { background: rgba(255, 236, 210, 0.06); color: var(--text); }
.star[aria-pressed="true"] { color: var(--amber); }
.star[aria-pressed="true"] svg { fill: currentColor; }
.star:active { transform: scale(0.85); }
.star:focus-visible { outline: 2px solid var(--amber); }
.board-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 4px 0; color: var(--text-3); font-size: 13px; }
@media (max-width: 900px) { .tbl .h-md { display: none; } }
@media (max-width: 640px) {
  .tbl .h-sm { display: none; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 14px; }
  .tbl td, .tbl th { padding-left: 8px; padding-right: 8px; }
  .coin-cell b { max-width: 120px; }
  .tbl .rank { display: none; }
  .search { width: 100%; }
}

/* ================= COIN ================= */
.back { display: inline-flex; gap: 8px; align-items: center; margin-top: 28px; color: var(--text-2); font-size: 14px; }
.back:hover { color: var(--text); }
.coin-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 26px 0 32px; }
.coin-id { display: flex; gap: 20px; align-items: center; min-width: 0; }
.coin-id h1 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 5.4vw, 76px); letter-spacing: -0.045em; line-height: 0.95; overflow-wrap: anywhere; }
.coin-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.coin-sub .sym { font-family: var(--f-mono); color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--text-2); cursor: pointer; border: 0; transition: background 0.2s, color 0.2s; }
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip svg { width: 14px; height: 14px; }
.coin-price { text-align: right; }
.coin-price .big { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 4.8vw, 68px); letter-spacing: -0.04em; line-height: 1; font-feature-settings: "tnum" 1; }
.coin-price .chg { display: inline-block; margin-top: 10px; font-family: var(--f-mono); font-size: 15px; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.card { border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.chart-card { padding: 18px 18px 14px; }
.chart-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-read { font-family: var(--f-mono); font-size: 13px; color: var(--text-2); display: flex; gap: 14px; flex-wrap: wrap; min-height: 20px; }
.chart-read b { color: var(--text); font-weight: 500; }
.chart-wrap { position: relative; height: clamp(320px, 46vh, 480px); }
.chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.chart-note { margin-top: 10px; font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stats-card { padding: 22px; display: grid; gap: 18px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.kv dt { font-size: 13px; color: var(--text-3); }
.kv dd { margin: 4px 0 0; font-family: var(--f-mono); font-size: 18px; font-feature-settings: "tnum" 1; }
.chg-row { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-md); background: var(--bg-2); overflow: hidden; }
.chg-row div { padding: 12px 6px; text-align: center; }
.chg-row div + div { box-shadow: -1px 0 0 var(--line); }
.chg-row span { display: block; font-size: 12px; color: var(--text-3); }
.chg-row b { display: block; margin-top: 4px; font-family: var(--f-mono); font-weight: 500; font-size: 14px; }
.ratio-l { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.ratio { height: 8px; border-radius: 8px; background: var(--down); overflow: hidden; }
.ratio i { display: block; height: 100%; background: var(--up); transition: width 0.8s var(--ease); }
.about { padding: 22px; }
.about p { margin: 10px 0 0; color: var(--text-2); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-size: 14px; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.links a:hover { background: var(--surface-3); color: var(--text); }
.links svg { width: 15px; height: 15px; }
.pairs { font-size: 13px; color: var(--text-3); }
@media (max-width: 980px) { .coin-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .coin-head { grid-template-columns: 1fr; }
  .coin-price { text-align: left; }
  .coin-id { gap: 14px; }
  .coin-id .ava { width: 52px !important; height: 52px !important; }
  .chart-card { padding: 14px 12px 12px; }
}

/* ================= LAUNCH ================= */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 40px; }
.form { display: grid; gap: 18px; }
.step { padding: clamp(20px, 3vw, 30px); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.step-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.step-n { font-family: var(--f-display); font-weight: 800; font-size: 30px; color: var(--amber); line-height: 1; }
.step-h h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.row2 .field + .field { margin-top: 0; }
label.lbl { font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
label.lbl .opt { font-weight: 400; color: var(--text-3); font-size: 13px; }
.input { width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r-md); border: 0; outline: none; background: var(--bg-2); color: var(--text); font-size: 16px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.2s, background 0.2s; }
textarea.input { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--text-3); }
.input:hover { box-shadow: inset 0 0 0 1px rgba(255, 222, 180, 0.24); }
.input:focus { box-shadow: inset 0 0 0 2px var(--amber); background: #120d0a; }
.field.bad .input { box-shadow: inset 0 0 0 2px var(--down); }
.field.ok .input { box-shadow: inset 0 0 0 1px rgba(70, 217, 138, 0.45); }
.prefix { position: relative; }
.prefix > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-family: var(--f-mono); }
.prefix .input { padding-left: 32px; font-family: var(--f-mono); text-transform: uppercase; }
.help { font-size: 13px; color: var(--text-3); display: flex; justify-content: space-between; gap: 10px; }
.err { font-size: 13px; color: var(--down); display: none; }
.field.bad .err { display: block; animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.drop { position: relative; display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow 0.2s, background 0.2s; }
.drop:hover, .drop.over { box-shadow: inset 0 0 0 2px var(--amber); background: #120d0a; }
.field.bad .drop { box-shadow: inset 0 0 0 2px var(--down); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-img { width: 76px; height: 76px; border-radius: 50%; flex: none; background: var(--surface-3) center / cover no-repeat; display: grid; place-items: center; color: var(--amber); }
.drop-img svg { width: 26px; height: 26px; }
.drop b { display: block; font-size: 15px; }
.drop span { font-size: 13px; color: var(--text-3); }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 6px 4px; }
.submit-row p { margin: 0; color: var(--text-3); font-size: 13px; max-width: 44ch; }
.form-alert { display: none; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 95, 99, 0.1); color: #ffb3b4; font-size: 14px; }
.form-alert.show { display: block; }

.preview { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 16px; }
.preview-label { font-size: 13px; color: var(--text-3); }
.pv-chamber { position: relative; height: 300px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(#1c130c, #0b0705); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.pv-chamber::before { content: ""; position: absolute; left: 50%; top: 0; width: 18px; height: 70px; transform: translateX(-50%); background: #070403; border-radius: 0 0 10px 10px; box-shadow: 0 0 0 4px rgba(120, 78, 44, 0.35); }
.pv-hollow { position: absolute; left: 50%; top: 56%; width: 210px; height: 180px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #24170d, #070403 70%); box-shadow: 0 0 0 6px rgba(120, 78, 44, 0.35), 0 0 70px rgba(255, 154, 31, 0.25); display: grid; place-items: center; }
.pv-hollow::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 178, 63, 0.55); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: inset 0 0 0 1.5px rgba(255, 178, 63, 0.95), 0 0 40px rgba(255, 154, 31, 0.35); } }
.pv-face { width: 118px; height: 118px; border-radius: 50%; background: var(--surface-3) center / cover no-repeat; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 40px; color: var(--amber); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6); }
.pv-tag { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-weight: 700; }
.pv-tag .mono { color: var(--text-3); font-weight: 500; margin-left: 6px; }
.pv-card { padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pv-card h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.pv-card p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; min-height: 21px; }
.pv-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pv-links span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.done { display: none; text-align: center; padding: clamp(40px, 7vw, 90px) clamp(20px, 4vw, 60px); border-radius: var(--r-xl); background: radial-gradient(60% 80% at 50% 0%, rgba(255, 154, 31, 0.16), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.launch.is-done .done { display: block; animation: popin 0.7s var(--ease); }
.launch.is-done .form, .launch.is-done .preview-col { display: none; }
.launch.is-done .launch-grid { grid-template-columns: 1fr; }
@keyframes popin { from { opacity: 0; transform: scale(0.96) translateY(10px); } }
.done-check { width: 86px; height: 86px; margin: 0 auto 26px; border-radius: 50%; background: var(--amber); color: #1b1005; display: grid; place-items: center; box-shadow: 0 0 80px rgba(255, 154, 31, 0.5); animation: popcheck 0.6s 0.1s var(--ease) backwards; }
.done-check svg { width: 42px; height: 42px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s 0.45s var(--ease) forwards; }
@keyframes popcheck { from { transform: scale(0.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.045em; line-height: 0.95; margin: 0; }
.done .lead { margin: 18px auto 0; }
.receipt { margin: 32px auto 0; max-width: 520px; text-align: left; border-radius: var(--r-lg); background: var(--bg-2); padding: 6px 20px; }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; font-size: 14px; }
.receipt div + div { box-shadow: 0 -1px 0 var(--line); }
.receipt dt { color: var(--text-3); }
.receipt dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-family: var(--f-mono); }
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 980px) { .launch-grid { grid-template-columns: 1fr; } .preview { position: static; } .preview-col { order: -1; } .pv-chamber { height: 240px; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .row2 .field + .field { margin-top: 18px; } }

/* ================= 404 ================= */
.lost { min-height: calc(100vh - var(--nav-h) - 200px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .page-title { font-size: clamp(80px, 16vw, 220px); color: var(--amber); }

/* ================= ROUND 2: motion + new sections ================= */
.scroll-bar { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--amber-2), var(--amber)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(255, 154, 31, 0.6); pointer-events: none; }

/* word reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 0.95s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.split.in .w > span { transform: none; }

/* odometer */
.odo { display: inline-flex; align-items: baseline; white-space: nowrap; }
.od { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
.od-strip { display: flex; flex-direction: column; transition: transform 1.5s var(--ease); }
.od-strip > span { height: 1em; line-height: 1; display: block; }
.od-c { display: inline-block; line-height: 1; }

/* spotlight */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 178, 63, 0.16), transparent 60%); }
.spot:hover::before { opacity: 1; }

/* nav search */
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255, 236, 210, 0.05); color: var(--text-3); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s, color 0.2s; }
.search-btn:hover { background: rgba(255, 236, 210, 0.09); color: var(--text); }
.search-btn svg { width: 16px; height: 16px; }
.search-btn kbd { font-size: 11px; padding: 2px 7px; }
@media (max-width: 760px) { .search-btn { width: 40px; padding: 0; justify-content: center; } .search-btn span, .search-btn kbd { display: none; } }

/* palette */
.pal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: start center; padding: min(14vh, 120px) 16px 16px; visibility: hidden; }
.pal.open { visibility: visible; }
.pal-back { position: absolute; inset: 0; background: rgba(5, 3, 2, 0.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s; }
.pal.open .pal-back { opacity: 1; }
.pal-box { position: relative; width: min(640px, 100%); border-radius: var(--r-xl); background: #17110d; box-shadow: var(--sh-3), inset 0 0 0 1px var(--line-2); overflow: hidden; transform: translateY(-12px) scale(0.98); opacity: 0; transition: 0.35s var(--ease); }
.pal.open .pal-box { transform: none; opacity: 1; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 60px; box-shadow: inset 0 -1px 0 var(--line); }
.pal-in svg { width: 20px; height: 20px; color: var(--amber); flex: none; }
.pal-in input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; }
.pal-list { list-style: none; margin: 0; padding: 8px; max-height: min(420px, 56vh); overflow-y: auto; }
.pal-list li[data-i] { display: grid; grid-template-columns: 30px 1fr auto auto 64px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); cursor: pointer; font-size: 14px; }
.pal-list li.on { background: rgba(255, 178, 63, 0.1); box-shadow: inset 2px 0 0 var(--amber); }
.pal-list li .mono:last-child { text-align: right; }
.pal-n { display: flex; flex-direction: column; min-width: 0; }
.pal-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pal-n .mono { color: var(--text-3); font-size: 12px; }
.pal-meta { color: var(--text-2); }
.pal-h { padding: 8px 12px 4px; font-size: 12px; color: var(--text-3); }
.pal-empty { padding: 26px 14px; text-align: center; color: var(--text-2); }
.pal-addr { font-weight: 600; grid-column: 1 / 4; }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; font-size: 12px; color: var(--text-3); box-shadow: inset 0 1px 0 var(--line); }
.pal-foot .mono { margin-left: auto; }
.pal-foot kbd { margin-right: 4px; }
body.pal-lock { overflow: hidden; }
@media (max-width: 560px) { .pal-list li[data-i] { grid-template-columns: 30px 1fr 64px; } .pal-list li .pal-meta { display: none; } .pal-foot span:not(.mono) { display: none; } }

/* ticker */
.ticker { margin-top: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tk-wrap { height: 56px; display: flex; align-items: center; }
.tk-track { display: flex; gap: 10px; width: max-content; animation: marq var(--dur, 60s) linear infinite; }
.ticker:hover .tk-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; white-space: nowrap; transition: background 0.2s; }
.tk:hover { background: var(--surface-2); }
.tk .mono { color: var(--text-2); }
.tk .mono.up { color: var(--up); }
.tk .mono.down { color: var(--down); }

/* pulse */
.pulse-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.pulse-copy .lead { margin-top: 18px; }
.pulse .stats { grid-template-columns: repeat(3, 1fr); padding: 44px 0 0; text-align: left; }
.pulse .stat { text-align: left; padding: 0 22px 0 0; }
.pulse .stat + .stat { box-shadow: -1px 0 0 var(--line); padding-left: 22px; }
.pulse .stat-n { font-size: clamp(34px, 4.2vw, 64px); }
.gauge { position: relative; padding: 30px 30px 26px; border-radius: var(--r-xl); background: radial-gradient(80% 70% at 50% 100%, rgba(255, 178, 63, 0.12), transparent 70%), var(--surface); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); text-align: center; }
.gauge svg { width: 100%; max-width: 380px; display: block; margin: 0 auto; overflow: visible; }
.g-track, .g-arc { fill: none; stroke-width: 14; stroke-linecap: round; }
.g-track { stroke: rgba(255, 222, 180, 0.07); }
.g-arc { stroke: url(#g-grad); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease); filter: drop-shadow(0 0 8px rgba(255, 178, 63, 0.35)); }
.g-needle { transform-origin: 110px 115px; transform: rotate(-90deg); transition: transform 1.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.g-needle line { stroke: #f6efe4; stroke-width: 3; stroke-linecap: round; }
.g-needle circle { fill: #f6efe4; }
.g-read { margin-top: -8px; }
.g-pct { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 7vw, 92px); letter-spacing: -0.05em; line-height: 1; }
.gauge.bull .g-pct { color: var(--up); }
.gauge:not(.bull) .g-pct { color: var(--down); }
.g-l { display: block; margin-top: 8px; color: var(--text-2); font-size: 15px; }
.g-legs { display: flex; justify-content: center; gap: 22px; margin-top: 16px; font-size: 14px; }
@media (max-width: 900px) { .pulse-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pulse .stats { grid-template-columns: 1fr; gap: 26px; } .pulse .stat + .stat { box-shadow: none; padding-left: 0; } }

/* section head */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head .lead { max-width: 44ch; }

/* treemap */
.treemap { position: relative; height: clamp(420px, 58vh, 620px); border-radius: var(--r-xl); overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tm { position: absolute; border-radius: 10px; background: var(--tint, var(--surface)); overflow: hidden; transition: left 0.9s var(--ease), top 0.9s var(--ease), width 0.9s var(--ease), height 0.9s var(--ease), opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.8s; transition-delay: var(--d, 0ms); }
.tm.enter { opacity: 0; transform: scale(0.85); }
.tm:hover { z-index: 2; box-shadow: inset 0 0 0 1.5px rgba(255, 178, 63, 0.7); }
.tm-in { position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tm-in > * { flex-shrink: 0; }
.tm-in b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm[data-size="lg"] .tm-in { padding: 18px; gap: 6px; }
.tm[data-size="lg"] .tm-in b { font-size: clamp(22px, 2.4vw, 34px); font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.tm[data-size="lg"] .tm-v { font-size: 17px; }
.tm[data-size="xs"] .tm-in { padding: 6px 8px; justify-content: center; }
.tm[data-size="xs"] .tm-in b { font-size: 11px; }
.tm-v { color: var(--text); }
.tm-share { margin-top: auto; color: var(--text-2); font-size: 12px; }

/* race */
.race-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.sticky-head { position: sticky; top: calc(var(--nav-h) + 30px); flex-direction: column; align-items: flex-start; margin: 0; }
.sticky-head .lead { margin-top: 4px; }
.race { position: relative; }
.rc { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: grid; grid-template-columns: 34px 34px minmax(90px, 180px) 1fr 86px; align-items: center; gap: 14px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.9s var(--ease), opacity 0.6s, background 0.3s; }
.rc:hover { background: var(--surface-2); }
.rc.climb { animation: climb 1.4s var(--ease); }
@keyframes climb { 0% { box-shadow: inset 0 0 0 1.5px rgba(70, 217, 138, 0.9), 0 0 30px rgba(70, 217, 138, 0.25); } 100% { box-shadow: inset 0 0 0 1px var(--line); } }
.rc-rank { color: var(--text-3); font-size: 13px; }
.rc-name { display: flex; flex-direction: column; min-width: 0; }
.rc-name b { font-size: 15px; }
.rc-name span { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-bar { height: 8px; border-radius: 8px; background: rgba(255, 222, 180, 0.06); overflow: hidden; }
.rc-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, rgba(70, 217, 138, 0.35), var(--up)); transition: width 1.3s var(--ease); box-shadow: 0 0 14px rgba(70, 217, 138, 0.4); }
.rc-pct { text-align: right; font-size: 15px; }
@media (max-width: 900px) { .race-grid { grid-template-columns: 1fr; } .sticky-head { position: static; } }
@media (max-width: 640px) { .rc { grid-template-columns: 26px 34px 1fr 74px; gap: 10px; height: 50px; padding: 0 12px; } .rc-bar { display: none; } }

/* how it works scroll scene */
.hw { height: 300vh; position: relative; }
.hw-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.hw-steps { position: relative; margin-top: 40px; padding-left: 30px; display: grid; }
.hw-progress { position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: rgba(255, 222, 180, 0.08); border-radius: 2px; overflow: hidden; }
.hw-progress i { position: absolute; inset: 0; background: var(--amber); transform-origin: 50% 0; transform: scaleY(0); box-shadow: 0 0 10px var(--amber); }
.hw-step { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.hw-step.on { opacity: 1; transform: none; }
.hw-n { font-family: var(--f-mono); color: var(--amber); font-size: 14px; }
.hw-step h3 { margin: 8px 0 12px; font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.045em; line-height: 0.95; }
.hw-step p { margin: 0; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 38ch; }
.hw-vis { border-radius: var(--r-xl); background: radial-gradient(70% 60% at 60% 70%, rgba(255, 154, 31, 0.1), transparent 70%), #0b0806; box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); overflow: hidden; }
.hw-svg { display: block; width: 100%; height: auto; }
.hw-face { transition: opacity 0.3s, transform 0.5s var(--ease); }
@media (max-width: 900px) {
  .hw { height: 260vh; }
  .hw-grid { grid-template-columns: 1fr; gap: 18px; }
  .hw-vis { order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
  .hw-steps { margin-top: 18px; }
  .hw-text .h2 { font-size: clamp(30px, 8vw, 44px); }
  .hw-step h3 { font-size: 38px; margin: 4px 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw { height: auto; }
  .hw-stick { position: static; height: auto; padding: 80px 0; }
  .hw-step { grid-area: auto; opacity: 1; transform: none; margin-bottom: 26px; }
  .tk-track { animation: none; }
}
