:root {
  --bg: #140906;
  --bg2: #1d0d08;
  --card: rgba(40, 20, 13, .72);
  --card2: rgba(60, 28, 16, .55);
  --line: rgba(255, 170, 110, .16);
  --line2: rgba(255, 170, 110, .3);
  --ink: #fff2e4;
  --mut: #c9a48d;
  --hot: #ff5a1f;
  --flame: #ffb21a;
  --gold: #ffe066;
  --red: #ff2a3d;
  --heat: 0; /* 0..1, set from JS */
  --shake: 0px;
  --disp: 'Bungee', system-ui, sans-serif;
  --shade: 'Bungee Shade', 'Bungee', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 20px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.55 'Space Grotesk', system-ui, sans-serif;
  background:
    radial-gradient(110% 55% at 50% 105%, rgba(255, 70, 15, calc(.16 + var(--heat) * .5)), transparent 70%),
    radial-gradient(60% 40% at 85% 0%, rgba(255, 160, 60, .1), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(255, 90, 31, .07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* faint kitchen tiles */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 200, 150, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 200, 150, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ticker, header, main, footer, .demo { position: relative; z-index: 1; }
.hidden { display: none !important; }
.mut { color: var(--mut); }
.small { font-size: 13px; }
b { font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--mono); font-size: 13px; word-break: break-all; }
a { color: inherit; }

/* ---------------------------------------------------------------- ticker */
.ticker {
  overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #2a0f06, #3a1408 50%, #2a0f06);
  font-family: var(--mono); font-size: 13px; height: 34px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: inline-flex; gap: 40px; padding: 7px 0; animation: tick 60s linear infinite; }
.ticker-track span { color: var(--mut); }
.ticker-track b { color: var(--gold); font-weight: 700; }
.ticker-track .tk-boom { color: var(--ink); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
}
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--disp); font-size: 28px; color: var(--ink); text-decoration: none; letter-spacing: 1px; }
.logo span:not(.logo-tater) { color: var(--hot); text-shadow: 0 0 18px rgba(255, 90, 31, .6); margin-left: -8px; }
.logo-tater { font-size: 26px; display: inline-block; animation: wob 2.4s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(-12deg) translateY(-2px); } }
nav { display: flex; align-items: center; gap: 4px; }
nav a { color: var(--mut); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 500; }
nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
nav a.off { display: none; }
.pill {
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .06);
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
}
.pill:hover { background: rgba(255, 255, 255, .1); }
.pill.hot { background: linear-gradient(180deg, var(--flame), var(--hot)); color: #2a0d03; border: 0; }
.ghost { background: none; border: 0; font-size: 18px; padding: 6px; opacity: .8; }

.demo {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; font-size: 13px; color: var(--mut); text-align: center;
}
.demo span {
  font-family: var(--mono); font-weight: 700; font-size: 11px; color: #2a0d03; background: var(--gold);
  border-radius: 4px; padding: 1px 6px; margin-right: 6px; letter-spacing: 1px;
}

main { max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; padding: 30px 0 10px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card);
  font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--mut);
}
.kicker b { color: var(--ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px var(--hot); animation: pulse 1s infinite alternate; display: inline-block; }
@keyframes pulse { to { opacity: .35; transform: scale(.8); } }
h1 {
  font-family: var(--disp); font-weight: 400; font-size: clamp(40px, 6.2vw, 76px); line-height: .98;
  margin: 0 0 20px; letter-spacing: -.5px; text-wrap: balance;
}
h1 em {
  font-style: normal; font-family: var(--shade); color: var(--hot);
  text-shadow: 0 0 30px rgba(255, 90, 31, .55);
  display: inline-block; animation: throb 1.6s ease-in-out infinite;
}
@keyframes throb { 50% { transform: scale(1.04) rotate(-1.5deg); color: var(--flame); } }
.lede { font-size: 19px; color: var(--mut); max-width: 520px; margin: 0 0 28px; }
.lede b { color: var(--ink); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.big-btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: var(--disp); font-size: 18px; letter-spacing: .5px; color: #2a0d03;
  padding: 16px 28px; border-radius: 14px;
  background: linear-gradient(180deg, var(--gold), var(--flame) 40%, var(--hot));
  box-shadow: 0 10px 34px rgba(255, 90, 31, calc(.3 + var(--heat) * .4)), inset 0 -3px 0 rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .4);
  transition: transform .12s, box-shadow .2s;
}
.big-btn:hover { transform: translateY(-2px) rotate(-.5deg); }
.ghost-btn {
  display: inline-block; text-decoration: none; padding: 16px 24px; border-radius: 14px; font-weight: 700;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .04);
}
.ghost-btn:hover { background: rgba(255, 255, 255, .08); }

