/* Spooky Competitions - stream overlays (2026-10-05).
   Runs inside Streamlabs on the PC that is ENCODING the stream, so it is cheap on purpose:
   glows are painted once (box-shadow / text-shadow, never animated), every animation moves
   transform or opacity only, and nothing large is ever blurred, blended AND animated.
   Nothing under 22px and no hairlines - Facebook re-encodes and turns thin text to mush. */
@font-face { font-family: 'Anton'; src: url('../assets/fonts/Anton-Regular.ttf') format('truetype'); font-display: block; }
:root {
  --ink: #0F0A20; --ink2: #150C2E; --deep: #07040F; --panel: rgba(16,10,34,.94);
  --violet: #8B47F0; --violet-hi: #B17BFF; --lime: #B6FF3C; --cyan: #4FD1FF; --magenta: #E0219A;
  --gold: #F5C542; --red: #FF4D5E; --white: #F6F1FF; --mut: #BBAEDB;
  --head: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: transparent; }
body { font-family: var(--body); color: var(--white); -webkit-font-smoothing: antialiased; }
body.solid { background: var(--deep); }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
#stage > * { position: absolute; }
.bg { left: 0; top: 0; width: 1920px; height: 1080px; }
.hd { font-family: var(--head); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }

/* ── the neon frame round a hole ── */
.hole { border-radius: 18px; border: 4px solid var(--violet); box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 0 26px rgba(139,71,240,.75); pointer-events: none; }
.hole.lime { border-color: var(--lime); box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 0 24px rgba(182,255,60,.55); }
.hole::before, .hole::after { content: ''; position: absolute; width: 46px; height: 46px; border: 6px solid var(--lime); }
.hole::before { left: -8px; top: -8px; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; }
.hole::after { right: -8px; bottom: -8px; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; }
.hole.lime::before, .hole.lime::after { border-color: var(--violet-hi); }
.tag { font: 400 26px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 9px 16px 8px; border-radius: 10px;
  background: var(--lime); color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.5); white-space: nowrap; max-width: 1300px; overflow: hidden; text-overflow: ellipsis; }
