600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--navy:#101b3b;--deep:#080f27;--panel:#17264d;--gold:#f4c542;--gold2:#ffd95a;--ink:#15213b;--muted:#6e7890;--paper:#f4f6fa;--line:#dfe4ed;--green:#2d9b73;--blue:#5aa5d9;--shadow:0 18px 50px #07122b24}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,system-ui,sans-serif;min-height:100vh}.hidden{display:none!important}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;background:var(--deep);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,4vw,56px);box-shadow:0 5px 20px #07122b26;position:relative;z-index:4}.brand{display:flex;gap:12px;align-items:center;color:white;text-decoration:none}.brand-mark{width:43px;height:43px;border:2px solid var(--gold);border-radius:14px;display:grid;place-items:center;color:var(--gold);font:900 17px system-ui,sans-serif;transform:rotate(-5deg)}.brand-copy{display:flex;flex-direction:column;line-height:1}.brand-copy strong{font:900 24px system-ui,sans-serif;letter-spacing:1.5px}.brand-copy small{font-size:9px;letter-spacing:1.5px;color:#b9c5dd;margin-top:4px}.player-strip{display:flex;align-items:center;gap:12px}.player-avatar{height:35px;width:35px;border-radius:50%;background:#27385f;display:grid;place-items:center}.player-name{font-size:12px;font-weight:800;letter-spacing:.5px}.stat-chip{background:#1d2b50;border:1px solid #35466f;border-radius:99px;padding:9px 13px;font-size:12px;display:flex;gap:7px;align-items:center}.stat-chip span{color:var(--gold);font-size:16px}.icon-button{border:0;background:#27385f;color:white;width:36px;height:36px;border-radius:50%;font-size:19px;cursor:pointer}main{width:min(1380px,100%);margin:0 auto;padding:28px clamp(16px,3vw,40px) 108px;flex:1}.welcome-screen{min-height:calc(100vh - 190px);display:grid;grid-template-columns:minmax(280px,.9fr) minmax(360px,1.1fr);align-items:center;gap:clamp(24px,6vw,80px);max-width:1050px;margin:auto}.welcome-art{height:520px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse,#dce7f6 0,#edf2f9 48%,transparent 70%);overflow:hidden}.welcome-mascot{position:relative;z-index:1;width:min(90%,390px);max-height:500px;object-fit:contain;filter:drop-shadow(0 22px 14px #101b3b30);animation:float 4s ease-in-out infinite}.welcome-orbit{position:absolute;border:1px solid #d0dbea;border-radius:50%;width:390px;height:150px;transform:rotate(-25deg)}.orbit-two{transform:rotate(35deg);width:340px;height:125px}.welcome-bolt{position:absolute;right:14%;top:17%;font-size:65px;color:var(--gold);filter:drop-shadow(0 6px 0 #d99e19);transform:rotate(12deg)}.welcome-card{background:white;border:1px solid var(--line);border-radius:22px;padding:clamp(24px,4vw,42px);box-shadow:var(--shadow)}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#8a94a8;margin:0 0 10px}.welcome-card h1,.game-heading h1{font:900 clamp(42px,6vw,66px)/.92 system-ui,sans-serif;letter-spacing:-1px;color:var(--navy);margin:0}.welcome-card h1 em,.game-heading h1 em{font-style:normal;color:#c28c0b}.welcome-intro{font-size:14px;line-height:1.7;color:#69748a;margin:22px 0 28px;max-width:490px}.welcome-card label{display:block;font-size:10px;font-weight:800;letter-spacing:1.1px;margin-bottom:8px;color:#5e6980}.nickname-row{display:flex;gap:8px}.nickname-row input{min-width:0;flex:1;border:1px solid #d9dfeb;border-radius:10px;padding:14px 13px;font:600 14px system-ui,sans-serif;outline:none}.nickname-row input:focus{border-color:#c28c0b;box-shadow:0 0 0 3px #f4c54235}.primary-button,.secondary-button,.danger-button{border:0;border-radius:10px;padding:13px 18px;font:800 11px system-ui,sans-serif;letter-spacing:.5px;cursor:pointer;transition:transform .15s,filter .15s}.primary-button{background:var(--gold);color:var(--deep);box-shadow:0 4px 0 #c58e13}.primary-button:hover{filter:brightness(1.04);transform:translateY(-1px)}.primary-button span{font-size:17px;margin-left:8px}.privacy-note{font-size:10px;color:#929bad;margin:12px 0 0}.text-button{margin-top:15px;border:0;background:none;color:#65718a;font-size:12px;cursor:pointer}.game-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 18px}.game-heading h1{font-size:43px}.level-card{background:white;border:1px solid var(--line);border-radius:13px;padding:10px 14px;min-width:140px;box-shadow:0 4px 14px #1424470b}.level-label{display:block;font-size:8px;font-weight:800;letter-spacing:1.2px;color:#8b95a8}.level-card strong{font:900 25px system-ui,sans-serif;color:var(--navy)}.level-track{height:5px;background:#e8edf5;border-radius:9px;overflow:hidden;margin-top:5px}.level-track i{display:block;width:18%;height:100%;background:var(--gold);border-radius:9px}.mission-row{margin-top:16px;background:var(--navy);color:white;border-radius:15px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 8px 20px #101b3b20}.mission-kicker{font-size:9px;font-weight:900;letter-spacing:1.5px;color:var(--gold)}.mission-copy h2{font:800 21px system-ui,sans-serif;margin:5px 0}.mission-copy p{font-size:11px;color:#c4cde0;margin:0;line-height:1.5}.mission-button{white-space:nowrap}.bottom-nav{position:fixed;z-index:5;bottom:0;left:0;right:0;background:var(--deep);display:flex;justify-content:center;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px #07122b20}.nav-item{width:min(150px,25%);border:0;background:transparent;color:#9eabc5;display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;padding:5px;cursor:pointer}.nav-item span{font-size:19px;line-height:1.1}.nav-item small{font-size:8px;font-weight:800;letter-spacing:1px}.nav-item.active{color:var(--gold)}.content-panel{background:white;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow);min-height:320px}.content-panel h2{font:900 32px system-ui,sans-serif;color:var(--navy);margin:0 0 8px}.course-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:18px}.course-card{border:1px solid var(--line);border-radius:13px;padding:15px;background:#fff}.course-card strong{display:block;font-size:13px;color:var(--navy)}.course-card small{display:block;color:#788399;font-size:10px;margin-top:6px}.course-card .course-symbol{font-size:23px;margin-bottom:9px}.progress-track{height:6px;background:#edf0f5;border-radius:8px;margin-top:12px;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--gold)}.game-dialog{border:0;border-radius:20px;padding:30px;width:min(520px,calc(100% - 28px));box-shadow:0 25px 90px #06102766;color:var(--ink);max-height:90vh;overflow:auto}.game-dialog::backdrop{background:#07122b9c;backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:14px;top:12px;border:0;background:#eef1f6;border-radius:50%;width:30px;height:30px;font-size:21px;cursor:pointer}.dialog-icon{width:55px;height:55px;display:grid;place-items:center;border-radius:14px;background:#fff3c7;color:#8a6500;font-size:28px;margin-bottom:18px}.game-dialog h2{font:900 34px system-ui,sans-serif;color:var(--navy);margin:0}.dialog-course{font-weight:800;color:#a87908;font-size:13px;margin:5px 0 15px}.game-dialog>p:not(.eyebrow):not(.dialog-course){font-size:13px;line-height:1.65;color:#667188}.course-preview{background:#f4f6fa;border-radius:12px;padding:14px;margin:17px 0;font-size:12px;line-height:1.8}.course-preview strong{color:var(--navy)}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}.secondary-button{background:#e9edf4;color:#33415c}.compact-dialog{width:min(420px,calc(100% - 28px))}.full-button{width:100%;margin-top:10px}.danger-button{background:#fff0ee;color:#b33b32}.toast{position:fixed;z-index:10;bottom:88px;left:50%;transform:translate(-50%,15px);background:#101b3b;color:white;border:1px solid #46567a;border-radius:99px;padding:11px 18px;font-size:11px;font-weight:700;opacity:0;pointer-events:none;transition:.25s;box-shadow:0 8px 30px #07122b33}.toast.show{opacity:1;transform:translate(-50%,0)}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}@media(max-width:760px){.topbar{height:62px;padding:0 13px}.brand-mark{width:36px;height:36px;font-size:14px}.brand-copy strong{font-size:19px}.brand-copy small{font-size:7px}.player-strip{gap:7px}.player-avatar{display:none}.player-name{max-width:85px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.stat-chip{padding:7px 9px;font-size:10px}.icon-button{width:32px;height:32px}main{padding:18px 12px 100px}.welcome-screen{min-height:auto;display:flex;flex-direction:column;gap:0;padding:10px 0 25px}.welcome-art{height:260px;width:100%;max-width:400px}.welcome-mascot{height:255px;width:auto}.welcome-orbit{width:280px;height:110px}.welcome-card{padding:23px;width:100%}.welcome-card h1{font-size:49px}.welcome-intro{margin:15px 0 21px;font-size:13px}.nickname-row{flex-direction:column}.nickname-row .primary-button{width:100%}.game-heading{align-items:center}.game-heading h1{font-size:35px}.level-card{min-width:100px;padding:8px 10px}.campus-stage{min-height:570px}.campus-map{transform:scale(1.04);transform-origin:center}.building{min-width:103px;min-height:69px;padding:8px 9px 7px}.building strong{font-size:10px;max-width:90px}.building small{font-size:6px}.building-icon{font-size:14px}.building-gym{min-width:125px;min-height:86px}.building-gym strong{font-size:14px}.b-python{top:12%;left:7%}.b-csp{top:34%;left:1%}.b-it{top:58%;left:9%}.b-gym{top:30%;left:37%}.b-network{top:18%;right:2%}.b-business{top:58%;left:39%}.b-ai{top:43%;right:2%}.b-esports{top:72%;right:1%}.b-cyber{top:34%;right:1%}.b-cyber .building{min-width:105px}.field{width:30%;height:17%;top:5%;right:33%}.tree{font-size:20px}.mascot-pin{left:43%;top:78%}.mascot-pin img{width:40px;height:49px}.mascot-pin span{font-size:6px}.mission-row{padding:15px;align-items:flex-start;flex-direction:column;gap:12px}.mission-button{width:100%}.map-legend{font-size:8px}.content-panel{padding:18px}.dialog-actions>*{flex:1}.dialog-actions .primary-button{min-width:140px}}@media(max-width:390px){.brand-copy small{display:none}.player-name{max-width:65px}.campus-stage{min-height:540px}.building{min-width:91px}.building strong{font-size:9px}.b-gym{left:35%}.building-gym{min-width:112px}.b-it{left:4%}.b-business{left:35%}.b-cyber{right:0}.b-cyber .building{min-width:91px}.field{right:30%}}@media(min-width:1100px){.campus-stage{min-height:560px}.building{min-width:150px;min-height:96px}.building strong{font-size:14px}.building small{font-size:8px}.building-gym{min-width:190px;min-height:120px}.b-python{left:20%}.b-csp{left:10%}.b-it{left:27%}.b-business{left:48%}.b-esports{right:5%}}