/* the stage: ring + thermometer + pot */
.stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.stage::before {
  content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 40, calc(.18 + var(--heat) * .45)), transparent 65%);
  filter: blur(24px);
}
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 6; stroke-dasharray: 2 10; }
.ring-fg {
  fill: none; stroke: var(--hot); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 0 1200; transition: stroke-dasharray .8s cubic-bezier(.2, .9, .3, 1.2);
  filter: drop-shadow(0 0 8px rgba(255, 90, 31, .9));
}
#pot { position: relative; width: 78%; height: auto; overflow: visible; margin-top: -4%; }
.toss { transform-origin: 166px 200px; }
.toss.go { animation: toss .7s cubic-bezier(.3, .1, .3, 1); }
@keyframes toss {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-90px) rotate(-200deg) scale(.92); }
  70% { transform: translateY(6px) rotate(-360deg); }
  85% { transform: translateY(-8px) rotate(-360deg); }
  100% { transform: translateY(0) rotate(-360deg); }
}
.tater { transform-origin: 166px 200px; animation: shake .12s infinite alternate; }
@keyframes shake {
  from { transform: translate(calc(var(--shake) * -1), 0) rotate(calc(var(--shake) * -.4deg)); }
  to { transform: translate(var(--shake), calc(var(--shake) * -.5)) rotate(calc(var(--shake) * .4deg)); }
}
.cheeks { opacity: calc(.1 + var(--heat) * .8); }
.sweat { opacity: 0; transition: opacity .4s; }
.sweat path { animation: drip 1.4s infinite ease-in; }
.sweat path:nth-child(2) { animation-delay: .5s; }
.sweat path:nth-child(3) { animation-delay: .9s; }
@keyframes drip { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.steam path { fill: none; stroke: rgba(255, 240, 220, .28); stroke-width: 6; stroke-linecap: round; opacity: calc(.2 + var(--heat)); animation: steam 2.6s infinite ease-in-out; }
.steam path:nth-child(2) { animation-delay: .7s; }
.steam path:nth-child(3) { animation-delay: 1.4s; }
@keyframes steam { 0% { transform: translateY(10px); opacity: 0; } 40% { opacity: calc(.2 + var(--heat)); } 100% { transform: translateY(-30px); opacity: 0; } }
.bubbles circle { animation: bub 1.2s infinite ease-in; transform-box: fill-box; transform-origin: center; }
.bubbles circle:nth-child(2) { animation-delay: .4s; }
.bubbles circle:nth-child(3) { animation-delay: .8s; }
.bubbles circle:nth-child(4) { animation-delay: .2s; }
@keyframes bub { 0% { transform: scale(.2); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-14px) scale(1.2); opacity: 0; } }
.pot-label { font-family: var(--disp); font-size: 22px; fill: rgba(255, 178, 26, .6); letter-spacing: 1px; }
.fire { transform-origin: 160px 338px; transform: scale(calc(.75 + var(--heat) * .75)); transition: transform .6s; }
.f { fill: url(#gFlame); transform-box: fill-box; transform-origin: 50% 100%; animation: flick .32s infinite alternate ease-in-out; filter: drop-shadow(0 0 12px rgba(255, 90, 20, .85)); }
.f2 { animation-duration: .27s; animation-delay: .1s; }
.f3 { animation-duration: .36s; animation-delay: .05s; }
.fi { fill: url(#gFlameIn); animation-duration: .22s; filter: none; }
@keyframes flick { from { transform: scale(.88, .92) skewX(-4deg); } to { transform: scale(1.06, 1.14) skewX(4deg); } }

.heat-badge {
  position: absolute; top: 6%; left: 2%; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 8px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2);
  transform: rotate(-6deg); backdrop-filter: blur(6px);
}
.heat-badge small { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--mut); }
.heat-badge b { font-family: var(--disp); font-weight: 400; font-size: 20px; color: var(--flame); }
.thermo { position: absolute; right: -2%; top: 16%; height: 62%; width: 26px; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.thermo-tube { position: relative; flex: 1; width: 14px; border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 230, 210, .25); border-bottom: 0; overflow: hidden; }
.thermo-tube i { position: absolute; left: 0; right: 0; bottom: 0; height: 5%; background: linear-gradient(0deg, var(--red), var(--hot), var(--flame)); transition: height .8s cubic-bezier(.2, .9, .3, 1.2); box-shadow: 0 0 12px var(--hot); }
.thermo-bulb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a5a, var(--red)); border: 2px solid rgba(255, 230, 210, .25); margin-top: -3px; box-shadow: 0 0 calc(10px + var(--heat) * 20px) var(--red); }