.tag.violet { background: var(--violet); color: #fff; }
.tag.gold { background: var(--gold); color: var(--ink); box-shadow: 0 0 22px rgba(245,197,66,.6), 0 6px 18px rgba(0,0,0,.5); }

/* ── the top bar ── */
.top { left: 0; top: 0; width: 1920px; height: 96px; display: flex; align-items: center; gap: 22px; padding: 0 28px;
  background: linear-gradient(180deg, rgba(10,6,24,.98), rgba(18,10,40,.92)); border-bottom: 3px solid rgba(139,71,240,.9);
  box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.top .logo { height: 80px; width: auto; margin: 2px -10px 0 -6px; }
.top .word { height: 62px; width: auto; margin: 2px 0 0 -6px; }
.top .live { display: flex; align-items: center; gap: 10px; font: 400 28px/1 var(--head); letter-spacing: .1em; color: #fff;
  background: #C8102E; padding: 9px 16px 8px 14px; border-radius: 10px; box-shadow: 0 0 18px rgba(255,40,70,.55); }
.top .live i { width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: sx-blip 1.4s ease-in-out infinite; }
.top .title { font: 400 50px/1 var(--head); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 880px; padding: 22px 30px; margin: -22px -30px;
  color: #fff; text-shadow: 0 0 2px #fff, 0 0 16px rgba(177,123,255,.9), 0 0 34px rgba(139,71,240,.7); }
.top .sp { flex: 1; }
.chip { display: flex; flex-direction: column; justify-content: center; padding: 6px 16px 7px; border-radius: 12px; background: rgba(139,71,240,.18);
  border: 2px solid rgba(139,71,240,.7); min-width: 170px; }
.chip small { font: 800 22px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.chip b { font: 400 36px/1 var(--head); color: var(--lime); letter-spacing: .02em; }
.chip.cyan b { color: var(--cyan); } .chip.gold b { color: var(--gold); }
.top .clock { font: 400 40px/1 var(--head); color: #fff; letter-spacing: .04em; min-width: 108px; text-align: right; }
@keyframes sx-blip { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* ── panels ── */
.panel { background: var(--panel); border: 3px solid rgba(139,71,240,.75); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.45); overflow: hidden; }
.panel h3 { margin: 0; padding: 14px 18px 0; font: 400 32px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; color: var(--lime); }
.panel .hint { padding: 6px 18px 0; font: 700 22px/1.25 var(--body); color: var(--mut); }
.chatp.peek .hint { padding-right: 132px; }
.chatp .slot { position: absolute; left: 7px; right: 7px; bottom: 7px; top: 89px; border-radius: 12px; background: rgba(0,0,0,.25); }

/* the box under the chat on the show scenes: now drawing / now playing / join / the pot */
.box { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.box img.pic { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; border: 3px solid var(--lime); flex: none; background: #000; }
.box .t { min-width: 0; flex: 1; }
.box small { display: block; font: 800 22px/1.05 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.box b { display: block; font: 400 34px/1.05 var(--head); letter-spacing: .02em; text-transform: uppercase; color: #fff; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.box em { display: block; font: 700 22px/1.2 var(--body); font-style: normal; color: var(--mut); margin-top: 6px; }
.box .money { font: 400 64px/1 var(--head); color: var(--lime); text-shadow: 0 0 18px rgba(182,255,60,.45); margin-top: 4px; }
.box .qr { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 12px; flex: none; }
.box .qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.box .code { font: 400 54px/1 var(--head); letter-spacing: .14em; color: var(--lime); margin-top: 4px; }
.box.winner { background: linear-gradient(135deg, rgba(245,197,66,.22), rgba(16,10,34,.2)); }
.box.winner small { color: var(--gold); }

/* ── the ticker ── */
.ticker { display: flex; align-items: stretch; height: 64px; border-radius: 14px; overflow: hidden; background: rgba(10,6,24,.95); border: 3px solid rgba(139,71,240,.8); }
.ticker .lbl { flex: none; display: flex; align-items: center; padding: 0 20px; font: 400 28px/1 var(--head); letter-spacing: .06em; text-transform: uppercase;
  background: var(--violet); color: #fff; white-space: nowrap; }
.ticker.wins .lbl { background: var(--lime); color: var(--ink); }
.ticker .lane { position: relative; flex: 1; overflow: hidden; }
.ticker .run { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.ticker .item { display: inline-flex; align-items: center; font: 700 26px/1 var(--body); color: #fff; padding-right: 46px; }
.ticker .item b { color: var(--lime); font-weight: 800; margin: 0 7px; }
.ticker .item em { font-style: normal; color: var(--mut); margin-left: 7px; }
.ticker .item i { width: 26px; height: 26px; margin-right: 14px; background: url('../assets/ghost-head.webp') center/contain no-repeat; flex: none; }
.ticker .item.gold b { color: var(--gold); }
.legal { display: flex; align-items: center; gap: 14px; font: 700 22px/1 var(--body); color: var(--mut); white-space: nowrap; }
.legal .age { font: 400 24px/1 var(--head); color: var(--ink); background: var(--lime); border-radius: 8px; padding: 6px 9px 5px; }

/* ── the ghost ── */
.ghost { pointer-events: none; }
.ghost .float { position: absolute; left: 0; top: 0; width: 100%; height: 100%; animation: sx-float 4.2s ease-in-out infinite; }
.ghost img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .18s linear; }
.ghost img.on { opacity: 1; }
.ghost.flip img { transform: scaleX(-1); }
.ghost .pop { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ghost.popping .pop { animation: sx-squash .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes sx-float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-18px) rotate(1.5deg); } }
@keyframes sx-squash { 0% { transform: scale(.82, 1.12); } 60% { transform: scale(1.06, .95); } 100% { transform: scale(1); } }
.bubble { background: #fff; color: var(--ink); font: 800 28px/1.25 var(--body); padding: 16px 22px; border-radius: 22px; box-shadow: 0 10px 28px rgba(0,0,0,.5);
  max-width: 520px; opacity: 0; transform: translateY(12px) scale(.94); transition: opacity .25s, transform .3s cubic-bezier(.2,1.4,.4,1); }
.bubble.on { opacity: 1; transform: none; }
.bubble::after { content: ''; position: absolute; width: 0; height: 0; border: 16px solid transparent; }
.bubble.tail-l::after { left: -26px; top: 26px; border-right: 18px solid #fff; border-left: 0; }
.bubble.tail-r::after { right: -26px; top: 26px; border-left: 18px solid #fff; border-right: 0; }
.bubble.tail-b::after { left: 50px; bottom: -28px; border-top: 18px solid #fff; border-bottom: 0; }

/* ── full scenes (starting soon, be right back, technical difficulties, thanks for watching) ── */
.scene-bg { left: 0; top: 0; width: 1920px; height: 1080px; background: #07040F center/cover no-repeat; }
.scene-shade { left: 0; top: 0; width: 1920px; height: 1080px; background: radial-gradient(ellipse 60% 55% at 50% 48%, rgba(7,4,15,.35), rgba(7,4,15,.82)); }
.bigword { font: 400 150px/.92 var(--head); letter-spacing: .02em; text-transform: uppercase; text-align: center; color: #fff;
  text-shadow: 0 0 3px #fff, 0 0 26px rgba(177,123,255,.95), 0 0 60px rgba(139,71,240,.8), 0 8px 0 rgba(0,0,0,.4); }
.subword { font: 800 34px/1.25 var(--body); color: var(--white); text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.count { display: flex; justify-content: center; gap: 14px; align-items: flex-start; }
.count .u { width: 150px; padding: 14px 0 12px; border-radius: 18px; background: rgba(16,10,34,.9); border: 3px solid var(--violet); text-align: center; box-shadow: 0 0 24px rgba(139,71,240,.5); }
.count .d { font: 400 96px/1 var(--head); color: var(--lime); text-shadow: 0 0 20px rgba(182,255,60,.5); }
.count .l { font: 800 22px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--mut); margin-top: 8px; }
.count .colon { font: 400 90px/1.1 var(--head); color: var(--violet-hi); }
.anymin { font: 400 72px/1 var(--head); color: var(--lime); text-transform: uppercase; text-shadow: 0 0 22px rgba(182,255,60,.55); }
.uplabel { font: 800 22px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--lime); text-align: center; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.chips span { font: 400 32px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; padding: 12px 20px 10px; border-radius: 12px; background: rgba(139,71,240,.3); border: 2px solid var(--violet-hi); }
.chips span:nth-child(even) { background: rgba(182,255,60,.14); border-color: var(--lime); }

/* the live-competition card (starting soon, host cam, pop-ups) */
.comp { display: flex; gap: 20px; padding: 16px; align-items: center; }
.comp img { width: 196px; height: 196px; border-radius: 14px; object-fit: cover; border: 3px solid var(--lime); flex: none; background: #000; }
.comp .ct { min-width: 0; flex: 1; }
.comp small { display: block; font: 800 22px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.comp b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 400 44px/1.02 var(--head); letter-spacing: .02em; text-transform: uppercase; margin: 8px 0 10px; }
.comp .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 800 24px/1.2 var(--body); color: var(--mut); }
.comp .facts span b { display: inline; font: inherit; color: #fff; margin: 0; text-transform: none; letter-spacing: 0; }
.comp .bar { margin-top: 12px; height: 14px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.comp .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--lime)); }
.comp.boost { border-color: var(--gold); }
.fade { transition: opacity .5s ease; }
.signtext { position: absolute; left: 29%; top: 43%; width: 42%; height: 24%; display: flex; align-items: center; justify-content: center; text-align: center;
  font: 400 46px/.95 var(--head); text-transform: uppercase; letter-spacing: .02em; color: #3b1d0c; transform: rotate(-2deg); }
.fade.out { opacity: 0; }
