/* Shot Clock — komplettes Styling (TV-Bühne, Seitenleiste, Overlays, Podium, Idle-Screen).
   Eingebunden von shotclock.php mit ?v=<Änderungszeit> als Cache-Buster. */
:root {
  --red:     #C41E1E;
  --red-2:   #ff3b3b;
  --red-d:   rgba(196,30,30,.14);
  --gold:    #e8c15a;
  --gold-d:  rgba(232,193,90,.14);
  --green:   #3ddc84;
  --amber:   #ffb84d;
  --bg:      #0b0d10;
  --felt:    #0f2a1c;
  --card:    #15181d;
  --card2:   #1c2026;
  --border:  #262b33;
  --text:    #f4f4f5;
  --muted:   #7c8592;
  --dim:     #4b525c;
  --ring:    min(56vh, 42vw);
  --display: 'Bebas Neue', 'Inter', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(20,70,45,.45) 0%, rgba(11,13,16,0) 65%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
/* Kartensymbole als dezentes Wasserzeichen */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><text x='18' y='48' font-size='34' fill='white'>♠</text><text x='98' y='48' font-size='34' fill='white'>♥</text><text x='18' y='128' font-size='34' fill='white'>♦</text><text x='98' y='128' font-size='34' fill='white'>♣</text></svg>");
}
.app { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* ── Header ── */
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.hdr-l { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.dot.live { background: var(--green); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.brand { font-family: var(--display); font-size: 18px; letter-spacing: 2px; color: var(--muted); white-space: nowrap; }
.brand b { color: var(--red); font-weight: 400; }
.tname { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 10px; border-left: 1px solid var(--border); }
.hdr-r { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.hbtn {
  background: none; border: 1px solid var(--border); border-radius: 7px; padding: 5px 8px; font-size: 14px; line-height: 1;
  color: var(--muted); cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Inter', sans-serif;
}
.hbtn.on    { border-color: var(--green); color: var(--green); }
.hbtn.admin { border-color: var(--red); color: var(--red-2); }
.hbtn.pulse { animation: spulse .4s ease; }
.hbtn-name { font-size: 12px; font-weight: 600; }
@keyframes spulse { 0%{transform:scale(1)} 50%{transform:scale(1.25)} 100%{transform:scale(1)} }

/* ── Main ── */
.main { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 16px; gap: 10px; min-height: 0; overflow: hidden; }
.side { flex-shrink: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; max-height: 44svh; border-top: 1px solid var(--border); background: rgba(0,0,0,.25); }
.side:empty { display: none; }
.panel { padding: 10px 14px; }
.panel + .panel { border-top: 1px solid var(--border); }
.panel.hidden { display: none; }
.ptitle { font-size: 10px; text-transform: uppercase; letter-spacing: 2.5px; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.ptitle small { letter-spacing: 0; text-transform: none; color: var(--dim); }

/* ── Blind-Leiste (Ticker) ── */
.ticker { flex-shrink: 0; border-top: 1px solid var(--border); display: flex; gap: 6px; padding: 7px 12px; overflow-x: auto; scrollbar-width: none; background: rgba(0,0,0,.35); padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
.ticker::-webkit-scrollbar { display: none; }
.ticker.hidden { display: none; }
.tk { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 4px 10px; border-radius: 8px; border: 1px solid transparent; min-width: 64px; color: var(--muted); transition: all .3s; }
.tk small { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; }
.tk b { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); }
.tk.ot b { color: var(--muted); }
.tk.done { opacity: .35; }
.tk.cur { border-color: var(--red); background: var(--red-d); color: var(--red-2); transform: scale(1.06); }
.tk.cur b { color: #fff; }
.tk.brk { border-color: rgba(232,193,90,.35); color: var(--gold); min-width: 46px; }
.tk.brk b { color: var(--gold); }

/* ── State message ── */
.state-msg { text-align: center; color: var(--muted); }
.state-msg .icon { font-size: 44px; margin-bottom: 10px; line-height: 1; }
.state-msg p { font-size: 17px; font-weight: 600; color: var(--text); }
.state-msg small { font-size: 13px; color: var(--muted); margin-top: 5px; display: block; }

/* ── Running: Level + Ring + Clock ── */
.lvl-row { display: flex; align-items: center; gap: 12px; }
.lvl-badge { font-family: var(--display); font-size: clamp(18px, 3.2vmin, 30px); letter-spacing: 3px; padding: 4px 16px 2px; border-radius: 100px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.lvl-badge small { color: var(--muted); font-size: .7em; letter-spacing: 2px; }
.lvl-badge.ot { border-color: rgba(232,193,90,.4); color: var(--gold); }
.lvl-badge.brk { border-color: rgba(232,193,90,.5); color: var(--gold); background: var(--gold-d); }

.ring-wrap { position: relative; width: var(--ring); height: var(--ring); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bg  { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 5; }
.ring .fg  { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .9s linear, stroke .5s; filter: drop-shadow(0 0 6px rgba(196,30,30,.55)); }
.ring-wrap.warning .fg { stroke: var(--amber); filter: drop-shadow(0 0 8px rgba(255,184,77,.6)); }
.ring-wrap.critical .fg { stroke: var(--red-2); filter: drop-shadow(0 0 12px rgba(255,59,59,.8)); }
.ring-wrap.paused .fg { stroke: var(--dim); filter: none; }
.ring-wrap.brk .fg { stroke: var(--gold); filter: drop-shadow(0 0 8px rgba(232,193,90,.55)); }
.clock-box { text-align: center; }
.clock {
  font-family: var(--mono); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  font-size: calc(var(--ring) * .30); color: var(--text); transition: color .4s; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(255,255,255,.08);
}
.clock.warning  { color: var(--amber); }
.clock.critical { color: var(--red-2); animation: crit .5s ease-in-out infinite; }
.clock.paused   { color: var(--muted); }
.clock.brk      { color: var(--gold); }
.clock.bump     { animation: bump .25s ease; }
@keyframes crit { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.08)} 100%{transform:scale(1)} }
.clock-sub { font-size: clamp(10px, 1.6vmin, 14px); color: var(--muted); letter-spacing: 3px; text-transform: uppercase; margin-top: 6px; }
.clock-sub.paused { color: var(--amber); font-weight: 700; }
.clock-sub.brk { color: var(--gold); font-weight: 700; }

.blinds { text-align: center; }
.bl-val { font-family: var(--display); font-size: clamp(38px, 9vmin, 96px); line-height: 1; color: var(--red-2); letter-spacing: 1px; display: inline-flex; align-items: baseline; gap: .18em; text-shadow: 0 0 24px rgba(196,30,30,.35); }
.bl-val .sl { color: var(--dim); font-size: .7em; }
.bl-val.flip { animation: flip .6s cubic-bezier(.2,1.2,.4,1); }
@keyframes flip { 0%{transform:rotateX(90deg);opacity:0} 100%{transform:rotateX(0);opacity:1} }
.bl-lbl { font-size: clamp(9px, 1.4vmin, 12px); color: var(--muted); text-transform: uppercase; letter-spacing: 3px; margin-top: 2px; }
.next-lvl { font-size: clamp(11px, 1.8vmin, 16px); color: var(--muted); display: flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 100px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.next-lvl b { font-family: var(--mono); color: var(--text); }
.next-lvl .brk-tag { color: var(--gold); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; width: min(100%, 720px); }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 6px; text-align: center; min-width: 0; }
.tile .v { font-family: var(--mono); font-size: clamp(15px, 2.8vmin, 26px); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.tile .v small { font-size: .55em; color: var(--muted); font-weight: 400; }
.tile .l { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.gold .v { color: var(--gold); }
.tile.green .v { color: var(--green); }

/* ── Seatdraw ── */
.table-wrap { position: relative; width: min(92%, 620px, calc(var(--ring) * 1.6)); aspect-ratio: 1.55; margin: 0 auto; }
.table-oval {
  position: absolute; inset: 16% 13%; border-radius: 50%;
  background: radial-gradient(ellipse at center, #1f4a30 0%, #123020 70%, #0e2418 100%);
  border: 8px solid #3b2a19; box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 10px 40px rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
}
.table-oval::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); }
.table-oval span { font-family: var(--display); font-size: clamp(14px, 3vmin, 28px); letter-spacing: 6px; color: rgba(255,255,255,.16); }
.seat { position: absolute; transform: translate(-50%,-50%); text-align: center; width: 88px; opacity: 0; }
.seat.show { animation: seatin .55s cubic-bezier(.2,1.3,.4,1) forwards; }
@keyframes seatin { 0%{opacity:0;transform:translate(-50%,-50%) rotateY(90deg) scale(.6)} 100%{opacity:1;transform:translate(-50%,-50%) rotateY(0) scale(1)} }
.seat-av { width: clamp(40px, 8vmin, 64px); height: clamp(40px, 8vmin, 64px); border-radius: 50%; margin: 0 auto 3px; overflow: hidden; background: var(--card2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--muted); box-shadow: 0 4px 14px rgba(0,0,0,.5); position: relative; }
.seat-av img { width: 100%; height: 100%; object-fit: cover; }
.seat-name { font-size: clamp(10px, 1.7vmin, 13px); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; text-shadow: 0 1px 4px #000; }
.seat-num { font-size: 9px; color: var(--muted); letter-spacing: 1.5px; }
.dealer { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #000; font-family: var(--display); font-size: 15px; display: flex; align-items: center; justify-content: center; transform: translate(-50%,-50%) scale(0); box-shadow: 0 2px 8px rgba(0,0,0,.7); border: 2px solid var(--gold); }
.dealer.show { animation: dealerin .5s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes dealerin { 0%{transform:translate(-50%,-50%) scale(0) rotate(-180deg)} 100%{transform:translate(-50%,-50%) scale(1) rotate(0)} }
.seat-actions { display: flex; gap: 10px; justify-content: center; width: min(92%, 460px); flex-wrap: wrap; }
.seat-actions .cbtn { flex: 1; min-width: 120px; }

/* ── Podium ── */
.fw { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.champ { position: relative; z-index: 1; text-align: center; width: 100%; }
.champ-title { font-family: var(--display); font-size: clamp(22px, 5vmin, 46px); letter-spacing: 8px; color: var(--gold); text-shadow: 0 0 20px rgba(232,193,90,.4); margin-bottom: 6px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vmin, 24px); }
.pod { display: flex; flex-direction: column; align-items: center; width: clamp(90px, 22vmin, 220px); opacity: 0; animation: podin .6s cubic-bezier(.2,1.2,.4,1) forwards; }
.pod.p1 { animation-delay: .1s; } .pod.p2 { animation-delay: .5s; } .pod.p3 { animation-delay: .8s; }
@keyframes podin { from{opacity:0;transform:translateY(40px) scale(.7)} to{opacity:1;transform:none} }
.pod-av { position: relative; border-radius: 50%; overflow: visible; background: var(--card2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; color: var(--muted); }
.pod.p1 .pod-av { width: clamp(90px, 22vmin, 220px); height: clamp(90px, 22vmin, 220px); border: 5px solid var(--gold); box-shadow: 0 0 50px rgba(232,193,90,.4); font-size: clamp(30px, 8vmin, 80px); }
.pod.p2 .pod-av { width: clamp(64px, 14vmin, 140px); height: clamp(64px, 14vmin, 140px); border: 4px solid #c0c0c0; font-size: clamp(22px, 5vmin, 50px); }
.pod.p3 .pod-av { width: clamp(64px, 14vmin, 140px); height: clamp(64px, 14vmin, 140px); border: 4px solid #cd7f32; font-size: clamp(22px, 5vmin, 50px); }
.pod-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pod-medal { position: absolute; right: -4%; bottom: -4%; font-size: 40%; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.pod.p1 .pod-medal { font-size: 45%; animation: cupbob 2.2s ease-in-out infinite; }
@keyframes cupbob { 0%,100%{transform:translateY(0) rotate(-6deg)} 50%{transform:translateY(-7px) rotate(6deg)} }
.pod-name { font-weight: 800; margin-top: 10px; line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.pod.p1 .pod-name { font-size: clamp(20px, 4.5vmin, 44px); }
.pod.p2 .pod-name, .pod.p3 .pod-name { font-size: clamp(13px, 2.4vmin, 22px); }
.pod-pay { font-family: var(--mono); color: var(--green); font-weight: 700; margin-top: 4px; font-size: clamp(13px, 2.6vmin, 26px); }
.pod-block { width: 100%; margin-top: 10px; border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: clamp(22px, 5vmin, 48px); color: rgba(255,255,255,.35); }
.pod.p1 .pod-block { height: clamp(40px, 9vmin, 90px); background: linear-gradient(180deg, rgba(232,193,90,.35), rgba(232,193,90,.08)); }
.pod.p2 .pod-block { height: clamp(28px, 6vmin, 60px); background: linear-gradient(180deg, rgba(192,192,192,.28), rgba(192,192,192,.06)); }
.pod.p3 .pod-block { height: clamp(18px, 4vmin, 40px); background: linear-gradient(180deg, rgba(205,127,50,.3), rgba(205,127,50,.06)); }
.bounty-king { margin-top: 12px; font-size: clamp(12px, 2vmin, 18px); color: var(--amber); }
.bounty-king b { color: var(--text); }

/* ── Bustout-Ansage ── */
.announce { position: fixed; inset: 0; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; z-index: 260; padding: 24px; animation: bafade .25s ease; }
.announce.hidden { display: none; }
@keyframes bafade { from{opacity:0} to{opacity:1} }
.an-box { text-align: center; }
.an-av { width: min(220px, 40vmin); height: min(220px, 40vmin); border-radius: 50%; margin: 0 auto 18px; overflow: hidden; background: var(--card2); border: 5px solid var(--red); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: min(80px, 15vmin); font-weight: 700; color: var(--muted); box-shadow: 0 0 60px rgba(196,30,30,.35); animation: anpop .5s cubic-bezier(.2,1.4,.4,1); filter: grayscale(.6); }
@keyframes anpop { from{transform:scale(.4);opacity:0} to{transform:scale(1);opacity:1} }
.an-av img { width: 100%; height: 100%; object-fit: cover; }
.an-name { font-size: clamp(30px, 7vmin, 64px); font-weight: 800; line-height: 1.1; }
.an-sub { font-family: var(--display); font-size: clamp(16px, 3vmin, 28px); color: var(--red-2); letter-spacing: 6px; margin-top: 8px; }
.an-place { font-family: var(--mono); font-size: clamp(16px, 3vmin, 26px); color: var(--muted); margin-top: 12px; }
.an-killer { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 18px 10px 10px; border-radius: 100px; background: var(--card); border: 1px solid var(--border); animation: podin .5s .4s both; }
.an-killer .kav { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--card2); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--muted); }
.an-killer .kav img { width: 100%; height: 100%; object-fit: cover; }
.an-killer .kt { text-align: left; }
.an-killer .kt small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.an-killer .kt b { font-size: 18px; }
.an-killer .kb { font-family: var(--mono); color: var(--gold); font-weight: 700; font-size: 18px; margin-left: 6px; }
.an-prize { margin-top: 12px; font-size: clamp(14px, 2.4vmin, 22px); color: var(--muted); animation: podin .5s .6s both; }
.an-prize b { color: var(--green); font-family: var(--mono); }

/* ── Idle ── */
.idle { width: 100%; max-width: 1100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.icard { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.icard .ptitle { margin-bottom: 10px; }
.cd { display: flex; gap: 8px; justify-content: center; margin: 8px 0 10px; }
.cd div { text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 4px; min-width: 62px; }
.cd b { font-family: var(--mono); font-size: clamp(22px, 4vmin, 34px); font-weight: 800; display: block; line-height: 1; }
.cd small { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.ev-title { font-size: 18px; font-weight: 800; text-align: center; }
.ev-meta { text-align: center; color: var(--muted); font-size: 12px; margin-top: 4px; }
.ev-yes { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.chip { font-size: 11px; padding: 3px 9px; border-radius: 100px; background: rgba(61,220,132,.1); border: 1px solid rgba(61,220,132,.3); color: var(--green); }
.lrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.lrow:last-child { border-bottom: none; }
.lrow .rk { width: 26px; text-align: center; font-size: 16px; flex-shrink: 0; }
.lrow .lav { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--card2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); font-family: var(--mono); font-weight: 700; }
.lrow .lav img { width: 100%; height: 100%; object-fit: cover; }
.lrow .ln { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .ln small { display: block; color: var(--muted); font-weight: 400; font-size: 10px; }
.lrow .lv { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.lv.pos { color: var(--green); } .lv.neg { color: var(--red-2); }
.idle-photo { width: 100%; border-radius: 10px; max-height: min(34vh, 260px); object-fit: contain; background: #000; margin-bottom: 10px; cursor: zoom-in; display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.95); display: flex; align-items: center; justify-content: center; z-index: 500; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 60px rgba(0,0,0,.8); }

/* ── Admin controls ── */
.crow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.cbtn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--card2); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .1s, opacity .2s; user-select: none; font-family: 'Inter', sans-serif; }
.cbtn:active { transform: scale(.96); }
.cbtn:disabled { opacity: .3; pointer-events: none; }
.cbtn.stop   { background: #2a1515; color: var(--red-2); border-color: var(--red); }
.cbtn.go     { background: #152a1a; color: var(--green); border-color: var(--green); }
.cbtn.next   { background: var(--red); color: #fff; border-color: var(--red); }
.cbtn.gold   { background: var(--gold-d); color: var(--gold); border-color: rgba(232,193,90,.4); }
.cbtn.ghost  { background: none; color: var(--muted); }
.cbtn.sm     { padding: 8px 8px; font-size: 12px; }
.lvl-ctl { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lvl-ctl .cbtn { padding: 8px 12px; }
.lvl-ctl .lc { flex: 1; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lvl-ctl .lc b { color: var(--text); }
.brk-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.brk-row .lbl { font-size: 11px; color: var(--muted); flex: 1; }
.bust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.bust-btn { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 10px; background: var(--card2); border: 1px solid var(--border); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; text-align: left; user-select: none; font-family: 'Inter', sans-serif; min-width: 0; }
.bust-btn .bav { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--card); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.bust-btn .bav img { width: 100%; height: 100%; object-fit: cover; }
.bust-btn span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bust-btn:active { transform: scale(.95); }
.bust-btn.confirm { background: rgba(196,30,30,.2); border-color: var(--red); color: var(--red-2); animation: shakeborder .3s ease; }
@keyframes shakeborder { 0%,100%{border-color:var(--red)} 50%{border-color:#ff6666} }
.bust-btn.confirm span.n::after { content: ' — OK?'; font-size: 10px; font-weight: 400; }
.bust-btn.done { opacity: .25; pointer-events: none; text-decoration: line-through; }
.grid-msg { color: var(--muted); font-size: 13px; grid-column: 1/-1; padding: 4px 0; }
.grid-winner { color: var(--green); font-size: 15px; font-weight: 700; grid-column: 1/-1; padding: 6px 0; }
.wide { width: 100%; margin-top: 8px; }

/* ── Killer overlay + Passwort-Modal ── */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 250; padding: 24px; }
.modal.hidden { display: none; }
.mbox { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; width: 100%; max-width: 360px; text-align: center; }
.mbox h3 { font-size: 16px; margin-bottom: 5px; }
.mbox p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.minput { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; color: var(--text); font-family: var(--mono); font-size: 15px; margin-bottom: 10px; outline: none; letter-spacing: 2px; }
.minput:focus { border-color: var(--red); }
.mok { width: 100%; background: var(--red); color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 8px; font-family: 'Inter', sans-serif; }
.mcancel { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 10px; width: 100%; color: var(--muted); font-size: 13px; cursor: pointer; font-family: 'Inter', sans-serif; }
.merr { color: var(--red-2); font-size: 13px; margin-top: 6px; display: none; }

/* ── Payouts / Bounty ── */
.prow { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; border-radius: 8px; margin-bottom: 4px; background: var(--card); border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.prow.top { border-color: rgba(232,193,90,.25); background: var(--gold-d); }
.prow.won { border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.08); }
.prow .pl { display: flex; flex-direction: column; gap: 1px; }
.prow .pp { font-size: 12px; font-weight: 600; }
.prow .pn { font-size: 10px; color: var(--green); font-weight: 500; }
.prow .pa { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--green); }
.prow.bb .pa { color: var(--muted); font-size: 12px; }
.prow.pool { border-style: dashed; }
.prow.pool .pa { color: var(--gold); }
.krow { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.krow:last-child { border-bottom: none; }
.krow .kn { flex: 1; font-weight: 600; }
.krow .kk { font-family: var(--mono); color: var(--amber); font-weight: 700; }

/* ── Flash + Toast ── */
.flash { position: fixed; inset: 0; background: rgba(196,30,30,.18); pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 100; }
.flash.active { opacity: 1; }
.flash.gold { background: rgba(232,193,90,.18); }
.toast { position: fixed; bottom: calc(env(safe-area-inset-bottom) + 16px); left: 50%; transform: translateX(-50%) translateY(16px); background: #262b33; color: #fff; border-radius: 20px; padding: 8px 18px; font-size: 13px; font-weight: 600; opacity: 0; transition: all .25s; pointer-events: none; z-index: 300; white-space: nowrap; border: 1px solid var(--border); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── TV-Modus: nur die Bühne ── */
body.tv .side, body.tv .hbtn:not(.keep), body.tv .tname { display: none; }
body.tv .hdr { border-bottom-color: transparent; }
body.tv { --ring: min(62vh, 46vw); }

/* ── Tablet / TV: nebeneinander ── */
@media (min-width: 900px) {
  .main { flex-direction: row; }
  .stage { padding: 20px 28px; gap: 14px; }
  .side { width: 360px; max-height: none; border-top: none; border-left: 1px solid var(--border); }
  .side:empty { display: none; }
  .cbtn { font-size: 14px; padding: 13px 12px; }
  .prow { padding: 9px 14px; } .prow .pp { font-size: 13px; } .prow .pa { font-size: 15px; }
}
@media (max-width: 899px) {
  :root { --ring: min(70vw, 34svh); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .idle { grid-template-columns: 1fr; }
  .stage { overflow-y: auto; justify-content: flex-start; padding-top: 14px; }
  .podium { gap: 6px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root { --ring: 60vh; }
  .tiles { display: none; }
}

/* ── Split-Bounty: Mehrfachauswahl im Killer-Dialog ── */
.bust-btn.sel { background: rgba(232,193,90,.18); border-color: var(--gold); color: var(--gold); }
.khint { font-size: 11px; color: var(--muted); margin-top: 10px; }
.mok:disabled { opacity: .35; cursor: default; }

/* ── Mystery Bounty: Start-Overlay mit Umschlägen ── */
.my-title { font-family: var(--display); font-size: clamp(30px, 7vmin, 72px); letter-spacing: 6px; color: var(--gold); text-shadow: 0 0 30px rgba(232,193,90,.5); animation: champpop .6s cubic-bezier(.2,1.4,.4,1); }
.my-sub { font-family: var(--mono); font-size: clamp(14px, 2.6vmin, 24px); color: var(--text); margin-top: 8px; }
.my-note { font-size: clamp(12px, 2vmin, 16px); color: var(--muted); margin-top: 18px; max-width: 520px; margin-left: auto; margin-right: auto; }
.env-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 2vmin, 18px); margin: 26px auto 0; max-width: 90vw; perspective: 900px; }
.env { width: clamp(64px, 11vmin, 120px); height: clamp(44px, 7.5vmin, 82px); position: relative; transform-style: preserve-3d; transform: rotateY(0deg); transition: transform .8s cubic-bezier(.4,0,.2,1); }
.env.flip { transform: rotateY(180deg); }
.env .f, .env .b { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; }
.env .f { background: linear-gradient(160deg, #2a2f36, #15181d); border: 1px solid var(--border); color: var(--green); font-size: clamp(14px, 2.6vmin, 24px); }
.env .b { background: linear-gradient(160deg, #3a2f10, #1c1608); border: 1px solid rgba(232,193,90,.5); color: var(--gold); font-size: clamp(22px, 4.5vmin, 42px); transform: rotateY(180deg); box-shadow: 0 0 22px rgba(232,193,90,.25); }
.env .b::before { content: ''; position: absolute; left: 6%; right: 6%; top: 6%; height: 40%; border: 1px solid rgba(232,193,90,.35); border-top: none; clip-path: polygon(0 0, 50% 100%, 100% 0); }

/* ── Mystery Bounty: Schatzkiste beim Kill ── */
.chest { position: relative; width: clamp(150px, 30vmin, 300px); height: clamp(120px, 24vmin, 240px); margin: 24px auto 10px; }
.chest-body { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(180deg, #7a4b1d, #4a2c10); border: 4px solid #2c1a0a; border-radius: 6px 6px 14px 14px; box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 14px 40px rgba(0,0,0,.6); }
.chest-body::before { content: ''; position: absolute; left: 46%; top: -6%; width: 8%; height: 32%; background: #e8c15a; border-radius: 3px; box-shadow: 0 0 10px rgba(232,193,90,.6); }
.chest-lid { position: absolute; left: 0; right: 0; top: 12%; height: 40%; background: linear-gradient(180deg, #8d5a26, #5c3814); border: 4px solid #2c1a0a; border-radius: 40% 40% 6px 6px / 70% 70% 6px 6px; transform-origin: 50% 100%; transition: transform 1s cubic-bezier(.3,1.4,.4,1); z-index: 2; }
.chest.shake { animation: chestshake .9s ease-in-out infinite; }
@keyframes chestshake { 0%,100%{transform:rotate(0) translateX(0)} 20%{transform:rotate(-3deg) translateX(-4px)} 40%{transform:rotate(3deg) translateX(4px)} 60%{transform:rotate(-2deg)} 80%{transform:rotate(2deg)} }
.chest.open .chest-lid { transform: rotateX(-110deg); }
.chest-glow { position: absolute; left: 10%; right: 10%; top: 20%; height: 50%; border-radius: 50%; background: radial-gradient(ellipse, rgba(232,193,90,.95) 0%, rgba(232,193,90,.4) 40%, rgba(232,193,90,0) 70%); opacity: 0; transition: opacity .6s; z-index: 1; }
.chest.open .chest-glow { opacity: 1; animation: glowpulse 1.6s ease-in-out infinite; }
@keyframes glowpulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
.chest-amt { position: absolute; left: 0; right: 0; top: -10%; text-align: center; font-family: var(--mono); font-weight: 800; font-size: clamp(40px, 10vmin, 110px); color: var(--gold); text-shadow: 0 0 30px rgba(232,193,90,.7), 0 4px 10px #000; opacity: 0; transform: translateY(30px) scale(.6); transition: all .7s cubic-bezier(.2,1.4,.4,1); z-index: 3; }
.chest.open .chest-amt { opacity: 1; transform: translateY(-20px) scale(1); }

/* Mystery-Panel */
.my-open { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.my-open span { font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 6px; background: rgba(232,193,90,.12); border: 1px solid rgba(232,193,90,.35); color: var(--gold); }
.my-status { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.my-status b { color: var(--gold); }
