/* BOUNTY MARKETS: a dark room, an old TV, a voice. */
:root {
  --bg: #050404;
  --bone: #d9d2c3;
  --dim: #7a7066;
  --blood: #b3000c;
  --red: #ff2020;
  --wood1: #3b2416;
  --wood2: #1c100a;
  --screen: #0b0d0c;
  --osd: 'VT323', ui-monospace, monospace;
  --type: 'Special Elite', 'Courier New', monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--bone); font: 16px/1.5 var(--type); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.osd { font-family: var(--osd); letter-spacing: .06em; text-transform: uppercase; }

/* the room: a single cold light on the TV, everything else falls off into black */
.room { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 46%, #2a0a0a 0%, #120606 40%, transparent 75%),
    radial-gradient(ellipse 120% 80% at 50% 120%, #0c0707, transparent 70%), var(--bg); }
.room::after { content: ''; position: absolute; inset: 0; opacity: .06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px 0; margin: 0 auto; }
.mark { margin: 0; font-family: var(--type); font-weight: 400; font-size: clamp(20px, 3vw, 30px); letter-spacing: .22em; color: var(--bone); position: relative;
  text-shadow: 0 0 12px #ff20204d; animation: flick 6s infinite; }
.mark::after { content: attr(data-text); position: absolute; left: 2px; top: 0; color: var(--red); opacity: .55; clip-path: inset(0 0 60% 0); animation: tear 4.2s infinite steps(1); }
@keyframes flick { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .3; } 94% { opacity: 1; } 96% { opacity: .5; } 97% { opacity: 1; } }
@keyframes tear { 0%, 88%, 100% { transform: translate(0); opacity: 0; } 89% { transform: translate(-4px, 1px); opacity: .7; } 91% { transform: translate(3px, -1px); opacity: .5; } }
.links { display: flex; gap: 14px; align-items: center; }
.link { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--dim); font-family: var(--type); font-size: 14px; text-decoration: none; letter-spacing: .04em; }
.link:hover { color: var(--bone); }
.link[aria-disabled='true'] { opacity: .45; pointer-events: none; }
#caText { font-family: ui-monospace, monospace; font-size: 12px; max-width: 120px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- stage ---------- */
.stage { min-height: calc(100dvh - 56px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 16px 18px; }

/* ---------- the TV ---------- */
.tv { position: relative; width: min(98vw, 1700px, calc((100dvh - 300px) * 4 / 3 + 250px)); min-width: min(100%, 760px); margin-top: 30px; }
.ears { position: absolute; left: 50%; top: -40px; width: 0; height: 0; }
.ears i { position: absolute; bottom: 0; width: 3px; height: 120px; background: linear-gradient(#9a9088, #3a332e); border-radius: 2px; transform-origin: bottom center; }
.ears i:first-child { transform: rotate(-32deg); left: -30px; }
.ears i:last-child { transform: rotate(28deg); left: 30px; }
.ears::after { content: ''; position: absolute; left: -38px; bottom: -12px; width: 76px; height: 22px; border-radius: 40px 40px 6px 6px; background: radial-gradient(ellipse at 50% 20%, #3a2e26, #120b08); }
.cabinet { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr clamp(130px, 11.5%, 210px); gap: clamp(14px, 1.6%, 26px); padding: clamp(16px, 2%, 30px); border-radius: 26px;
  background:
    repeating-linear-gradient(92deg, #ffffff05 0 2px, transparent 2px 9px),
    repeating-linear-gradient(88deg, #00000022 0 1px, transparent 1px 13px),
    linear-gradient(160deg, var(--wood1), var(--wood2) 70%);
  box-shadow: inset 0 2px 0 #ffffff14, inset 0 -6px 18px #0009, 0 40px 90px -30px #000, 0 0 140px -40px #ff20202e; }
.bezel { border-radius: 30px / 26px; padding: 16px; background: linear-gradient(180deg, #151110, #0a0807); box-shadow: inset 0 0 0 2px #000, inset 0 4px 14px #000c, 0 1px 0 #ffffff12; }
.screen { position: relative; aspect-ratio: 4 / 3; container-type: inline-size; overflow: hidden; border-radius: 9% / 11%; background: radial-gradient(ellipse at center, #141716 0%, #090a0a 70%, #020202 100%); isolation: isolate;
  box-shadow: inset 0 0 70px #000, inset 0 0 18px #000; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { filter: brightness(1.08); } 52% { filter: brightness(.85); } 53% { filter: brightness(1.05); } }
#static { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .13; image-rendering: pixelated; mix-blend-mode: screen; }
.screen.surge #static { opacity: .9; }
.screen::before { content: ''; position: absolute; inset: 0; z-index: 8; pointer-events: none; background: repeating-linear-gradient(0deg, #0000 0 2px, #0000004d 2px 3px); }
.screen::after { content: ''; position: absolute; left: 0; right: 0; height: 14%; top: -15%; z-index: 8; pointer-events: none; background: linear-gradient(180deg, transparent, #ffffff0d, transparent); animation: roll 7s linear infinite; }
@keyframes roll { to { top: 115%; } }
.glass { position: absolute; inset: 0; z-index: 9; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 70% 45% at 30% 12%, #ffffff12, transparent 60%), radial-gradient(ellipse at center, transparent 62%, #000b 100%); }

/* channels */
.ch { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 5% 7%; color: #eee8dc; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: clamp(15px, 2.6cqw, 32px); color: #e9e2d4; text-shadow: 2px 0 #ff00002e, -2px 0 #00ffff1f; }
.dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .1; } }
.small { margin: 0; font-size: clamp(13px, 2.1cqw, 26px); color: #a39a8d; }

#ch1 { justify-content: space-between; }
.b-body { position: relative; z-index: 2; text-align: center; margin: auto 0 0; }
.b-text { margin: 6px auto 0; max-width: 92%; font-family: var(--osd); text-transform: uppercase; font-size: clamp(24px, 6cqw, 88px); line-height: 1; color: #fff;
  text-shadow: 3px 0 #ff1a1a99, -3px 0 #00e5ff40, 0 0 18px #ffffff40; overflow-wrap: anywhere; animation: jitter 3.5s infinite steps(1); }
.b-text.long { font-size: clamp(20px, 4.6cqw, 66px); }
.b-text.xlong { font-size: clamp(17px, 3.6cqw, 52px); }
@keyframes jitter { 0%, 94%, 100% { transform: translate(0); } 95% { transform: translate(-3px, 1px) skewX(-6deg); } 96% { transform: translate(2px, -1px); } 97% { transform: translate(0); } }
.b-rules { margin: 8px auto 0; max-width: 80%; font-size: clamp(12px, 2cqw, 24px); color: #a39a8d; }
.b-rules:empty { display: none; }
.b-reward { position: relative; z-index: 2; text-align: center; margin: 4% 0 auto; }
.b-sol { margin: 0; font-family: var(--osd); font-size: clamp(40px, 11cqw, 160px); line-height: .9; color: var(--red); text-shadow: 0 0 18px #ff2020aa, 0 0 50px #ff20204d, 3px 0 #ffffff26; }
.proof { display: inline-block; margin-top: 6px; color: #e9e2d4; text-decoration: none; font-size: clamp(14px, 2.3cqw, 28px); }
.proof:hover { color: #fff; text-shadow: 0 0 8px #fff; }
.foot { color: #a39a8d; }
.b-clock { margin: 1.2% 0 0; font-size: clamp(22px, 5cqw, 72px); line-height: 1; color: #fff; letter-spacing: .08em; text-shadow: 2px 0 #ff1a1a88, -2px 0 #00e5ff33; }
.b-clock:empty { display: none; }
.b-clock.soon { color: var(--red); text-shadow: 0 0 14px #ff2020aa; animation: blink 1s steps(2) infinite; }
.b-clock.done { color: #a39a8d; font-size: clamp(18px, 3.4cqw, 46px); }
.foot #bLeft.soon { color: var(--red); }

/* the voice: a hooded shape fades up behind the text */
.figure { position: absolute; z-index: 1; left: 50%; bottom: -4%; width: 46%; transform: translateX(-50%); opacity: 0; transition: opacity 1.2s; pointer-events: none; filter: blur(.4px); }
.figure svg { width: 100%; display: block; }
.figure .eye { fill: #ff1f1f; filter: drop-shadow(0 0 4px #ff1f1f); animation: eyes 4s infinite; }
@keyframes eyes { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.figure .eye { transform-box: fill-box; transform-origin: center; }
.screen.speaking .figure { opacity: .9; }
.screen.speaking .b-body, .screen.speaking .b-reward { animation: shake .18s infinite steps(2); }
@keyframes shake { 50% { transform: translate(1px, -1px); } }

/* lists on screen */
.list-scroll { flex: 1; overflow-y: auto; margin-top: 3%; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #5a514a transparent; }
.ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 15cqw, 210px), 1fr)); gap: clamp(10px, 1.4cqw, 18px); }
.up { position: relative; aspect-ratio: 3 / 4; border: 1px solid #ffffff22; background: #000; padding: 0; cursor: pointer; overflow: hidden; }
.up img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.15) brightness(.9); }
.up .lbl { position: absolute; left: 6px; right: 6px; bottom: 4px; font-family: var(--osd); font-size: clamp(16px, 2cqw, 24px); color: #fff; text-shadow: 1px 1px 0 #000; text-align: left; line-height: 1.05; }
.up .lbl em { display: block; font-style: normal; color: #ffb0b0; font-size: .85em; }
.up .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--osd); font-size: 28px; color: #6d655e; }
.up.win { border-color: var(--red); box-shadow: 0 0 12px #ff202077; }
.up:hover img { filter: none; }
.prev { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prev li { display: grid; grid-template-columns: clamp(64px, 9cqw, 120px) 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid #ffffff1a; background: #0006; }
.prev img, .prev .ph { width: clamp(64px, 9cqw, 120px); height: clamp(64px, 9cqw, 120px); object-fit: cover; background: #000; cursor: pointer; filter: grayscale(.5); }
.prev .ph { display: grid; place-items: center; font-family: var(--osd); color: #6d655e; font-size: 24px; }
.prev .t { font-family: var(--osd); font-size: clamp(16px, 2.7cqw, 34px); line-height: 1.05; text-transform: uppercase; color: #fff; }
.prev .t small { display: block; color: #a39a8d; font-size: .8em; margin-top: 3px; }
.prev .amt { text-align: right; font-family: var(--osd); font-size: clamp(18px, 3.4cqw, 46px); color: var(--red); text-shadow: 0 0 10px #ff202066; line-height: 1; }
.prev .amt a { display: block; font-size: 15px; color: #e9e2d4; text-shadow: none; margin-top: 4px; text-decoration: none; }
.none { text-align: center; margin: 12% 0 0; font-size: clamp(20px, 4cqw, 52px); color: #8a8178; }
.more { display: block; margin: 12px auto 0; background: none; border: 0; color: #e9e2d4; font-size: 20px; cursor: pointer; }
.play { padding: 0; background: #000; }
.play video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.play .over { position: absolute; left: 7%; right: 7%; top: 5%; pointer-events: none; }
.back { pointer-events: auto; background: #000a; border: 0; color: #fff; font-size: 20px; cursor: pointer; padding: 2px 8px; }

/* panel */
.panel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 14px 10px; border-radius: 14px; background: linear-gradient(180deg, #0f0a08, #070504); box-shadow: inset 0 0 0 1px #000, inset 0 2px 10px #000; }
.brand { font-family: var(--type); letter-spacing: .3em; font-size: 13px; color: #8f7e6c; margin-top: 4px; }
.chans { display: grid; gap: 8px; width: 100%; }
.chan { display: grid; justify-items: center; gap: 0; padding: 8px 4px; border-radius: 8px; border: 0; cursor: pointer; font-family: var(--osd); font-size: clamp(24px, 2.2vw, 40px); line-height: .9; color: #bfb3a3;
  background: linear-gradient(180deg, #2b221c, #14100d); box-shadow: inset 0 1px 0 #ffffff1a, 0 3px 0 #000, 0 6px 10px -4px #000; transition: transform .08s; }
.chan small { font-size: clamp(13px, .95vw, 18px); letter-spacing: .1em; color: #7c6f61; }
.chan:active, .chan.on { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff12, 0 1px 0 #000; }
.chan.on { color: var(--red); text-shadow: 0 0 8px #ff2020aa; }
.chan.on small { color: #c99; }
.knob { width: clamp(60px, 5.5vw, 100px); height: clamp(60px, 5.5vw, 100px); border-radius: 50%; background: conic-gradient(from 20deg, #2e2620, #5a4d42, #2e2620, #4a3f36, #2e2620); box-shadow: 0 4px 10px #000, inset 0 0 0 6px #1a1411; position: relative; transition: transform .35s; }
.knob::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 18px; margin-left: -2px; background: #c9b9a6; border-radius: 2px; }
.grille { flex: 1; width: 100%; min-height: 60px; border-radius: 8px; background: repeating-linear-gradient(0deg, #000 0 3px, #1c1512 3px 6px); opacity: .9; }
.legs { display: flex; justify-content: space-between; padding: 0 12%; }
.legs i { width: 14px; height: 34px; background: linear-gradient(90deg, #1c100a, #3b2416, #1c100a); transform: skewX(8deg); }
.legs i:last-child { transform: skewX(-8deg); }

/* ---------- controls ---------- */
.controls { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.big { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 4px; cursor: pointer;
  font-family: var(--type); font-size: 18px; letter-spacing: .12em; color: var(--bone); background: #0d0a09; border: 1px solid #3a302a; box-shadow: 0 0 0 1px #000, 0 10px 30px -12px #000; transition: background .2s, box-shadow .2s, color .2s; }
.big:hover { background: #17110f; color: #fff; }
.big .ico { font-size: 14px; }
.big.red { background: var(--blood); border-color: #ff3b3b55; color: #fff; text-shadow: 0 0 6px #0008; }
.big.red:hover { background: #d10010; box-shadow: 0 0 30px -4px #ff2020aa; }
.big.on { color: var(--red); border-color: var(--red); box-shadow: 0 0 24px -6px #ff2020; }
.big.on .ico { animation: blink .8s steps(2) infinite; }
.big:disabled { opacity: .5; cursor: default; }
.under { margin: 10px 0 0; color: #5d544d; font-size: 14px; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: #000d; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); overflow-y: auto; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: min(720px, 100%); background: #0b0807; border: 1px solid #2c221d; padding: 28px; box-shadow: 0 0 80px -20px #ff20203a; }
.sheet h2 { margin: 0 0 6px; font-family: var(--type); font-weight: 400; letter-spacing: .18em; font-size: clamp(22px, 3.4vw, 30px); color: #fff; }
.x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid #2c221d; background: #000; cursor: pointer; color: var(--dim); }
.x:hover { color: #fff; }
.up-bounty { margin: 0 0 20px; font-family: var(--osd); text-transform: uppercase; font-size: 22px; line-height: 1.1; color: var(--red); }
.up-pick { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.phone-col { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 14px; color: #a39a8d; padding-right: 26px; border-right: 1px dashed #2c221d; }
.phone-col img { background: #e9e2d4; padding: 6px; }
.phone-col p { margin: 0; }
.phone-col b { color: var(--bone); font-weight: 400; }
.file-col { display: grid; gap: 10px; }
.file-btn { width: 100%; }
.fine { margin: 0; font-size: 12px; color: #6d655e; }
.up-form { display: grid; gap: 10px; }
.up-form video { width: 100%; max-height: 42vh; background: #000; border: 1px solid #2c221d; }
.up-form label { color: #8a8178; font-size: 18px; margin-top: 4px; }
.up-form input { height: 50px; border: 1px solid #3a302a; background: #000; color: var(--bone); padding: 0 14px; font: 14px ui-monospace, Menlo, monospace; width: 100%; }
.up-form input:focus { outline: 1px solid #8a7a6a; }
.up-form input.bad { border-color: var(--red); }
.bar { height: 8px; background: #1a1412; border: 1px solid #2c221d; }
.bar i { display: block; height: 100%; width: 0; background: var(--red); box-shadow: 0 0 10px var(--red); transition: width .2s; }
.msg { margin: 0; padding: 10px 12px; border: 1px solid #5a1a1a; background: #1c0707; color: #ffc9c9; font-size: 15px; }
.msg.info { border-color: #2c221d; background: #0f0c0b; color: var(--bone); }
.msg.ok { border-color: #1f4a2e; background: #07140c; color: #b9f5cf; }
.row-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.row-btns .big { min-height: 50px; font-size: 16px; }
.rules-list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 10px; color: #cfc6b8; }
.notice { margin: 12px 0 0; max-width: 760px; text-align: center; font-size: 12.5px; line-height: 1.5; color: #6d655e; }
.notice b { color: #9a8f84; font-weight: 400; }
.notice .link { font-size: 12.5px; color: #9a8f84; text-decoration: underline; text-underline-offset: 3px; }
.link.inline { padding: 0; font-size: inherit; color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.agree { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; color: #a39a8d; cursor: pointer; text-transform: none; font-family: var(--type); }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blood); }
.agree.bad span { color: #ff8a8a; }
.legal { width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; }
.legal h3 { margin: 18px 0 4px; font-family: var(--osd); font-weight: 400; font-size: 22px; letter-spacing: .04em; color: var(--red); text-transform: uppercase; }
.legal p { margin: 0; color: #cfc6b8; font-size: 14.5px; line-height: 1.6; }
.legal b { color: #fff; font-weight: 400; }
.legal-lead { color: var(--bone) !important; }
.legal-foot { margin-top: 18px !important; color: #8a8178 !important; font-size: 13px !important; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--bone); color: #000; padding: 10px 18px; font-family: var(--type); letter-spacing: .05em; box-shadow: 0 10px 30px #000; max-width: calc(100vw - 32px); text-align: center; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .top { padding: 14px 16px 0; flex-direction: column; gap: 6px; }
  .mark { letter-spacing: .16em; }
  .stage { justify-content: flex-start; padding-top: 6px; }
  .tv { width: 100%; min-width: 0; margin-top: 18px; }
  .cabinet { grid-template-columns: 1fr; }
  .ears { display: none; }
  .big { font-size: 15px; letter-spacing: .08em; padding: 0 16px; }
  .cabinet { grid-template-columns: 1fr; gap: 12px; padding: 12px; border-radius: 18px; }
  .bezel { padding: 8px; border-radius: 20px; }
  .screen { aspect-ratio: 3 / 4; border-radius: 8% / 6%; }
  .ch { padding: 7% 7%; }
  .panel { flex-direction: row; padding: 8px; gap: 10px; }
  .brand, .grille { display: none; }
  .chans { grid-template-columns: repeat(3, 1fr); }
  .chan { font-size: 22px; }
  .chan small { font-size: 12px; }
  .knob { width: 46px; height: 46px; flex: none; }
  .knob::after { top: 4px; height: 12px; }
  .controls { width: 100%; flex-direction: column; gap: 10px; }
  .controls .big { width: 100%; }
  .up-pick { grid-template-columns: 1fr; }
  .phone-col { display: none; }
  .sheet { padding: 22px 16px; }
  .prev li { grid-template-columns: 48px 1fr; }
  .prev img, .prev .ph { width: 48px; height: 48px; }
  .prev .amt { grid-column: 1 / -1; text-align: left; display: flex; gap: 12px; align-items: baseline; }
  .ups { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