.holder {
  position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line2);
  backdrop-filter: blur(6px); transition: border-color .3s, box-shadow .3s;
}
.holder.on { border-color: var(--flame); box-shadow: 0 0 24px rgba(255, 178, 26, .35); }
.holder.pop { animation: pop .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes pop { 0% { transform: translateX(-50%) scale(.7); } 100% { transform: translateX(-50%) scale(1); } }
.holder small { display: block; font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: 1px; }
.holder b { font-family: var(--mono); font-size: 14px; }
.holder-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #3a1a0b; display: grid; place-items: center; font-size: 18px; }
.holder-avatar svg { width: 100%; height: 100%; display: block; }

/* ---------------------------------------------------------------- scoreboard */
.board { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; margin: 26px 0 14px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px;
  backdrop-filter: blur(6px);
}
.tile small { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--mut); }
.tile .num { font-family: var(--disp); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 6px 0 2px; }
.tile .num i { font-style: normal; font-size: .45em; color: var(--mut); }
.tile p { margin: 0; color: var(--mut); font-family: var(--mono); font-size: 13px; }
.tile .hot { color: var(--flame); }
.tile-pot { background: linear-gradient(135deg, rgba(255, 120, 30, .22), rgba(40, 20, 13, .7) 60%); border-color: var(--line2); }
.tile-pot .num {
  font-size: clamp(34px, 4.4vw, 54px);
  background: linear-gradient(180deg, var(--gold), var(--flame) 45%, var(--hot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 calc(8px + var(--heat) * 24px) rgba(255, 90, 31, .45));
}
.tile-pot .num i { -webkit-text-fill-color: var(--mut); }
.tile-pot.bump .num { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.06); } }
.bar { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); margin-top: 10px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--flame), var(--hot) 70%, var(--red)); transition: width .6s; }

/* ---------------------------------------------------------------- status */
.status {
  display: flex; align-items: center; gap: 14px; margin: 0 0 30px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px;
}
.status p { margin: 0; flex: 1; font-weight: 500; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mut); flex: none; }
.status.armed { border-color: rgba(255, 178, 26, .35); }
.status.armed .dot { background: var(--flame); box-shadow: 0 0 12px var(--flame); animation: pulse .5s infinite alternate; }
.status.boom { border-color: var(--hot); background: rgba(255, 90, 31, .16); }
.status.boom .dot { background: var(--hot); box-shadow: 0 0 16px var(--hot); }
.status code { color: var(--gold); }