/* Illustrated campus: coordinates use the original 3:2 image at every size. */
.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px}.map-toolbar .eyebrow{color:#64738d}.map-toolbar p{margin:4px 0 0;font-size:12px;color:#68758a}.map-toolbar button{flex-shrink:0;font-size:10px}
.campus-stage{min-height:0!important;position:relative;border:1px solid #bac4c1;border-radius:18px;overflow:hidden;background:#dce6cf;box-shadow:var(--shadow)}
.map-viewport{width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#8e9d87 #dde4d8;scrollbar-width:thin}.map-viewport:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.illustrated-map{position:relative;width:100%;min-width:860px;aspect-ratio:3/2;isolation:isolate}.campus-art{display:block;width:100%;height:100%;object-fit:contain;user-select:none}
.campus-hotspot.building{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);min-width:0!important;min-height:0!important;max-width:none;padding:0;display:block;transform:translate(-50%,-50%);background:transparent;border:2px solid transparent;border-radius:18px;box-shadow:none;color:white;cursor:pointer;z-index:1;transition:background .18s,border-color .18s}
.campus-hotspot.building:before,.campus-hotspot.building:after{display:none}.campus-hotspot.building:hover,.campus-hotspot.building:focus-visible{transform:translate(-50%,-50%);background:#ffe69a1c;border-color:#ffda68;filter:none;outline:none;z-index:3}.campus-hotspot.building.coming{opacity:1;background:transparent;cursor:pointer}
.location-label{position:absolute;bottom:0;left:50%;transform:translate(-50%,35%);display:flex;align-items:center;gap:7px;white-space:nowrap;background:#101b3bef;border:1px solid #e8bf5d;border-radius:8px;padding:7px 10px;font:700 11px system-ui,sans-serif;box-shadow:0 3px 10px #07122b45;pointer-events:none}.location-label b{font-size:10px;color:#ffdc72;border-right:1px solid #ffffff3d;padding-right:7px}.coming .location-label{border-style:dashed;background:#29313cf2}.campus-hotspot.completed .location-label{border-color:#91e2b3}.campus-hotspot.completed .location-label:after{content:'✓';color:#91e2b3}
.campus-hotspot .building-status{display:none}.map-caption{background:#101b3b;color:#dbe4f2;display:flex;flex-wrap:wrap;gap:8px 22px;padding:12px 16px;font-size:10px}.map-hint{font-size:11px;color:#69758a;margin:12px 0}.location-list{display:flex;flex-wrap:wrap;gap:7px}.location-list button{background:white;border:1px solid #d6ddea;border-radius:8px;padding:10px 12px;font:600 11px system-ui;color:#243351;cursor:pointer;min-height:44px}.location-list button:hover,.location-list button:focus-visible{border-color:#ad7e0f;outline:2px solid #f4c54255}.laser-guide{width:100%;display:flex;align-items:center;gap:14px;text-align:left;background:#fff;border:1px solid #dfe4ed;border-radius:13px;padding:10px 16px;margin-top:16px;color:var(--navy);cursor:pointer}.laser-guide img{height:62px;width:48px;object-fit:contain}.laser-guide strong{display:block;font-size:13px}.laser-guide small{display:block;font-size:11px;color:#64738d;margin-top:4px}.laser-guide>span:last-child{margin-left:auto;color:#9c741a;font-size:22px}.map-viewport.overview .illustrated-map{min-width:0}.map-viewport.overview .location-label{display:none}.map-viewport.overview .campus-hotspot{min-height:44px!important;min-width:44px!important}.primary-button:disabled{cursor:default;transform:none}.building-status{pointer-events:none}button:focus-visible,a:focus-visible{outline:3px solid #bf8d13;outline-offset:3px}
@media(max-width:760px){.map-toolbar{align-items:center}.map-toolbar .eyebrow{font-size:8px}.map-toolbar p{font-size:11px;max-width:185px}.map-toolbar button{padding:11px 9px;font-size:9px}.location-list button{flex:1 0 42%;text-align:left}.campus-stage{border-radius:12px}.map-caption{font-size:9px}.game-heading h1{font-size:30px}.location-label{font-size:11px;padding:8px 10px}.toast{max-width:calc(100% - 24px);width:max-content;white-space:normal;border-radius:12px}.game-dialog h2{font-family:system-ui;font-size:27px}.brand-copy strong{font-family:system-ui;font-size:16px}.welcome-card h1{font-family:system-ui;font-size:38px}.player-name{max-width:62px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Power Dash — direct-control arcade */
.dash-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.dash-heading p{font-size:13px;color:#69758a;line-height:1.6;margin:8px 0}.dash-heading h2{letter-spacing:-1px}#dashTitle:focus{outline:none}.dash-rounds{display:flex;gap:8px;margin:18px 0}.dash-rounds button{flex:1;min-height:44px;padding:10px;border:1px solid #d6deea;border-radius:9px;background:#f1f4f9;color:#40516b;font:700 11px system-ui;cursor:pointer}.dash-rounds button[aria-current=step]{background:#101b3b;color:#ffdf7c;border-color:#bd952e}.dash-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);gap:26px;align-items:start}.dash-arena{background:#0a142d;border:1px solid #2d4165;border-radius:16px;padding:16px;box-shadow:0 12px 32px #101b3b22}.dash-hud{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#ffdb72;font:800 13px system-ui;margin:0 0 14px}#dashHearts{color:#ff93a3}#dashGate{font-size:9px;letter-spacing:1px;color:#acd9d4}.dash-board{position:relative;display:grid;grid-template-columns:repeat(var(--dash-size),1fr);gap:4px;aspect-ratio:1;background:#101e36;border-radius:10px;padding:7px;outline-offset:4px;touch-action:manipulation}.dash-cell{display:grid;place-items:center;min-width:0;background:#233f5a;border:1px solid #355674;border-radius:5px;color:#9de2dc;font-size:clamp(18px,3vw,30px)}.dash-cell.dash-wall{background:repeating-linear-gradient(135deg,#10243a 0 6px,#193049 6px 8px);border-color:#26435b;box-shadow:0 3px 0 #071226}.dash-cell.dash-gate{background:#284e60;border:2px dashed #8ac1ca}.dash-cell.dash-open{background:#226a59;border-style:solid;border-color:#a6f7bb;box-shadow:0 0 15px #70ec9a44}.dash-player{width:82%;height:82%;display:grid;place-items:center;border:2px solid #ffe49a;background:#e9af31;color:#14213d;border-radius:50%;box-shadow:0 3px 0 #936511;font-size:clamp(19px,3vw,30px)}.dash-shield{outline:3px solid #83dfff;box-shadow:0 0 16px #83dfff}.dash-spark{color:#ffda68;text-shadow:0 0 13px #ffd36577;animation:sparkPulse 1.3s ease-in-out infinite}.dash-static{color:#fc8ba5;text-shadow:0 0 14px #fc8ba580}.dash-paused:after,.dash-ready:after{position:absolute;inset:0;display:grid;place-items:center;background:#07142b8c;color:white;border-radius:10px;font:900 24px system-ui;pointer-events:none;letter-spacing:2px}.dash-paused:after{content:'PAUSED'}.dash-ready:after{content:'READY? LET’S GO!'}.dash-controls{display:grid;grid-template-columns:repeat(3,54px);grid-template-rows:repeat(2,48px);gap:5px;justify-content:center;margin:12px 0;touch-action:manipulation}.dash-controls button{border:1px solid #52688c;border-radius:10px;background:#24395a;color:#fff;font:800 24px system-ui;cursor:pointer;touch-action:manipulation;box-shadow:0 3px 0 #050d1f}.dash-controls button:active{background:#f4c542;color:#101b3b;transform:translateY(2px)}.dash-controls [data-direction=up]{grid-column:2;grid-row:1}.dash-controls [data-direction=left]{grid-column:1;grid-row:2}.dash-controls [data-direction=down]{grid-column:2;grid-row:2}.dash-controls [data-direction=right]{grid-column:3;grid-row:2}.dash-controls button:disabled{opacity:.35;cursor:default}.dash-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;color:#b6c9e0;font:600 10px system-ui;margin:10px 0 0}.dash-actions{display:flex;gap:8px;margin:0 0 14px}.dash-actions .primary-button{flex:1}.dash-actions button:disabled{opacity:.4;cursor:default}.dash-sidebar{padding:4px 0}.dash-mission h3{font:900 25px system-ui;margin:8px 0;color:#192f50}.dash-mission p:not(.eyebrow){font-size:12px;line-height:1.8;color:#63728b}.dash-feedback,.dash-banner{background:#fff4cf;border-left:3px solid #ce9d25;border-radius:7px;padding:14px;font:600 13px/1.7 system-ui;color:#665119;min-height:76px}.dash-options{display:flex;gap:7px;flex-wrap:wrap;margin-top:20px}.dash-options button{font-size:9px;padding:12px}.dash-small{font-size:10px;color:#718096;line-height:1.7}.dash-course{margin-top:20px;padding:13px;background:#eef3f9;border:1px solid #dfe6ef;border-radius:9px;font:12px/1.8 system-ui;color:#475a75}.dash-course summary{font-weight:800;cursor:pointer}.dash-course p{margin-bottom:0}@keyframes sparkPulse{50%{opacity:.65;transform:scale(.85)}}
@media(max-width:800px){.dash-layout{grid-template-columns:1fr;gap:16px}.dash-heading{align-items:flex-start;gap:8px}.dash-heading h2{font-size:27px}.dash-heading .eyebrow{font-size:8px;letter-spacing:1px}.dash-heading p{font-size:11px;margin:5px 0}.dash-heading button{font-size:8px;padding:11px 9px;max-width:108px}.dash-rounds{gap:5px;margin:12px 0}.dash-rounds button{font-size:9px;padding:7px 5px}.dash-arena{padding:10px;max-width:520px;width:100%;margin:auto}.dash-hud{font-size:11px;margin-bottom:10px}#dashGate{font-size:8px}.dash-board{gap:3px;padding:5px}.dash-controls{grid-template-columns:repeat(3,52px);grid-template-rows:repeat(2,44px);margin:10px 0}.dash-actions{margin-bottom:10px}.dash-actions .primary-button,.dash-actions .secondary-button{padding:11px 14px;font-size:10px}.dash-player{font-size:22px}.dash-mission h3{font-size:23px}.dash-sidebar{padding:0}.dash-cell{font-size:23px}}
@media(prefers-reduced-motion:reduce){.dash-spark{animation:none}}
