/* 2026-09-19 refinement. Original classroom data and scoring remain server-owned. */
.school-brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.school-brand .school-logo{width:205px;max-height:72px}.school-brand>span{display:none;font-size:8px;line-height:1.65;letter-spacing:.8px;color:#526c85}.school-brand strong{color:#123f70;font-size:11px;letter-spacing:2px}.app-header{padding:20px 4vw}.logo small{letter-spacing:.4px}.hero-title{font-size:clamp(36px,4.1vw,58px)}
.dice-stage-card{background:radial-gradient(ellipse at 50% 38%,#245b94 0%,#143a66 38%,#071d38 100%);min-height:635px;isolation:isolate;border:1px solid #254b72;box-shadow:0 20px 50px #1032521c}.dice-stage-card:before{content:'';position:absolute;inset:0;z-index:-1;background-image:radial-gradient(#d3e6fa25 .8px,transparent .8px);background-size:25px 25px;mask-image:linear-gradient(transparent,#000,transparent);pointer-events:none}.dice-stage-card .card-title{margin-bottom:0;font-size:26px;letter-spacing:-.8px}.dice-stage-card .card-title small{letter-spacing:1px;color:#acc5df;margin-top:10px}.dice-stage-card .stage-top{margin-bottom:20px}.orbit,.spark{display:none}.stage-top .section-label{font-size:9px;letter-spacing:1.8px;color:#a4c1df}.icon-button{border-color:#7296bb66;background:#ffffff06;font-size:10px;border-radius:8px;min-height:36px}.draw-theatre{height:235px;flex-shrink:0;position:relative;width:100%;display:flex;align-items:center;justify-content:center;perspective:1000px}.stage-halo{position:absolute;width:250px;height:250px;border-radius:50%;background:radial-gradient(ellipse,#63a8e72b,transparent 68%);top:-8px}.stage-platform{position:absolute;width:250px;height:72px;bottom:25px;background:radial-gradient(ellipse,#5587b244 0%,#37639322 45%,transparent 72%);border:1px solid #79b5ef44;border-radius:50%;box-shadow:0 0 50px #5a9cdb11,inset 0 0 25px #7eaddf11}.stage-platform:after{content:'';position:absolute;inset:10px 25px;border:1px solid #81b8ed25;border-radius:50%}.theatre-caption{position:absolute;bottom:0;color:#8dafd0;font:10px Arena;letter-spacing:4px}.dice-stage-card .dice-container{margin:0;position:relative;width:132px;height:132px;top:-15px;filter:drop-shadow(0 30px 16px #010e2570)}.dice{width:108px;height:108px;transform:rotateX(-22deg) rotateY(32deg) rotateZ(-6deg)}.face{width:108px;height:108px;border:1px solid #adc6df;border-radius:17px;background:linear-gradient(140deg,#fff 5%,#f4f8ff 45%,#c3d8ef);box-shadow:inset 0 0 0 4px #ffffff66,inset -7px -8px 16px #7198ba33}.front{transform:translateZ(54px)}.back{transform:rotateY(180deg) translateZ(54px)}.right{transform:rotateY(90deg) translateZ(54px)}.left{transform:rotateY(-90deg) translateZ(54px)}.top{transform:rotateX(90deg) translateZ(54px)}.bottom{transform:rotateX(-90deg) translateZ(54px)}.pip{background:#16446f;box-shadow:inset 1px 2px 3px #001a4290,0 1px 1px #fff}.dice-stage-card[data-phase=rolling] .stage-halo{animation:halo-breathe 1s ease-in-out infinite}.dice-stage-card[data-phase=countdown] .dice-result-msg{color:#f1d393}.dice.rolling{animation:stage-tumble 1.15s linear infinite}.dice-stage-card .dice-result-msg{font-size:22px;line-height:1.35;margin:15px 0 18px;min-height:58px;max-width:100%;overflow-wrap:anywhere}.dice-result-msg small{line-height:1.6;font-size:11px}.draw-progress{width:150px;height:2px;background:#7293b433;overflow:hidden;margin-top:18px}.draw-progress span{display:block;height:100%;width:0;background:#e4be70;transition:width .3s}.dice-stage-card[data-phase=countdown] .draw-progress span{width:15%}.dice-stage-card[data-phase=rolling] .draw-progress span{width:45%}.dice-stage-card[data-phase=reveal] .draw-progress span{width:75%}.dice-stage-card[data-phase=complete] .draw-progress span{width:100%}.roll-cta{background:linear-gradient(110deg,#f5d998,#dbb160);border:1px solid #ffdfa2;box-shadow:0 4px 0 #947037,0 16px 28px #00152d55;border-radius:12px;font-size:22px;min-height:60px;width:min(100%,340px);padding:13px 20px}.roll-cta:disabled{opacity:.65}.draw-rule{font-size:10px;line-height:1.85;margin:18px 0 0}.draw-spotlight{z-index:2;margin-top:24px;width:100%;border-top:1px solid #97b5d42b;padding:20px 6px 0;text-align:left}.draw-spotlight>span{color:#e4be70;font:10px Arena;letter-spacing:2px}.draw-spotlight strong{display:block;color:#fff;font:600 29px Arena;margin:7px 0;overflow-wrap:anywhere}.draw-spotlight small{color:#b9cee2;font-size:12px;overflow-wrap:anywhere;display:block}.reveal-panel{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;max-height:275px;margin-top:12px}.reveal-panel:empty{display:none}.reveal-card{margin:0;padding:12px;background:#ffffff07;border-color:#688caf44;border-radius:10px;min-width:0;gap:8px}.reveal-card strong{font-size:12px;overflow-wrap:anywhere}.reveal-card b{font-size:23px}.queue-item{gap:12px}.queue-item strong,.queue-item em,.wait-team{overflow-wrap:anywhere;min-width:0}.queue-item:first-child{border-color:#acc5df;background:#f3f8ff}.queue-item:first-child .queue-num{background:#174c81;color:#fff}.queue-dice-badge{flex-shrink:0}.queue-item em{line-height:1.5}.wait-team span{flex-shrink:0}
.rubric-overview{padding:25px 28px;margin-top:0}.rubric-overview-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.rubric-overview h2{font:600 24px Arena;margin:4px 0 5px;color:#103a66}.rubric-overview p{color:#697d92;font-size:12px;margin:6px 0}.grading-mix{text-align:right;flex-shrink:0}.grading-mix strong{font:600 16px Arena;color:#194d7f}.rubric-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:22px;border-top:1px solid #e2eaf3}.rubric-summary-item{padding:22px 18px 5px;border-right:1px solid #e2eaf3;min-width:0}.rubric-summary-item:first-child{padding-left:0}.rubric-summary-item:last-child{border-right:0}.rubric-summary-item .category-number{color:#8398ad;font:11px Arena;display:block}.rubric-summary-item b{font:600 36px Arena;letter-spacing:-1.5px;display:block;color:#194e80;margin:10px 0}.rubric-summary-item h3{font:600 14px Arena;margin:0;line-height:1.5}.rubric-summary-item p{font-size:11px;line-height:1.6}.rubric-summary-bar{height:3px;background:#e7eef6;margin-top:16px}.rubric-summary-bar span{display:block;background:#3478b6;height:100%}.app-footer-text{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1320px;margin:0 auto;padding:24px 30px 35px;border-top:1px solid #dce5ef;text-align:left;color:#73869c}.footer-signature{display:flex;align-items:center;gap:13px}.footer-mark{display:flex!important;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border:1px solid #a9bfd4;border-radius:50%;font:500 13px Arena;color:#255b88!important;margin:0!important}.footer-signature strong{font-size:13px;letter-spacing:1px;color:#224a70}.footer-signature small{display:block;font-size:10px;color:#748a9f;margin-top:5px}.app-footer-text p{font-size:10px;line-height:1.8;margin:0}.app-footer-text p span{margin:0 3px}.focus-mode .draw-theatre{height:260px}.focus-mode .dice-stage-card .dice-container{margin:0;scale:1.2}.focus-mode .draw-complete .draw-theatre{height:190px}.focus-mode .draw-complete .dice-container{scale:.9}.focus-mode .draw-spotlight{max-width:850px;text-align:center}.focus-mode .reveal-panel{grid-template-columns:repeat(4,minmax(0,1fr));max-height:280px}.focus-mode .draw-complete .card-title{margin-top:40px}
@keyframes stage-tumble{0%{transform:translateY(0) rotateX(-22deg) rotateY(32deg) rotateZ(-6deg)}50%{transform:translateY(-18px) rotateX(338deg) rotateY(212deg) rotateZ(174deg)}100%{transform:translateY(0) rotateX(698deg) rotateY(392deg) rotateZ(354deg)}}@keyframes halo-breathe{50%{opacity:.5;scale:1.1}}
@media(min-width:1600px){.school-brand>span{display:block}}@media(max-width:1120px){.school-brand .school-logo{width:168px}.app-header{gap:14px}.nav-btn{padding:10px 12px}.logo{font-size:18px}.stage-top{gap:12px}.stage-top .section-label{font-size:8px}}
@media(max-width:850px){.rubric-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.rubric-summary-item:nth-child(2){border-right:0}.rubric-summary-item:nth-child(3){padding-left:0}.app-footer-text{flex-direction:column;align-items:center;text-align:center}.rubric-overview-head{flex-direction:column;gap:10px}.grading-mix{text-align:left}.focus-mode .reveal-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.app-header{padding:18px 18px 12px;gap:14px}.school-brand{order:1;margin-left:auto}.school-brand .school-logo{width:133px;max-height:48px}.logo{font-size:15px;gap:8px;max-width:calc(100% - 147px)}.logo small{font-size:9px;line-height:1.5;margin-top:4px}.brand-icon{width:30px;height:36px;font-size:21px;flex-shrink:0;border-radius:9px}.brand-icon span{font-size:15px}.nav-btn{font-size:12px;padding:9px 8px}.nav-btn small{font-size:10px}.dice-stage-card{min-height:610px}.dice-stage-card .card-title{font-size:23px}.draw-theatre{height:220px}.dice-stage-card .stage-top{margin-bottom:22px}.stage-top>div{display:flex;gap:8px}.reveal-panel{grid-template-columns:1fr 1fr}.rubric-overview{padding:22px 20px}.rubric-summary-item{padding:18px 12px 10px}.rubric-summary-item b{font-size:32px}.rubric-overview h2{font-size:22px}.rubric-summary-item h3{font-size:13px}.footer-signature strong{font-size:12px}.footer-signature small{font-size:9px}.app-footer-text{padding:24px 16px}.focus-mode .draw-complete .draw-theatre{height:180px}.focus-mode .dice-stage-card .stage-top{top:18px;left:18px;right:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.evaluation-category{border:1px solid #dbe5ee;border-radius:16px;background:#fff;margin:0 0 22px;overflow:hidden}.evaluation-title{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;background:#f4f8fc;border-bottom:1px solid #e0e9f2}.evaluation-title>div{display:flex;align-items:center;gap:14px}.evaluation-index{font:12px Arena;color:#728fa9}.evaluation-title h3{font:600 21px Arena;margin:0}.evaluation-title h3 small{display:block;font:12px var(--font-body);color:#64809a;margin-top:6px}.evaluation-title>b{font:600 32px Arena;letter-spacing:-1px;color:#1b5688}.evaluation-title>b small{font-size:16px;margin-left:2px}.criteria-details{padding:0 22px}.criteria-details>summary{cursor:pointer;color:#5d7791;font-size:11px;padding:17px 0}.criteria-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.criterion{background:#f8fafc;border:1px solid #e3eaf2;border-radius:10px;padding:16px;min-width:0;transition:background .2s,border-color .2s}.criterion-title{display:flex;justify-content:space-between;gap:5px;align-items:flex-start;color:#405e7b}.criterion-title strong{font:600 13px Arena}.criterion-title strong small{display:block;font:11px var(--font-body);margin-top:4px;color:#8190a0}.criterion-title>b{font:600 12px Arena;white-space:nowrap}.criterion p{font-size:12px;line-height:1.65;color:#465b70;margin:15px 0 0}.criterion p.criterion-zh{font-size:11px;color:#728294;line-height:1.7;margin-top:10px}.criterion.selected{background:#edf5fe;border-color:#6298c7;box-shadow:inset 0 3px #2b70aa}.criterion[data-level=unsatisfactory].selected{background:#fff7ef;border-color:#bc956d;box-shadow:inset 0 3px #bc956d}.evaluation-input{padding:18px 24px;display:flex;align-items:center;gap:25px;border-top:1px solid #e6edf4;background:#fbfcfe}.score-entry{display:flex;align-items:center;gap:10px;flex-shrink:0}.score-entry label{font-size:11px;color:#627a90}.score-entry input[type=number]{width:78px;min-height:48px;text-align:center;font:600 23px Arena;background:white;padding:8px}.score-entry>span{font-size:11px;color:#8da0b1}.score-slider{flex:1;min-width:70px}.score-slider input{width:100%;accent-color:#2367a2;cursor:pointer}.score-slider .untouched{opacity:.35}.score-slider>div{display:flex;justify-content:space-between;font:10px Arena;color:#9aabba}.weighted-score{min-width:110px;text-align:right}.weighted-score>span{font-size:10px;color:#738ba1}.weighted-score strong{display:block;font:600 26px Arena;color:#225a89;margin-top:4px}.weighted-score strong small{font-size:11px;color:#8ba0b3}.score-total{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;background:#edf5fc;border:1px solid #ccdfef;border-radius:14px;padding:20px 24px;margin-bottom:18px}.score-total strong{font-size:14px;color:#214e76}.score-total div>small{display:block;font-size:11px;color:#6b87a1;margin-top:7px}.score-total>b{font:600 34px Arena;color:#195385}.score-total>b small{font:12px Arena;color:#8198ad}.score-total>p{flex-basis:100%;font-size:10px;color:#738ba0;line-height:1.7;margin:15px 0 0;border-top:1px solid #d9e6f2;padding-top:12px}.score-receipt{padding:14px 18px;border:1px solid #b8d9c8;background:#eff9f3;color:#2d7050;border-radius:10px;font-size:13px}.progress-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.grading-progress .card-title{margin:0}#prof-unlocked-panel>.teacher-grid{margin-bottom:24px}#prof-unlocked-panel>.teacher-grid>.card{width:100%}#prof-unlocked-panel>.teacher-grid .admin-control-section{display:inline-flex;vertical-align:top;flex-direction:column;margin-right:35px;max-width:100%}#prof-unlocked-panel>.teacher-grid .card-title{margin-bottom:0}#prof-score-form{margin-top:16px}#tab-student .grid-2col{max-width:1120px}button:disabled{cursor:not-allowed}.draw-spotlight .spotlight-order{display:block;font:11px Arena;color:#e4be70;letter-spacing:2px}
@media(max-width:900px){.criteria-columns{gap:8px}.criterion{padding:12px}.criterion-title{flex-direction:column;gap:8px}.evaluation-input{gap:14px}.evaluation-title h3{font-size:19px}.score-entry{gap:7px}.score-entry label{max-width:44px;line-height:1.6}.weighted-score{min-width:85px}}
@media(max-width:720px){.evaluation-title{padding:18px 16px;gap:12px}.evaluation-title h3{font-size:17px}.evaluation-title>b{font-size:27px}.evaluation-title>div{gap:9px}.criteria-details{padding:0 16px}.criteria-columns{grid-template-columns:1fr}.criterion{padding:15px}.criterion-title{flex-direction:row}.criterion p{font-size:12px}.evaluation-input{padding:16px;flex-wrap:wrap;gap:14px}.score-entry{flex:1}.score-entry label{max-width:none}.score-slider{order:3;flex-basis:100%}.weighted-score{min-width:70px}.score-total{padding:18px 16px}.score-total strong{font-size:12px}.score-total>b{font-size:28px}.score-total>p{font-size:9px}.evaluation-category{margin-bottom:16px}.grading-progress{padding:22px 16px}.progress-heading{gap:10px}.progress-heading .btn{font-size:10px;padding:9px}.grading-progress .card-title{font-size:20px}.criterion.selected{box-shadow:inset 3px 0 #2b70aa}.rubric-question-block{padding:0}}

.queue-item{animation:none}.stage-top>div{display:flex;gap:6px}