/* ---------------------------------------------------------------- trade + feed */
.grid { display: grid; grid-template-columns: 400px 1fr; gap: 20px; scroll-margin-top: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; backdrop-filter: blur(6px); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 19px; letter-spacing: .5px; }
.fee-tag, .live-pill { font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--mut); display: inline-flex; align-items: center; gap: 6px; }
.trade { background: linear-gradient(180deg, rgba(70, 30, 14, .7), var(--card)); border-color: var(--line2); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(0, 0, 0, .3); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.tabs button { border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--mut); }
.tabs button.on { background: rgba(255, 255, 255, .1); color: var(--ink); }
.field { display: flex; align-items: center; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
.field:focus-within { border-color: var(--flame); box-shadow: 0 0 0 3px rgba(255, 178, 26, .15); }
.field input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 700 28px var(--mono); padding: 10px 0; outline: none; }
.field span { font-weight: 700; color: var(--mut); }
.chips { display: flex; gap: 8px; margin: 10px 0 14px; }
.chips button { flex: 1; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); border-radius: 9px; padding: 7px 0; font-family: var(--mono); font-size: 13px; }
.chips button:hover { border-color: var(--flame); color: var(--flame); }
.quote-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); font-size: 14px; }
.quote-row b { font-family: var(--mono); }
#yourOdds { color: var(--flame); }
.big {
  width: 100%; border: 0; border-radius: 14px; padding: 17px; margin-top: 16px; font-family: var(--disp); font-size: 18px; letter-spacing: .5px;
  color: #2a0d03; background: linear-gradient(180deg, var(--gold), var(--flame) 40%, var(--hot));
  box-shadow: 0 8px 30px rgba(255, 90, 31, calc(.25 + var(--heat) * .4)), inset 0 -3px 0 rgba(0, 0, 0, .2), inset 0 2px 0 rgba(255, 255, 255, .4);
  transition: transform .1s;
}
.big:hover { transform: translateY(-1px); }
.big:active { transform: translateY(1px); }
.big:disabled { opacity: .5; cursor: default; }
.trade > .small { margin: 10px 0 0; }
.msg { min-height: 1.2em; margin: 8px 0 0; font-size: 14px; color: var(--gold); }
.mine { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mine div { display: flex; flex-direction: column; }
.mine b { font-family: var(--mono); }
.mine .pill { grid-column: 1 / -1; padding: 12px; }

.feed ol { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 170, 110, .3) transparent; }
.feed li {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 6px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 14px;
}
.feed li.new { animation: in .5s ease-out; }
@keyframes in { from { opacity: 0; transform: translateX(-10px); background: rgba(255, 178, 26, .15); } }
.feed .av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; position: relative; }
.feed .av svg { width: 100%; height: 100%; display: block; }
.feed .av em { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-size: 14px; }
.feed li .r { font-family: var(--mono); font-size: 12px; color: var(--mut); text-align: right; }
.feed li.boom { background: linear-gradient(90deg, rgba(255, 90, 31, .22), transparent); border-radius: 10px; }
.feed li.boom b { color: var(--gold); }
.feed li.dud { color: var(--mut); }
.feed code { color: var(--ink); }

/* ---------------------------------------------------------------- sections */
.sec-kicker { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 3px; color: var(--hot); }
h2 { font-family: var(--disp); font-weight: 400; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.05; margin: 0 0 22px; }
.how, .fame, .recipe { margin-top: 80px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps article {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  transition: transform .2s, border-color .2s;
}
.steps article:hover { transform: translateY(-4px) rotate(-.5deg); border-color: var(--line2); }
.step-art { font-size: 46px; line-height: 1; margin-bottom: 14px; filter: drop-shadow(0 6px 14px rgba(255, 90, 31, .35)); }
.steps i {
  position: absolute; top: 18px; right: 18px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-style: normal;
  font-family: var(--disp); color: #2a0d03; background: linear-gradient(180deg, var(--flame), var(--hot));
}
.steps h4 { margin: 0 0 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--mut); font-size: 14.5px; }

.odds { margin-top: 80px; display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: center; padding: 30px; }
.odds .mut b { color: var(--flame); }
.legend { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--mut); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 18px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-bar { background: rgba(255, 178, 26, .55); }
.lg-line { height: 3px !important; background: var(--hot); }
.lg-now { background: var(--ink); width: 4px !important; height: 16px !important; }
#oddsChart { width: 100%; height: auto; overflow: visible; }
#oddsChart text { font-family: var(--mono); font-size: 11px; fill: var(--mut); }
#oddsChart .grid-l { stroke: rgba(255, 255, 255, .06); }
#oddsChart .b { fill: rgba(255, 178, 26, .4); }
#oddsChart .b.past { fill: rgba(255, 178, 26, .16); }
#oddsChart .b.now { fill: var(--ink); }
#oddsChart .cum { fill: none; stroke: var(--hot); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255, 90, 31, .7)); }
#oddsChart .cum-area { fill: url(#gCum); }
#oddsChart .med { stroke: rgba(255, 242, 228, .35); stroke-dasharray: 4 4; }

