:root{font-family:Arial,Helvetica,sans-serif;color:#777;background:#fff;font-size:14px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px}button,select,input{font:inherit}button{cursor:pointer}a{color:#1699e1;text-decoration:none}a:hover{text-decoration:underline}.topbar{height:39px;background:#282925;color:#ddd;display:flex;align-items:center;gap:24px;padding:0 16px;white-space:nowrap;overflow:auto}.topbar a{color:#ddd;font-size:16px}.top-spacer{flex:1}.login-line{height:21px;background:#d2d6dd;text-align:right;color:#242424;font-size:12px;padding-right:8px;line-height:21px}.brandbar{height:113px;background:linear-gradient(118deg,#e4e6ed 0%,#d8dce4 44%,#c9d9df 100%);position:relative;display:flex;align-items:center;justify-content:space-between;overflow:hidden;padding:0 12px}.brandbar:before,.brandbar:after{content:"";position:absolute;inset:auto;opacity:.24;pointer-events:none}.brandbar:before{width:65%;height:120%;left:20%;top:-25%;background:linear-gradient(135deg,transparent 30%,#fff 31%,#fff 41%,transparent 42%);transform:skewX(-18deg)}.brandbar:after{width:44%;height:160%;right:-8%;top:-30%;background:#eef5f7;clip-path:polygon(40% 0,100% 0,70% 100%,0 100%)}.brand,.shortcuts{position:relative;z-index:1}.brand{display:flex;align-items:center;gap:14px;color:#a33b75;min-width:330px}.brandmark{display:block;width:88px;height:88px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff 0 13%,#e9e6ec 52%,#c6c8d0 100%);box-shadow:0 0 7px #fff;position:relative;overflow:hidden}.brandmark:before{content:"";position:absolute;width:62px;height:68px;border-radius:70% 20% 80% 40%;left:8px;top:22px;background:linear-gradient(150deg,#dc6491,#823a75);transform:rotate(-23deg)}.brandmark span{position:absolute;width:55px;height:22px;background:#fff;left:10px;top:20px;border-radius:50%;transform:rotate(32deg)}.brandname{font-size:49px;letter-spacing:-4px;font-weight:bold;line-height:1}.brandname small{display:block;color:#40414a;letter-spacing:0;font-size:16px;margin-left:129px;margin-bottom:-5px}.shortcuts{display:flex;gap:17px;align-items:center}.shortcuts button{border:0;background:none;color:#3e4446;padding:0;display:flex;align-items:center;flex-direction:column;gap:8px;min-width:63px;font-size:12px}.circle{height:57px;width:57px;border-radius:50%;background:#f3f6f7;box-shadow:0 4px 6px #8b9297;display:grid;place-items:center;font-size:34px;font-weight:300;color:#727b7b;position:relative}.icon-message{color:#bd7b9f}.circle em{position:absolute;bottom:-5px;right:-6px;background:#ed0023;color:white;border-radius:50%;font-size:12px;font-style:normal;width:25px;height:25px;display:grid;place-items:center}.shortcuts button:hover .circle{transform:translateY(-2px)}main{max-width:1600px;margin:auto;padding:36px 26px 50px}.game-panel{background:#252c33;border-radius:13px;color:#fff;min-height:108px;padding:16px 20px;display:flex;align-items:center;gap:26px;box-shadow:0 9px 24px #1d24301d;margin-bottom:23px}.game-heading{display:flex;align-items:center;gap:12px;min-width:205px}.game-icon{display:grid;place-items:center;background:#a8ce00;color:#34400a;border-radius:13px;width:41px;height:41px;font-size:22px}.game-heading h1{font-size:18px;margin:0 0 5px}.game-heading p{font-size:11px;color:#b5bdc2;max-width:170px;margin:0;line-height:1.3}.game-mission{flex:1;min-width:225px}.eyebrow{font-size:10px;letter-spacing:.12em;color:#a8ce00;font-weight:bold}.game-mission strong{display:block;font-size:15px;margin:5px 0}.game-mission small{color:#b5bdc2;font-size:11px}.game-stats{display:flex;align-items:center;gap:17px}.game-stats>div{display:flex;flex-direction:column;align-items:center;min-width:42px}.game-stats b{font-size:19px;color:#e2f0b1;white-space:nowrap}.game-stats span{font-size:10px;color:#b5bdc2}.start-button,.primary{background:#a5cc00;color:#263000;border:0;border-radius:8px;font-weight:700;padding:11px 15px;white-space:nowrap}.start-button:hover,.primary:hover{background:#b9df0b}.lesson{background:#fff}.section-title{height:26px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#e7e7e7,#efefef);margin-bottom:18px}.section-title h2{font-size:14px;padding:0 0 0 0;margin:0;font-weight:700}.section-actions{display:flex;gap:23px;align-self:stretch}.section-actions button{border:0;color:white;background:#94c500;min-width:100px;padding:0 19px;clip-path:polygon(0 0,100% 0,95% 100%,5% 100%);font-size:14px}.section-actions button:hover{background:#82ae00}.section-actions button:nth-child(2){min-width:175px}.section-actions button:nth-child(3){min-width:195px}.class-info{display:flex;align-items:flex-start;gap:14px;margin:0 0 18px;min-height:71px;line-height:1.65}.class-info p{margin:0}.people-icon{font-size:25px;font-weight:bold;line-height:.6;color:#b2b2b2;min-width:60px;text-align:center;padding-top:7px}.controls{display:flex;align-items:center;gap:12px;margin-bottom:10px;flex-wrap:wrap;min-height:28px}.controls label{white-space:nowrap}.controls input{vertical-align:middle;margin:0 3px 0 0}.controls .disabled{color:#aaa}.help{display:inline-grid;place-items:center;border-radius:50%;background:#777;color:white;font-weight:bold;font-size:11px;width:16px;height:16px;margin-left:3px}.control-spacer{flex:1}.controls select{border:1px solid #c5c5c5;border-radius:5px;background:linear-gradient(#c9c9c9,#e5e5e5);padding:4px 22px 4px 6px;color:#222;margin-left:4px;min-width:165px}.table-shell{border:1px solid #d8d8d8;border-radius:5px;overflow-x:auto;background:#eee;padding-bottom:24px}.grades-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1080px;table-layout:fixed;color:#787878}.grades-table col.c-expand{width:7.5%}.grades-table col.c-number{width:4.5%}.grades-table col.c-name{width:26%}.grades-table col.c-add{width:7.5%}.grades-table col.c-grades{width:13%}.grades-table col.c-average{width:6%}.grades-table col.c-period{width:3.5%}.grades-table th,.grades-table td{border-right:3px solid #fff;border-bottom:1px solid #dedede;height:37px;padding:4px 11px;font-weight:normal}.grades-table th{text-align:center;background:#e9e9e9;color:#4d4d4d;height:27px}.grades-table thead tr:first-child th{height:25px}.grades-table thead tr:first-child th.group-head{background:linear-gradient(#ddd,#d8d8d8);border:1px solid #ccc;border-radius:4px;padding:1px}.grades-table tbody tr:nth-child(4n+1),.grades-table tbody tr:nth-child(4n+2){background:#f2f2f2}.grades-table tbody tr:nth-child(4n+3),.grades-table tbody tr:nth-child(4n+4){background:#ededed}.grades-table tbody tr.mission-target{box-shadow:inset 4px 0 #a5cc00}.grades-table td:nth-child(1),.grades-table td:nth-child(4),.grades-table td:nth-child(7),.grades-table td:nth-child(10),.grades-table td:nth-child(12){text-align:center}.grades-table td:nth-child(2),.grades-table td:nth-child(6),.grades-table td:nth-child(9),.grades-table td:nth-child(11){text-align:right}.grades-table td:nth-child(5),.grades-table td:nth-child(8){white-space:nowrap;overflow:hidden}.grades-table .student-name{white-space:nowrap}.info-play{display:inline-grid;place-items:center;border:1.5px solid #a1a1a1;color:#8d8d8d;width:16px;height:16px;font-size:10px;border-radius:50%;vertical-align:middle;margin-left:8px;background:#f8f8f8}.round-plus{border:0;border-radius:50%;background:#777;color:white;width:16px;height:16px;padding:0;line-height:16px;font-size:15px;font-weight:bold}.round-plus:hover{background:#a4c800}.add-grade{width:50px;height:29px;border:1px solid #d5d5d5;border-radius:6px;background:linear-gradient(white,#dedede);color:#777}.add-grade:hover{border-color:#a5cc00;background:#eafbaf;color:#334000}.grade-box{display:inline-grid;place-items:center;min-width:26px;height:24px;padding:0 4px;margin-right:7px;color:#111;font-weight:bold;font-size:15px;cursor:default}.grade-box.homework,.category-key .homework{background:#daa520}.grade-box.task,.category-key .task{background:#ff1493}.grade-box.quiz,.category-key .quiz{background:#adff2f}.empty-grade{white-space:nowrap}.details-row td{padding:10px 20px!important;text-align:left!important;background:#fafafa}.details-content{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.details-content b{margin-right:6px}.details-content .grade-box{margin-right:1px}.details-meta{font-size:11px;color:#888;margin-right:15px}.legend{padding-top:24px;font-size:12px}.legend h2{font-size:14px;font-weight:normal;margin:0 0 13px}.legend-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:40px;row-gap:10px;max-width:850px;margin:0 0 29px 12px}.category-key{display:flex;gap:48px;margin:24px 0 40px}.category-key span{display:flex;align-items:center;gap:10px}.category-key i{display:inline-block;width:18px;height:18px}.instructions{max-width:900px;background:#f5f7f0;border-left:4px solid #a5cc00;border-radius:5px;padding:13px 20px;line-height:1.5}.instructions h2{font-size:16px;margin:0 0 6px}.instructions p{margin:4px 0 8px}dialog{border:0;border-radius:13px;width:min(420px,calc(100% - 28px));padding:0;box-shadow:0 18px 70px #0007;color:#333}dialog::backdrop{background:#111a25a8}#grade-form{padding:22px 25px 25px}.dialog-top{display:flex;justify-content:space-between;align-items:start}.dialog-top h2{margin:5px 0 10px;color:#293034}.close{font-size:26px;line-height:1;border:0;background:none;color:#777}.student-caption{background:#f2f5e9;border-radius:6px;padding:10px;margin:4px 0 18px;font-weight:bold}#grade-form label{display:block;font-weight:bold;font-size:12px;margin:0 0 12px}#grade-form select{display:block;width:100%;border:1px solid #c8cdd1;border-radius:6px;padding:9px;margin-top:5px;color:#333;background:#fff}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.dialog-actions button{border-radius:6px;padding:9px 15px;border:1px solid #cbd0d3;background:#fff}.dialog-actions .primary{border:0;background:#a5cc00}#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%) translateY(30px);background:#263038;color:white;border-radius:8px;padding:11px 18px;box-shadow:0 7px 30px #0003;opacity:0;pointer-events:none;transition:.2s;z-index:10;max-width:90vw}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:1040px){.shortcuts{gap:8px}.shortcuts button{min-width:50px;font-size:10px}.circle{width:48px;height:48px;font-size:27px}.brand{min-width:285px}.brandname{font-size:40px}.brandname small{margin-left:105px}.brandmark{width:72px;height:72px}.game-panel{flex-wrap:wrap}.game-mission{order:3;flex-basis:100%}.section-actions{gap:4px}.section-actions button{min-width:85px!important;padding:0 9px;font-size:12px}}@media(max-width:720px){.topbar{gap:15px}.login-line{font-size:10px}.brandbar{height:auto;min-height:100px;display:block;padding:10px}.brand{margin-bottom:12px}.shortcuts{overflow-x:auto;padding-bottom:4px}.shortcuts button{flex:none}.shortcuts button:nth-child(n+5){display:none}main{padding:18px 10px 35px}.game-panel{padding:14px;gap:12px}.game-heading{min-width:0;flex:1}.game-stats{gap:10px}.game-stats b{font-size:15px}.start-button{padding:9px}.section-title{height:auto;display:block}.section-title h2{padding:5px}.section-actions{overflow:auto;height:29px}.section-actions button{flex:none}.people-icon{display:none}.controls{font-size:12px}.control-spacer{flex-basis:100%}.legend-grid{grid-template-columns:1fr}.category-key{gap:14px;flex-wrap:wrap}}
@media print{.topbar,.login-line,.game-panel,.section-actions,.controls,.instructions,.add-grade,#toast{display:none!important}main{padding:0}.brandbar{height:80px}.table-shell{overflow:visible}.grades-table{min-width:0}.grades-table th,.grades-table td{border-right:1px solid #bbb}.legend{page-break-inside:avoid}}/* The existing grade tiles are the game objects. */
.game-ruler,.game-ball{position:fixed;left:0;top:0;z-index:1001;pointer-events:none;will-change:transform}
.game-ruler{height:19px;display:flex;justify-content:space-between;padding:7px 5px 0;border:1px solid #897339;border-radius:2px;background:repeating-linear-gradient(90deg,#76632b 0 1px,transparent 1px 10px) top/100% 6px no-repeat,#ffea9dcc;box-shadow:0 2px 5px #0002;color:#554513;font:7px monospace;transition:background-color .1s}
.game-ruler.ruler-hit{background-color:#d6ff91}.game-ball{width:12px;height:12px;border:2px solid white;border-radius:50%;background:#ab205e;box-shadow:0 1px 4px #44152f80}
.breakout-hud{position:fixed;right:12px;top:12px;z-index:1002;max-width:300px;padding:10px 12px;border:1px solid #bbb;border-top:3px solid #9dc500;border-radius:4px;background:#fffffff5;box-shadow:0 4px 16px #0002;color:#333;font:12px Arial;display:grid;gap:6px}
.breakout-hud strong{font-size:10px;letter-spacing:.12em;color:#777}.breakout-readout{font-weight:bold}.breakout-hud small{font-size:10px;color:#777}.breakout-hud div{display:flex;gap:8px}.breakout-hud button{font:11px Arial;border:1px solid #ccc;background:#f5f5f5;border-radius:3px;padding:3px 8px;color:#444}
.game-ruler[hidden],.game-ball[hidden],.breakout-hud[hidden]{display:none}
.breakout-active{touch-action:none;scroll-behavior:auto}.breakout-active .grade-box.brick-live{outline:1px solid #0003;box-shadow:0 2px 0 #0002}.grade-box.brick-broken{visibility:hidden}.row-cleared .student-name{color:#bbb}.brick-pop{position:fixed;z-index:1003;color:#689200;font:bold 13px Arial;pointer-events:none}
.embed main{padding:18px 12px 30px}.embed .brandbar{height:100px}.embed .topbar{font-size:12px}
@media print{.breakout-hud,.game-ruler,.game-ball{display:none!important}.brick-broken{visibility:visible!important}}
