/* Dart Gear Competitions - stream overlays, shared look.
   Every page is a 1920x1080 stage. In Streamlabs the browser source is exactly
   1920x1080 so nothing scales; in an ordinary browser the stage shrinks to fit.

   Stream rules (the overlay runs on the PC that is encoding the stream):
   nothing large that is blurred, blended or filtered AND animated; glows are
   painted once; animations move small things by transform/opacity only.
   Nothing under 22px and no hairlines - Facebook re-encodes and thin text
   turns to mush. */
@font-face { font-family: 'DG Head'; font-style: italic; font-weight: 800; src: url(../assets/fonts/BarlowCondensed-800i.woff2) format('woff2'); }
@font-face { font-family: 'DG Body'; font-weight: 400 800; src: url(../assets/fonts/OpenSans-var.woff2) format('woff2'); }

:root {
  --ink: #0c0c0c; --ink2: #161616; --panel: #141414;
  --green: #247424; --green-hi: #3fae3f; --red: #e3202a; --red-hi: #ff4b4b;
  --white: #ffffff; --muted: #c8c8c8; --dim: #8f8f8f;
  --head: 'DG Head', 'Arial Narrow', Impact, sans-serif;
  --body: 'DG Body', 'Open Sans', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: transparent; }
body { font-family: var(--body); color: var(--white); -webkit-font-smoothing: antialiased; }
body.solid { background: #000; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
#stage > .bg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }

/* ── type ── */
.head { font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .92; }
/* the logo's look: white letters, a thick black outline, a hard drop */
.outline {
  text-shadow: 0 0 0 #000, 4px 0 0 #000, -4px 0 0 #000, 0 4px 0 #000, 0 -4px 0 #000,
    3px 3px 0 #000, -3px 3px 0 #000, 3px -3px 0 #000, -3px -3px 0 #000, 0 12px 0 #000, 6px 12px 0 #000;
}
.red { color: var(--red); }
.green { color: var(--green-hi); }

/* ── top bar ── */
.topbar { position: absolute; left: 0; top: 0; width: 1920px; height: 88px; display: flex; align-items: center; gap: 22px; padding: 0 32px;
  background: linear-gradient(180deg, #181818, #0b0b0b); }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--red) 0 38%, #000 38% 39%, var(--green) 39% 100%); }
.topbar .logo { height: 66px; width: auto; display: block; margin-top: -2px; }
.topbar .title { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 44px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.topbar .spacer { flex: 1 1 auto; }
.topbar .site { font-size: 24px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.topbar .clock { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 40px; padding: 4px 16px; border-radius: 10px; background: #000; border: 2px solid #2a2a2a; }
.live { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; font-family: var(--head); font-style: italic; font-weight: 800;
  font-size: 32px; text-transform: uppercase; padding: 4px 18px 3px 14px; border-radius: 8px; box-shadow: 0 0 0 3px #000; }
.live i { width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ── holes the camera / game / chat show through ── */
.holeframe { position: absolute; border: 5px solid var(--green); border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 3px #000, 0 0 26px rgba(63,174,63,.35), inset 0 0 0 2px #000; }
.holeframe.red { border-color: var(--red); box-shadow: 0 0 0 3px #000, 0 0 26px rgba(227,32,42,.35), inset 0 0 0 2px #000; }
.holetag { position: absolute; height: 40px; padding: 0 16px; display: flex; align-items: center; gap: 8px; border-radius: 8px;
  font-family: var(--head); font-style: italic; font-weight: 800; font-size: 28px; text-transform: uppercase; white-space: nowrap;
  background: var(--green); color: #fff; box-shadow: 0 0 0 3px #000; }
.holetag.red { background: var(--red); }

/* ── panels ── */
.panel { position: absolute; border-radius: 16px; background: linear-gradient(160deg, #1f1f1f 0%, #141414 55%, #0d0d0d 100%);
  border: 3px solid var(--green); box-shadow: 0 0 0 3px #000, 0 18px 40px rgba(0,0,0,.55); }
.panel h3 { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 34px; text-transform: uppercase; padding: 14px 20px 0; }
.chat .hint { font-size: 22px; font-weight: 700; color: var(--muted); padding: 2px 20px 0; }
.chat .slot { position: absolute; left: 12px; right: 12px; bottom: 12px; top: 96px; border-radius: 10px; background: rgba(0,0,0,.35); }

/* ── bottom: ticker + partner ── */
.ticker { position: absolute; overflow: hidden; display: flex; align-items: stretch; border-radius: 14px; background: #0b0b0b; box-shadow: 0 0 0 3px #000; border: 3px solid #262626; }
.ticker .lbl { flex: 0 0 auto; display: flex; align-items: center; padding: 0 22px; background: var(--red); font-family: var(--head); font-style: italic;
  font-weight: 800; font-size: 32px; text-transform: uppercase; white-space: nowrap; }
.ticker .lane { position: relative; flex: 1 1 auto; 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 { font-size: 28px; font-weight: 800; padding: 0 30px; display: inline-flex; align-items: center; gap: 14px; }
.ticker .item b { color: var(--green-hi); }
.ticker .item .sep { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px #3a0a0d; }
.ticker .item.win { color: #fff; }
.ticker .item.win b { color: #ffd34d; }

.partner { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.partner small { font-size: 22px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* their logo is dark lettering, so it sits on its own green badge, as on their website */
.partner .badge { background: #2c8a2c; border: 4px solid #fff; border-radius: 14px; padding: 6px 22px; box-shadow: 0 0 0 3px #000; }
.partner img { height: 58px; width: auto; display: block; }
.legal { position: absolute; display: flex; align-items: center; gap: 18px; font-size: 22px; font-weight: 800; color: var(--muted); letter-spacing: .03em; }
.legal .age { background: #fff; color: #000; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; font-weight: 800; }

.madeby { position: absolute; right: 524px; bottom: 44px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.madeby img { height: 14px; display: block; opacity: .8; }

/* ── full-screen scenes (starting soon, brb, tech, ending) ── */
.scene-bg { position: absolute; left: -40px; top: -24px; width: 2000px; height: 1128px; background: url(../assets/pub-bg.webp) center / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(28px, 12px) scale(1.03); } }
.scene-shade { position: absolute; inset: 0; background:
  radial-gradient(1100px 620px at 50% 46%, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.85) 100%),
  linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.6)); }
/* a slow sweep of light across the board wall, small and transform-only */
.beam { position: absolute; top: -200px; width: 260px; height: 1500px; left: 0; background: linear-gradient(90deg, rgba(255,230,180,0), rgba(255,230,180,.08), rgba(255,230,180,0));
  transform: rotate(18deg) translateX(-600px); animation: beam 11s ease-in-out infinite; }
@keyframes beam { 0%, 20% { transform: rotate(18deg) translateX(-600px); } 70%, 100% { transform: rotate(18deg) translateX(2500px); } }
.centre { position: absolute; left: 0; width: 1920px; text-align: center; }
.bigword { font-size: 190px; }
.subword { font-size: 46px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.chips { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.chip { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 40px; text-transform: uppercase; padding: 8px 26px 6px; border-radius: 12px;
  background: #0d0d0d; border: 3px solid var(--green); box-shadow: 0 0 0 3px #000; }
.chip.red { border-color: var(--red); }
.count { display: inline-flex; gap: 14px; align-items: flex-start; }
.count .u { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.count .d { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 150px; line-height: 1; min-width: 210px; padding: 10px 18px 2px; border-radius: 20px;
  background: linear-gradient(180deg, #202020, #0b0b0b); border: 4px solid var(--red); box-shadow: 0 0 0 4px #000, 0 0 40px rgba(227,32,42,.35); }
.count .l { font-size: 24px; font-weight: 800; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.count .colon { font-family: var(--head); font-weight: 800; font-size: 120px; line-height: 1.25; color: var(--red-hi); }

/* ── the two characters ── */
.char { position: absolute; pointer-events: none; }
.char .body { position: absolute; left: 0; right: 0; bottom: 0; top: 0; transform-origin: 50% 100%; animation: bob 2.6s ease-in-out infinite; }
.char.b2 .body { animation-delay: -1.3s; }
.char img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; transform: translateX(-50%); opacity: 0; transition: opacity .12s; }
.char img.on { opacity: 1; }
.char .shadow { position: absolute; left: 50%; bottom: -14px; width: 70%; height: 36px; margin-left: -35%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.char.pop .body { animation: pop .5s cubic-bezier(.2,1.6,.4,1), bob 2.6s ease-in-out .5s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
@keyframes pop { 0% { transform: scale(1, 1); } 30% { transform: scale(1.08, .9); } 65% { transform: scale(.96, 1.06); } 100% { transform: scale(1, 1); } }

/* speech bubble (pop-ups) */
.bubble { position: absolute; max-width: 620px; padding: 22px 28px; border-radius: 22px; background: #fff; color: #0c0c0c;
  font-size: 34px; font-weight: 800; line-height: 1.18; box-shadow: 0 0 0 5px #000, 0 16px 0 #000; }
.bubble::after { content: ''; position: absolute; left: 60px; bottom: -30px; border: 18px solid transparent; border-top: 22px solid #fff; border-left-width: 6px; }
.bubble em { font-style: normal; color: var(--red); }

/* the message box on a full-screen scene */
.scene-box { background: linear-gradient(160deg, rgba(20,20,20,.72), rgba(8,8,8,.84)); border-color: var(--red); }
.scene-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; text-align: center; padding: 40px; }
.scene-inner .bigword { font-size: 170px; }
.scene-inner .subword { max-width: 1100px; }
.uplabel { font-size: 26px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: -14px; }
.anyminute { font-size: 110px; color: #fff; }