.fame-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.fame-card {
  position: relative; overflow: hidden; padding: 18px; border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255, 120, 30, .25), var(--card) 55%); border: 1px solid var(--line2);
}
.fame-card::after { content: '💥'; position: absolute; right: -8px; top: -14px; font-size: 64px; opacity: .18; transform: rotate(14deg); }
.fame-card .who { display: flex; align-items: center; gap: 10px; }
.fame-card .who span { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.fame-card .who svg { width: 100%; height: 100%; display: block; }
.fame-card .who code { font-size: 14px; }
.fame-card .amt { font-family: var(--disp); font-size: 28px; color: var(--gold); margin: 12px 0 0; }
.fame-card p { margin: 0; color: var(--mut); font-family: var(--mono); font-size: 12px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.fact b { display: block; font-family: var(--disp); font-weight: 400; font-size: 30px; color: var(--flame); }
.fact span { color: var(--mut); }
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq details[open] { border-color: var(--line2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--disp); color: var(--hot); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--mut); }
.addrs { margin-top: 26px; }
.addrs p { margin: 6px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy { border: 1px solid var(--line); background: none; border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--mut); }

.final {
  margin: 90px 0 20px; text-align: center; padding: 60px 20px; border-radius: 28px;
  background: radial-gradient(70% 120% at 50% 120%, rgba(255, 90, 31, .45), transparent 70%), var(--card);
  border: 1px solid var(--line2);
}
.final h2 { margin-bottom: 8px; }
.final p { margin: 0 0 26px; font-size: 18px; }

footer { max-width: 1200px; margin: 0 auto; padding: 20px 24px 90px; color: var(--mut); font-size: 13px; text-align: center; }
.small-logo { justify-content: center; gap: 0; font-size: 22px; margin: 0 0 8px; }
.small-logo span { margin-left: 0 !important; }

.sticky-buy {
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; display: none;
  text-align: center; text-decoration: none; padding: 14px; border-radius: 14px;
  font-family: var(--disp); font-size: 16px; color: #2a0d03;
  background: linear-gradient(180deg, var(--gold), var(--flame) 40%, var(--hot));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

/* ---------------------------------------------------------------- boom */
#flash {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; display: grid; place-items: center; align-content: center; opacity: 0;
  background: radial-gradient(circle, #fff6d0 0%, #ffb21a 30%, rgba(255, 60, 10, .88) 60%, rgba(20, 9, 6, 0) 100%);
}
#flash span { font-family: var(--shade); font-size: clamp(80px, 20vw, 240px); line-height: 1; color: #2a0d03; transform: scale(.3); }
#flash em { font-style: normal; font-family: var(--mono); font-weight: 700; font-size: clamp(16px, 2.4vw, 24px); color: #2a0d03; }
body.booming #flash { animation: flash 2.2s ease-out; }
body.booming #flash span { animation: boomtxt 2.2s cubic-bezier(.2, 1.6, .4, 1); }
body.booming main { animation: quake .5s; }
@keyframes flash { 0% { opacity: 0; } 6% { opacity: 1; } 60% { opacity: .92; } 100% { opacity: 0; } }
@keyframes boomtxt { 0% { transform: scale(.3) rotate(-8deg); } 30% { transform: scale(1.1) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes quake {
  0%, 100% { transform: none; } 20% { transform: translate(-12px, 6px); } 40% { transform: translate(10px, -8px); }
  60% { transform: translate(-8px, -4px); } 80% { transform: translate(6px, 6px); }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 16px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .stage { max-width: 380px; order: -1; }
  .board { grid-template-columns: 1fr 1fr; }
  .tile-pot { grid-column: 1 / -1; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .odds { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  nav a[href^="#"] { display: none; }
}
@media (max-width: 560px) {
  .top { padding: 14px 16px; }
  main { padding: 0 16px 32px; }
  nav a { padding: 6px; font-size: 14px; }
  .logo { font-size: 24px; }
  .steps, .facts { grid-template-columns: 1fr; }
  .odds { padding: 20px; }
  .status { flex-wrap: wrap; }
  .heat-badge { top: 2%; left: 0; }
  .thermo { right: 0; }
  .sticky-buy { display: block; }
  .how, .fame, .recipe, .odds { margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .tater, .f, .steam path, .sweat path, .bubbles circle, .live-dot, h1 em, .logo-tater, .ticker-track { animation: none; }
}
.foot-x { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--hot); }
.foot-x:hover { color: var(--flame); }
