:root {
  --bg: #0a1311; --panel: #101c19; --panel2: #162623; --line: #22332f; --text: #ecf2ef; --muted: #8ea39c;
  --accent: #8fe6c4; --accent-ink: #052019; --danger: #ff5a5f; --ok: #3ddc84; --warn: #f5c542;
  --radius: 14px; --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f1f5f3; --panel: #ffffff; --panel2: #e7eeeb; --line: #d3ddd9; --text: #0a1311; --muted: #4f625c;
  --accent: #127a5b; --accent-ink: #ffffff; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #7b5cff); display: grid; place-items: center; color: #fff; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; text-decoration: none; font-weight: 600; font-size: 14px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; }
.toggle input { display: none; }
.toggle .sw { width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; transition: .2s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { left: 19px; }

/* ---------- public pages ---------- */
body.pub {
  --display: "Unbounded", "Space Grotesk", var(--font);
  --violet: #8b5cff;
  --holo: linear-gradient(115deg, #ff6fb5, #ffd36e 22%, #7dffb0 40%, #59d0ff 58%, #a98bff 76%, #ff6fb5);
  --pattern: #ffffff08;
  background:
    radial-gradient(900px 500px at 12% -10%, #35d0c41f, transparent 60%),
    radial-gradient(800px 500px at 100% 0%, #8b5cff24, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
:root[data-theme="light"] body.pub { --pattern: #14161d0a; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.pub { --pattern: #14161d0a; } }
/* faint diamond "card back" lattice behind everything */
body.pub::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(45deg, var(--pattern) 1px, transparent 1px),
    linear-gradient(-45deg, var(--pattern) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
body.pub h1, body.pub h2, body.pub h3 { letter-spacing: -0.02em; }
body.pub .nav { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
body.pub .brand .logo { height: 40px; }
body.pub .brand { font-size: 15px; letter-spacing: .01em; }
/* logo slot: swap the initials for the real logo once the name is final */
body.pub .brand .mark {
  width: 34px; height: 34px; border-radius: 10px; font-size: 13px; font-weight: 800; position: relative; overflow: hidden;
  background: var(--holo); background-size: 300% 100%; color: #111; animation: holo 6s linear infinite;
  box-shadow: 0 4px 18px -6px #a98bffaa;
}
@keyframes holo { to { background-position: 300% 0; } }

/* ambient tier glow: the background fades to the color of the tier being scrolled through */
@property --amb { syntax: "<color>"; inherits: true; initial-value: #35d0c4; }
@property --amb2 { syntax: "<color>"; inherits: true; initial-value: #8b5cff; }
.ambient { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1000px 640px at 8% -8%, color-mix(in srgb, var(--amb) 26%, transparent), transparent 62%),
    radial-gradient(900px 620px at 100% 10%, color-mix(in srgb, var(--amb2) 22%, transparent), transparent 62%),
    radial-gradient(1100px 600px at 50% 115%, color-mix(in srgb, var(--amb) 14%, transparent), transparent 65%);
  transition: --amb 1.2s ease, --amb2 1.2s ease;
}
body.pub:has(.ambient) { background: var(--bg); }

/* recent pulls ticker */
.ticker { display: flex; align-items: center; gap: 12px; height: 38px; border-bottom: 1px solid var(--line); overflow: hidden; font-size: 13px; }
.ticker[hidden] { display: none; }
.ticker .tag { flex: none; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--danger); }
.ticker .track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker .run { display: inline-flex; gap: 34px; white-space: nowrap; padding-left: 100%; animation: tick var(--dur, 30s) linear infinite; }
.ticker .item { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.ticker .item b { color: var(--c); font-weight: 700; }
.ticker .item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
@keyframes tick { to { transform: translateX(-100%); } }

/* hero */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #ff5a5f88; } 100% { box-shadow: 0 0 0 9px #ff5a5f00; } }
.head { padding: 40px 0 28px; }
.head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.streamer { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 4px 12px 4px 4px; border-radius: 999px; background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--line); }
.streamer .av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--violet, #7b5cff)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.streamer b { color: var(--text); font-weight: 600; }
.head h1 { font-size: clamp(30px, 5.4vw, 54px); line-height: 1.02; margin: 16px 0 10px; max-width: 800px; font-weight: 800; }
.head h1 .glint { background: linear-gradient(100deg, var(--text) 30%, var(--accent) 50%, var(--text) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: glint 7s ease-in-out infinite; }
@keyframes glint { 0%, 60% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
.head .sub { color: var(--muted); max-width: 620px; font-size: 16px; }
.watch { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.watch:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px var(--danger); }
.stats { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; margin-top: 26px; }
.stat { padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.stat .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 30px; font-weight: 800; margin-top: 4px; }
.stat .v small { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.meter { height: 10px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--violet, #7b5cff)); position: relative; transition: width .8s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff55, transparent); transform: translateX(-100%); animation: sweep 2.6s ease-in-out infinite; }
@keyframes sweep { to { transform: translateX(100%); } }
.chase-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.chase { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.chase .nm { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c); }
.chase .nm::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.chase .ct { font-family: var(--display); font-weight: 700; }
.chase .ct.gone { color: var(--muted); text-decoration: line-through; }
.meta-line { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* odds / rarity ladder */
.odds-wrap { padding: 8px 0 6px; }
.odds-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.odds-title h2 { font-size: 20px; font-weight: 700; }
.oddsbar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; gap: 3px; background: var(--panel2); padding: 3px; }
.oddsbar i { background: var(--c); min-width: 4px; border-radius: 99px; transition: flex-grow .8s cubic-bezier(.2,.8,.2,1); }
.oddsbar i.r-holo { background: var(--holo); background-size: 300% 100%; animation: holo 5s linear infinite; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-top: 14px; }
.leg { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform .15s, border-color .15s; isolation: isolate; }
.leg:hover { transform: translateY(-2px); border-color: var(--c); }
.leg .n { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.leg .n::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.leg .p { font-family: var(--display); font-size: 24px; font-weight: 800; }
.leg .l { font-size: 12px; color: var(--muted); }
.leg .mini { height: 4px; border-radius: 9px; background: var(--panel2); margin-top: 8px; overflow: hidden; }
.leg .mini i { display: block; height: 100%; background: var(--c); border-radius: 9px; transition: width .8s; }
/* rarity treatments: top two tiers are holo foil, next two glow, the rest stay clean */
.r-holo { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.leg.r-holo::after, .tier.r-holo .tier-name::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--holo); background-size: 300% 100%;
  opacity: .14; animation: holo 6s linear infinite;
}
.leg.r-holo { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent), 0 10px 30px -14px var(--c); }
.leg.r-holo .mini i { background: var(--holo); background-size: 300% 100%; animation: holo 4s linear infinite; }
.leg.r-glow { box-shadow: 0 0 22px -8px var(--c); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.leg.flash { animation: legflash 1.4s ease-out 2; }
@keyframes legflash { 0% { box-shadow: 0 0 0 0 var(--c); transform: scale(1.04); } 100% { box-shadow: 0 0 0 16px transparent; transform: scale(1); } }
.fine { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* card lists */
.pulls-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 4px; gap: 12px; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); padding: 12px 0; border-bottom: 1px solid var(--line); }
.pulls-head h2 { font-size: 20px; font-weight: 700; }
.tier { padding: 28px 0 6px; scroll-margin-top: 70px; }
.tier-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tier-head:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; border-radius: 8px; }
.tier-head .chev { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); flex: none; }
.tier-head .chev::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.tier.closed .tier-head .chev::before { transform: translateY(1px) rotate(-135deg); }
.tier.closed .tier-head { margin-bottom: 0; }
.tier.closed .tier-body { display: none; }
.tier .grid { overflow: hidden; transition: max-height .45s cubic-bezier(.2,.7,.2,1); padding: 4px; margin: -4px; }
.tier .grid.clip { -webkit-mask-image: linear-gradient(#000 calc(100% - 90px), transparent); mask-image: linear-gradient(#000 calc(100% - 90px), transparent); }
.more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); color: var(--text, inherit); font: 700 12px/1 var(--display, inherit); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s; }
.more:hover { background: color-mix(in srgb, var(--c) 16%, transparent); border-color: var(--c); }
.more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .tier .grid { transition: none; } .tier-head .chev::before { transition: none; } }
.tier-name { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 11px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.tier-name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tier.r-holo .tier-name::after { opacity: .35; }
.tier.r-glow .tier-name { box-shadow: 0 0 20px -6px var(--c); }
.tier-sub { font-size: 13px; color: var(--muted); }
.tier-line { flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 50%, transparent), transparent); min-width: 30px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 16px; perspective: 900px; }
.card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--panel2); position: relative; cursor: zoom-in; box-shadow: 0 0 0 1px var(--line), 0 8px 22px -14px #000; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out, box-shadow .2s; will-change: transform; }
.card.live { transition: transform .06s linear, box-shadow .2s; }
.card:hover { box-shadow: 0 0 0 2px var(--c), 0 18px 34px -14px var(--c); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* glare that follows the pointer */
.card::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), #ffffff40, transparent 45%); opacity: 0; transition: opacity .2s; }
.card:hover::before { opacity: 1; }
/* holo foil on the top tiers */
.tier.r-holo .card:not(.pulled)::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--holo); background-size: 300% 300%; background-position: var(--mx) var(--my); mix-blend-mode: color-dodge; opacity: .18; transition: opacity .2s; }
.tier.r-holo .card:not(.pulled):hover::after { opacity: .42; }
.tier.r-holo .card:not(.pulled) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 12px 30px -14px var(--c); }
.tier.r-glow .card:not(.pulled) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 24px -10px var(--c); }
.card.pulled { cursor: default; }
.card.pulled img { filter: grayscale(1) brightness(.4); }
.card.pulled::after { content: "Pulled"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); border: 2px solid #fff; color: #fff; border-radius: 6px; padding: 4px 12px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.card.just-pulled { animation: justpulled 1.2s ease-out; }
@keyframes justpulled { 0% { transform: scale(1.08); box-shadow: 0 0 0 3px var(--c), 0 0 40px var(--c); } 100% { transform: scale(1); } }
.empty { padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.lightbox { position: fixed; inset: 0; background: #000d; display: none; place-items: center; z-index: 50; padding: 20px; cursor: zoom-out; backdrop-filter: blur(6px); }
.lightbox.open { display: grid; animation: fadein .2s; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 14px; box-shadow: 0 30px 80px -20px #000; animation: popin .25s cubic-bezier(.2,.9,.3,1.2); }
@keyframes fadein { from { opacity: 0; } }
@keyframes popin { from { transform: scale(.92); opacity: 0; } }

/* "your pull" reveal for buyers who scan their card */
.yourpull { margin: 24px 0 0; padding: 18px; display: flex; gap: 18px; align-items: center; border-color: var(--c); position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 0 40px -16px var(--c); }
.yourpull.r-holo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--holo); background-size: 300% 100%; opacity: .12; animation: holo 6s linear infinite; }
.yourpull img { width: 110px; border-radius: 10px; animation: flipin .9s cubic-bezier(.2,.8,.2,1); box-shadow: 0 12px 30px -12px var(--c); }
.yourpull h2 { font-size: 22px; margin-top: 8px; }
@keyframes flipin { from { transform: perspective(600px) rotateY(180deg) scale(.8); opacity: 0; } }

/* hit celebration */
.hit { position: fixed; left: 50%; top: 84px; z-index: 60; transform: translateX(-50%); text-align: center; pointer-events: none; }
.hit .box { padding: 16px 26px; border-radius: 18px; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--c); box-shadow: 0 0 60px -10px var(--c); backdrop-filter: blur(10px); animation: hitin .5s cubic-bezier(.2,.9,.3,1.3), hitout .4s ease-in 3.6s forwards; }
.hit .t { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 5vw, 38px); text-transform: uppercase; letter-spacing: .02em; background: var(--holo); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo 2s linear infinite; }
.hit .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hit i { position: fixed; left: 50%; top: 120px; width: 8px; height: 12px; border-radius: 2px; background: var(--pc); animation: confetti 1.6s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
@keyframes hitin { from { transform: translateY(-20px) scale(.8); opacity: 0; } }
@keyframes hitout { to { transform: translateY(-14px); opacity: 0; } }

.footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 0 40px; color: var(--muted); font-size: 13px; }

/* batch list (home page) */
.hero-home { padding: 44px 0 10px; }
.hero-home h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
.hero-home p { max-width: 560px; font-size: 16px; }
.batches { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding: 24px 0; }
.bcard { text-decoration: none; padding: 12px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.bcard:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 36px -18px var(--accent); }
.bcard .cover { aspect-ratio: 4/3; border-radius: 10px; background: var(--panel2) center/cover; position: relative; overflow: hidden; }
.bcard .cover { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--violet, #8b5cff) 30%, transparent), transparent 70%), var(--panel2); }
.bcard .cover .bag { height: 82%; filter: drop-shadow(0 14px 22px #0008); transition: transform .3s; }
.bcard:hover .cover .bag { transform: rotate(-4deg) scale(1.05); }
.bcard .cover::after { content: ""; position: absolute; inset: 0; background: var(--holo); background-size: 300% 100%; mix-blend-mode: color-dodge; opacity: .12; animation: holo 8s linear infinite; }
.bcard .st { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bcard .st.live { color: var(--danger); }
.bcard .bar { height: 6px; border-radius: 9px; background: var(--panel2); overflow: hidden; }
.bcard .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--violet, #7b5cff)); }

/* light mode: darken tier-colored text so yellows and light blues stay readable */
:root[data-theme="light"] body.pub { --ink-mix: 62%; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.pub { --ink-mix: 62%; } }
body.pub .leg .n, body.pub .tier-name, body.pub .chase .nm, body.pub .ticker .item b { color: color-mix(in srgb, var(--c) var(--ink-mix, 100%), #000); }

@media (max-width: 760px) {
  .head { padding: 24px 0 20px; }
  .watch { width: 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr; }
  .stat .v { font-size: 24px; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leg .p { font-size: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .pulls-head h2 { font-size: 17px; }
  .odds-title span, #updated { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.pub *, body.pub *::before, body.pub *::after { animation: none !important; transition: none !important; }
  .ticker .run { padding-left: 0; }
  .hit { display: none; }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f5f8; --panel: #ffffff; --panel2: #f0f2f6; --line: #dfe2ea; --text: #14161d; --muted: #5d6475;
    --accent: #109a90; --accent-ink: #ffffff; color-scheme: light;
  }
}

/* MNT wordmark (placeholder until the final logo) */
.brand .logo { height: 34px; width: auto; display: block; color: var(--text); }
.brand .logo + span .muted, .brand .logo + span > .muted { margin-left: 2px; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav .brand .logo { height: 46px; margin: -4px 0; }
body.pub .nav .brand .logo { height: 50px; }
.nav .brand .logo g path { stroke-width: 10; }
