/* Full participations, one timer, larger reference and an arena-wide scratchpad. */
.participation-score-rules{padding-left:18px;margin:12px 0;color:#b6cce4;font-size:12px;line-height:1.85}.participation-score-rules b{color:#a6e7f0}.participant-team-label{color:var(--entrant-color);border:1px solid var(--entrant-color);border-radius:10px;padding:8px 18px;font-size:15px;font-weight:800}.full-participation{position:relative}.full-participation .race-shared{gap:10px}.turn-reference-large{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-height:175px;height:clamp(175px,25vh,275px);flex-shrink:0;width:100%;padding:12px;border:1px solid #796897;border-radius:16px;background:radial-gradient(ellipse at 50% 35%,#3d345c,#22263f);color:#e9e5ff;gap:5px}.turn-reference-large>img{height:calc(100% - 36px);width:100%;object-fit:contain;filter:drop-shadow(0 5px 6px #040a1c55)}.turn-reference-large>span{font-size:14px;font-weight:800}.turn-reference-large small{display:block;text-align:center;font-size:10px;color:#b1c4e0;margin-top:3px;font-weight:500}.participant-live{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 12px;flex-shrink:0}.participant-live>b{grid-row:span 2;font-size:26px;color:#a4eff1;font-variant-numeric:tabular-nums}.participant-live>span{font-size:11px;color:#afc5e4;line-height:1.4}.turn-reference-dialog{width:min(850px,94vw);height:min(850px,90dvh);max-width:94vw;max-height:90dvh;padding:22px;border:1px solid #8b8fc0;border-radius:22px;background:radial-gradient(ellipse,#30304f,#111c34);color:#edf4ff;box-shadow:0 20px 80px #0008;overflow:hidden}.turn-reference-dialog[open]{display:flex;flex-direction:column;gap:15px}.turn-reference-dialog::backdrop{background:#050a1cce}.turn-reference-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:20px}.turn-reference-dialog h2{font-size:26px}.turn-reference-dialog>img{flex:1;min-height:0;width:100%;object-fit:contain}.turn-reference-dialog>p{text-align:center;font-size:12px;color:#a6bcdf}.turn-math{position:absolute;inset:0;z-index:15;display:flex;flex-direction:column;background:linear-gradient(135deg,#18253d,#131d34);border:1px solid #5f87ab;border-radius:20px;padding:16px;gap:14px;min-width:0;min-height:0;box-shadow:0 10px 35px #050a1a99}.turn-math-header{display:flex;align-items:center;gap:18px;justify-content:space-between;flex-shrink:0}.turn-math-header>div{min-width:0;flex:1}.turn-math-header small{display:block;color:#9ec7e8;font-size:11px;line-height:1.5}.turn-math-header h2{font-size:22px;letter-spacing:-.02em}.turn-math-header>b{color:#9de9ef;font-size:25px;font-variant-numeric:tabular-nums}.turn-math-layout{display:grid;grid-template-columns:minmax(210px,25%) minmax(0,1fr);gap:18px;min-height:0;flex:1}.turn-exercise{display:flex;flex-direction:column;gap:14px;min-width:0;min-height:0;overflow:auto;padding-right:4px;scrollbar-width:thin}.turn-equation{font-size:clamp(24px,3vw,44px);font-weight:900;color:#e0efff;line-height:1.4;overflow-wrap:anywhere;letter-spacing:.015em}.turn-answer-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.turn-answer-options .answer{min-height:55px;font-size:30px;padding:10px 5px;min-width:0}.turn-math-feedback{font-size:13px;color:#bed7e8;line-height:1.6}.turn-math-reference{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100px;flex:1;border:1px solid #515c7d;border-radius:12px;background:#1b2a44;padding:10px;color:#a9c6e4;gap:8px}.turn-math-reference>img{height:clamp(60px,16vh,150px);width:100%;object-fit:contain;min-height:0}.turn-math-reference>span{font-size:11px}.turn-scratch-panel{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;gap:10px}.turn-scratch-panel .scratch-heading{display:flex;align-items:center;justify-content:space-between;color:#b3d3ed;gap:12px;min-height:20px}.turn-scratch-panel .scratch-heading h3{font-size:16px}.turn-scratch-panel .scratch-heading span{font-size:11px;color:#8ba6c8}.turn-scratch-panel #turn-scratch-host{min-height:0;height:100%}.turn-scratch-panel .scratch-surface{min-height:0}.turn-scratch-panel .scratch-tools{flex-wrap:wrap}.turn-scratch-panel .drawing-canvas{height:100%;width:100%}.podium-results{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));align-items:start;gap:18px;padding:6px 3px 12px}.podium-place{position:relative;border:1px solid #465b80;min-height:450px}.podium-place.place-1{border-color:#e2c16b;box-shadow:0 0 24px #efc25418;background:linear-gradient(145deg,#333048,#18223a)}.podium-place.place-2{border-color:#b4c6e0}.podium-place.place-3{border-color:#d6a071}.podium-emblem{display:flex;flex-direction:column;align-items:center;gap:8px}.podium-emblem>span{font-size:12px;letter-spacing:1px;color:#bacde3}.podium-crown{height:65px;width:86px;filter:drop-shadow(0 4px 10px #0005)}.crown-1{color:#ffda73}.crown-2{color:#cedff3}.crown-3{color:#e8ad7e}.podium-number{font-size:40px;color:#a9c9e8;font-weight:900}.podium-score{font-size:48px;font-weight:900;color:#dcf7ff;line-height:1.1}.place-1 .podium-score{color:#ffdc85}.podium-score small{display:block;font-size:12px;color:#a8c0dd;margin-top:5px;font-weight:600}.podium-bonuses{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.podium-bonuses>span{font-size:10px;border:1px solid #4c6180;border-radius:8px;padding:6px 8px;color:#b6d7e8;background:#1e2f46}.podium-place .race-win-preview{height:135px;width:100%;margin-top:auto}.podium-explanation{font-size:12px;color:#acbfda;line-height:1.6}.podium-place .turn-member-results{margin-top:auto}.podium-place h2{font-size:23px;line-height:1.2}.podium-place>p{font-size:12px}.podium-results .turn-result{gap:12px}.full-participation .race-needed{min-height:70px}
@media(min-width:1600px){.turn-math{padding:24px;gap:18px}.turn-math-header h2{font-size:29px}.turn-math-header small{font-size:13px}.turn-math-header .btn{min-height:46px;font-size:14px}.turn-math-header>b{font-size:32px}.turn-equation{font-size:46px}.turn-answer-options .answer{min-height:65px;font-size:36px}.turn-exercise>.btn{min-height:45px;font-size:14px}.turn-math-feedback{font-size:15px}.turn-reference-large>span{font-size:18px}.participant-live>b{font-size:33px}.participant-live>span{font-size:14px}.turn-scratch-panel .scratch-heading h3{font-size:21px}.turn-scratch-panel .scratch-tools .btn{min-height:40px;font-size:12px}.turn-scratch-panel .pen-color{width:35px;height:35px}.turn-scratch-panel .scratch-surface{background-size:35px 35px}}
@media(max-width:1100px){.turn-math-layout{grid-template-columns:minmax(180px,26%) minmax(0,1fr);gap:12px}.turn-math{padding:12px;gap:10px}.turn-math-header h2{font-size:18px}.turn-math-header small{font-size:9px}.turn-math-header .btn{font-size:10px;padding:8px}.turn-math-header>b{font-size:22px}.turn-answer-options .answer{font-size:24px;min-height:44px}.turn-exercise{gap:10px}.turn-equation{font-size:27px}.turn-math-feedback{font-size:11px}.participant-live{gap:3px 7px}.participant-live>b{font-size:23px}.participant-live>span{font-size:10px}.turn-reference-large{min-height:145px;height:24vh}.turn-reference-large>span{font-size:12px}}
@media(max-height:650px) and (orientation:landscape){.turn-reference-large{min-height:110px;height:22vh;padding:7px}.turn-reference-large>span{font-size:11px}.turn-reference-large small{font-size:9px}.turn-reference-large>img{height:calc(100% - 27px)}.participant-live>b{font-size:21px}.participant-live>span{font-size:9px}.full-participation .race-shared{gap:6px}.turn-math-header{gap:10px}.turn-math-header h2{font-size:16px}.turn-scratch-panel .scratch-heading{min-height:16px}.turn-scratch-panel .scratch-heading h3{font-size:13px}.turn-scratch-panel .scratch-heading span{font-size:9px}.turn-exercise>.eyebrow{display:none}.turn-math-reference{min-height:60px}.turn-math-reference>img{height:65px}.turn-exercise{gap:8px}.turn-math-feedback{font-size:10px;line-height:1.4}.podium-place{min-height:390px}.participation-score-rules{font-size:11px}}
@media(max-height:460px) and (orientation:landscape){.turn-reference-large{min-height:75px;height:75px;flex-direction:row;padding:6px}.turn-reference-large>img{height:100%;width:50%;max-width:125px}.turn-reference-large>span{font-size:11px}.turn-reference-large small{font-size:8px}.full-participation .race-shared>.btn{min-height:27px;font-size:10px}.participant-live>b{font-size:20px}.participant-live>span{font-size:8px}.full-participation .race-needed{min-height:65px}.turn-math{padding:9px;gap:7px}.turn-math-header h2{font-size:14px}.turn-math-header small{font-size:8px}.turn-math-header .btn{font-size:9px;min-height:28px;padding:6px}.turn-math-header>b{font-size:19px}.turn-math-layout{grid-template-columns:180px minmax(0,1fr);gap:10px}.turn-exercise{gap:6px}.turn-equation{font-size:25px}.turn-answer-options .answer{min-height:34px;font-size:22px;padding:5px}.turn-exercise>.btn{min-height:29px;padding:6px;font-size:10px}.turn-math-reference{min-height:36px;flex-direction:row;padding:5px;gap:4px}.turn-math-reference>img{height:37px;width:55px}.turn-math-reference>span{font-size:8px}.turn-scratch-panel{gap:4px}.turn-scratch-panel .scratch-tools{gap:5px}.turn-scratch-panel .scratch-tools .btn{font-size:8px;min-height:26px;padding:5px}.turn-scratch-panel .pen-color{height:25px;width:25px}.turn-scratch-panel .scratch-widget{gap:5px}.turn-math-feedback{font-size:9px}.turn-reference-dialog{padding:12px}.turn-reference-dialog h2{font-size:18px}}
@media(max-width:700px) and (orientation:portrait){.turn-math{position:fixed;inset:6px;padding:12px;z-index:30;border-radius:16px}.turn-math-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:12px}.turn-exercise{display:grid;grid-template-columns:1fr 1fr;gap:8px;overflow:visible}.turn-exercise>.eyebrow,.turn-math-reference{display:none}.turn-equation{grid-column:1/-1;font-size:28px}.turn-answer-options{grid-column:1/-1}.turn-math-feedback{grid-column:1/-1}.turn-math-header h2{font-size:16px}.turn-math-header small{font-size:9px}.turn-math-header .btn{white-space:normal;max-width:95px;padding:8px}.turn-math-header>b{font-size:19px}.turn-scratch-panel .scratch-heading span{display:none}.turn-reference-large{height:200px;min-height:200px}.turn-reference-dialog h2{font-size:20px}.turn-reference-dialog>header{gap:10px}.turn-reference-dialog .btn{font-size:10px;padding:8px}.podium-place{min-height:400px}}
.turn-answer-options .answer{background:#263d5b;color:#eff6ff;border:1px solid #7497bc;border-radius:12px;font-weight:850;box-shadow:0 3px 0 #0a1529}.turn-answer-options .answer:hover:not(:disabled){background:#355679;border-color:#a5e3ef}.turn-answer-options .answer.correct{background:#28675d;border-color:#8cead0;color:#e1fff7;opacity:1}.turn-answer-options .answer.wrong{background:#573049;border-color:#ce8ba8;color:#f4c7da}.turn-answer-options .answer:disabled:not(.correct){opacity:.45}.turn-reference-large>.participant-reference-art{width:100%;height:calc(100% - 36px);min-height:0;filter:drop-shadow(0 6px 10px #02091466)}.turn-math-reference>.participant-reference-art{width:100%;height:clamp(60px,16vh,150px);min-height:0}
@media(max-height:650px) and (orientation:landscape){.turn-reference-large>.participant-reference-art{height:calc(100% - 27px)}.turn-math-reference>.participant-reference-art{height:65px}}
@media(max-height:460px) and (orientation:landscape){.turn-reference-large>.participant-reference-art{height:100%;width:50%;max-width:125px}.turn-math-reference>.participant-reference-art{height:37px;width:55px}}
