/* CALDERA — night volcanic island.
   Basalt and obsidian, ash grays, lava and ember, a cold ash-blue for cold heat. */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/cinzel-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --basalt: #0b0807;
  --basalt-2: #100b0a;
  --obsidian: #161010;
  --obsidian-2: #1f1715;
  --obsidian-3: #2a201d;
  --ash-1: #3a302c;
  --ash-2: #5c504a;
  --ash-3: #8f827a;
  --ash-4: #c9bcb3;
  --bone: #f3e8de;
  --lava: #ff4d1a;
  --lava-deep: #d63412;
  --ember: #ffb22e;
  --magma: #c41e12;
  --gold: #ffd678;
  --cold: #7d9cc0;
  --cold-2: #a9c2de;
  --char: #1a1311;
  --ok: #ffd678;
  --line: rgba(255, 210, 180, 0.08);
  --line-2: rgba(255, 210, 180, 0.14);
  --glow-lava: 0 0 24px rgba(255, 77, 26, 0.35);
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
  --r-sm: 9px;
  --gutter: 16px;
  --max: 1220px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.has-modal { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(255, 77, 26, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(125, 156, 192, 0.05), transparent 60%),
    var(--basalt);
  color: var(--ash-4);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* film grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); color: var(--bone); font-weight: 700; letter-spacing: 0.02em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-weight: 900; font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.9em; }
b, strong { color: var(--bone); font-weight: 700; }
small, .small { font-size: 0.82rem; }
.muted { color: var(--ash-3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }
.break { word-break: break-all; }
.center { justify-content: center; }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.gap { gap: 10px; }
.ok { color: var(--gold); }
.low { color: var(--cold-2); }
.hot { color: var(--lava); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ember); color: #1a0d05; padding: 8px 14px; border-radius: 8px; font-weight: 800; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.page { padding-top: 34px; padding-bottom: 60px; }

.eyebrow {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 0.7em;
}
.lede { font-size: 1.08rem; color: var(--ash-4); max-width: 640px; }
.link-arrow { font-weight: 700; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin 0.2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 0.95rem/1 var(--f-body);
  letter-spacing: 0.01em;
  padding: 0.82em 1.25em;
  border-radius: 10px;
  border: 1px solid var(--b);
  background: var(--obsidian-2);
  color: var(--bone);
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); color: var(--bone); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn-lava {
  background: linear-gradient(180deg, #ff7a3a 0%, var(--lava) 45%, var(--lava-deep) 100%);
  color: #1d0903;
  border-color: rgba(255, 190, 120, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 8px 26px -8px rgba(255, 77, 26, 0.75), inset 0 1px 0 rgba(255, 240, 200, 0.55);
  text-shadow: 0 1px 0 rgba(255, 200, 150, 0.4);
}
.btn-lava:hover { color: #1d0903; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 10px 34px -6px rgba(255, 110, 40, 0.95), inset 0 1px 0 rgba(255, 240, 200, 0.7); }
.btn-ghost { background: rgba(255, 178, 46, 0.04); --b: rgba(255, 178, 46, 0.35); color: var(--ember); }
.btn-ghost:hover { background: rgba(255, 178, 46, 0.1); color: var(--gold); --b: rgba(255, 178, 46, 0.6); }
.btn-ash { background: var(--obsidian-3); color: var(--ash-4); }
.btn-mini { padding: 0.45em 0.75em; font-size: 0.8rem; border-radius: 8px; background: var(--obsidian); }
.btn-mini[aria-pressed="true"] { border-color: var(--ember); color: var(--ember); }
.btn-wide { width: 100%; }
.btn-big { padding: 1.05em 1.4em; font-size: 1.05rem; }
.btn-fire {
  position: relative;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 0.95em 0.6em;
  color: #fff3dc;
  background: radial-gradient(120% 90% at 50% 120%, #ffb22e 0%, #ff4d1a 35%, #7a160c 75%, #2a0d07 100%);
  border-color: rgba(255, 150, 80, 0.55);
  text-shadow: 0 0 10px rgba(255, 120, 40, 0.9), 0 1px 0 #000;
  box-shadow: inset 0 -10px 22px -10px rgba(255, 220, 140, 0.8), 0 6px 22px -10px rgba(255, 77, 26, 0.9);
}
.btn-fire::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 60%;
  background: radial-gradient(closest-side, rgba(255, 240, 200, 0.35), transparent);
  transform: translateY(140%);
  transition: transform 0.35s;
}
.btn-fire:hover { color: #fff; box-shadow: inset 0 -14px 26px -10px rgba(255, 230, 160, 0.95), 0 8px 30px -8px rgba(255, 90, 30, 1); }
.btn-fire:hover::after { transform: translateY(40%); }
.link-btn { background: none; border: 0; padding: 0; color: var(--ember); font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 8, 7, 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.top::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 26, 0.6) 30%, rgba(255, 178, 46, 0.7) 50%, rgba(255, 77, 26, 0.6) 70%, transparent);
  opacity: 0.6;
}
.top-in {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "brand hud wallet menu";
  align-items: center;
  gap: 10px 14px;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; color: var(--bone); }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(255, 77, 26, 0.5)); }
.wordmark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: 0.2em;
  background: linear-gradient(180deg, #fff1c4 0%, #ffb22e 45%, #ff4d1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: none;
  grid-column: 1 / -1;
  flex-direction: column;
  padding: 8px 0 6px;
  border-top: 1px solid var(--line);
}
.nav a { color: var(--ash-4); font-weight: 700; padding: 11px 4px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ember); }
.nav-x svg { width: 15px; height: 15px; }
body.nav-open .nav { display: flex; }
.hud { grid-area: hud; display: flex; justify-content: flex-end; gap: 8px; min-width: 0; }
.bell, .potchip {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(22, 16, 16, 0.75);
  min-width: 0;
}
.bell-k, .potchip-k { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash-3); white-space: nowrap; }
.bell-v { font-weight: 800; font-size: 1.02rem; color: var(--bone); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.potchip-v { font-weight: 700; font-size: 0.86rem; color: var(--ash-4); white-space: nowrap; }
.potchip-v b { color: var(--ember); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.bell.is-trial { border-color: rgba(255, 77, 26, 0.7); background: linear-gradient(180deg, rgba(120, 20, 8, 0.6), rgba(40, 10, 6, 0.8)); animation: throb 1.2s ease-in-out infinite; }
.bell.is-trial .bell-k { color: var(--ember); }
.bell.is-trial .bell-v { color: #ffe0b0; text-shadow: 0 0 10px rgba(255, 90, 30, 0.9); }
@keyframes throb { 50% { box-shadow: 0 0 18px rgba(255, 77, 26, 0.55); } }
.wallet-slot { grid-area: wallet; }
.btn-wallet { padding: 0.6em 0.95em; font-size: 0.86rem; background: var(--obsidian-2); --b: rgba(255, 178, 46, 0.35); }
.btn-wallet.is-on { flex-direction: column; gap: 1px; line-height: 1.1; padding: 0.45em 0.85em; }
.wb-addr { font-weight: 800; color: var(--bone); }
.wb-bal { font-size: 0.72rem; color: var(--ember); font-variant-numeric: tabular-nums; }
.menu-btn { grid-area: menu; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--obsidian); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.menu-btn span { width: 17px; height: 2px; background: var(--ash-4); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
body.nav-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 619px) {
  .top-in { grid-template-columns: 1fr auto auto; grid-template-areas: "brand wallet menu" "hud hud hud"; }
  .hud { justify-content: stretch; }
  .bell, .potchip { flex: 1; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; }
  .wordmark { font-size: 1.08rem; letter-spacing: 0.16em; }
}
@media (max-width: 359px) { .wordmark { display: none; } }
@media (min-width: 1040px) {
  .top-in { grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand nav hud wallet"; }
  .nav { grid-area: nav; grid-column: auto; display: flex; flex-direction: row; border: 0; padding: 0; gap: 4px; justify-content: center; }
  .nav a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: 0.93rem; position: relative; }
  .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--lava), var(--ember)); box-shadow: 0 0 8px var(--lava); }
  .nav-x-t { display: none; }
  .menu-btn { display: none; }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); height: 30px; position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; height: 30px; align-items: center; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk-set { display: flex; }
