/* The rip room website. One layout, three looks (body[data-d]): shop = RIP IT print, holo = flat green + black, slab = PSA case.
   Layout tokens below; every look only swaps tokens + a few signature details. */
:root {
  --common: #9aa3b2; --uncommon: #2f7dff; --rare: #8a4dff; --epic: #ff7a00; --gold: #e0a800;
  --holo: linear-gradient(115deg, #ff7a00, #ffd400 18%, #2be89a 36%, #2f7dff 54%, #8a4dff 72%, #ff3fa4 90%);
}

/* ===================== LOOK: SHOP (RIP IT riso print) ===================== */
body[data-d='shop'] {
  --page: #c9bea6; --page2: #d8cdb6; --panel: #e9e0cc; --ink: #141414; --muted: #4f483d; --line: #141414; --bw: 3px;
  --shadow: 6px 6px 0 #141414; --shadow-s: 4px 4px 0 #141414; --r: 16px;
  --accent: #23c784; --accent-ink: #141414; --accent2: #dbe33a; --accent3: #8a45e6;
  --display: 'Anton', Impact, sans-serif; --body: 'Rubik', system-ui, sans-serif; --mono: 'Space Mono', monospace;
  --dcase: uppercase; --dtrack: .01em;
  background: radial-gradient(rgba(20,20,20,.10) 1px, transparent 1.4px) 0 0 / 7px 7px, var(--page);
}

/* ===================== LOOK: ROOM (matches the stream: her room at night, mint + purple LEDs) ===================== */
body[data-d='room'] {
  --page: #07110f; --page2: #102320; --panel: #0c1a17; --ink: #eafff4; --muted: #8fb5a6; --line: #03070a; --bw: 3px;
  --shadow: 6px 6px 0 #000; --shadow-s: 4px 4px 0 #000; --r: 16px;
  --accent: #2be89a; --accent-ink: #04130b; --accent2: #b06bff; --accent3: #ff5fd2;
  --display: 'Anton', Impact, sans-serif; --body: 'Rubik', system-ui, sans-serif; --mono: 'Space Mono', monospace;
  --dcase: uppercase; --dtrack: .01em;
  background: linear-gradient(rgba(4,10,9,.80), rgba(4,10,9,.92)), url('img/room.png') center top / cover fixed, #07110f;
}
body[data-d='room'] #top { background: rgba(5,12,11,.88); backdrop-filter: blur(8px); border-bottom-color: #000; }
body[data-d='room'] .p, body[data-d='room'] .tv, body[data-d='room'] .rung, body[data-d='room'] .slab, body[data-d='room'] .how li, body[data-d='room'] #ticker { border-color: #000; box-shadow: 0 0 0 1px rgba(43,232,154,.22) inset, var(--shadow-s); }
body[data-d='room'] .tv { box-shadow: 0 0 0 1px rgba(43,232,154,.3) inset, 8px 8px 0 #000; }
body[data-d='room'] .tv-top { border-bottom-color: #000; background: #0a1613; }
body[data-d='room'] .brand .tk { background: var(--accent); color: var(--accent-ink); border-color: #000; }
body[data-d='room'] .b.ghost, body[data-d='room'] #connect.on { background: #10221e; color: var(--ink); border-color: #000; }
body[data-d='room'] .meter { background: #06100e; border-color: #000; }
body[data-d='room'] .meter i { border-right-color: #000; }
body[data-d='room'] .timer { background: var(--accent2); color: #fff; border-color: #000; }
body[data-d='room'] .gift { background: var(--accent2); color: #fff; }
body[data-d='room'] .gift small { opacity: .9; }
body[data-d='room'] .chip { background: #10221e; border-color: #000; }
body[data-d='room'] .chip.hot { background: var(--accent); color: var(--accent-ink); }
body[data-d='room'] .ifseat { background: var(--accent); }
body[data-d='room'] .seat-list .sr { background: #10221e; border-color: #000; }
body[data-d='room'] .seat-list .sr.me { background: var(--accent); color: var(--accent-ink); }
body[data-d='room'] .sh h2 { color: var(--ink); text-shadow: 4px 4px 0 var(--accent2), 8px 8px 0 #000; }
body[data-d='room'] #tabs nav button { background: #10221e; border-color: #000; }
body[data-d='room'] #tabs nav button.on { background: var(--accent); color: var(--accent-ink); }
body[data-d='room'] .filters button { background: #10221e; border-color: #000; }
body[data-d='room'] .filters button.on { background: var(--accent2); color: #fff; }
body[data-d='room'] .progress { background: #06100e; border-color: #000; }
body[data-d='room'] .rung.now { background: var(--accent); color: var(--accent-ink); }
body[data-d='room'] .rung .goal { background: #10221e; border-color: #000; }
body[data-d='room'] .rung.now .goal { background: #04130b; color: var(--accent); }
body[data-d='room'] .rung img { filter: grayscale(1) brightness(.55); }
body[data-d='room'] .rung.done img, body[data-d='room'] .rung.now img, body[data-d='room'] .rung:hover img { filter: none; }
body[data-d='room'] .cbtn, body[data-d='room'] .dopt { background: #10221e; border-color: #000; }
body[data-d='room'] .dopt.risk { background: var(--epic); }
body[data-d='room'] .modal .box { background: #0c1a17; border-color: #000; }
body[data-d='room'] #peek input, body[data-d='room'] .modal input { background: #06100e; border-color: #000; color: var(--ink); }
body[data-d='room'] .proofs code { background: #06100e; border-color: #000; }
body[data-d='room'] .toast { background: var(--accent); color: var(--accent-ink); border-color: #000; }
body[data-d='room'] footer { border-top-color: #000; }
body[data-d='room'] .shop-tape, body[data-d='room'] .tv::before { content: none; }

/* ===================== LOOK: HOLO (flat pump green + black slabs) ===================== */
body[data-d='holo'] {
  --page: #3dff8b; --page2: #2fe57a; --panel: #0b0b0b; --ink: #ffffff; --muted: #9da7a1; --line: #0b0b0b; --bw: 0px;
  --shadow: 0 0 0 transparent; --shadow-s: 0 0 0 transparent; --r: 26px;
  --accent: #3dff8b; --accent-ink: #0b0b0b; --accent2: #ff3fa4; --accent3: #ffe600;
  --display: 'Unbounded', 'Archivo Black', sans-serif; --body: 'Rubik', system-ui, sans-serif; --mono: 'Space Mono', monospace;
  --dcase: uppercase; --dtrack: -.03em;
  background: var(--page);
}
/* ===================== LOOK: SLAB (PSA graded case) ===================== */
body[data-d='slab'] {
  --page: #e4e4e1; --page2: #d6d6d2; --panel: #fbfbfa; --ink: #111111; --muted: #6a6a66; --line: #b9b9b4; --bw: 2px;
  --shadow: 0 1px 0 #fff inset, 0 18px 40px rgba(0,0,0,.14); --shadow-s: 0 8px 20px rgba(0,0,0,.12); --r: 12px;
  --accent: #d2102e; --accent-ink: #ffffff; --accent2: #111111; --accent3: #d2102e;
  --display: 'Archivo Black', sans-serif; --body: 'Rubik', system-ui, sans-serif; --mono: 'Space Mono', monospace;
  --dcase: uppercase; --dtrack: -.01em;
  background: linear-gradient(180deg, #ececea, #dcdcd8);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: var(--body); min-height: 100vh; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.b { background: var(--accent); color: var(--accent-ink); border: var(--bw) solid var(--line); border-radius: 999px; padding: 9px 18px; font-family: var(--display); text-transform: var(--dcase); letter-spacing: .03em; font-size: 15px; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-s); transition: transform .1s, box-shadow .1s; }
.b:hover { transform: translate(-1px, -1px); }
.b:active { transform: translate(3px, 3px); box-shadow: none; }
.b.ghost { background: var(--panel); color: var(--ink); }
.wide { width: 100%; padding: 14px; font-size: 20px; border-radius: 14px; }
.lbl { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mark { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); border: var(--bw) solid var(--line); box-shadow: var(--shadow-s); display: inline-grid; place-items: center; flex: none; }
.mark i { width: 22px; height: 10px; border-radius: 6px; transform: rotate(-35deg); background: linear-gradient(90deg, var(--accent-ink) 50%, #fff 50%); border: 2px solid var(--accent-ink); }

/* ---------- header ---------- */
#top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 22px; background: var(--page); border-bottom: var(--bw) solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand b { font-family: var(--display); font-size: 30px; text-transform: var(--dcase); letter-spacing: var(--dtrack); line-height: 1; }
.brand .tk { font-family: var(--mono); font-weight: 700; font-size: 13px; background: var(--accent2); color: #141414; padding: 3px 8px; border-radius: 6px; border: 2px solid var(--line); }
#ticker { flex: 1; min-width: 0; height: 38px; overflow: hidden; border-radius: 999px; background: var(--panel); border: var(--bw) solid var(--line); display: flex; align-items: center; }
#ticker .track { display: flex; gap: 30px; white-space: nowrap; padding-left: 100%; animation: tick 70s linear infinite; font-family: var(--mono); font-size: 13px; }
#ticker .t b { color: var(--c); }
#ticker .t img { height: 24px; vertical-align: middle; border-radius: 3px; margin-right: 6px; }
@keyframes tick { to { transform: translateX(-100%); } }
#ca span { opacity: .6; }
#connect.on { background: var(--panel); color: var(--ink); }

main { max-width: 1680px; margin: 0 auto; padding: 22px 22px 70px; }

/* ---------- the TV (stream hero) ---------- */
.tv { background: var(--panel); border: var(--bw) solid var(--line); border-radius: calc(var(--r) + 6px); box-shadow: var(--shadow); overflow: hidden; }
.tv-top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: var(--bw) solid var(--line); }
.onair { font-family: var(--display); font-size: 18px; letter-spacing: .06em; background: #ff2d55; color: #fff; padding: 4px 12px 3px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); }
.onair i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tv-name { flex: 1; font-size: 15px; color: var(--muted); }
.tv-name b { color: var(--ink); font-family: var(--display); text-transform: var(--dcase); font-size: 18px; letter-spacing: var(--dtrack); }
.tv-stats { display: flex; gap: 22px; }
.tv-stats span { display: flex; flex-direction: column; align-items: flex-end; }
.tv-stats small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.tv-stats b { font-family: var(--display); font-size: 22px; letter-spacing: var(--dtrack); line-height: 1.1; }
/* as big as the screen allows, always 16:9 */
.frame { width: 100%; aspect-ratio: 16 / 9; margin: 0 auto; background: #000; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- deck ---------- */
#deck { display: grid; grid-template-columns: 1.15fr 1.5fr 1fr .8fr; gap: 16px; margin-top: 18px; }
.p { background: var(--panel); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; text-align: left; }
.row { display: flex; justify-content: space-between; align-items: center; }
.grow { flex: 1; min-width: 0; }
.next-in { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.next .pack { width: 72px; border-radius: 5px; transform: rotate(-4deg); filter: drop-shadow(4px 5px 0 rgba(0,0,0,.35)); }
.big { font-family: var(--display); font-size: 34px; text-transform: var(--dcase); letter-spacing: var(--dtrack); line-height: 1; margin-bottom: 10px; }
.meter { position: relative; height: 28px; border-radius: 999px; background: var(--page2); border: var(--bw) solid var(--line); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width .6s; border-right: var(--bw) solid var(--line); }
.meter span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--ink); }
.sub { font-size: 13px; color: var(--muted); margin-top: 8px; }
.sub b { color: var(--ink); }

.timer { font-family: var(--display); font-size: 22px; background: var(--accent2); color: #141414; padding: 2px 12px; border-radius: 8px; border: 2px solid var(--line); min-width: 70px; text-align: center; }
.cbtns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.cbtn { position: relative; overflow: hidden; border: var(--bw) solid var(--line); background: var(--page); border-radius: 12px; padding: 12px 8px 10px; text-align: center; box-shadow: var(--shadow-s); transition: transform .1s; }
.cbtn:not(:disabled):hover { transform: translate(-1px, -2px); }
.cbtn i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--c); opacity: .22; transition: height .5s; }
.cbtn .gem { display: block; width: 26px; height: 26px; margin: 0 auto 6px; background: var(--c); clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
.cbtn b { position: relative; display: block; font-family: var(--display); text-transform: var(--dcase); font-size: 15px; letter-spacing: .02em; color: var(--ink); }
.cbtn small { position: relative; font-family: var(--mono); color: var(--muted); font-size: 11px; }
.cbtn.mine { background: var(--c); }
.cbtn.mine b, .cbtn.mine small { color: #fff; }
.cbtn.mine .gem { background: #fff; }
.cbtn:disabled { cursor: default; opacity: .6; }
.calls .foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.calls .foot b { color: var(--ink); }
.calls .draw { font-family: var(--mono); font-size: 11px; text-align: right; }
.calls .draw code { font-family: inherit; }

#youOut p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.chance { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.chance b { font-family: var(--display); font-size: 46px; letter-spacing: var(--dtrack); line-height: 1; }
.chance span { font-size: 13px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--page2); border: 2px solid var(--line); }
.chip.hot { background: var(--accent2); color: #141414; }
.streak { display: inline-flex; gap: 3px; vertical-align: middle; }
.streak i { width: 10px; height: 10px; border-radius: 50%; background: rgba(128,128,128,.3); }
.streak i.on { background: var(--epic); }

.gift { display: flex; flex-direction: column; justify-content: center; gap: 6px; background: var(--accent2); color: #141414; }
.gift .gi { font-size: 38px; line-height: 1; }
.gift b { font-family: var(--display); font-size: 26px; letter-spacing: var(--dtrack); line-height: 1; }
.gift small { font-size: 13px; line-height: 1.35; opacity: .8; }
.gift:hover { transform: translate(-2px, -2px); }

/* ---------- ladder ---------- */
#ladder { margin-top: 56px; }
.sh h2, #tabs h3 { font-family: var(--display); font-size: clamp(38px, 5vw, 72px); text-transform: var(--dcase); letter-spacing: var(--dtrack); margin: 0; line-height: .95; }
.sh p { color: var(--muted); margin: 10px 0 18px; font-size: 16px; }
.progress { height: 14px; border-radius: 999px; background: var(--panel); border: var(--bw) solid var(--line); overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; width: 0; background: var(--holo); transition: width 1s; }
.rungs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; }
.rung { background: var(--panel); border: var(--bw) solid var(--line); border-radius: var(--r); padding: 12px 8px; text-align: center; box-shadow: var(--shadow-s); transition: transform .2s; }
.rung img { width: 100%; max-width: 96px; border-radius: 5px; filter: grayscale(1) contrast(.9) opacity(.55); transition: filter .3s, transform .3s; }
.rung:hover img { filter: none; transform: rotate(-3deg) scale(1.04); }
.rung b { display: block; font-family: var(--display); font-size: 15px; text-transform: var(--dcase); letter-spacing: var(--dtrack); margin-top: 8px; }
.rung small { display: block; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.rung .goal { display: inline-block; margin-top: 8px; font-family: var(--mono); font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--page2); border: 2px solid var(--line); }
.rung.done img, .rung.now img { filter: none; }
.rung.now { background: var(--accent); color: var(--accent-ink); transform: translateY(-6px) rotate(-1deg); }
.rung.now small { color: var(--accent-ink); opacity: .75; }
.rung.now .goal { background: var(--accent-ink); color: var(--accent); }
.rung.watch { background: linear-gradient(180deg, #ffe58a, #ffc93d); color: #141414; }
.rung.watch small { color: #5c4300; }
.rung.watch.done { opacity: .5; }
.rung.watch.done b { text-decoration: line-through; }

/* ---------- tabs ---------- */
#tabs { margin-top: 60px; }
#tabs nav { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
#tabs nav button { font-family: var(--display); text-transform: var(--dcase); letter-spacing: .03em; font-size: 20px; background: var(--panel); border: var(--bw) solid var(--line); border-radius: 999px; padding: 10px 22px; box-shadow: var(--shadow-s); }
#tabs nav button.on { background: var(--ink); color: var(--page); }
.tab { display: none; }
.tab.on { display: block; }
.filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.filters button { font-family: var(--mono); font-weight: 700; font-size: 13px; background: var(--panel); border: 2px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.filters button.on { background: var(--accent2); color: #141414; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; font-family: var(--mono); }

/* a slab tile */
.slab { position: relative; background: var(--panel); border: var(--bw) solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow-s); transition: transform .2s; }
.slab:hover { transform: translateY(-5px) rotate(-.6deg); }
.slab .ph { position: relative; aspect-ratio: 685 / 1136; border-radius: 10px; overflow: hidden; background: #ddd; }
.slab .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slab .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.4) 45%, transparent 60%); transform: translateX(-100%); transition: transform .7s; }
.slab:hover .ph::after { transform: translateX(100%); }
.slab .rar { position: absolute; top: 18px; left: 18px; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; background: var(--c); color: #fff; border: 2px solid #141414; }
.slab .gifted { position: absolute; top: 16px; right: 18px; font-size: 18px; }
.slab .nm { font-size: 13px; font-weight: 700; margin-top: 10px; line-height: 1.25; height: 33px; overflow: hidden; }
.slab .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.slab .val { font-family: var(--display); font-size: 24px; letter-spacing: var(--dtrack); }
.slab .who { color: var(--muted); font-family: var(--mono); font-size: 11px; text-align: right; }
.slab .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.slab .acts .b { font-size: 13px; padding: 8px; text-align: center; border-radius: 10px; }
.slab .proof { background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; padding: 0; text-decoration: underline; margin-top: 8px; }
.slab .left { font-size: 11px; color: var(--muted); margin-top: 6px; font-family: var(--mono); }

.binder-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.binder-head p { color: var(--muted); margin: 8px 0 0; }
#peek { display: flex; gap: 8px; }
#peek input, .modal input { background: var(--panel); border: var(--bw) solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); font: inherit; min-width: 300px; }

.how { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how li { counter-increment: s; background: var(--panel); border: var(--bw) solid var(--line); border-radius: var(--r); padding: 20px 20px 20px 74px; position: relative; color: var(--muted); line-height: 1.45; box-shadow: var(--shadow-s); }
.how li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-size: 22px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--line); }
.how b { color: var(--ink); display: block; margin-bottom: 4px; font-size: 17px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 20px; font-family: var(--mono); }

footer { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 30px; border-top: var(--bw) solid var(--line); font-family: var(--mono); }

/* modals + toast */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .box { position: relative; width: min(580px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: var(--bw) solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.modal .x { position: absolute; right: 14px; top: 8px; background: none; border: 0; font-size: 30px; color: var(--muted); }
.modal h3 { margin: 0 0 6px; font-family: var(--display); font-size: 32px; text-transform: var(--dcase); letter-spacing: var(--dtrack); }
.modal .hint { color: var(--muted); font-size: 14px; }
.modal label { display: block; font-size: 13px; color: var(--muted); margin-top: 14px; font-family: var(--mono); }
.modal label input { display: block; width: 100%; margin-top: 6px; }
.modal .price { margin: 18px 0; font-size: 15px; }
.modal .price b { font-family: var(--display); font-size: 24px; }
.err { color: #d2102e; font-size: 14px; min-height: 18px; }
.proofs { font-size: 13px; line-height: 1.6; }
.proofs code { display: block; background: var(--page); border: 2px solid var(--line); border-radius: 8px; padding: 8px 10px; word-break: break-all; font-family: var(--mono); font-size: 12px; margin: 4px 0 10px; }
.proofs .big { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; font-family: var(--body); font-size: 14px; }
.proofs .big img { width: 90px; border-radius: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--accent2); color: #141414; border: var(--bw) solid var(--line); border-radius: 12px; padding: 12px 18px; font-weight: 700; box-shadow: var(--shadow); }

/* ===================== signature details per look ===================== */
/* SHOP: tape on the TV, sticker tilt, marker scribble */
body[data-d='shop'] .tv { position: relative; overflow: visible; }
body[data-d='shop'] .tv::before { content: 'RIPPING LIVE 24/7'; position: absolute; top: -20px; left: 44%; z-index: 2; font-family: "Permanent Marker", cursive; font-size: 20px; background: var(--accent2); padding: 4px 18px; border: 2px solid #141414; transform: rotate(3deg); box-shadow: 3px 3px 0 #141414; }
body[data-d='shop'] .tv-top { border-radius: calc(var(--r) + 3px) calc(var(--r) + 3px) 0 0; }
body[data-d='shop'] .frame { border-radius: 0 0 calc(var(--r) + 3px) calc(var(--r) + 3px); overflow: hidden; }
body[data-d='shop'] .gift { transform: rotate(1.5deg); }
body[data-d='shop'] .sh h2 { text-shadow: 4px 4px 0 var(--accent), 8px 8px 0 #141414; color: var(--panel); -webkit-text-stroke: 2px #141414; }

/* HOLO: black slabs on a flat green page, foil stripe, big Unbounded */
body[data-d='holo'] #top { border-bottom: 0; }
body[data-d='holo'] .brand b, body[data-d='holo'] .sh h2 { color: #0b0b0b; }
body[data-d='holo'] .brand .tk { background: #0b0b0b; color: var(--accent); border-color: #0b0b0b; }
body[data-d='holo'] #ticker { color: #fff; }
body[data-d='holo'] .b { border: 0; }
body[data-d='holo'] #top .b { background: #0b0b0b; color: var(--accent); }
body[data-d='holo'] #top .b.ghost { background: transparent; color: #0b0b0b; border: 2px solid #0b0b0b; }
body[data-d='holo'] .tv { padding: 10px; }
body[data-d='holo'] .tv-top { border-bottom: 0; padding: 6px 10px 14px; }
body[data-d='holo'] .frame { border-radius: 18px; overflow: hidden; }
body[data-d='holo'] .tv::after, body[data-d='holo'] .p::before { content: ''; display: block; height: 6px; border-radius: 3px; background: var(--holo); }
body[data-d='holo'] .tv::after { margin-top: 10px; }
body[data-d='holo'] .p::before { margin: -4px 0 12px; }
body[data-d='holo'] .gift::before { display: none; }
body[data-d='holo'] .meter { background: #1f1f1f; }
body[data-d='holo'] .meter i { border-right: 0; }
body[data-d='holo'] .meter span, body[data-d='holo'] .chip { color: #fff; }
body[data-d='holo'] .cbtn { background: #161616; }
body[data-d='holo'] .chip { background: #1f1f1f; border-color: #333; }
body[data-d='holo'] .chip.hot { background: var(--accent3); color: #0b0b0b; }
body[data-d='holo'] .gift { background: var(--accent2); color: #0b0b0b; }
body[data-d='holo'] .timer { background: var(--accent); border: 0; }
body[data-d='holo'] .rung.now { background: #0b0b0b; color: #fff; box-shadow: 0 0 0 4px #fff inset; }
body[data-d='holo'] .rung.now .goal { background: var(--accent); color: #0b0b0b; }
body[data-d='holo'] #tabs nav button { border: 0; background: #0b0b0b; color: #fff; }
body[data-d='holo'] #tabs nav button.on { background: #fff; color: #0b0b0b; }
body[data-d='holo'] .filters button { border-color: #0b0b0b; background: transparent; color: #0b0b0b; }
body[data-d='holo'] .filters button.on { background: #0b0b0b; color: var(--accent); }
body[data-d='holo'] .sh p, body[data-d='holo'] .fine, body[data-d='holo'] footer, body[data-d='holo'] .empty, body[data-d='holo'] .binder-head p { color: #0b3b20; }
body[data-d='holo'] #tabs h3 { color: #0b0b0b; }
body[data-d='holo'] .progress { background: #0b0b0b; border: 0; }
body[data-d='holo'] .toast { background: #0b0b0b; color: var(--accent); border: 0; }
body[data-d='holo'] footer { border-top: 0; }
body[data-d='holo'] .mark { background: #0b0b0b; border: 0; }
body[data-d='holo'] .mark i { background: linear-gradient(90deg, var(--accent) 50%, #fff 50%); border: 0; }

/* SLAB: the site is a graded case. Red PSA-style label strips, barcodes, cert numbers */
body[data-d='slab'] .b { border-radius: 8px; border: 0; }
body[data-d='slab'] .b.ghost { border: 2px solid var(--line); }
body[data-d='slab'] .tv { border: 10px solid #cfd0cc; border-radius: 22px; background: linear-gradient(180deg, #f6f6f4, #e9e9e6); box-shadow: 0 1px 0 #fff inset, 0 30px 60px rgba(0,0,0,.18); padding: 10px; }
body[data-d='slab'] .tv-top { margin-bottom: 10px; border: 3px solid var(--accent); border-radius: 8px; background: #fff; }
body[data-d='slab'] .tv-top::after { content: ''; width: 120px; height: 34px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px); flex: none; }
body[data-d='slab'] .frame { border-radius: 6px; overflow: hidden; border: 2px solid #b9b9b4; }
body[data-d='slab'] .onair { border: 0; background: var(--accent); }
body[data-d='slab'] .p { border-top: 6px solid var(--accent); }
body[data-d='slab'] .lbl { color: var(--accent); }
body[data-d='slab'] .timer { background: #111; color: #fff; border: 0; }
body[data-d='slab'] .gift { background: #111; color: #fff; border-top-color: var(--accent); }
body[data-d='slab'] .sh h2 { font-size: clamp(34px, 4.4vw, 64px); }
body[data-d='slab'] .sh h2::after { content: ' GEM MT 10'; color: var(--accent); }
body[data-d='slab'] .rung.now { background: #fff; color: #111; outline: 4px solid var(--accent); }
body[data-d='slab'] .rung.now .goal { background: var(--accent); color: #fff; }
body[data-d='slab'] .rung.now small { color: var(--muted); }
body[data-d='slab'] #tabs nav button { border-radius: 8px; }
body[data-d='slab'] #tabs nav button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
body[data-d='slab'] .toast { background: #111; color: #fff; }

/* ---------- phones + tablets ---------- */
@media (max-width: 1200px) {
  #deck { grid-template-columns: 1fr 1fr; }
  .rungs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr 1fr; }
  .tv-name { display: none; }
}
@media (max-width: 720px) {
  #top { position: static; flex-wrap: wrap; padding: 10px 14px; }
  #ticker { order: 5; flex-basis: 100%; }
  #buy, #top #xlink { display: none; }
  #ca span, .brand .tk { display: none; }   /* phones: logo + small CA button + Connect on one row */
  #connect { margin-left: auto; }
  main { padding: 14px 12px 50px; }
  .tv-top { flex-wrap: wrap; gap: 10px; }
  .tv-stats { width: 100%; justify-content: space-between; }
  .tv-stats span { align-items: flex-start; }
  .frame { max-height: none; }
  #deck { grid-template-columns: 1fr; }
  .cbtns { grid-template-columns: 1fr 1fr; }
  .rungs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #peek, #peek input { width: 100%; min-width: 0; }
  body[data-d='shop'] .tv::before { right: 12px; font-size: 15px; }
}
body[data-d='slab'] .brand .tk { background: var(--accent); color: #fff; border: 0; }

/* ---------- HOT SEAT (website) ---------- */
.seat-rule { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.seat-rule b { color: var(--ink); }
.seat-list { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; min-height: 96px; }
.seat-list .sr { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; padding: 5px 8px; border-radius: 8px; background: var(--page2); border: 2px solid var(--line); }
.seat-list .sr b { flex: 1; }
.seat-list .sr i { font-style: normal; font-weight: 700; font-size: 11px; background: var(--epic); color: #fff; padding: 1px 6px; border-radius: 5px; }
.seat-list .sr.me { background: var(--accent2); color: #141414; }
.seat-list .none { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 8px 0; }
.seat .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.seat .foot .b { font-size: 14px; }
.seat .draw { font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: right; }
.seat.hot .timer { background: #ff2d55; color: #fff; animation: blink .6s infinite; }
.seat.live .timer { background: var(--epic); color: #fff; }
.seat.locked .timer { background: var(--ink); color: var(--page); }
.chance small { display: block; font-size: 12px; color: var(--muted); }
.ifseat { margin-top: 8px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--accent2); color: #141414; border: 2px solid var(--line); }
.ifseat b { font-family: var(--display); font-size: 18px; }

/* ---------- KEEP OR RISK IT (winner popup) ---------- */
.decide-box { text-align: center; }
.dq { font-family: var(--display); text-transform: var(--dcase); font-size: 38px; letter-spacing: var(--dtrack); line-height: 1; }
.dtimer { display: inline-block; margin: 12px 0 4px; font-family: var(--display); font-size: 30px; background: var(--epic); color: #fff; padding: 2px 16px; border-radius: 10px; border: 2px solid var(--line); }
.dopts { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.dopt { width: 200px; padding: 12px; border-radius: 16px; background: var(--page); border: var(--bw) solid var(--line); box-shadow: var(--shadow-s); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .1s; }
.dopt:hover { transform: translateY(-3px); }
.dopt img { height: 190px; border-radius: 8px; }
.dopt b { font-family: var(--display); font-size: 30px; letter-spacing: var(--dtrack); }
.dopt.risk { background: var(--epic); color: #fff; }
.dopt span { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.dor { font-family: var(--display); font-size: 24px; color: var(--muted); }
#deciding { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 40; background: var(--panel); border: var(--bw) solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 14px; }
#deciding b { font-family: var(--display); text-transform: var(--dcase); }
@media (max-width: 720px) { .dopt { width: 46%; } .dopt img { height: 140px; } .dq { font-size: 28px; } }

/* ---------- wallet picker ---------- */
.wallet-box { width: min(440px, 100%); }
.wlist { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.wlist p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.wbtn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--page2); border: var(--bw) solid var(--line); box-shadow: var(--shadow-s); text-decoration: none; color: var(--ink); text-align: left; }
.wbtn:hover { transform: translate(-1px, -2px); }
.wbtn img, .wbtn .wdot { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.wbtn .wdot { background: var(--accent); }
.wbtn b { flex: 1; font-size: 16px; }
.wbtn small { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* the TV before a public stream exists */
.frame .poster { position: relative; width: 100%; height: 100%; background: #000; }
.frame .poster video { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.6); }
.frame .poster .soon { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; color: #fff; }
.frame .poster .soon b { font-family: var(--display); font-size: clamp(30px, 5vw, 64px); text-transform: uppercase; text-shadow: 4px 4px 0 #000; }
.frame .poster .soon span { font-family: var(--mono); font-size: 14px; opacity: .85; }

/* GK's logo (her face + the pill badge) in the header */
.mark.logo, body[data-d] .mark.logo { width: 44px; height: 44px; padding: 0; background: #0b0b0b; object-fit: cover; border-radius: 12px; }
#top .b.x { display: inline-flex; align-items: center; justify-content: center; padding-left: 12px; padding-right: 12px; }
footer a { color: inherit; font-weight: 700; }
