:root {
  color-scheme: dark;
  --bg: #030813;
  --panel: #0b1424;
  --panel-2: #14233a;
  --line: rgba(255, 255, 255, .12);
  --text: #f5f7fb;
  --muted: #9da6b7;
  --gold: #ffd526;
  --gold-2: #f28a00;
  --silver: #e9eef5;
  --arena-blue: #0d58a8;
  --rosa: #ff3ca6;
  --rosa-soft: rgba(255, 60, 166, .22);
  --blau: #22a8ff;
  --blau-soft: rgba(34, 168, 255, .22);
  --danger: #ff665e;
  font-family: Inter, Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif;
}

* { box-sizing: border-box; min-width: 0; }
html, body { min-height: 100%; }
html { overflow-x: hidden; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(26, 111, 217, .55), transparent 39rem),
    linear-gradient(110deg, transparent 0 43%, rgba(255,213,38,.035) 50%, transparent 57%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 5px),
    var(--bg);
}
body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background: conic-gradient(from 198deg at 50% -12%, transparent 0 9deg, rgba(38,130,255,.1) 9deg 12deg, transparent 12deg 23deg, rgba(38,130,255,.07) 23deg 27deg, transparent 27deg 44deg, rgba(255,213,38,.045) 44deg 47deg, transparent 47deg 360deg);
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: auto 0 0;
  height: 42vh;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, rgba(11,89,176,.26), transparent 68%);
}
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; overflow-wrap: anywhere; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
img { max-width: 100%; }

