/* The scene is unobstructed; status, podium and event feed share the right column. */
#lottery .lottery-layout{grid-template-columns:minmax(0,1fr) var(--side-width,330px);align-items:stretch;gap:18px;margin-inline:auto}
#lottery .lottery-stage{height:var(--scene-height);min-height:0;aspect-ratio:var(--scene-ratio,1.77778);border-radius:16px;background:#171815}
#lottery .lottery-stage canvas{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
#lottery .lottery-side{height:var(--scene-height);min-height:0;display:flex;flex-direction:column;gap:10px;overflow:auto;scrollbar-width:thin;padding-right:3px}
#lottery .lottery-side section,#lottery .lottery-roster-card{border:1px solid #81653d;border-radius:12px;background:linear-gradient(135deg,#252017,#13181a);padding:13px 16px;margin:0;box-sizing:border-box}
#lottery .lottery-side h3{font-size:14px;color:#d7b878;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #7f65334d}
#lottery .lottery-side .lottery-score{position:static;display:grid;grid-template-columns:1fr auto;gap:4px 10px;pointer-events:auto;flex-shrink:0}
#lottery .lottery-score>span{color:#e9d3a6;font-size:14px;font-weight:800}.lottery-side .lottery-score>b{grid-row:1/3;grid-column:2;font-size:clamp(27px,2.3vw,40px);line-height:1.1;color:#ffe3a2}.lottery-score>small{color:#9c9584;font-size:12px}
#lottery .lottery-wave{flex-shrink:0}#lottery .lottery-caption{position:static;background:none;padding:0;text-align:left;font-size:15px;line-height:1.5;font-weight:800;color:#ffe1a2}
#lottery .lottery-events-card{flex:1 0 130px;min-height:120px;overflow:hidden;display:flex;flex-direction:column}
#lottery .colossus-log,#lottery .gather-events{padding:0;margin:0;background:none;border:0;min-height:0;overflow:auto;font-size:12px;line-height:1.55;scrollbar-width:thin}
#lottery .colossus-log>div,#lottery .gather-events>div{display:flex;align-items:flex-start;gap:9px;border-bottom:1px solid #7c6b442e;padding:7px 0;font-weight:500;color:#d7d0bd}
#lottery .colossus-log>div:last-child,#lottery .gather-events>div:last-child{border:0;color:#ffe4ab}
.lottery-side time{font-variant-numeric:tabular-nums;color:#c4a86d;white-space:nowrap;flex-shrink:0;font-size:11px}
#lottery .gather-leaders{flex-shrink:0;background:linear-gradient(135deg,#302719,#161d1b)}#lottery .gather-leaders:empty{display:none}
#lottery .gather-rank{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:4px 8px;padding:8px 0;border-color:#80693d44;align-items:center}
#lottery .gather-rank>b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#826b2e;color:#fff1bb;font-size:14px}
#lottery .gather-rank.rank-2>b{background:#5a6670;color:#e7edf1}#lottery .gather-rank.rank-3>b{background:#805738;color:#f5d6b5}
#lottery .gather-rank>span{font-size:14px;line-height:1.2;font-weight:800;overflow-wrap:anywhere;color:#e9e2d0}
#lottery .gather-rank>strong{font-size:23px;color:#ffdc88;font-variant-numeric:tabular-nums}#lottery .gather-rank>strong small{font-size:10px;margin-left:4px;color:#bcae88}
#lottery .gather-rank>em{grid-column:2/-1;font-size:10px;color:#a8b8a1;font-style:normal}#lottery .rank-1{background:#d9b3590c;border-radius:6px}
#lottery .lottery-roster-card{flex-shrink:0;padding:12px 14px}.lottery-roster-card summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;color:#dfc996;font-size:12px}.lottery-roster-card summary b{font-size:11px;color:#a9a48b}.lottery-roster-card input{width:100%;min-width:0;box-sizing:border-box;margin:10px 0;font-size:12px}.lottery-roster-card .lottery-names{max-height:120px;min-height:0}
#lottery .lottery-setup{margin:16px auto;max-width:1200px;border:1px solid #665039;border-radius:12px;background:#1b1919;overflow:hidden}.lottery-setup>summary{padding:14px 18px;cursor:pointer;color:#e4c58f;font-size:14px;font-weight:800;list-style-position:inside}.lottery-setup[open]>summary{border-bottom:1px solid #665039}
#lottery .lottery-setup .lottery-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;border:0;max-height:none;overflow:visible;border-radius:0;background:none;align-items:end}
#lottery .lottery-panel>label{font-size:12px}.lottery-panel .lottery-teams{grid-column:span 2;align-self:center}.lottery-panel .lottery-source-note{grid-column:span 2}.lottery-panel .sound-controls{grid-column:span 2;margin:0;padding:0;border:0}.lottery-panel .lottery-start{align-self:stretch}.lottery-panel .lottery-exclude{align-self:center;flex-direction:row;align-items:center}
#lottery .lottery-stage:fullscreen,#lottery .lottery-stage.lottery-expanded{height:100dvh;aspect-ratio:auto;min-height:0}
#lottery .lottery-stage:fullscreen canvas,#lottery .lottery-expanded canvas{height:100dvh;width:100vw;max-height:100dvh;object-fit:contain}
@media(max-width:959px){#lottery .lottery-layout{grid-template-columns:minmax(0,1fr);max-width:100%!important}#lottery .lottery-stage{width:100%;height:auto;aspect-ratio:var(--scene-ratio)}#lottery .lottery-side{height:auto;overflow:visible;display:grid;grid-template-columns:1fr 1fr;padding:0;gap:10px}#lottery .lottery-events-card,#lottery .gather-leaders,#lottery .lottery-roster-card{grid-column:1/-1}.lottery-side .lottery-events-card{max-height:230px}#lottery .lottery-setup .lottery-panel{grid-template-columns:1fr 1fr}.lottery-panel .lottery-source-note,.lottery-panel .sound-controls{grid-column:1/-1}#lottery .lottery-side .lottery-score{padding:12px}.lottery-side .lottery-score>b{font-size:28px}.lottery-side .lottery-wave{padding:12px}#lottery .lottery-caption{font-size:13px}}
@media(prefers-reduced-motion:reduce){#lottery *{scroll-behavior:auto}}
