:root { --red:#d33b42; --green:#61d3a6; --ink:#07090c; --panel:#11161d; --line:#28323d; --amber:#ffc95c; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 70% 10%,#17212b 0,#07090c 38%,#030405 100%); color:#eef3f7; font-family:Segoe UI,Arial,sans-serif; }
body::after { content:""; position:fixed; inset:0; pointer-events:none; opacity:.11; background:repeating-linear-gradient(0deg,transparent 0 3px,#fff 4px); }
button,input,select,textarea { font:inherit; }
button { border:1px solid #3a4653; background:#17202a; color:#fff; border-radius:7px; padding:.7rem 1rem; cursor:pointer; }
button:hover { border-color:#7e96aa; background:#202d39; }
button.primary { background:var(--red); border-color:#ef7378; }
button.good { background:#167250; border-color:#61d3a6; }
button.danger { background:#5c1e24; border-color:#c85b62; }
button:disabled { opacity:.45; cursor:not-allowed; }
input,select,textarea { width:100%; background:#090d12; color:#fff; border:1px solid #374452; border-radius:6px; padding:.7rem; }
.shell { width:min(1500px,calc(100% - 32px)); margin:20px auto; position:relative; z-index:1; }
.topbar { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:16px; }
.brand { color:#dfe8ef; letter-spacing:.14em; font-weight:800; } .brand span { color:var(--red); }
.panel { background:rgba(12,17,23,.94); border:1px solid var(--line); border-radius:10px; padding:16px; box-shadow:0 12px 40px #0008; }
.grid { display:grid; gap:16px; }.grid-3 { grid-template-columns:repeat(3,1fr); }.grid-2 { grid-template-columns:1fr 1fr; }
.home { max-width:1050px; margin:8vh auto; }.home h1 { font-size:clamp(2.2rem,7vw,5.5rem); margin:.2em 0; text-align:center; }
.home h1 em { color:var(--red); font-style:normal; }.home-card { min-height:190px; }
.field { display:grid; gap:7px; margin:10px 0; }.field label { color:#9eabb7; font-size:.86rem; }
.row { display:flex; gap:8px; align-items:center; }.row > * { flex:1; }
.badges { display:flex; gap:6px; flex-wrap:wrap; }.badge { border:1px solid #43505d; border-radius:999px; padding:.25rem .55rem; font-size:.78rem; color:#bac6d1; }
.mj-layout { display:grid; grid-template-columns:300px 1fr 300px; gap:14px; }.mj-main { min-height:520px; }
.question-box { border:1px solid var(--line); border-radius:8px; padding:20px; min-height:190px; }.question-box h2 { line-height:1.35; }
.answers { display:grid; gap:8px; }.answer-choice { text-align:left; }
.participant { display:flex; align-items:center; gap:8px; border-bottom:1px solid #202932; padding:8px 0; }.participant strong { flex:1; }.dot { width:9px;height:9px;border-radius:50%;background:#6c7781 }.dot.online { background:var(--green); box-shadow:0 0 9px var(--green); }
.crop-stage { height:360px; background:#050607; border:1px solid #2b3440; display:grid; place-items:center; overflow:hidden; }.crop-stage canvas { max-width:100%; max-height:100%; }
.response { border:1px solid #34414d; border-radius:7px; padding:9px; margin-bottom:8px; }.response.pending { border-left:4px solid var(--amber); }.response.validated { border-left:4px solid var(--green); }.response.refused { border-left:4px solid var(--red); }
.player-shell { max-width:760px; }.scoreline { display:flex; justify-content:space-between; }.choices-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.choice { min-height:72px; font-weight:700; }
.buzzer { width:min(300px,70vw); height:min(300px,70vw); border-radius:50%; font-size:2rem; background:radial-gradient(circle,#f16670,#9d2028); box-shadow:0 0 40px #e64a54; }
.tv { width:100vw; height:100vh; overflow:hidden; background:#05070a; padding:3.2vh 3.8vw; }.tv-grid { height:100%; display:grid; grid-template-rows:90px 1fr 170px; grid-template-columns:1fr 360px; gap:18px; }
.tv-head,.tv-question,.tv-ranking,.tv-banner { border:1px solid #2c3946; background:rgba(11,16,21,.91); }.tv-head { grid-column:1/3; display:flex; align-items:center; justify-content:space-between; padding:0 24px; }.tv-question { padding:24px; }.tv-question h1 { font-size:clamp(2rem,3.4vw,4rem); }.tv-ranking { padding:16px; }.tv-banner { grid-column:1/3; display:flex; align-items:center; justify-content:center; font-size:1.4rem; color:var(--amber); }
.tv .crop-stage { height:min(52vh,560px); }.rec { color:var(--red); }.clock { font-family:monospace; }
.toast { position:fixed; right:20px; bottom:20px; background:#17202a; border:1px solid #3b4a57; padding:12px 16px; border-radius:8px; z-index:10; }
.audio-visualizer { height:260px; display:flex; align-items:center; justify-content:center; gap:7px; }.bar { width:18px; background:var(--red); animation:pulse .7s infinite alternate; }@keyframes pulse{to{height:180px}}
@media(max-width:900px){.grid-3,.mj-layout,.tv-grid,.grid-2{grid-template-columns:1fr}.tv{height:auto;min-height:100vh}.tv-grid{height:auto}.tv-head,.tv-banner{grid-column:1}.mj-layout{grid-template-columns:1fr}.shell{width:calc(100% - 20px)}.choices-grid{grid-template-columns:1fr}}