.tk { display: inline-flex; align-items: center; gap: 7px; padding: 0 22px; font-size: 0.8rem; color: var(--ash-3); white-space: nowrap; border-right: 1px solid var(--line); }
.tk i { font-style: normal; color: var(--ash-2); }
.tk a { color: var(--ash-4); font-weight: 800; }
.tk.ev-chosen i, .tk.ev-scorched i { color: var(--lava); }
.tk.ev-survived i, .tk.ev-offering i { color: var(--gold); }
.tk.ev-escaped i { color: var(--cold-2); }
.tk.ev-born i { color: var(--ember); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- banner ---------- */
.banner { background: repeating-linear-gradient(-45deg, rgba(125, 156, 192, 0.12) 0 12px, rgba(125, 156, 192, 0.06) 12px 24px); border-bottom: 1px solid rgba(125, 156, 192, 0.25); color: var(--cold-2); font-size: 0.85rem; text-align: center; padding: 7px var(--gutter); }
.banner p { margin: 0; }
.banner strong { color: var(--bone); }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; background: #07060a; overflow: hidden; isolation: isolate; }
.hero-canvas { width: 100%; height: clamp(380px, 64vh, 560px); touch-action: pan-y; }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gutter) 34px; margin-top: -40px; }
.hero-title { font-size: clamp(2.3rem, 9vw, 5rem); margin-bottom: 0.25em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9); }
.hero-title span { display: block; background: linear-gradient(180deg, #fff1c4 0%, #ffb22e 40%, #ff4d1a 85%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 77, 26, 0.35)); }
.hero-lede { font-size: 1.05rem; max-width: 470px; color: var(--ash-4); text-shadow: 0 2px 10px #000; }
.hero-lede b { color: var(--ember); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.hero-pot, .hero-clock {
  display: flex;
  flex-direction: column;
  padding: 12px 18px 14px;
  border-radius: var(--r);
  background: rgba(14, 10, 9, 0.72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-width: 0;
  flex: 1 1 150px;
}
.hero-pot .k, .hero-clock .k { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash-3); }
.hero-pot b { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 7vw, 3.1rem); line-height: 1.05; background: linear-gradient(180deg, #fff3d0, #ffb22e 55%, #ff6a2a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(255, 140, 40, 0.45)); }
.hero-pot .u { font-weight: 800; color: var(--ember); font-size: 0.8rem; letter-spacing: 0.14em; }
.hero-clock b { font-weight: 800; font-size: clamp(2rem, 6vw, 2.7rem); line-height: 1.1; color: var(--bone); font-variant-numeric: tabular-nums; }
.hero-clock .sub { font-size: 0.8rem; color: var(--ash-3); min-height: 1.2em; }
.hero-clock.is-trial { border-color: rgba(255, 77, 26, 0.75); background: linear-gradient(180deg, rgba(110, 18, 6, 0.75), rgba(30, 8, 5, 0.8)); box-shadow: 0 0 40px -6px rgba(255, 77, 26, 0.6); }
.hero-clock.is-trial .k { color: var(--ember); }
.hero-clock.is-trial b { color: #ffe8c0; text-shadow: 0 0 18px rgba(255, 90, 30, 0.95); }
.hero-clock.is-trial .sub { color: var(--ash-4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-hint { position: absolute; z-index: 2; top: 12px; right: var(--gutter); margin: 0; font-size: 0.75rem; color: rgba(201, 188, 179, 0.55); font-style: italic; pointer-events: none; }
.hero-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(12, 9, 8, 0.92);
  border: 1px solid rgba(255, 178, 46, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 77, 26, 0.2);
  font-size: 0.78rem;
  white-space: nowrap;
}
.tt-sym { font-family: var(--f-display); font-weight: 900; color: var(--bone); font-size: 0.95rem; }
.tt-row { color: var(--ash-4); font-variant-numeric: tabular-nums; }
.tt-shame { color: #b9aaa0; font-weight: 800; text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.1em; }
.tt-next { color: var(--cold-2); font-weight: 700; }
.tt-hint { color: var(--ember); font-size: 0.7rem; }

@media (min-width: 980px) {
  .hero { display: block; height: clamp(600px, 84vh, 820px); }
  .hero-canvas { position: absolute; inset: 0; height: 100%; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(7, 6, 10, 0.75) 0%, rgba(7, 6, 10, 0.35) 30%, transparent 50%); }
  .hero-copy { position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; max-width: 520px; pointer-events: none; }
  .hero-copy a, .hero-copy .hero-stats { pointer-events: auto; }
  .hero-hint { top: auto; bottom: 18px; }
}

/* ---------- section heads, zones ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 64px 0 18px; }
.sec-head h2 { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tabs { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; border-radius: 12px; background: var(--obsidian); border: 1px solid var(--line); }
.tabs button { font: 700 0.84rem var(--f-body); color: var(--ash-3); background: none; border: 0; padding: 8px 13px; border-radius: 9px; cursor: pointer; }
.tabs button:hover { color: var(--bone); }
.tabs button[aria-pressed="true"] { color: #1d0903; background: linear-gradient(180deg, #ffb22e, #ff6a2a); box-shadow: 0 0 14px rgba(255, 110, 40, 0.4); }
.tabs button[data-sort="coldest"][aria-pressed="true"] { background: linear-gradient(180deg, #c3d6ea, #7d9cc0); box-shadow: 0 0 14px rgba(125, 156, 192, 0.4); }
.search input { width: min(260px, 100%); }
.search { flex: 1 1 200px; max-width: 280px; }
.sort-note { font-size: 0.85rem; color: var(--ash-3); margin: -6px 0 16px; }
.loading { color: var(--ash-3); font-style: italic; }

input, textarea, select {
  font: 500 0.95rem var(--f-body);
  color: var(--bone);
  background: var(--basalt-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0.72em 0.9em;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--ash-2); }
input:focus, textarea:focus { outline: none; border-color: rgba(255, 178, 46, 0.7); box-shadow: 0 0 0 3px rgba(255, 110, 40, 0.18); }
[aria-invalid="true"] { border-color: var(--lava) !important; box-shadow: 0 0 0 3px rgba(255, 77, 26, 0.25) !important; }
textarea { resize: vertical; min-height: 96px; }

.trial-wrap { margin-top: 34px; }
.duo { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; } }
.zone { position: relative; border-radius: var(--r); padding: 20px; border: 1px solid var(--line); overflow: hidden; }
.zone-head h2 { margin-bottom: 0.2em; }
.zone-head p { font-size: 0.88rem; color: var(--ash-3); }
.zone-danger { background: linear-gradient(160deg, rgba(125, 156, 192, 0.10), rgba(16, 12, 12, 0.92) 55%); border-color: rgba(125, 156, 192, 0.22); }
.zone-danger h2 { color: var(--cold-2); }
.zone-danger h2::before { content: "❄ "; font-size: 0.8em; opacity: 0.7; }
.zone-champ { background: linear-gradient(160deg, rgba(255, 110, 40, 0.13), rgba(16, 12, 12, 0.92) 55%); border-color: rgba(255, 110, 40, 0.22); }
.zone-champ h2 { color: var(--ember); }
.zone-champ h2::before { content: "♛ "; font-size: 0.8em; }
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini {
  display: grid;
  grid-template-columns: 22px auto 1fr auto;
  grid-template-areas: "n s id h" "n s th th";
  align-items: center;
  gap: 4px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 8, 7, 0.55);
  border: 1px solid var(--line);
  color: var(--ash-4);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.mini:hover { border-color: var(--glow); transform: translateX(3px); box-shadow: 0 0 20px -8px var(--glow); color: var(--ash-4); }
.mini-rank { grid-area: n; font-family: var(--f-display); font-weight: 900; color: var(--ash-2); font-size: 1.1rem; }
.mini .stone { grid-area: s; }
.mini-id { grid-area: id; display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mini-id b { font-family: var(--f-display); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-id small { color: var(--ash-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-heat { grid-area: h; font-weight: 800; color: var(--bone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-heat small { color: var(--ash-3); font-weight: 600; }
.mini .thermo { grid-area: th; }

/* ---------- stone thumbnails ---------- */
.stone {
  --s: 52px;
  position: relative;
  display: block;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  overflow: hidden;
  background: #120c0b;
  box-shadow: 0 0 0 1.5px var(--glow, rgba(255, 77, 26, 0.45)), 0 0 16px -2px var(--glow, rgba(255, 77, 26, 0.4)), inset 0 0 12px rgba(0, 0, 0, 0.6);
}
.stone img, .stone canvas { width: 100%; height: 100%; object-fit: cover; }
.stone::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.55), inset 0 4px 10px rgba(255, 255, 255, 0.06); pointer-events: none; }

/* ---------- heat thermometer, escape bar ---------- */
.thermo { position: relative; display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgba(125, 156, 192, 0.08), rgba(255, 255, 255, 0.04) 50%, rgba(255, 77, 26, 0.08)); overflow: hidden; }
.thermo-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.thermo-zero { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(243, 232, 222, 0.35); }
.thermo-off { background: repeating-linear-gradient(90deg, rgba(169, 194, 222, 0.15) 0 4px, transparent 4px 8px); }
.escape { display: flex; align-items: center; gap: 10px; }
.escape-bar { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.escape-fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7d9cc0, #c3d6ea); box-shadow: 0 0 8px rgba(169, 194, 222, 0.6); }
.escape-l { font-size: 0.72rem; color: var(--ash-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- token cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); gap: 14px; }
.card {
  --glow: rgba(255, 77, 26, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r);
  color: var(--ash-4);
  background:
    radial-gradient(140% 70% at 0% 0%, rgba(255, 255, 255, 0.035), transparent 50%),
    linear-gradient(180deg, var(--obsidian-2), var(--obsidian) 70%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 30px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
  overflow: hidden;
  min-width: 0;
}
.card:hover { transform: translateY(-3px); color: var(--ash-4); border-color: var(--glow); box-shadow: 0 0 0 1px var(--glow), 0 18px 40px -16px var(--glow); }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--glow), transparent); }
.card.heat-cold { background: radial-gradient(120% 60% at 100% 0%, rgba(125, 156, 192, 0.10), transparent 60%), linear-gradient(180deg, var(--obsidian-2), var(--obsidian) 70%); }
.card.heat-hot { background: radial-gradient(120% 70% at 100% 0%, rgba(255, 110, 40, 0.14), transparent 60%), linear-gradient(180deg, var(--obsidian-2), var(--obsidian) 70%); }
.card.heat-gone { opacity: 0.78; }
.card.heat-gone:hover { opacity: 1; }
.card-next { border-color: rgba(125, 156, 192, 0.5); box-shadow: 0 0 0 1px rgba(125, 156, 192, 0.25), 0 0 30px -10px rgba(125, 156, 192, 0.6); }
.card-trial { border-color: rgba(255, 77, 26, 0.75); animation: trialcard 1.6s ease-in-out infinite; }
@keyframes trialcard { 50% { box-shadow: 0 0 0 1px rgba(255, 77, 26, 0.6), 0 0 38px -6px rgba(255, 77, 26, 0.8); } }
.ribbon { position: absolute; top: 12px; right: -30px; transform: rotate(35deg); width: 120px; text-align: center; font: 900 0.62rem var(--f-display); letter-spacing: 0.16em; padding: 3px 0; color: #0f1a26; background: linear-gradient(90deg, #a9c2de, #dbe8f5, #a9c2de); box-shadow: 0 2px 10px rgba(125, 156, 192, 0.5); }
.ribbon-trial { color: #fff1dc; background: linear-gradient(90deg, #c41e12, #ff4d1a, #c41e12); box-shadow: 0 2px 12px rgba(255, 77, 26, 0.7); }
.card-next .card-top, .card-trial .card-top { padding-right: 30px; }
.card-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.card-id { min-width: 0; }
.card-name { font-family: var(--f-body); font-weight: 800; font-size: 1rem; color: var(--bone); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.card-sym { margin: 0; font-family: var(--f-display); font-weight: 700; color: var(--ember); font-size: 0.85rem; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat-cold .card-sym { color: var(--cold-2); }
.card-heat { text-align: right; line-height: 1.1; padding-right: 8px; }
.card-heat .k { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ash-3); font-weight: 800; }
.card-heat b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.heat-cold .card-heat b { color: var(--cold-2); }
.heat-hot .card-heat b { color: var(--ember); }
.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.card-stats div { min-width: 0; }
.card-stats dt { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ash-3); font-weight: 800; }
.card-stats dd { margin: 0; font-weight: 700; color: var(--bone); font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-stats small { color: var(--ash-3); font-size: 0.7rem; }

/* ---------- badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 5px; min-height: 0; }
.badges:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 800 0.62rem/1 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 7px 4px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ash-4); background: rgba(255, 255, 255, 0.03); white-space: nowrap; }
.b-scorched {
  color: #c8b8ad;
  border-color: #3a2c27;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(255, 77, 26, 0.35) 41% 42%, transparent 43% 70%, rgba(255, 77, 26, 0.25) 71% 72%, transparent 73%),
    repeating-linear-gradient(-30deg, #1a1311 0 3px, #241a17 3px 5px);
  text-shadow: 0 1px 0 #000;
}
.b-scorched::before { content: "✖"; color: var(--lava); font-size: 0.75em; }
.b-survivor { color: #2a1a02; border-color: rgba(255, 214, 120, 0.8); background: linear-gradient(180deg, #ffe9a8, #ffc24a); box-shadow: 0 0 10px rgba(255, 200, 90, 0.35); }
.b-survivor::before { content: "✦"; }
.b-crowned { color: var(--ember); border-color: rgba(255, 178, 46, 0.5); background: rgba(255, 178, 46, 0.08); }
.b-crowned::before { content: "♛"; }
.b-escaped { color: #dbe8f5; border-color: rgba(169, 194, 222, 0.5); background: rgba(125, 156, 192, 0.12); }
.b-escaped::before { content: "↑"; }
.b-genesis { color: #1d0903; border-color: transparent; background: linear-gradient(90deg, #ff4d1a, #ffb22e); }
.b-genesis::before { content: "◆"; }
.b-trial { color: #fff1dc; border-color: transparent; background: var(--lava); animation: throb 1.2s ease-in-out infinite; }
.b-dim { color: var(--ash-3); border-style: dashed; text-transform: none; letter-spacing: 0.02em; font-weight: 700; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty-title { font-family: var(--f-display); font-size: 1.4rem; color: var(--bone); }

/* ---------- eruptions list ---------- */
.eruptions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.erupt {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-areas: "time verdict meta" "story story story";
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--obsidian);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ash-2);
}
.erupt.v-survived { border-left-color: var(--gold); }
.erupt.v-scorched { border-left-color: var(--lava); }
.erupt.v-escaped { border-left-color: var(--cold-2); }
.er-time { grid-area: time; font-variant-numeric: tabular-nums; color: var(--ash-3); font-size: 0.85rem; font-weight: 700; }
.erupt .verdict { grid-area: verdict; }
.er-story { grid-area: story; margin: 0; color: var(--ash-4); }
.er-story .sym { font-weight: 800; }
.er-meta { grid-area: meta; justify-self: end; display: flex; gap: 12px; font-size: 0.8rem; color: var(--ash-3); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {
  .erupt { grid-template-columns: 110px 120px 1fr auto; grid-template-areas: "time verdict story meta"; }
}
.verdict { display: inline-block; font: 900 0.72rem/1 var(--f-display); letter-spacing: 0.16em; padding: 6px 9px 5px; border-radius: 6px; text-align: center; white-space: nowrap; }
.verdict-survived { color: #2a1a02; background: linear-gradient(180deg, #fff0bc, #ffc24a 60%, #e09a1c); box-shadow: 0 0 16px rgba(255, 200, 90, 0.45), inset 0 1px 0 #fff6d8; }
.verdict-scorched {
  color: #d9c9be;
  background:
    linear-gradient(100deg, transparent 0 30%, rgba(255, 77, 26, 0.55) 31% 32%, transparent 33% 62%, rgba(255, 120, 40, 0.45) 63% 64%, transparent 65%),
    repeating-linear-gradient(-35deg, #1b1412 0 3px, #2a1f1b 3px 6px);
  border: 1px solid #3a2c27;
  text-shadow: 0 0 6px rgba(255, 77, 26, 0.6), 0 1px 0 #000;
}
.verdict-escaped { color: #0f1a26; background: linear-gradient(180deg, #e8f1fa, #a9c2de); }
.verdict-quiet { color: var(--ash-3); background: var(--obsidian-3); border: 1px solid var(--line-2); }

/* ---------- ritual steps ---------- */
.ritual { margin-top: 70px; margin-bottom: 70px; }
.ritual-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .ritual-steps { grid-template-columns: repeat(3, 1fr); } }
.ritual-steps li { position: relative; padding: 26px 22px 18px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 77, 26, 0.06), transparent 50%), var(--obsidian); border: 1px solid var(--line); overflow: hidden; }
.rs-n { position: absolute; right: 14px; top: -8px; font: 900 5rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px rgba(255, 110, 40, 0.28); }
.ritual-steps h3 { font-size: 1.35rem; color: var(--ember); }
.ritual-steps p { color: var(--ash-4); margin: 0; font-size: 0.95rem; }
.ritual-more { margin-top: 18px; text-align: center; }

/* ---------- trial panel ---------- */
.trial-panel {
  position: relative;
  border-radius: 18px;
  padding: 20px;
  background:
    radial-gradient(100% 80% at 50% 120%, rgba(255, 77, 26, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(70, 14, 6, 0.6), rgba(16, 11, 10, 0.96) 45%);
  border: 1px solid rgba(255, 77, 26, 0.45);
  box-shadow: 0 0 60px -20px rgba(255, 77, 26, 0.6), inset 0 1px 0 rgba(255, 200, 150, 0.12);
}
.trial-panel.is-hold { animation: holdpulse 0.9s ease-in-out infinite; }
@keyframes holdpulse { 50% { box-shadow: 0 0 80px -10px rgba(255, 110, 40, 0.9), inset 0 0 0 1px rgba(255, 178, 46, 0.5); } }
.trial-panel.is-survived { border-color: rgba(255, 214, 120, 0.7); background: radial-gradient(100% 80% at 50% -10%, rgba(255, 214, 120, 0.18), transparent 60%), linear-gradient(180deg, rgba(60, 40, 10, 0.5), rgba(16, 11, 10, 0.96) 45%); box-shadow: 0 0 60px -20px rgba(255, 214, 120, 0.7); }
.trial-panel.is-scorched { border-color: #3a2c27; background: repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.012) 0 6px, transparent 6px 12px), linear-gradient(180deg, #1c1513, #0e0a09); box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7); }
.trial-panel.is-escaped { border-color: rgba(169, 194, 222, 0.5); }
.tp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.tp-kicker { font: 700 0.72rem var(--f-display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--ember); margin: 0 0 8px; }
.tp-who { display: flex; align-items: center; gap: 14px; }
.tp-who .stone { --glow: rgba(169, 194, 222, 0.6); }
.tp-name { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(1.3rem, 4vw, 1.9rem); color: var(--bone); line-height: 1.1; }
.tp-sym { font-family: var(--f-display); font-weight: 700; color: var(--ember); letter-spacing: 0.06em; }
.tp-clock { text-align: right; display: flex; flex-direction: column; line-height: 1.05; }
.tp-clock .k { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash-3); }
.tp-clock .v { font-weight: 800; font-size: clamp(2.2rem, 8vw, 3.2rem); color: #ffe8c0; font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(255, 90, 30, 0.9); }
.is-judged .tp-clock .v { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.6rem, 5vw, 2.2rem); letter-spacing: 0.08em; }
.is-survived .tp-clock .v { color: var(--gold); text-shadow: 0 0 24px rgba(255, 200, 90, 0.8); }
.is-scorched .tp-clock .v { color: #b9aaa0; text-shadow: 0 0 10px rgba(255, 77, 26, 0.5); }
.tp-verdict { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 14px 16px; margin-bottom: 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); }
.tp-verdict p { margin: 0; flex: 1 1 260px; }
.tp-vword { font: 900 1.4rem var(--f-display); letter-spacing: 0.14em; }
.tp-verdict.v-survived .tp-vword { color: var(--gold); text-shadow: 0 0 16px rgba(255, 200, 90, 0.7); }
.tp-verdict.v-scorched .tp-vword { color: #b9aaa0; }
.tp-verdict.v-escaped .tp-vword { color: var(--cold-2); }
.tp-verdict .pending { color: var(--ember); }
.tp-body { display: grid; gap: 14px; }
@media (min-width: 820px) { .tp-body { grid-template-columns: 1fr 260px; } }
.tp-chartbox { border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); padding: 6px; min-width: 0; }
.tp-chart { width: 100%; height: 230px; }
.tp-side { display: flex; flex-direction: column; gap: 12px; }
.tp-need { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 77, 26, 0.3); }
.tp-need:empty { display: none; }
.tp-need .k { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash-3); }
.tp-need b { font-family: var(--f-display); font-weight: 900; font-size: 2.1rem; line-height: 1.1; color: var(--lava); text-shadow: 0 0 18px rgba(255, 77, 26, 0.6); }
.tp-need b.ok { color: var(--gold); text-shadow: 0 0 18px rgba(255, 200, 90, 0.6); }
.tp-need .u { font-size: 0.78rem; color: var(--ash-3); font-weight: 700; }
.tp-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-stats div { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); min-width: 0; }
.tp-stats dt { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash-3); }
.tp-stats dd { margin: 0; font-weight: 800; color: var(--bone); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-stats .ok dd { color: var(--gold); }
.tp-stats .low dd { color: var(--cold-2); }
.tp-buys { margin-top: 16px; }
.tp-buy-k { font: 900 1rem var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone); margin: 0 0 10px; text-align: center; }
.tp-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .tp-btns { grid-template-columns: repeat(4, 1fr); } }
.tp-note { font-size: 0.82rem; color: var(--ash-3); margin: 14px 0 0; text-align: center; }

/* ---------- panels (token, launch, altar) ---------- */
.panel { border-radius: var(--r); padding: 20px; background: linear-gradient(180deg, var(--obsidian-2), var(--obsidian)); border: 1px solid var(--line); margin-bottom: 16px; min-width: 0; }
.panel h2 { font-size: 1.2rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.page-head { margin-bottom: 28px; }
.note { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--line-2); }
.note-cold { background: rgba(125, 156, 192, 0.1); border-color: rgba(125, 156, 192, 0.35); color: var(--cold-2); }
.note-char { background: repeating-linear-gradient(-35deg, #1b1412 0 4px, #221915 4px 8px); border-color: #3a2c27; color: #c8b8ad; }
.warn { color: var(--ember); font-size: 0.86rem; background: rgba(255, 178, 46, 0.08); border: 1px solid rgba(255, 178, 46, 0.25); border-radius: 10px; padding: 8px 12px; }

/* token page */
.tk-layout { display: grid; gap: 16px; }
@media (min-width: 960px) { .tk-layout { grid-template-columns: minmax(0, 1fr) 370px; align-items: start; } .tk-side { position: sticky; top: 120px; } }
.tk-id { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.tk-stone .stone { --s: 132px !important; width: clamp(96px, 26vw, 132px); height: clamp(96px, 26vw, 132px); box-shadow: 0 0 0 2px rgba(255, 110, 40, 0.6), 0 0 50px -6px rgba(255, 77, 26, 0.65), inset 0 0 20px rgba(0, 0, 0, 0.6); }
.tk-id.is-trial .stone { box-shadow: 0 0 0 2px rgba(169, 194, 222, 0.8), 0 0 50px -4px rgba(125, 156, 192, 0.8); animation: sway 3s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(3deg) translateY(2px); } }
.tk-names { min-width: 0; flex: 1 1 220px; }
.tk-name { margin: 0; overflow-wrap: anywhere; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.tk-sym { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--ember); letter-spacing: 0.08em; margin: 2px 0 10px; }
.tk-heat { display: grid; gap: 10px; padding: 18px 20px; margin-bottom: 16px; border-radius: var(--r); background: linear-gradient(90deg, rgba(125, 156, 192, 0.08), rgba(22, 16, 16, 0.9) 40%, rgba(255, 77, 26, 0.08)); border: 1px solid var(--line); }
.tk-heat-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tk-heat-num .k { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash-3); }
.tk-heat-num b { font-family: var(--f-display); font-size: 2rem; font-weight: 900; }
.tk-heat-num .u { color: var(--ash-3); font-weight: 700; }
.tk-heat-bar .thermo { height: 12px; border-radius: 6px; }
.tk-heat-note { margin: 0; color: var(--ash-4); font-size: 0.92rem; }
.spark { width: 100%; height: 150px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 8px; margin: 0 0 16px; }
.stats div { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); min-width: 0; }
.stats dt { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash-3); }
.stats dd { margin: 0; font-weight: 800; color: var(--bone); font-variant-numeric: tabular-nums; }
.escape-big .escape-bar { height: 7px; }
.escape-big .escape-l { font-size: 0.82rem; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ash-4); }
.links { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.p-token .trial-wrap { margin: 0 0 26px; }
.links a { gap: 6px; display: inline-flex; padding: 7px 12px; border-radius: 9px; border: 1px solid rgba(255, 178, 46, 0.3); font-weight: 700; font-size: 0.88rem; }
.addrs { margin: 0; display: grid; gap: 6px; }
.addrs div { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.addrs dt { min-width: 84px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash-3); }
.addrs dd { margin: 0; display: flex; gap: 8px; align-items: center; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: grid; grid-template-columns: auto 18px 1fr; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.feed li.muted { display: block; }
.feed time { color: var(--ash-3); font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.feed i { font-style: normal; text-align: center; color: var(--ash-2); }
.feed .ev-scorched i, .feed .ev-chosen i { color: var(--lava); }
.feed .ev-survived i, .feed .ev-offering i { color: var(--gold); }
.feed .ev-escaped i { color: var(--cold-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 12px; background: var(--basalt-2); border: 1px solid var(--line); margin-bottom: 14px; }
.seg button { font: 800 0.95rem var(--f-body); padding: 10px; border: 0; border-radius: 9px; background: none; color: var(--ash-3); cursor: pointer; }
.seg button[data-side="buy"][aria-pressed="true"] { color: #1d0903; background: linear-gradient(180deg, #ffb22e, #ff6a2a); }
.seg button[data-side="sell"][aria-pressed="true"] { color: #0f1a26; background: linear-gradient(180deg, #dbe8f5, #7d9cc0); }
.venue { font-size: 0.75rem; color: var(--ash-3); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-k { display: flex; justify-content: space-between; gap: 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash-3); }
.field-k .opt { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ash-2); }
.count { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.count.over { color: var(--lava); }
.help { font-size: 0.8rem; color: var(--ash-3); }
.amount { position: relative; display: flex; }
.amount input { font-size: 1.35rem; font-weight: 800; padding-right: 76px; font-variant-numeric: tabular-nums; }
.amount-u { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ash-3); pointer-events: none; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.quote { margin: 0 0 14px; display: grid; gap: 4px; }
.quote div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.quote dt { color: var(--ash-3); }
.quote dd { margin: 0; font-weight: 800; color: var(--bone); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.quote .total { border-bottom: 0; border-top: 1px solid var(--line-2); padding-top: 8px; font-size: 1rem; }
.quote .total dd { color: var(--ember); }
.slip { margin: -4px 0 14px; }
.slip-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.slip-custom { flex: 1 1 90px; }
.slip-custom input { padding: 0.45em 0.7em; font-size: 0.82rem; }
.bal { margin: 10px 0 0; text-align: center; }
.creator { border-color: rgba(255, 214, 120, 0.35); background: radial-gradient(100% 80% at 100% 0%, rgba(255, 214, 120, 0.1), transparent 60%), linear-gradient(180deg, var(--obsidian-2), var(--obsidian)); }
.claimable { font-size: 1.1rem; }
.claimable b { font-family: var(--f-display); font-size: 1.9rem; color: var(--gold); }
.ritual-mini p { font-size: 0.9rem; }
.notfound { text-align: center; padding: 60px 10px; }
.big-glyph { font-size: 4rem; color: var(--lava); text-shadow: 0 0 30px var(--lava); margin: 0; }

/* launch */
.gate { padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(125, 156, 192, 0.35); background: rgba(125, 156, 192, 0.08); color: var(--cold-2); margin-bottom: 18px; }
.gate strong { color: var(--bone); }
.gate-ok { border-color: rgba(255, 214, 120, 0.45); background: rgba(255, 214, 120, 0.08); color: var(--gold); }
.launch-layout { display: grid; gap: 16px; }
@media (min-width: 960px) { .launch-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .launch-side { position: sticky; top: 120px; } }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row .field-sym { max-width: none; } }
.prefixed { position: relative; display: flex; }
.prefixed > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-weight: 900; color: var(--ember); }
.prefixed input { padding-left: 28px; font-family: var(--f-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border-radius: 14px;
  border: 1.5px dashed rgba(255, 110, 40, 0.45);
  background: radial-gradient(80% 100% at 50% 100%, rgba(255, 77, 26, 0.10), transparent 70%), var(--basalt-2);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.drop:hover, .drop.is-over, .drop:focus-within { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 110, 40, 0.15), inset 0 0 40px rgba(255, 77, 26, 0.12); }
.drop.has-file { border-style: solid; border-color: rgba(255, 178, 46, 0.5); }
.drop-icon { font-size: 1.8rem; color: var(--lava); text-shadow: 0 0 18px var(--lava); }
.drop-t { color: var(--bone); font-weight: 700; overflow-wrap: anywhere; }
.drop-t u { color: var(--ember); text-decoration-color: rgba(255, 178, 46, 0.5); }
.drop-s { font-size: 0.78rem; color: var(--ash-3); }
.form-err { color: var(--lava); font-weight: 700; min-height: 1.3em; margin: 4px 0 10px; }
.forge { text-align: center; padding: 30px 20px 22px; background: radial-gradient(70% 60% at 50% 38%, rgba(255, 77, 26, 0.18), transparent 70%), linear-gradient(180deg, var(--obsidian-2), var(--obsidian)); }
.forge-ring { position: relative; width: 196px; height: 196px; margin: 0 auto 18px; border-radius: 50%; padding: 8px; }
.forge-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff4d1a, #ffb22e, #fff1c4, #ffb22e, #c41e12, #ff4d1a, #7a160c, #ff4d1a);
  filter: blur(0.5px);
  animation: spin 6s linear infinite;
  box-shadow: 0 0 40px rgba(255, 77, 26, 0.6);
}
.forge-ring::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(closest-side, transparent 72%, rgba(255, 90, 30, 0.35) 80%, transparent 100%); animation: breathe 3s ease-in-out infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: 0.6; } }
.forge-stone { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #0e0908; box-shadow: inset 0 0 20px #000; }
.forge-stone img, .forge-stone canvas { width: 100%; height: 100%; object-fit: cover; }
.forge-name { font: 900 1.4rem var(--f-display); color: var(--bone); margin: 0; overflow-wrap: anywhere; }
.forge-sym { font: 700 1rem var(--f-display); color: var(--ember); letter-spacing: 0.1em; margin: 0 0 8px; }
.forge-desc { font-size: 0.88rem; color: var(--ash-3); margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.cost h2, .launch-side .panel h2 { font-size: 1.05rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; font-size: 0.9rem; }
.ticks li::before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--lava); font-size: 0.8rem; }

/* altar */
.altar-head h1 { background: linear-gradient(180deg, #f3e8de, #c9bcb3 60%, #8f827a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tally { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 18px; }
@media (min-width: 760px) { .tally { grid-template-columns: repeat(4, 1fr); } }
.tally div { padding: 14px 16px; border-radius: var(--r); background: var(--obsidian); border: 1px solid var(--line); }
.tally dt { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash-3); }
.tally dd { margin: 0; font: 900 2rem/1.15 var(--f-display); color: var(--bone); }
.t-gold dd { color: var(--gold); text-shadow: 0 0 16px rgba(255, 200, 90, 0.4); }
.t-char dd { color: #b9aaa0; }
.t-lava dd { color: var(--lava); text-shadow: 0 0 16px rgba(255, 77, 26, 0.4); }
.hall-wrap { overflow-x: auto; }
.hall { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hall th { text-align: left; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash-3); padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.hall td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.hall tr.v-survived td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.hall tr.v-scorched td:first-child { box-shadow: inset 3px 0 0 var(--lava); }
.hall tr.v-escaped td:first-child { box-shadow: inset 3px 0 0 var(--cold-2); }
.hall .sym { font-weight: 800; }
.hall .amt { color: var(--ember); font-weight: 800; }
.lh .ok { color: var(--gold); font-weight: 800; }
.lh .low { color: var(--cold-2); font-weight: 800; }
.lh-sep { color: var(--ash-2); }
@media (max-width: 759px) {
  .hall thead { display: none; }
  .hall, .hall tbody, .hall tr, .hall td { display: block; width: 100%; }
  .hall tr { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .hall td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 4px; border: 0; text-align: right; }
  .hall td::before { content: attr(data-k); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash-3); text-align: left; }
  .hall td[colspan]::before { content: none; }
  .hall tr.v-survived td:first-child, .hall tr.v-scorched td:first-child, .hall tr.v-escaped td:first-child { box-shadow: none; }
}
.ranks { display: grid; gap: 16px; }
@media (min-width: 900px) { .ranks { grid-template-columns: repeat(3, 1fr); } }
.rank-shame { background: repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.01) 0 6px, transparent 6px 12px), linear-gradient(180deg, #1c1513, #100c0b); border-color: #3a2c27; }
.rank-shame h2 { color: #b9aaa0; }
.rank-surv h2 { color: var(--gold); }
.rank-crown h2 { color: var(--ember); }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rank-row { display: grid; grid-template-columns: 22px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ash-4); background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line); }
.rank-row:hover { color: var(--ash-4); border-color: var(--line-2); }
.rank-n { font: 900 1rem var(--f-display); color: var(--ash-2); }
.rank-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.rank-id b { font-family: var(--f-display); }
.rank-id small { color: var(--ash-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-v { font-weight: 900; font-family: var(--f-display); }
.rank-shame .rank-v { color: var(--lava); }
.rank-surv .rank-v { color: var(--gold); }
.rank-crown .rank-v { color: var(--ember); }

/* how */
.hour-grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .hour-grid { grid-template-columns: 380px 1fr; } }
.hour-dial canvas { width: 100%; max-width: 380px; aspect-ratio: 1; height: auto; margin: 0 auto; }
.hour-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hour-steps button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); cursor: pointer; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s; }
.hour-steps button:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.hour-steps b { font-family: var(--f-display); font-size: 1.05rem; }
.hour-steps span { font-size: 0.9rem; color: var(--ash-3); }
.hour-steps em { font-style: normal; color: var(--bone); font-weight: 700; }
.hour-steps em.gold { color: var(--gold); }
.hour-steps em.char { color: #b9aaa0; }
.hour-steps li.is-on button { border-color: rgba(255, 110, 40, 0.6); background: linear-gradient(90deg, rgba(255, 77, 26, 0.14), rgba(0, 0, 0, 0.2)); box-shadow: 0 0 24px -10px rgba(255, 77, 26, 0.8); }
.hour-steps li.is-on b { color: var(--ember); }
.hour-steps li.is-on span { color: var(--ash-4); }
.hour-steps li[data-phase="heat"].is-on button { border-color: rgba(125, 156, 192, 0.6); background: linear-gradient(90deg, rgba(125, 156, 192, 0.14), rgba(0, 0, 0, 0.2)); box-shadow: 0 0 24px -10px rgba(125, 156, 192, 0.8); }
.hour-steps li[data-phase="heat"].is-on b { color: var(--cold-2); }
.rules, .verdicts, .faq { margin-top: 56px; }
.rule-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rule { padding: 20px; border-radius: var(--r); background: linear-gradient(180deg, var(--obsidian-2), var(--obsidian)); border: 1px solid var(--line); }
.rule h3 { color: var(--ember); }
.rule-big { font-size: 1.02rem; color: var(--bone); padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border-left: 2px solid var(--lava); }
.rule-big b { color: var(--ember); }
.formula { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88rem; }
.rule p:last-child { margin: 0; font-size: 0.92rem; }
.verdict-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.vcard { padding: 18px; border-radius: var(--r); background: var(--obsidian); border: 1px solid var(--line); }
.vcard p { margin: 12px 0 0; font-size: 0.92rem; }
.vcard.v-survived { border-color: rgba(255, 214, 120, 0.35); }
.vcard.v-scorched { background: repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.012) 0 6px, transparent 6px 12px), #120d0c; border-color: #3a2c27; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; position: relative; font-weight: 800; color: var(--bone); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 700 1.4rem var(--f-display); color: var(--ember); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 16px; margin: 0; max-width: 760px; }

/* 404 */
.lost { text-align: center; padding-top: 70px; padding-bottom: 90px; }
.lost .lede { margin: 0 auto 24px; }
.lost-code { font: 900 clamp(5rem, 22vw, 10rem)/1 var(--f-display); margin: 0; background: linear-gradient(180deg, #fff1c4, #ff4d1a 60%, #3a0d05); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(255, 77, 26, 0.45)); }

/* ---------- footer ---------- */
.foot { position: relative; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255, 77, 26, 0.05)), var(--basalt); margin-top: 40px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--lava), var(--ember), var(--lava), transparent); opacity: 0.5; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 40px; display: grid; gap: 20px; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1.3fr 1fr; } .foot-legal { grid-column: 1 / -1; } }
.foot-brand p { margin: 8px 0 0; max-width: 460px; font-size: 0.92rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: flex-start; }
.foot-nav a { color: var(--ash-4); font-weight: 700; font-size: 0.92rem; }
.foot-nav a:hover { color: var(--ember); }
.foot-legal { font-size: 0.8rem; color: var(--ash-3); margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 120; right: 16px; bottom: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  width: 100%;
  padding: 12px 12px 12px 16px;
  border-radius: 12px;
  background: rgba(20, 14, 12, 0.96);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ash-3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  color: var(--ash-4);
  animation: toastin 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  transition: opacity 0.4s, transform 0.4s;
}
.toast.is-out { opacity: 0; transform: translateY(8px); }
.toast-msg { flex: 1; overflow-wrap: anywhere; }
.toast-ok { border-left-color: var(--gold); }
.toast-err { border-left-color: var(--lava); color: #ffd2c2; }
.toast-fire { border-left-color: var(--lava); background: linear-gradient(90deg, rgba(90, 16, 6, 0.96), rgba(20, 14, 12, 0.96)); }
.toast-gold { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(70, 48, 10, 0.96), rgba(20, 14, 12, 0.96)); }
.toast a { font-weight: 800; white-space: nowrap; }
.toast-x { background: none; border: 0; color: var(--ash-3); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 110; background: rgba(5, 3, 3, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 18px; background: radial-gradient(100% 60% at 50% 0%, rgba(255, 77, 26, 0.12), transparent 60%), var(--obsidian-2); border: 1px solid rgba(255, 110, 40, 0.3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px -20px rgba(255, 77, 26, 0.5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-head h2 { margin: 0; font-size: 1.3rem; }
.modal-x { background: none; border: 0; color: var(--ash-3); font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 4px 8px; }
.wallet-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--obsidian); color: var(--bone); font: 700 1rem var(--f-body); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.wallet-opt:hover { border-color: rgba(255, 178, 46, 0.6); background: var(--obsidian-3); }
.wallet-opt img { width: 30px; height: 30px; border-radius: 8px; }
.wallet-noicon { width: 30px; height: 30px; border-radius: 8px; background: var(--ash-1); }
.wallet-none { color: var(--ash-4); }
.wallet-bal { font: 900 1.6rem var(--f-display); color: var(--ember); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker-track { animation: none !important; }
  .ticker { overflow-x: auto; }
}
