/* PUB DARTS - a 1920x1080 stage scaled to fit the window (OBS window capture) */
@font-face { font-family: Anton; src: url(assets/fonts/anton-400.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 400 800; src: url(assets/fonts/manrope-700.woff2) format('woff2'); }
@font-face { font-family: Alfa; src: url(assets/fonts/alfa-400.woff2) format('woff2'); }
@font-face { font-family: Chalk; font-weight: 700; src: url(assets/fonts/cabinsketch-700.woff2) format('woff2'); }
@font-face { font-family: Oswald; font-weight: 600; src: url(assets/fonts/oswald-600.woff2) format('woff2'); }

:root {
  --gold: #e8c46a; --gold-hi: #fff1c2; --gold-lo: #8a6420;
  --brass: linear-gradient(180deg, #f4dc96 0%, #c99a3e 45%, #8c6421 55%, #d8b25c 100%);
  --ink: #120d09; --cream: #f4e8cc; --chalk: #f1efe6;
  --green: #1f7a45; --red: #c3242c;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #070504; overflow: hidden; }
body { font-family: Manrope, system-ui, sans-serif; color: var(--cream); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }

#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; background: #120c08; }

/* ── the pub ── */
/* ── the camera ── */
.cam { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; pointer-events: none; }
#world { overflow: visible; }
#world #boardWrap, #worldTop { pointer-events: none; }
#stage.closeup #sign, #stage.closeup #chalkL, #stage.closeup #plaque, #stage.closeup #caption, #stage.closeup #presented,
#stage.closeup #controls, #stage.closeup #keys { opacity: .12; }
#sign, #chalkL, #plaque, #caption, #presented, #controls, #keys { transition: opacity .5s ease; }
#stage.slowmo #world { filter: saturate(.55) contrast(1.12) brightness(.92); }
#impactFx, #trail { position: absolute; left: 0; top: 0; pointer-events: none; }
#heart { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 46%, transparent 30%, rgba(170,0,10,.42) 62%, rgba(110,0,0,.78) 84%, rgba(35,0,0,.95) 100%);
  mix-blend-mode: normal; }
.letterbox { position: absolute; left: 0; width: 1920px; height: 0; background: #000; z-index: 30; transition: height .7s cubic-bezier(.3,.8,.3,1); }
#lbTop { top: 0; } #lbBot { bottom: 0; }
#stage.slowmo .letterbox { height: 104px; }
#slowTag { position: absolute; left: 0; width: 1920px; bottom: 34px; z-index: 31; text-align: center; font-weight: 800; font-size: 22px; letter-spacing: 12px;
  color: #ffdede; opacity: 0; transition: opacity .6s; text-shadow: 0 0 14px rgba(255,60,60,.7); }
#stage.slowmo #slowTag { opacity: .9; }
/* the prize stamped up over the close-up */
#stamp { position: absolute; left: 460px; width: 1000px; top: 120px; text-align: center; pointer-events: none; opacity: 0; z-index: 25; }
#stamp.on { animation: stampIn .55s cubic-bezier(.15,1.6,.35,1) forwards; }
#stamp.off { animation: stampOut .35s ease-in forwards; }
@keyframes stampIn { from { opacity: 0; transform: scale(2.4) rotate(-6deg); } to { opacity: 1; transform: scale(1) rotate(-3deg); } }
@keyframes stampOut { from { opacity: 1; transform: scale(1) rotate(-3deg); } to { opacity: 0; transform: scale(.7) translateY(-40px) rotate(-3deg); } }
#stamp::before { content: ''; position: absolute; left: 50%; top: 55%; width: 820px; height: 330px; transform: translate(-50%,-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(8,5,3,.82), rgba(8,5,3,.55) 60%, rgba(8,5,3,0)); }
.st-sec { font-weight: 800; font-size: 26px; letter-spacing: 9px; text-transform: uppercase; color: #fff4d8; text-shadow: 0 3px 12px rgba(0,0,0,.95); }
.st-amt { font-family: Anton, Impact, sans-serif; font-size: 170px; line-height: 1;
  background: linear-gradient(180deg, #fffbe8 0%, #ffe08a 40%, #c98f2c 62%, #ffe9a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #4a2e08) drop-shadow(0 0 26px rgba(255,200,90,.6)) drop-shadow(0 16px 30px rgba(0,0,0,.85)); }
#stamp.bust .st-amt { background: linear-gradient(180deg, #ffd9d4, #ff4a3d 45%, #8e0c12 62%, #ff6a5a); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 6px 0 #3a0306) drop-shadow(0 0 30px rgba(255,40,30,.7)) drop-shadow(0 16px 30px rgba(0,0,0,.85)); }
.st-rays { position: absolute; left: 50%; top: 60%; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: -1; opacity: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,220,130,.22) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%); }
#stamp.big .st-rays { opacity: 1; animation: spin 9s linear infinite; }
#stamp.bust .st-rays { opacity: .9; background: repeating-conic-gradient(from 0deg, rgba(255,40,30,.25) 0deg 6deg, transparent 6deg 18deg); animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#bg { position: absolute; inset: -20px; background: url(assets/art/pub_bg.webp) center 46% / cover no-repeat;
      filter: blur(2.2px) brightness(.66) saturate(1.08); }
#bgGlow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 520px at 972px 470px, rgba(255,196,120,.30), rgba(255,170,90,.08) 60%, transparent 75%),
    radial-gradient(1400px 900px at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%); }
#motes { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .8; }

/* ── the board ── */
#boardWrap { position: absolute; left: 522px; top: 28px; width: 900px; height: 900px; }
#boardShadow { position: absolute; inset: 22px; border-radius: 50%;
  box-shadow: 0 36px 60px 10px rgba(0,0,0,.72), 0 0 0 10px rgba(0,0,0,.35), 0 0 120px 40px rgba(0,0,0,.35); }
#board, #boardFx { position: absolute; left: 0; top: 0; }
#boardFx { pointer-events: none; }
#darts { position: absolute; inset: 0; pointer-events: none; }
.dart { position: absolute; left: 0; top: 0; width: 128px; pointer-events: none; will-change: transform;
        filter: drop-shadow(10px 14px 6px rgba(0,0,0,.45)); }

/* ── the pub sign ── */
.frame { position: absolute; border-radius: 14px; padding: 14px;
  background: url(assets/art/oak.webp) center / 600px auto, #3a2414;
  box-shadow: inset 0 0 0 2px rgba(255,220,150,.18), inset 0 0 26px rgba(0,0,0,.65), 0 18px 40px rgba(0,0,0,.6); }
#sign { position: absolute; left: 40px; top: 30px; width: 420px; height: 156px; border-radius: 16px; padding: 10px;
  background: url(assets/art/oak.webp) center / 600px auto, #3a2414;
  box-shadow: 0 0 0 3px #6b4a1c, 0 0 0 6px #b8893a, 0 0 0 8px #3a280e, 0 22px 44px rgba(0,0,0,.7); }
.sign-inner { height: 100%; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 140% at 50% 0%, #1d4a33 0%, #0f2a1c 70%, #0a1d13 100%);
  box-shadow: inset 0 0 0 2px rgba(232,196,106,.55), inset 0 0 30px rgba(0,0,0,.6); }
.sign-title { white-space: nowrap; font-family: Alfa, Georgia, serif; font-size: 54px; line-height: 1; letter-spacing: 3px;
  background: linear-gradient(180deg, #fff6d6 0%, #f0cf76 38%, #a8792a 52%, #f5d98a 70%, #c9963c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(40,20,0,.85)) drop-shadow(0 0 14px rgba(255,200,100,.25)); }
.sign-sub { margin-top: 8px; font-weight: 800; font-size: 17px; letter-spacing: 6px; text-transform: uppercase; color: #e9d7a8; opacity: .9; }

/* ── the chalkboard scorecard ── */
#chalkL { left: 40px; top: 210px; width: 420px; height: 560px; }
.chalk { height: 100%; border-radius: 6px; padding: 22px 26px; font-family: Chalk, 'Comic Sans MS', cursive; color: var(--chalk);
  background: url(assets/art/chalk.webp) center / cover, #22262a;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.55);
  text-shadow: 0 0 1px rgba(255,255,255,.6), 0 0 6px rgba(255,255,255,.12); }
.ch-label { font-size: 20px; letter-spacing: 2px; text-transform: uppercase; opacity: .72; }
.ch-name { font-size: 46px; line-height: 1.1; margin: 4px 0 6px; min-height: 52px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-rule { height: 3px; margin: 14px 0; border-radius: 2px; opacity: .55;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 18px, rgba(255,255,255,.4) 18px 22px, rgba(255,255,255,.85) 22px 46px, transparent 46px 49px); }
.ch-rows { display: grid; gap: 12px; }
.ch-row { display: grid; grid-template-columns: 112px 64px 1fr; align-items: baseline; font-size: 34px; padding: 4px 10px; border-radius: 40px;
  border: 3px solid transparent; transition: border-color .4s, background .4s; }
.ch-row .n { font-size: 26px; opacity: .7; }
.ch-row .v { text-align: right; }
.ch-row.now { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.05); }
.ch-row.bust .v { color: #ff8a80; text-decoration: line-through; text-decoration-thickness: 3px; }
.ch-row.empty { opacity: .38; }
.ch-row.won .v { color: #ffe08a; }
.ch-hold { font-size: 78px; line-height: 1.05; color: #ffe9a8; text-shadow: 0 0 2px rgba(255,240,200,.8), 0 0 18px rgba(255,210,120,.35); }
.ch-hold.none { font-size: 34px; opacity: .45; color: var(--chalk); text-shadow: none; padding-top: 10px; }
.ch-hold.pop { animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

/* ── the MC's caption ── */
#caption { position: absolute; left: 40px; top: 792px; width: 420px; min-height: 120px; padding: 16px 20px 18px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(18,12,8,.88), rgba(10,7,5,.92)); border: 2px solid rgba(232,196,106,.45);
  box-shadow: 0 16px 36px rgba(0,0,0,.6); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
#caption.on { opacity: 1; transform: none; }
.cap-who { font-weight: 800; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.cap-who.punter { color: #9fd8b0; }
.cap-text { font-weight: 700; font-size: 25px; line-height: 1.25; font-style: italic; color: #fff7e6; }

/* ── the brass plaque ── */
#plaque { right: 40px; top: 30px; width: 420px; height: 750px; }
.pl-inner { height: 100%; border-radius: 8px; padding: 20px 22px; display: flex; flex-direction: column;
  background: radial-gradient(130% 90% at 50% 0%, #1b3d2b 0%, #10261a 60%, #0b1b12 100%);
  box-shadow: inset 0 0 0 2px rgba(232,196,106,.5), inset 0 0 34px rgba(0,0,0,.65); }
.pl-title { font-family: Alfa, Georgia, serif; font-size: 40px; text-align: center; letter-spacing: 2px;
  background: linear-gradient(180deg, #fff3cc, #e2b85c 50%, #9b6e26 60%, #f0d283); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.8)); }
.pl-stats { margin: 10px 0 6px; display: grid; gap: 7px; }
.pl-stat { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 20px; color: #e8dcbc;
  padding: 5px 12px; border-radius: 9px; background: rgba(0,0,0,.28); }
.pl-stat b { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 28px; color: #fff1c4; letter-spacing: .5px; }
.pl-stat.danger b { color: #ff7a6e; }
.pl-sub { font-weight: 800; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); opacity: .85; margin: 6px 0 8px; text-align: center; }
.pl-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 7px; }
.chip { display: flex; justify-content: space-between; align-items: center; padding: 2px 12px; border-radius: 8px; height: 31px;
  background: linear-gradient(180deg, rgba(244,232,204,.13), rgba(244,232,204,.05)); border: 1px solid rgba(232,196,106,.28); }
.chip .a { font-family: Anton, Impact, sans-serif; font-size: 21px; color: #fff3d0; letter-spacing: .4px; }
.chip .s { font-family: Oswald, sans-serif; font-weight: 600; font-size: 16px; color: #c8bd9e; }
.chip.top { border-color: rgba(255,214,110,.85); box-shadow: 0 0 12px rgba(255,200,90,.25) inset; }
.chip.bust { background: rgba(120,10,14,.45); border-color: rgba(255,90,80,.6); }
.chip.bust .a { color: #ff9a90; text-decoration: line-through; text-decoration-thickness: 2px; }
.chip.hit { border-color: #ffe08a; box-shadow: 0 0 0 2px rgba(255,224,138,.55), 0 0 18px rgba(255,210,110,.35); }

/* ── buttons ── */
#controls { position: absolute; left: 522px; width: 900px; top: 952px; height: 100px; display: flex; gap: 26px; justify-content: center; align-items: center; }
.btn { position: relative; border: 0; cursor: pointer; padding: 0 40px; height: 84px; min-width: 300px; border-radius: 42px;
  font-family: Anton, Impact, sans-serif; font-size: 36px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
  box-shadow: 0 0 0 3px #3a280e, 0 0 0 6px #c99a3e, 0 0 0 8px #2a1d0a, 0 14px 28px rgba(0,0,0,.65), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -6px 12px rgba(0,0,0,.35);
  transition: transform .12s, filter .2s; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(2px) scale(.99); }
.btn[hidden] { display: none; }
.btn-throw { background: linear-gradient(180deg, #d63a3a, #9c1d22 55%, #7d1519); }
.btn-again { background: linear-gradient(180deg, #d63a3a, #9c1d22 55%, #7d1519); }
.btn-take { background: linear-gradient(180deg, #33a564, #1d7a45 55%, #135a32); }
.btn-take.sure { background: linear-gradient(180deg, #f2c94c, #c99a2e 55%, #8f6a17); color: #1b1206; text-shadow: none; animation: sure .8s ease-in-out infinite; }
@keyframes sure { 50% { filter: brightness(1.18); } }
.btn.appear { animation: btnIn .45s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes btnIn { from { transform: translateY(30px) scale(.8); opacity: 0; } }

/* ── the arm and the flying dart ── */
.arm { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; will-change: transform;
       filter: drop-shadow(-18px 26px 30px rgba(0,0,0,.55)); }
#flyLayer { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }

/* ── result ── */
#flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
#banner::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1300px; height: 1300px; margin: -650px 0 0 -650px; z-index: -2; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,120,.16) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 12%, transparent 62%); mask: radial-gradient(circle, #000 12%, transparent 62%); animation: spin 14s linear infinite; }
#banner.bust::after { background: repeating-conic-gradient(from 0deg, rgba(255,40,30,.18) 0deg 5deg, transparent 5deg 15deg); }
#banner { position: absolute; left: 472px; width: 1000px; top: 300px; text-align: center; pointer-events: none; opacity: 0; transform: scale(.7); }
#banner::before { content: ''; position: absolute; left: 50%; top: 50%; width: 1060px; height: 470px; transform: translate(-50%,-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(8,5,3,.88), rgba(8,5,3,.7) 55%, rgba(8,5,3,0)); }
#banner.on { animation: bannerIn .7s cubic-bezier(.18,1.4,.4,1) forwards; }
@keyframes bannerIn { to { opacity: 1; transform: none; } }
.bn-top { font-weight: 800; font-size: 30px; letter-spacing: 8px; text-transform: uppercase; color: #fff3cf; text-shadow: 0 3px 10px rgba(0,0,0,.9); }
.bn-big { font-family: Anton, Impact, sans-serif; font-size: 190px; line-height: 1; letter-spacing: 2px;
  background: linear-gradient(180deg, #fffbe8 0%, #ffe08a 40%, #c98f2c 60%, #ffe9a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #4a2e08) drop-shadow(0 0 30px rgba(255,200,90,.55)) drop-shadow(0 14px 30px rgba(0,0,0,.8)); }
.bn-sub { margin-top: 6px; font-weight: 800; font-size: 32px; letter-spacing: 6px; text-transform: uppercase; color: #fff; text-shadow: 0 3px 12px rgba(0,0,0,.95); }
#banner.bust .bn-big { background: linear-gradient(180deg, #ffd9d4, #ff4a3d 45%, #8e0c12 62%, #ff6a5a); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 6px 0 #3a0306) drop-shadow(0 0 34px rgba(255,40,30,.6)) drop-shadow(0 14px 30px rgba(0,0,0,.8)); }
#confetti { position: absolute; inset: 0; pointer-events: none; }

#seal { position: absolute; left: 40px; bottom: 14px; font: 600 15px/1.3 ui-monospace, Consolas, monospace; color: #d9c79e;
  background: rgba(10,7,5,.72); padding: 6px 12px; border-radius: 8px; pointer-events: none; max-width: 640px; }
#seal:empty { display: none; }
/* optional sponsor / operator panel under the plaque (theme.js presented) */
#presented { position: absolute; right: 40px; top: 800px; width: 420px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 16px; background: linear-gradient(180deg, rgba(18,12,8,.82), rgba(10,7,5,.9)); border: 2px solid rgba(232,196,106,.35); box-shadow: 0 16px 36px rgba(0,0,0,.6); }
#presented[hidden] { display: none; }
.pr-by { font-weight: 800; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); opacity: .85; }
#prLogo { max-width: 340px; max-height: 104px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.6)); }
.sp-logo { max-height: 110px; max-width: 320px; object-fit: contain; }
/* the maker's credit: small, quiet, bottom right */
#madeby { position: absolute; right: 40px; bottom: 14px; z-index: 32; display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(240,230,210,.5); text-decoration: none;
  opacity: .75; transition: opacity .2s; }
#madeby:hover { opacity: 1; }
#madeby img { height: 13px; width: auto; display: block; }
.sign-logo { max-width: 360px; max-height: 128px; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(255,255,255,.22)) drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.sign-logo[hidden] { display: none; }
#keys { position: absolute; right: 40px; bottom: 38px; font-weight: 700; font-size: 14px; letter-spacing: 1px; color: rgba(240,225,190,.45); }

/* ── panels and modals ── */
.modal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 50;
  background: radial-gradient(circle at 50% 40%, rgba(15,10,6,.55), rgba(5,3,2,.88)); backdrop-filter: blur(5px); }
.modal[hidden] { display: none; }
.panel { border-radius: 20px; padding: 30px 36px; color: #f1e6c9;
  background: linear-gradient(180deg, rgba(36,24,15,.97), rgba(20,13,8,.98));
  box-shadow: 0 0 0 2px #6b4a1c, 0 0 0 5px #c99a3e, 0 0 0 7px #2a1d0a, 0 30px 80px rgba(0,0,0,.8); }
.setup-panel { width: 1460px; }
.sp-head { display: flex; gap: 30px; align-items: center; margin-bottom: 20px; }
.sp-title { font-family: Alfa, Georgia, serif; font-size: 58px; white-space: nowrap;
  background: linear-gradient(180deg, #fff6d6, #f0cf76 40%, #a8792a 55%, #f5d98a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-lead { font-size: 20px; line-height: 1.45; color: #e6d8b4; }
.sp-lead b { color: #fff; }
.sp-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 18px; margin-bottom: 20px; }
.fld { display: grid; gap: 6px; font-weight: 800; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.fld input, .fld select, .sp-prizes input, .sp-tools select, .ladder input {
  height: 52px; border-radius: 10px; border: 1px solid rgba(232,196,106,.4); background: rgba(0,0,0,.4); color: #fff6df;
  padding: 0 14px; font-size: 22px; font-weight: 700; letter-spacing: 0; text-transform: none; outline: none; }
.fld input:focus, .fld select:focus, .sp-prizes input:focus { border-color: #ffd97a; box-shadow: 0 0 0 3px rgba(255,210,110,.25); }
select option { background: #1b130c; }
.sp-prizes-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; font-size: 18px; color: #dccca4; margin-bottom: 12px; }
.sp-prizes-head > div:first-child { max-width: 760px; line-height: 1.4; }
.sp-tools { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.sp-tools select { height: 44px; font-size: 17px; }
.ladder { font-weight: 700; font-size: 16px; color: #cdbd94; }
.ladder input { height: 44px; width: 86px; font-size: 18px; padding: 0 8px; }
.sp-prizes { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.sp-prizes label { min-width: 0; display: grid; gap: 4px; font-weight: 800; font-size: 12px; letter-spacing: 1px; color: #b9a982; text-align: center; }
.sp-prizes input { width: 100%; min-width: 0; text-align: center; height: 50px; padding: 0 4px; font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .5px; }
.sp-prizes input.bad { border-color: #ff6a5a; background: rgba(120,10,10,.4); }
.sp-sum { margin-top: 16px; font-weight: 700; font-size: 18px; color: #e9dcb8; }
.sp-sum b { color: #fff3cc; }
.sp-err { min-height: 26px; margin-top: 6px; color: #ff8b7e; font-weight: 800; font-size: 18px; }
.sp-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 10px; }
.sp-last { font-size: 16px; color: #bfae86; }
.sp-go { min-width: 460px; }
.mini { height: 42px; padding: 0 16px; border-radius: 10px; cursor: pointer; font-weight: 800; font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
  color: #1b1206; border: 0; background: linear-gradient(180deg, #f4dc96, #c99a3e 60%, #a57a2c); box-shadow: 0 4px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.5); }
.mini:hover { filter: brightness(1.1); }
.mini.warn { background: linear-gradient(180deg, #ff8a80, #c3242c); color: #fff; }

.end-panel { position: absolute; left: 472px; width: 1000px; top: 640px; z-index: 40; padding: 22px 28px; }
.end-panel[hidden] { display: none; }
.ec-title { font-weight: 800; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.ec-row { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; margin: 4px 0; font-weight: 700; font-size: 15px; color: #cdbd94; }
.ec-row code { font: 600 15px/1.3 ui-monospace, Consolas, monospace; color: #fff3d6; word-break: break-all; background: rgba(0,0,0,.35); padding: 5px 9px; border-radius: 6px; }
.ec-ver { min-height: 24px; margin: 8px 0; font-weight: 800; font-size: 17px; }
.ec-ver.ok { color: #9be3a9; } .ec-ver.bad { color: #ff8b7e; }
.ec-btns { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.ec-btns .btn { height: 62px; min-width: 240px; font-size: 28px; margin-left: 12px; }

#hostbar { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; gap: 10px; align-items: center;
  padding: 12px 16px; border-radius: 0 0 16px 16px; background: rgba(14,9,6,.95); box-shadow: 0 0 0 2px #c99a3e, 0 12px 30px rgba(0,0,0,.7); }
#hostbar[hidden] { display: none; }
.hb-vol { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
