/* Show identity: printed examination sheets meet a live broadcast desk. */
:root {
  --bg: #171715; --panel: #22221f; --panel-2: #1b1b18; --line: #3b3b34;
  --text: #f2f0e7; --muted-ui: #aaa99c; --green: #e8f279; --green-soft: #30341e;
  --red: #ff5144; --red-soft: #42231f; --yellow: #e8f279; --radius: 3px;
}
body { font-family: 'Segoe UI', Arial, sans-serif; }
[hidden] { display: none !important; }
button, .button-link { border-radius: 2px; font-weight: 650; transition: background .18s, color .18s, transform .18s; }
button { min-height: 42px; background: #30302a; }
button:hover:not(:disabled), .button-link:hover { filter: none; background: #45453b; transform: translateY(-1px); }
button.primary { background: var(--green); color: #202215; border-color: var(--green); }
button.primary:hover:not(:disabled) { background: #f4ffa0; }
button.danger { color: #ffaca2; background: #35221e; border-color: #6a3c33; }
button.danger:hover:not(:disabled) { background: #573026; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
input, select, textarea { border-radius: 2px; background: #191916; border-color: #4b4b40; padding: 12px; color: var(--text); }
input:focus, select:focus { border-color: var(--green); }
input[type=range] { accent-color: var(--green); }
input[type=color] { height: 42px; padding: 4px; }
input[type=file] { font-size: 11px; padding: 8px; }
input::file-selector-button { background: #39392e; color: var(--text); border: 0; padding: 7px; margin-right: 8px; }
label { color: #c7c6b8; font-weight: 600; }
.stack { gap: 14px; }
.app-shell { max-width: 1920px; margin: auto; padding: 0 28px 32px; }
.topbar { min-height: 94px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.brand h1 { font-size: 19px; letter-spacing: -.6px; }
.brand p, .eyebrow { font: 10px ui-monospace, Consolas, monospace; letter-spacing: .16em; color: var(--muted-ui); }
.top-actions { gap: 10px; }
.show-code { margin-left: 14px; padding-left: 20px; border-left: 1px solid var(--line); }
.show-code strong { color: var(--green); font-size: 26px; }
.status-pill { border-radius: 2px; border: 0; background: #2c2c26; font: 10px ui-monospace, Consolas, monospace; padding: 6px 8px; }
.status-pill::before { content: ''; width: 5px; height: 5px; background: currentColor; }
.status-pill.ok { color: #dce985; background: #30341e; }
.status-pill.bad { color: #ffada1; background: #3d241f; }
.status-pill.warn { color: #e7cf91; background: #38301f; }
.control-heading { display: flex; justify-content: space-between; align-items: end; padding: 28px 0 30px; }
.control-heading h2 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -.06em; line-height: 1; margin: 10px 0 0; font-weight: 750; }
.control-heading h2 span { color: var(--green); }
.control-heading p { color: var(--muted-ui); font-size: 12px; line-height: 1.7; margin: 0; }
.dashboard { grid-template-columns: minmax(235px,.8fr) minmax(390px,1.4fr) minmax(280px,1fr); gap: 20px; margin: 0; }
.column { gap: 20px; }
.panel { border-radius: 3px; background: var(--panel); border-color: #39392f; }
.panel-head { min-height: 49px; padding: 12px 16px; align-items: center; background: #282822; }
.panel-head h2 { font-size: 12px; font-weight: 700; }
.panel-head .subtle { font: 10px ui-monospace, Consolas, monospace; text-align: right; }
.panel-body { padding: 16px; }
.dashboard > .column:nth-child(2) > .panel:first-child { border-top: 3px solid var(--green); }
.round-box { border: 0; padding: 2px 0 14px; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; }
.round-box strong { font-family: Impact, 'Arial Narrow', sans-serif; font-size: 46px; line-height: 1; color: var(--green); }
.question-label { font: 9px ui-monospace, Consolas, monospace; letter-spacing: .13em; margin-bottom: 6px; }
.question-current { background: #edece1; color: #23231e; border: 0; border-radius: 2px; padding: 20px; gap: 19px; position: relative; }
.question-current::after { content: 'NUR REGIE'; position: absolute; top: 20px; right: 16px; color: #79796d; font: 8px monospace; letter-spacing: .12em; }
.question-current .question-label, .question-current .subtle { color: #68685c; }
.question-display { font-size: clamp(20px, 1.65vw, 28px); font-weight: 750; letter-spacing: -.04em; line-height: 1.25; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-display { background: #ddded0; color: #424638; border-radius: 0; border-left: 2px solid #7a8556; }
.wait-item, .participant-card { border-radius: 2px; background: #1b1b18; border-color: #3d3d33; padding: 14px; }
.participant-card.offline { opacity: .55; }
.life-hearts { color: var(--red); }
.life-hearts .dead { color: #626052; }
.life-hearts { display: flex; gap: 7px; }
.life-hearts svg { width: 25px; height: 25px; fill: #fa5269; stroke: #a92442; stroke-width: .8; filter: drop-shadow(0 2px 2px #0005); }
.life-hearts .heart-shine { fill: none; stroke: #ffd3dd; stroke-width: 1.5; stroke-linecap: round; }
.life-hearts .dead svg { fill: #35352e; stroke: #646456; filter: none; }
.life-hearts .dead .heart-shine { display: none; }
.answer-controls { margin-top: 10px; }
.elimination-dialog { width: min(460px,calc(100vw - 32px)); border: 1px solid #6b3b32; border-top: 4px solid #ff5144; border-radius: 5px; background: #22221f; color: #f2f0e7; padding: 28px; box-shadow: 0 30px 100px #0009; }
.elimination-dialog::backdrop { background: #080908bc; backdrop-filter: blur(5px); }
.elimination-dialog h2 { font-size: 32px; letter-spacing: -.05em; margin: 10px 0 16px; }
.elimination-dialog p { color: #c7c4b7; line-height: 1.65; margin-bottom: 24px; }
.elimination-dialog button { min-height: 48px; }
.elimination-dialog .danger { background: #d54032; color: white; border-color: #d54032; }
.media-preview, .overlay-preview-wrap { border-radius: 2px; border-color: #454538; }
.media-preview-placeholder { color: #8d8d7b; background: #141411; font: 11px monospace; }
.obs-status-box { background: #1b1b17; border-radius: 2px; border-color: var(--line); line-height: 1.6; }
.button-link { border-radius: 2px; color: var(--green); }
.toast { background: #eeede2; color: #22231d; border-radius: 2px; border-left: 4px solid #a9bc51; animation: toast-arrive .3s ease both; }
.toast.bad { border-left-color: var(--red); }
@keyframes toast-arrive { from { opacity: 0; transform: translateX(25px); } to { opacity: 1; transform: translateX(0); } }

/* The entrance is a poster and a backstage check-in sheet. */
html:has(.participant-page), body.participant-page { height: auto; overflow: auto; }
.participant-page .join-wrap { min-height: 100svh; grid-template-columns: minmax(420px,.9fr) minmax(0,1.1fr); padding: 0; align-items: stretch; background: #eeeae0; }
.participant-page .join-card { width: 100%; max-width: 640px; justify-self: center; align-self: center; padding: 38px 54px; background: transparent; border: 0; border-radius: 0; color: #22221e; }
.join-brand { font: 10px ui-monospace, Consolas, monospace; letter-spacing: .15em; color: #655f54; padding-bottom: 20px; border-bottom: 1px solid #ccc6b9; }
.join-card h1 { font-size: clamp(38px,4vw,62px); line-height: .98; letter-spacing: -.07em; margin: 25px 0 16px; font-weight: 800; }
.join-card h1 em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.07em; }
.join-card .muted { color: #6a645a; max-width: 310px; line-height: 1.6; font-size: 13px; }
.join-card label { color: #615c52; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.join-card input, .join-card select { background: #f6f3eb; color: #28261f; border-color: #c5bfb1; border-radius: 0; min-height: 44px; }
.join-card input:focus, .join-card select:focus { border-color: #bd3529; }
.join-card :focus-visible { outline-color: #bd3529; }
.join-card #code { font: 22px ui-monospace, Consolas, monospace; letter-spacing: .3em; }
.join-card #joinForm { grid-template-columns: 1fr 1fr; gap: 18px; }
.join-card .device-details, .join-card button[type=submit] { grid-column: 1 / -1; }
.join-card .device-details { border: 0; background: transparent; border-top: 1px solid #ccc6b9; border-radius: 0; }
.join-card .device-options { padding: 16px 0 0; }
.join-card .subtle { color: #777164; font-size: 10px; text-transform: none; letter-spacing: 0; }
.join-card button.primary { background: #23231f; color: #f4f0e5; border-color: #23231f; min-height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.join-card button.primary:hover { background: #b73629; border-color: #b73629; }
.join-card button.primary span { font-size: 23px; font-weight: 400; }
.join-card .inline-status { padding: 0; border: 0; border-radius: 0; color: #777164; font: 11px ui-monospace, Consolas, monospace; }
.join-card .inline-status.ok { color: #54652a; }
.join-card .inline-status.bad { color: #b22f25; }
.guest-preview-shell { margin: 20px 0; border-radius: 2px; border-color: #c4bcab; max-height: 240px; }
.guest-preview-shell::after { content: 'DEIN AUFTRITT / KAMERA-CHECK'; position: absolute; left: 12px; bottom: 10px; font: 9px monospace; letter-spacing: .1em; color: #f5f0e4; padding: 6px 8px; background: #28251edb; pointer-events: none; }
.guest-preview-placeholder { color: #a9a491; background: #25251f; font: 12px monospace; }
.join-poster { position: relative; width: 100%; justify-self: stretch; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 40px; background: #191a16; color: #efecdf; min-height: 100svh; overflow: hidden; }
.poster-top { display: flex; justify-content: space-between; border-bottom: 1px solid #efecdf40; padding-bottom: 16px; font: 10px ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; z-index: 1; }
.poster-title { position: relative; font-family: Impact, 'Arial Narrow', sans-serif; font-size: clamp(75px,9.4vw,190px); line-height: .88; letter-spacing: -.025em; padding: 52px 0 100px; z-index: 1; }
.poster-title span { color: #e8f279; }
.poster-bottom { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-top: 18px; border-top: 1px solid #efecdf40; z-index: 1; }
.poster-bottom p { font-size: clamp(18px,2vw,30px); line-height: 1.2; letter-spacing: -.04em; margin: 0; }
.poster-bottom > small { font: 9px ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.join-card { animation: sheet-arrive .65s cubic-bezier(.22,1,.36,1) both; }
.poster-title { animation: poster-reveal .85s cubic-bezier(.22,1,.36,1) .08s both; }
@keyframes sheet-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes poster-reveal { from { clip-path: inset(100% 0 0 0); transform: translateY(25px); } to { clip-path: inset(0); transform: none; } }
.participant-card.regie-life-hit { animation: regie-hit .8s ease both; }
.participant-card.regie-life-restored { animation: regie-restore .8s ease both; }
@keyframes regie-hit { from { border-color: #ff5144; box-shadow: inset 4px 0 #ff5144; background: #48271f; } to { border-color: #3d3d33; box-shadow: inset 0 0 #ff5144; background: #1b1b18; } }
@keyframes regie-restore { from { border-color: #e8f279; box-shadow: inset 4px 0 #e8f279; } to { border-color: #3d3d33; box-shadow: inset 0 0 #e8f279; } }
#showQuestionBtn.is-live { box-shadow: inset 0 0 0 2px #59622d; }
#kickedScreen.join-wrap { grid-template-columns: 1fr; background: #e44837; }
#kickedScreen .join-card { border-top: 2px solid #25231c; }
#kickedScreen h1 { font-size: 60px; }
@media (min-width: 1600px) { .join-card { padding: 64px 80px; } }
@media (max-width: 1200px) { .dashboard { grid-template-columns: minmax(230px,.8fr) minmax(350px,1.2fr); } .dashboard > .column:last-child { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); } .topbar { align-items: flex-start; flex-direction: column; } .top-actions { flex-wrap: wrap; } }
@media (max-width: 850px) { .participant-page .join-wrap { grid-template-columns: 1fr; } .join-poster { min-height: 460px; grid-row: 1; padding: 24px; } .poster-title { font-size: clamp(72px,17vw,130px); padding: 32px 0 65px; } .participant-page .join-card { padding: 32px 28px; } .join-card h1 { font-size: 50px; } .dashboard { grid-template-columns: 1fr; } .dashboard > .column:last-child { grid-column: auto; grid-template-columns: 1fr; } .dashboard > .column:nth-child(2) { grid-row: 1; } .app-shell { padding: 0 16px 24px; } .control-heading p { display: none; } }
@media (max-width: 420px) { .join-card #joinForm, .device-grid-guest { grid-template-columns: 1fr; } .top-actions { gap: 6px; } .show-code { margin-left: 0; padding-left: 8px; } .show-code strong { font-size: 20px; } .brand h1 { font-size: 15px; } .import-row { grid-template-columns: 1fr; } .question-current::after { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }

.phase-strip { border-top: 1px solid var(--line); padding: 12px 0 18px; font: 11px ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.finale-panel { border-top: 3px solid var(--green); }
.finale-instruction { margin: 0; font-size: 13px; line-height: 1.6; color: #ceccbb; }
.finale-question-picker { display: grid; gap: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); }
.finale-pick { display: flex; align-items: start; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); cursor: pointer; line-height: 1.4; }
.finale-pick:last-child { border-bottom: 0; }
.finale-pick input { width: 17px; height: 17px; padding: 0; margin: 3px 0 0; accent-color: var(--green); flex-shrink: 0; }
.finale-pick > span { display: grid; gap: 5px; }
#finaleCandidates button { padding: 12px; overflow-wrap: anywhere; min-width: 0; }
#finaleCandidates small { display: block; font: 10px ui-monospace, Consolas, monospace; margin-top: 6px; }
.finale-grades { overflow-x: auto; }
.finale-grades table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.finale-grades th { font: 10px ui-monospace, Consolas, monospace; text-align: left; padding: 10px 4px; color: var(--muted-ui); overflow-wrap: anywhere; }
.finale-grades th:first-child { width: 42%; }
.finale-grades td { padding: 7px 4px; border-top: 1px solid var(--line); }
.finale-grades td button { width: 100%; text-align: left; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finale-grades select { font-size: 11px; padding: 8px 3px; min-height: 34px; }
.finale-grades tr.current { background: #303226; }
.finale-grades select:disabled { opacity: .65; }
.finale-summary { padding: 14px; background: #303226; border-left: 2px solid var(--green); line-height: 1.6; font-size: 13px; }
#finaleCurrentQuestion::after { display: none; }
#finaleCorrectBtn[aria-pressed=true], #finaleWrongBtn[aria-pressed=true] { outline: 2px solid var(--text); outline-offset: 2px; }
@media (max-width: 420px) { .finale-grades th:first-child { width: 34%; } .finale-grades select { font-size: 10px; } .poster-top { font-size: 9px; } .poster-bottom { flex-direction: column; align-items: start; } }