.shell { width: min(1500px, 100%); margin: 0 auto; padding: 18px clamp(14px, 2.5vw, 36px) 42px; }
.private-banner { margin: -4px 0 12px; padding: 8px 12px; border: 1px solid rgba(255,197,47,.45); color: #ffe7a2; background: rgba(255,197,47,.08); text-align: center; font: 800 12px Arial, sans-serif; letter-spacing: .08em; }
.private-banner a { color: var(--gold); }
.live-pill { justify-self: end; padding: 9px 13px; border: 1px solid var(--gold); color: #151009; background: var(--gold); box-shadow: 0 0 24px rgba(255,213,38,.2); font-weight: 1000; letter-spacing: .08em; }
.host-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-bottom: 20px; }
.brand { min-width: 0; }
.eyebrow { margin: 0 0 4px; color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .3em; }
.show-logo { --logo-title-size: clamp(23px, 3.15vw, 50px); position: relative; display: inline-grid; width: min(100%, 370px); min-height: 82px; place-items: center; padding: 13px 28px 15px; isolation: isolate; filter: drop-shadow(0 12px 18px rgba(0,0,0,.58)); }
.show-logo-wings { position: absolute; z-index: -2; inset: 19% 0; clip-path: polygon(0 46%, 17% 4%, 38% 29%, 62% 29%, 83% 4%, 100% 46%, 83% 96%, 62% 71%, 38% 71%, 17% 96%); background: linear-gradient(180deg, #fff 0, #7d8999 31%, #f5f7fa 52%, #586372 74%, #e7ecf3); opacity: .88; }
.show-logo-lockup { position: relative; z-index: 1; display: grid; width: 100%; min-height: 70px; align-content: center; padding: 7px 19px 9px; color: #080b10; background: linear-gradient(165deg, #fff18a 0, var(--gold) 35%, #ffad0a 76%, #ffe36b 100%); clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%); filter: drop-shadow(0 0 1px #fff6c0) drop-shadow(0 4px 0 #8a4b00); text-align: center; text-transform: uppercase; transform: skew(-3deg); }
.show-logo-lockup::before { content: ""; position: absolute; inset: 4px 8px; border: 2px solid rgba(18,18,16,.7); clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%); }
.show-logo-small, .show-logo-title { position: relative; display: block; white-space: nowrap; }
.show-logo-small { margin-bottom: -2px; font: 1000 calc(var(--logo-title-size) * .36)/1 Arial, sans-serif; letter-spacing: .27em; }
.show-logo-title { font: 1000 var(--logo-title-size)/.88 Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif; letter-spacing: -.025em; }
.show-logo-rings { position: absolute; z-index: 3; top: -3px; right: 8%; width: 41px; height: 25px; transform: rotate(-8deg); }
.show-logo-rings i { position: absolute; width: 22px; aspect-ratio: 1; border: 3px solid #fff4bf; border-radius: 50%; box-shadow: 0 0 0 1px #7b5500, 0 2px 5px rgba(0,0,0,.5); }
.show-logo-rings i:first-child { left: 1px; }
.show-logo-rings i:last-child { right: 1px; }
.hero-logo { --logo-title-size: clamp(28px, 8.5vw, 67px); width: min(100%, 520px); min-height: 116px; margin: 7px auto 18px; padding: 17px 26px 20px; }
.hero-logo .show-logo-lockup { min-height: 95px; padding-inline: clamp(18px, 5vw, 34px); }
.hero-logo .show-logo-rings { top: -2px; right: 9%; width: 54px; height: 31px; }
.hero-logo .show-logo-rings i { width: 29px; border-width: 4px; }
.room { color: var(--muted); font: 700 12px/1.3 Arial, sans-serif; letter-spacing: .18em; }
.scoreboard { display: flex; align-items: stretch; gap: 8px; }
.score { position: relative; min-width: 150px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.23); background: linear-gradient(180deg, #101a2a, #02050a 60%); text-align: center; box-shadow: inset 0 0 24px rgba(0,0,0,.8), 0 14px 40px rgba(0,0,0,.24); overflow: hidden; }
.score::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.11), transparent 34%); }
.score.rosa { border-top: 3px solid var(--rosa); }
.score.blau { border-top: 3px solid var(--blau); }
.score small { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .26em; }
.score strong { display: block; font: 900 clamp(42px, 6vw, 78px)/.9 "Arial Narrow", Impact, sans-serif; }
.score.rosa strong { color: var(--rosa); text-shadow: 0 0 20px var(--rosa-soft); }
.score.blau strong { color: var(--blau); text-shadow: 0 0 20px var(--blau-soft); }
.global-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.session-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 8px; padding: 5px 9px; border: 1px solid rgba(255,197,47,.28); background: rgba(255,197,47,.06); font: 700 11px Arial, sans-serif; }
.session-pill strong { color: var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-pill span { color: var(--muted); white-space: nowrap; }

.button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 15px;
  color: var(--text);
  background: linear-gradient(180deg, #26354b, #101827);
  font-weight: 900;
  letter-spacing: .035em;
  cursor: pointer;
  transition: transform .12s, filter .12s, border-color .12s;
}
.button:hover { filter: brightness(1.15); border-color: rgba(255,255,255,.3); }
.button:active { transform: translateY(1px) scale(.99); }
.button:disabled { opacity: .42; cursor: default; }
.button.gold { color: #15100a; border-color: #fff0a1; background: linear-gradient(135deg, #fff39a, var(--gold) 47%, var(--gold-2)); box-shadow: inset 0 1px rgba(255,255,255,.5), 0 5px 18px rgba(242,138,0,.17); }
.button.rosa { border-color: var(--rosa); background: linear-gradient(135deg, #bd176b, var(--rosa)); }
.button.blau { border-color: var(--blau); background: linear-gradient(135deg, #0874c0, var(--blau)); }
.button.both { color: #17110a; border-color: var(--gold); background: linear-gradient(135deg, var(--rosa), var(--gold) 50%, var(--blau)); }
.button.danger { color: #ffaaa5; border-color: rgba(255,102,94,.5); }
.button.secondary { color: #cbd1db; }
.button.big { min-height: 58px; padding: 12px 24px; font-size: clamp(16px, 2vw, 23px); text-transform: uppercase; }
.button.compact { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.button-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.button-row.centered { justify-content: center; }
.icon-button { min-height: 42px; border: 1px solid var(--line); border-radius: 3px; padding: 8px 11px; color: white; background: linear-gradient(#1c2a3e, #0c1421); font-weight: 900; cursor: pointer; }
.icon-button:disabled { opacity: .35; cursor: default; }
.icon-button span { font-size: 12px; }

.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 20px); perspective: 1200px; }
.category-title { margin: 0 0 10px; padding: 8px 6px; color: #080b10; background: linear-gradient(90deg, #f19a00, #ffe45e 50%, #f19a00); box-shadow: 0 5px 16px rgba(0,0,0,.34); text-align: center; font-size: clamp(14px, 1.5vw, 22px); letter-spacing: .08em; text-transform: uppercase; clip-path: polygon(4% 0, 96% 0, 100% 50%, 96% 100%, 4% 100%, 0 50%); }
.tile { width: 100%; height: clamp(82px, 9vw, 128px); margin: 0 0 10px; padding: 0; border: 0; background: transparent; cursor: pointer; perspective: 900px; }
.tile-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.tile.flipped .tile-inner { transform: rotateY(180deg); -webkit-transform: rotateY(180deg); }
.tile.revealing { pointer-events: none; }
.tile.revealing .tile-inner { animation: reveal-tile .65s cubic-bezier(.2,.7,.2,1) both; }
.tile-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid rgba(255,231,118,.75); border-radius: 4px; overflow: hidden; }
.tile-front { color: #080b10; background: linear-gradient(145deg, #fff185 0, var(--gold) 41%, #e78600 100%); box-shadow: inset 0 0 0 4px rgba(20,17,5,.15), inset 0 0 28px rgba(255,255,255,.23), 0 8px 25px rgba(0,0,0,.38); }
.tile-front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.35), transparent 35%), repeating-linear-gradient(0deg, transparent 0 5px, rgba(0,0,0,.035) 5px 6px); }
.points { font: 1000 clamp(34px, 4vw, 66px)/1 Impact, "Arial Narrow", sans-serif; text-shadow: 0 1px #fff1a1; }
.points::after { content: "★"; margin-left: 8px; font-size: .35em; vertical-align: top; }
.tile-back { display: flex; flex-direction: column; gap: 8px; padding: 10px; color: white; background: linear-gradient(145deg, #194f91, #091321 66%); transform: rotateY(180deg); -webkit-transform: rotateY(180deg); font-size: clamp(14px, 1.5vw, 22px); font-weight: 1000; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
.tile-title { overflow-wrap: anywhere; }
.open-badge, .completed-badge, .running-badge { padding: 4px 7px; border-radius: 999px; font: 900 clamp(8px, .72vw, 11px)/1.2 Arial, sans-serif; letter-spacing: .08em; text-shadow: none; }
.open-badge { color: #211806; background: var(--gold); }
.completed-badge { color: #07120b; background: #76f1a0; }
.running-badge { color: #161106; background: var(--gold); animation: status-pulse 1.2s infinite alternate; }
.tile.running .tile-back { border-color: var(--gold); box-shadow: inset 0 0 30px rgba(255,197,47,.16), 0 0 20px rgba(255,197,47,.16); }
.tile.completed { cursor: default; }
.tile.completed .tile-back { border-color: #76f1a0; background: linear-gradient(145deg, #123321, #0b1210 68%); box-shadow: inset 0 0 30px rgba(118,241,160,.12); }
.tile.completed .tile-title { opacity: .78; }
.tile.completed:disabled { opacity: 1; }
.board-footer { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; color: var(--muted); text-align: center; font: 700 12px Arial, sans-serif; letter-spacing: .08em; }
.board-footer p { margin: 0; }

@keyframes reveal-tile {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(180deg); }
}
@keyframes status-pulse { to { filter: brightness(1.28); } }

.game-stage { position: relative; min-height: 66vh; padding: clamp(20px, 4vw, 60px); border: 1px solid rgba(255,213,38,.42); background: radial-gradient(circle at 50% 0, rgba(24,99,191,.28), transparent 46%), linear-gradient(145deg, rgba(15,32,55,.96), rgba(4,8,15,.98)); box-shadow: inset 0 0 90px rgba(0,0,0,.55), 0 25px 70px rgba(0,0,0,.45); overflow: hidden; }
.game-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(116deg, transparent 0 20%, rgba(42,130,235,.08) 20% 21%, transparent 21% 70%, rgba(255,213,38,.055) 70% 71%, transparent 71%), repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.025) 5px 6px); }
.game-content { position: relative; z-index: 1; }
.game-kicker { color: var(--gold); font-weight: 900; letter-spacing: .25em; }
.game-title { max-width: 1100px; margin: 4px 0 12px; font-size: clamp(42px, 7vw, 104px); line-height: .92; text-transform: uppercase; letter-spacing: -.035em; }
.game-description { max-width: 980px; margin: 0 0 24px; color: #d6d9e0; font: 600 clamp(17px, 2vw, 27px)/1.4 Arial, sans-serif; }
.game-toolbar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.winner-panel { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.awarded { color: var(--gold); font-size: 18px; font-weight: 900; text-transform: uppercase; }
.winner-panel.locked { color: var(--muted); }
.winner-panel.locked p:last-child { margin-bottom: 0; font: 600 16px/1.5 Arial, sans-serif; }
.recommendation { max-width: 900px; padding: 12px 15px; border-left: 4px solid var(--gold); background: rgba(255,197,47,.08); font: 600 17px/1.4 Arial, sans-serif; }

.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.brief-card, .decision-card, .control-arena, .result-card, .quiz-arena, .vote-host { border: 1px solid var(--line); background: rgba(7,9,14,.76); box-shadow: 0 14px 40px rgba(0,0,0,.2); }
.brief-card { padding: clamp(16px, 2.3vw, 27px); }
.brief-card ul { display: grid; gap: 10px; margin: 13px 0 0; padding-left: 20px; color: #e0e4ec; font: 600 16px/1.4 Arial, sans-serif; }
.brief-card li::marker { color: var(--gold); }
.decision-card { margin: 16px 0; padding: 18px 22px; border-left: 5px solid var(--gold); }
.setup-gate { margin: 18px 0; padding: clamp(18px, 3vw, 30px); border: 2px solid var(--gold); background: rgba(255,197,47,.08); text-align: center; }
.setup-gate p:not(.eyebrow) { font: 700 17px/1.45 Arial, sans-serif; }
.ready-banner { padding: 10px 14px; color: #9dffc0; border: 1px solid rgba(118,241,160,.45); background: rgba(118,241,160,.07); text-align: center; font-weight: 900; }
.decision-card p:last-child { margin: 5px 0 0; font: 700 clamp(16px, 1.8vw, 21px)/1.4 Arial, sans-serif; }
.control-arena { margin: 18px 0; padding: clamp(18px, 3vw, 35px); text-align: center; }
.control-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.target-chip { padding: 7px 11px; border: 1px solid var(--gold); color: var(--gold); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.show-timer { display: block; margin: 12px auto; color: var(--gold); font: 1000 clamp(68px, 13vw, 160px)/.9 "Arial Narrow", Impact, sans-serif; letter-spacing: -.04em; text-shadow: 0 0 35px rgba(255,197,47,.35); font-variant-numeric: tabular-nums; }
.show-timer.finished { color: var(--danger); animation: timer-pulse .7s infinite alternate; }
.countdown-finish { display: none; margin-top: 22px; }
.countdown-finish.ready { display: block; }
.finish-count { width: min(760px, 100%); margin-top: 20px; }
.phone-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.phone-summary span { padding: 12px; border: 1px solid currentColor; font-weight: 900; }
.phone-summary .rosa { color: var(--rosa); }.phone-summary .blau { color: var(--blau); }
.active-team { font-size: clamp(28px, 5vw, 60px); }.active-team.rosa { color: var(--rosa); }.active-team.blau { color: var(--blau); }
.phone-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.attempt-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.attempt-progress span { padding: 10px; border: 1px solid currentColor; opacity: .48; }
.attempt-progress span.active, .attempt-progress span.done { opacity: 1; }.attempt-progress .rosa { color: var(--rosa); }.attempt-progress .blau { color: var(--blau); }
.attempt-reps { display: block; color: var(--gold); font: 1000 clamp(90px, 15vw, 180px)/.85 Impact, sans-serif; }
.pullup-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.pullup-actions .counter-button.primary { width: auto; min-width: 150px; padding-inline: 18px; font-size: 24px; }
.pullup-total { font-size: clamp(32px, 6vw, 72px); }
.result-heading { margin-top: 22px; }
@keyframes timer-pulse { to { text-shadow: 0 0 42px rgba(255,102,94,.75); } }
.team-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.team-counter { padding: 20px; border: 2px solid; background: #080a0f; }
.team-counter.rosa, .measure-card.rosa { border-color: var(--rosa); }
.team-counter.blau, .measure-card.blau { border-color: var(--blau); }
.team-counter > span { display: block; font-weight: 1000; letter-spacing: .15em; }
.team-counter > strong { display: block; font: 1000 clamp(72px, 12vw, 145px)/.9 Impact, sans-serif; }
.team-counter.rosa > strong { color: var(--rosa); }
.team-counter.blau > strong { color: var(--blau); }
.counter-button { width: 72px; min-height: 62px; margin: 5px; border: 1px solid var(--line); border-radius: 8px; color: white; background: #202633; font-size: 38px; font-weight: 1000; cursor: pointer; }
.counter-button.primary { background: linear-gradient(135deg, #735800, var(--gold)); color: #15100a; }
.counter-button:disabled { opacity: .35; }
.measure-card { display: grid; gap: 15px; padding: 20px; border: 2px solid; text-align: left; background: #080a0f; }
.measure-card h3 { margin: 0; font-size: 24px; text-transform: uppercase; }
.measure-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.measure-inputs label { display: grid; grid-template-columns: 1fr auto; gap: 5px; color: var(--muted); font: 700 12px Arial, sans-serif; text-transform: uppercase; }
.measure-inputs input { grid-column: 1; width: 100%; padding: 10px; border: 1px solid var(--line); color: white; background: #111620; font-size: 22px; }
.measure-inputs label span { grid-column: 2; grid-row: 2; align-self: center; }

.quiz-arena, .result-card, .vote-host { padding: clamp(17px, 3vw, 36px); }
.round-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.round-dots { display: flex; gap: 7px; }
.round-dots span { width: 34px; height: 6px; background: #343944; }
.round-dots span.current { background: var(--gold); box-shadow: 0 0 12px rgba(255,197,47,.55); }
.round-dots span.done { background: #758094; }
.mini-score { display: flex; gap: 8px; }
.mini-score span { padding: 8px 12px; border: 1px solid; font-weight: 800; }
.mini-score .rosa { color: var(--rosa); }.mini-score .blau { color: var(--blau); }
.media-stage { position: relative; display: grid; place-items: center; min-height: 260px; margin: 20px 0; border: 1px solid var(--line); background: radial-gradient(circle at 50% 30%, #283044, #090b10 68%); overflow: hidden; }
.melody-stage { gap: 20px; align-content: center; padding: 28px; text-align: center; }
.melody-stage p { margin: 0; color: var(--muted); font: 600 13px/1.4 Arial, sans-serif; }
.sound-bars { display: flex; align-items: center; gap: 6px; height: 72px; }
.sound-bars i { width: 8px; height: calc(20px + (var(--i) % 5) * 11px); background: linear-gradient(var(--gold), var(--gold-2)); box-shadow: 0 0 14px rgba(255,197,47,.4); }
.plate-stage { padding: clamp(18px, 4vw, 52px); }
.plate-stage img { display: block; width: min(760px, 94%); filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); }
.photo-stage { padding: 16px; }
.photo-stage > span { position: absolute; right: 12px; bottom: 10px; z-index: 2; padding: 5px 8px; color: #14100b; background: var(--gold); font-size: 10px; font-weight: 1000; letter-spacing: .12em; }
.photo-window { width: min(440px, 80vw); aspect-ratio: 1; border: 8px solid white; overflow: hidden; background: #111; box-shadow: 0 18px 50px #000; }
.photo-sprite { width: 100%; height: 100%; background: url('/media/foto-raten-sprite.png') no-repeat; background-size: 300% 200%; transform: scale(1); transition: transform .65s ease; }
.photo-sprite.zoomed { transform: scale(2.5); filter: saturate(.72) contrast(1.16); }
.question-stage span { color: var(--gold); font: 1000 170px/1 Impact, sans-serif; text-shadow: 0 0 35px rgba(255,197,47,.55); }
.quiz-prompt { max-width: 900px; margin: 20px auto; text-align: center; font: 900 clamp(25px, 4vw, 48px)/1.1 Arial, sans-serif; overflow-wrap: anywhere; }
.reveal-answer { display: block; margin: 20px auto; }
.answer-reveal { display: grid; gap: 4px; margin: 20px auto; padding: 18px; border: 1px solid var(--gold); background: rgba(255,197,47,.08); text-align: center; }
.answer-reveal span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.answer-reveal strong { color: var(--gold); font-size: clamp(21px, 3vw, 38px); overflow-wrap: anywhere; }
.mark-grid, .buzz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mark-team { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-left: 4px solid; background: rgba(255,255,255,.04); }
.mark-team.rosa { border-color: var(--rosa); }.mark-team.blau { border-color: var(--blau); }
.mark-button { min-height: 43px; border: 1px solid var(--line); border-radius: 5px; color: white; background: #222733; font-weight: 900; cursor: pointer; }
.mark-button.selected { color: #111; background: #7affab; border-color: #7affab; }
.mark-button.selected.wrong { background: #ff8b84; border-color: #ff8b84; }
.mark-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.round-navigation { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.result-card { text-align: center; }
.result-card h3 { margin: 8px 0; font-size: clamp(30px, 5vw, 60px); }
.result-card p:not(.eyebrow) { color: #d8dce5; font: 600 18px/1.5 Arial, sans-serif; }
.buzz-result { display: grid; gap: 7px; place-items: center; margin: 15px 0; padding: 18px; border: 2px solid; background: #080a0f; text-align: center; }
.buzz-result.rosa { border-color: var(--rosa); }.buzz-result.blau { border-color: var(--blau); }
.buzz-result strong { font-size: 30px; }.buzz-result b { color: var(--gold); font-size: 45px; }

.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(250px, 390px)); gap: 18px; margin: 22px 0; }
.qr-grid.one { grid-template-columns: minmax(250px, 390px); }
.qr-card { padding: 15px; border: 1px solid var(--line); background: #0b0d12; text-align: center; }
.qr-card.rosa { border-top: 4px solid var(--rosa); }
.qr-card.blau { border-top: 4px solid var(--blau); }
.qr-card.vote-qr { border-top: 4px solid var(--gold); }
.qr-card img { display: block; width: min(100%, 240px); aspect-ratio: 1; margin: 0 auto 10px; border: 10px solid white; background: white; }
.qr-card strong { display: block; font-size: 20px; text-transform: uppercase; }
.qr-card a { display: block; margin-top: 8px; overflow-wrap: anywhere; color: var(--muted); font: 12px Arial, sans-serif; }

.map-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 330px); gap: 20px; align-items: start; }
.map-shell { position: relative; width: 100%; border: 2px solid rgba(255,255,255,.25); background: #071521; box-shadow: 0 16px 45px rgba(0,0,0,.45); overflow: hidden; }
.map-viewport { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; touch-action: none; user-select: none; }
.map-wrap { position: absolute; inset: 0; width: 100%; height: 100%; background: #071521 url("/world.jpg") center / 100% 100% no-repeat; transform-origin: 0 0; will-change: transform; touch-action: none; user-select: none; }
.map-wrap.interactive { cursor: crosshair; }
.map-shell.zoomed .map-viewport { cursor: grab; }
.map-shell.zoomed .map-viewport:active { cursor: grabbing; }
.map-zoom-controls { position: absolute; right: 8px; bottom: 8px; z-index: 6; display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; background: rgba(4,7,11,.88); box-shadow: 0 5px 18px rgba(0,0,0,.45); }
.map-zoom-controls button { min-width: 38px; min-height: 36px; border: 1px solid var(--line); border-radius: 5px; color: white; background: #1d2430; font-weight: 1000; cursor: pointer; }
.map-zoom-controls button[data-map-zoom="fit"] { padding-inline: 10px; font-size: 10px; letter-spacing: .08em; }
.map-zoom-controls output { min-width: 48px; color: var(--gold); font: 900 11px Arial, sans-serif; text-align: center; }
.map-pin { position: absolute; width: clamp(18px, 2.5vw, 34px); height: clamp(18px, 2.5vw, 34px); border: 4px solid white; border-radius: 50% 50% 50% 0; transform: translate(-50%, -100%) rotate(-45deg) scale(var(--pin-scale, 1)); transform-origin: 50% 100%; box-shadow: 0 4px 14px #000; }
.map-pin::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: #fff; }
.map-pin.rosa { background: var(--rosa); }
.map-pin.blau { background: var(--blau); }
.map-pin.target { width: 28px; height: 28px; background: var(--gold); border-color: #201600; z-index: 3; }
.map-side { padding: 18px; border: 1px solid var(--line); background: rgba(8,10,15,.8); }
.target-name { margin: 0 0 5px; font-size: clamp(25px, 3vw, 42px); text-transform: uppercase; }
.status-list { display: grid; gap: 8px; margin: 20px 0; }
.team-status { display: flex; justify-content: space-between; padding: 10px; border-left: 4px solid; background: rgba(255,255,255,.04); }
.team-status.rosa { border-color: var(--rosa); }
.team-status.blau { border-color: var(--blau); }
.distance { font-size: clamp(22px, 3vw, 42px); font-weight: 1000; }
.select-label { display: grid; gap: 6px; color: var(--muted); font: 700 11px Arial, sans-serif; text-transform: uppercase; }
.place-picker { width: 100%; min-height: 48px; padding: 9px 42px 9px 12px; border: 1px solid var(--line); border-radius: 6px; color: white; background-color: #141924; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 20px,calc(100% - 12px) 20px; background-size: 6px 6px; background-repeat: no-repeat; appearance: none; }
.place-picker:disabled { opacity: .6; }
.round-banner { display: flex; justify-content: space-between; gap: 14px; margin: 15px 0 10px; padding: 11px 14px; border: 1px solid var(--gold); background: rgba(255,197,47,.08); }
.round-banner strong { color: var(--gold); }.round-banner span { color: var(--muted); font: 700 13px Arial, sans-serif; text-align: right; }
.map-result { margin-top: 10px; padding: 16px; border: 1px solid var(--line); background: #080a0f; }
.map-result h3 { margin: 4px 0 12px; font-size: clamp(23px, 3vw, 38px); text-transform: uppercase; }
.map-result > p:last-child { color: var(--muted); font: 600 14px/1.4 Arial, sans-serif; }
.distance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.distance-grid span { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border-left: 4px solid; background: rgba(255,255,255,.04); }
.distance-grid .rosa { border-color: var(--rosa); }.distance-grid .blau { border-color: var(--blau); }
.distance-grid .rosa strong { color: var(--rosa); }.distance-grid .blau strong { color: var(--blau); }

.vote-count { display: inline-grid; place-items: center; min-width: 180px; min-height: 150px; margin: 18px 0; border: 1px solid var(--gold); background: #080a0f; }
.vote-count strong { display: block; color: var(--gold); font: 1000 72px/1 Impact, sans-serif; }
.vote-count span { color: var(--muted); font: 900 12px Arial, sans-serif; letter-spacing: .2em; }
.vote-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 28px 0; }
.vote-choice { min-height: 170px; border: 2px solid var(--gold); color: white; background: linear-gradient(145deg, #252b38, #10131a); font-size: clamp(28px, 6vw, 58px); font-weight: 1000; cursor: pointer; }
.vote-choice.selected { color: #15100a; background: var(--gold); }
.vote-choice small { display: block; margin-bottom: 8px; font-size: 15px; letter-spacing: .2em; }
.vote-question { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px; align-items: center; margin: 0 0 25px; }
.vote-question span { display: grid; place-items: center; width: 45px; aspect-ratio: 1; border-radius: 50%; color: #15100a; background: var(--gold); font-weight: 1000; }
.vote-question strong { min-height: 64px; display: grid; place-items: center; padding: 12px; border: 1px solid var(--line); font-size: clamp(20px, 3vw, 36px); text-align: center; overflow-wrap: anywhere; }
.guess-status, .guess-reveal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; }
.guess-status span, .guess-reveal span { padding: 13px; border: 1px solid; background: rgba(255,255,255,.04); }
.guess-status .rosa, .guess-reveal .rosa { color: var(--rosa); }.guess-status .blau, .guess-reveal .blau { color: var(--blau); }
.secret-status { display: grid; gap: 9px; margin-top: 20px; padding: 20px; border: 1px solid var(--gold); background: rgba(255,197,47,.08); text-align: center; }
.secret-status strong { color: var(--gold); font-size: 22px; }.secret-status span { font-weight: 800; }.secret-status small { color: var(--muted); }
.privacy-note, .screen-wait { padding: 14px 16px; border: 1px solid rgba(255,197,47,.35); color: #e7dcae; background: rgba(255,197,47,.07); font: 700 15px/1.45 Arial, sans-serif; text-align: center; }
.prediction-form { display: grid; gap: 18px; margin: 25px 0; padding: clamp(18px, 4vw, 34px); border: 1px solid var(--gold); background: rgba(255,197,47,.06); }
.prediction-form label { display: grid; grid-template-columns: 1fr minmax(100px, 180px) auto; gap: 10px; align-items: center; font: 800 18px/1.3 Arial, sans-serif; }
.prediction-form input { min-height: 58px; padding: 10px; border: 1px solid var(--gold); color: white; background: #080a0f; font-size: 30px; text-align: center; }
.vote-deadline { display: block; margin: 10px 0; color: var(--gold); font: 1000 42px Impact, sans-serif; }
.bars { display: grid; gap: 14px; max-width: 900px; margin: 25px 0; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 220px) 1fr 70px; gap: 12px; align-items: center; font-size: 18px; font-weight: 900; }
.bar-track { height: 36px; background: #080a0f; border: 1px solid var(--line); }
.bar-fill { height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .5s; }

.login, .client-shell { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login-card { position: relative; width: min(650px, 100%); padding: clamp(25px, 5vw, 56px); border: 1px solid rgba(255,213,38,.55); background: linear-gradient(145deg, rgba(12,31,57,.97), rgba(4,8,15,.98)); box-shadow: 0 30px 90px #000, inset 0 0 70px rgba(27,101,191,.13); text-align: center; overflow: hidden; }
.login-card::before { content: ""; position: absolute; inset: -35%; pointer-events: none; background: repeating-conic-gradient(from 10deg at 50% 37%, rgba(50,137,243,.09) 0 3deg, transparent 3deg 13deg); -webkit-mask-image: radial-gradient(circle at 50% 37%, #000, transparent 62%); mask-image: radial-gradient(circle at 50% 37%, #000, transparent 62%); }
.login-card > * { position: relative; z-index: 1; }
.pin-input { width: 100%; padding: 15px; border: 1px solid var(--gold); border-radius: 6px; color: white; background: #05070a; font-size: 30px; text-align: center; letter-spacing: .5em; }
.error { color: #ff8b84; font: 700 14px Arial, sans-serif; }
.client-stage { width: min(1300px, 100%); }
.client-stage.narrow { width: min(850px, 100%); }
.client-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.client-title { margin: 0; font-size: clamp(34px, 7vw, 72px); line-height: .95; text-transform: uppercase; }
.team-badge { padding: 8px 13px; border: 2px solid; font-weight: 1000; letter-spacing: .14em; }
.team-badge.rosa { color: var(--rosa); border-color: var(--rosa); }
.team-badge.blau { color: var(--blau); border-color: var(--blau); }
.scan-again { width: min(650px, 100%); padding: 45px 24px; border: 2px solid var(--danger); background: #170b0c; text-align: center; }
.scan-again h1 { font-size: clamp(36px, 8vw, 74px); text-transform: uppercase; }
.pad-lock { width: 100%; min-height: 65px; margin-top: 12px; }
.judge-stage { text-align: center; }
.judge-count { display: block; margin: 25px 0; font: 1000 clamp(120px, 28vw, 260px)/.8 Impact, sans-serif; }.judge-count.rosa { color: var(--rosa); }.judge-count.blau { color: var(--blau); }
.judge-valid { width: 100%; min-height: 180px; border: 3px solid currentColor; border-radius: 12px; color: white; font: 1000 clamp(38px, 10vw, 78px)/1 Impact, sans-serif; cursor: pointer; }.judge-valid.rosa { background: var(--rosa); }.judge-valid.blau { background: var(--blau); }
.judge-valid:disabled { opacity: .4; }
.team-buzzer { width: min(520px, 90vw); aspect-ratio: 1; border: 10px solid white; border-radius: 50%; color: white; font: 1000 clamp(70px, 18vw, 150px)/1 Impact, sans-serif; cursor: pointer; box-shadow: inset 0 -25px 50px rgba(0,0,0,.35), 0 25px 70px rgba(0,0,0,.55); }.team-buzzer.rosa { background: var(--rosa); }.team-buzzer.blau { background: var(--blau); }.team-buzzer:active { transform: scale(.96); }
.client-wait { padding: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.04); text-align: center; font: 700 17px Arial, sans-serif; }
.centered-text { text-align: center; }

dialog { width: min(520px, calc(100% - 28px)); border: 1px solid var(--gold); padding: 0; color: white; background: var(--panel); }
dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.dialog-card { padding: 25px; }
.dialog-card h2 { margin-top: 0; font-size: 35px; text-transform: uppercase; }
.score-field { display: grid; grid-template-columns: 1fr 160px; align-items: center; gap: 15px; margin: 12px 0; font-size: 24px; font-weight: 1000; }
.score-field input { width: 100%; padding: 10px; border: 1px solid currentColor; color: white; background: #06080c; font-size: 28px; }
.dialog-card > p:not(.eyebrow) { color: #cfd4de; font: 600 15px/1.5 Arial, sans-serif; }
.dialog-field { display: grid; gap: 7px; margin: 14px 0; color: #d9dee8; font: 800 13px Arial, sans-serif; }
.dialog-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; color: white; background: #06080c; }
.danger-label { color: #ffaaa5; }
.rosa-label { color: var(--rosa); }
.blau-label { color: var(--blau); }
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; width: max-content; max-width: calc(100vw - 28px); transform: translate(-50%, 20px); padding: 10px 16px; border: 1px solid var(--gold); border-radius: 4px; color: #15100a; background: var(--gold); font-weight: 900; opacity: 0; pointer-events: none; transition: .2s; overflow-wrap: anywhere; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .host-header { grid-template-columns: 1fr auto; }
  .global-actions { grid-column: 1 / -1; justify-content: center; }
  .map-panel { grid-template-columns: 1fr; }
  .game-title { font-size: clamp(40px, 9vw, 82px); }
}

@media (max-width: 720px) {
  .shell { padding: 12px 10px 30px; }
  .host-header { display: flex; flex-direction: column; align-items: stretch; }
  .brand { text-align: center; }
  .scoreboard { justify-content: center; }
  .score { min-width: 0; flex: 1; }
  .board { grid-template-columns: 1fr 1fr; }
  .tile { height: 88px; }
  .tile-back { gap: 5px; padding: 7px; font-size: clamp(11px, 3vw, 16px); }
  .game-stage { padding: 18px 13px; }
  .brief-grid, .team-control-grid, .mark-grid, .buzz-grid, .phone-summary { grid-template-columns: 1fr; }
  .attempt-progress { grid-template-columns: 1fr 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .vote-buttons { grid-template-columns: 1fr; }
  .vote-choice { min-height: 120px; }
  .bar-row { grid-template-columns: 90px 1fr 45px; }
  .round-header, .round-banner { align-items: stretch; flex-direction: column; }
  .round-banner span { text-align: left; }
  .vote-question { grid-template-columns: auto 1fr; }
  .show-timer { font-size: clamp(58px, 18vw, 100px); }
  .winner-panel .button { flex: 1 1 calc(50% - 9px); }
  .icon-button span { display: none; }
  .board-footer { flex-direction: column; }
}

@media (max-width: 460px) {
  .shell { padding-inline: 7px; }
  .score strong { font-size: 44px; }
  .score { padding-inline: 8px; }
  .global-actions .button { flex: 1 1 42%; padding-inline: 8px; font-size: 12px; }
  .game-title { font-size: 38px; }
  .game-description { font-size: 16px; }
  .game-toolbar .button { flex: 1 1 40%; font-size: 11px; }
  .measure-inputs, .guess-status, .guess-reveal, .distance-grid { grid-template-columns: 1fr; }
  .round-navigation .button { flex: 1; padding-inline: 8px; }
  .winner-panel .button { flex-basis: 100%; }
  .session-pill { display: grid; text-align: center; }
  .session-pill strong { white-space: normal; }
  .photo-window { width: min(300px, 82vw); }
  .bar-row { grid-template-columns: 72px 1fr 30px; gap: 7px; font-size: 13px; }
  .client-head { align-items: flex-start; flex-direction: column; }
  .prediction-form label { grid-template-columns: 1fr auto; }
  .prediction-form input { grid-column: 1; }
  .hero-logo { min-height: 92px; padding: 12px 12px 15px; }
  .hero-logo .show-logo-lockup { min-height: 75px; padding-inline: 12px; }
  .show-logo-rings { transform: scale(.82) rotate(-8deg); transform-origin: top right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
