:root{font-family:"Segoe UI","Microsoft JhengHei",sans-serif;color:#e8ede6;background:#101813;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 20%,#22312755,transparent 65%)}main{max-width:1220px;margin:auto;padding:0 42px}header{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12}.brand{color:#e5e9df;text-decoration:none;font-size:12px;letter-spacing:2px;font-weight:700;display:flex;align-items:center;gap:12px}.brand span{display:grid;place-items:center;border:1px solid #879d75;border-radius:8px;width:32px;height:32px;font-size:20px;color:#c3dc9d}.version{font-size:11px;color:#88968a}.version b{margin-left:10px;color:#c6d0c2;background:#ffffff09;padding:5px 8px;border-radius:4px}.heading{display:flex;justify-content:space-between;align-items:center;padding:32px 0 27px}.eyebrow{font-size:11px;letter-spacing:3px;color:#bbce8a;margin:0 0 9px}h1{margin:0;font-size:38px;letter-spacing:3px;font-weight:800}h1 span{font-size:14px;font-weight:400;letter-spacing:2px;color:#9ca899;margin-left:22px}.intro{font-size:12px;line-height:1.9;color:#919e90}.game-shell{border:1px solid #ffffff20;border-radius:12px;overflow:hidden;box-shadow:0 20px 70px #0005}.toolbar{height:48px;display:flex;justify-content:space-between;align-items:center;padding:0 20px;background:#1e2a22;font-size:12px}.live{display:flex;align-items:center;gap:9px}.live i{width:6px;height:6px;border-radius:50%;background:#c2d68c}.tools{display:flex;gap:18px;align-items:center;color:#879787;font-size:10px}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #e6edb5;outline-offset:3px}.tools button{background:#ffffff09;color:#c6d0c2;border:1px solid #ffffff15;border-radius:5px;padding:5px 10px}.tools button:disabled{opacity:.4;cursor:default}.stage{position:relative;background:#364a37;aspect-ratio:1120/620}canvas{width:100%;height:100%;display:block}.hud{position:absolute;top:22px;left:26px;right:26px;display:flex;gap:30px;pointer-events:none;text-shadow:0 2px 5px #0009}.health{width:210px;margin-right:auto}small{font-size:10px}.health small{display:flex;justify-content:space-between}.track{margin-top:8px;background:#132218;border:1px solid #c4d4b044;padding:3px;border-radius:5px}.track div{height:8px;background:#c6d88b;border-radius:2px;width:100%;transition:width .15s}.timer,.kills{display:flex;flex-direction:column;align-items:center;min-width:65px;gap:4px}.timer strong,.kills strong{font-size:24px;font-variant-numeric:tabular-nums}.hud small{color:#dde6cf}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#0c191b65;backdrop-filter:blur(3px)}.overlay.hidden{display:none}.modal{width:440px;background:#16251ff2;border:1px solid #8a9b7944;border-radius:14px;padding:30px 36px;box-shadow:0 18px 80px #0005;text-align:center}.badge{font-size:10px;letter-spacing:2px;color:#cedc98}h2{font-size:25px;margin:14px 0}.modal p{font-size:12px;line-height:1.9;color:#aebbaa;margin-bottom:23px}.character{display:flex;text-align:left;align-items:center;gap:12px;font-size:32px;padding:14px;background:#ffffff05;border:1px solid #ffffff0c;border-radius:8px;margin-bottom:20px}.character span{font-size:13px}.character small{display:block;color:#98a68f;margin-top:5px}.character b{font-size:10px;margin-left:auto;color:#c8db99}.primary{width:100%;border:0;border-radius:6px;background:#c4d88d;padding:13px 18px;color:#21321c;font-size:14px;font-weight:bold;text-align:left}.primary:hover{background:#d8e7ac}.primary span{float:right}.hint{display:block;margin-top:13px;color:#81917d}.stage-label{position:absolute;bottom:18px;left:22px;right:22px;color:#d4dfc480;font-size:10px;letter-spacing:2px;pointer-events:none}.stage-label span{float:right;font-size:8px}.game-footer{padding:14px 20px;background:#1c2820;display:flex;gap:24px;align-items:center;font-size:10px;color:#98a692}.key{font-style:normal;display:inline-grid;place-items:center;background:#ffffff06;border:1px solid #ffffff24;border-bottom-width:2px;min-width:21px;height:22px;border-radius:4px;color:#ccd6c4;margin-right:4px}.weapon{margin-left:auto}.weapon b{color:#d4dec6;margin:0 15px}.weapon em{font-style:normal;color:#b8cd88;background:#aeca7710;padding:4px 7px;border-radius:3px}.notes{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;padding:28px 0}.notes div{position:relative;padding-left:35px}.notes span{position:absolute;left:0;top:1px;color:#6d8166;font-size:11px}.notes h3{font-size:12px;font-weight:500;margin:0 0 7px}.notes p{font-size:10px;color:#85927f;margin:0;line-height:1.8}.bottom{border-top:1px solid #ffffff10;padding:19px 0 25px;display:flex;gap:20px;font-size:10px;color:#64745f}.bottom span:last-child{margin-left:auto;font-size:8px;letter-spacing:1px}@media(max-width:760px){main{padding:0 14px}header{height:64px}.heading{padding:24px 0}h1{font-size:28px}h1 span{display:block;margin:7px 0 0;font-size:11px}.intro,.tools>span{display:none}.stage{aspect-ratio:4/3}.modal{width:90%;padding:20px}.modal h2{font-size:21px}.hud{left:12px;right:12px;top:12px;gap:8px}.health{width:130px}.game-footer{gap:8px;padding:12px 8px}.weapon em{display:none}.notes{gap:10px}.notes div{padding-left:0}.notes span{display:none}.bottom span:last-child{display:none}}

.enemy-legend{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:16px 4px 0;font-size:11px;color:#b6c4ae}.enemy-legend>span:first-child{color:#809178}.enemy-legend small{margin-left:auto;color:#809178}

.loadout{text-align:left;margin:16px 0}.loadout label{display:block;font-size:11px;color:#b8c8a8;margin:10px 0 6px}.loadout select{width:100%;padding:10px 12px;border:1px solid #748664;background:#243629;color:#edf2df;border-radius:6px;font:inherit;font-size:13px}.loadout-note{font-size:10px!important;line-height:1.8!important;margin:10px 0!important}.modal{max-height:calc(100% - 24px);overflow-y:auto}.overlay [hidden]{display:none}@media(max-width:760px){.modal{padding:16px 22px}.modal h2{margin:7px 0}.modal p{margin:8px 0}.loadout{margin:6px 0}}

.experience{width:170px}.experience small{display:flex;justify-content:space-between;gap:8px}.experience .track div{width:0;background:#8ebddd}.health{margin-right:0}.timer{margin-left:auto}.upgrade{display:block;width:100%;text-align:left;padding:14px;margin:9px 0;background:#293d2d;border:1px solid #8da66e;border-radius:7px;color:#e8eddf}.upgrade:hover{background:#3c5435}.upgrade small{display:block;margin-top:5px;color:#b7c7a5}.upgrade:focus-visible{outline:3px solid #dce9a5}@media(max-width:760px){.experience{width:100px}.hud{flex-wrap:wrap}.experience small{font-size:8px}.tools{gap:5px}.tools button{font-size:10px;padding:5px}.health{width:110px}}
.upgrade:disabled{opacity:.4;cursor:default}
.death-stamp{color:#ff665e;border:5px double currentColor;border-radius:7px;padding:10px 12px;margin:15px -10px 24px;transform:rotate(-7deg);box-shadow:inset 0 0 0 2px #ff665e33,0 0 22px #ce3d351c;text-shadow:1px 1px 0 #a8312c;animation:stamp-impact .32s ease-out both;pointer-events:none}.death-stamp span{display:block;font-size:17px;font-weight:800;letter-spacing:10px}.death-stamp strong{display:block;font-size:clamp(25px,4vw,42px);font-weight:900;letter-spacing:4px;white-space:nowrap;line-height:1.5}@keyframes stamp-impact{from{opacity:0;transform:rotate(-16deg) scale(1.35)}to{opacity:1;transform:rotate(-7deg) scale(1)}}@media(prefers-reduced-motion:reduce){.death-stamp{animation:none}}
.death-resume{margin:20px 0 22px;padding:17px;background:repeating-linear-gradient(0deg,#f0ecdf,#f0ecdf 23px,#e9e4d8 24px);border:1px solid #c5c3b4;border-radius:3px;color:#3f4941;text-align:left;box-shadow:3px 6px 0 #0003;transform:rotate(1deg)}.resume-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #59665a;padding-bottom:10px;gap:8px}.resume-heading b{font-size:20px;letter-spacing:3px}.resume-heading small{font-size:8px;letter-spacing:1px;color:#6a756a}.resume-body{display:flex;justify-content:space-between;gap:15px;padding:15px 0 8px}.resume-details{display:flex;flex-direction:column;gap:4px;min-width:0}.resume-details>small{color:#798173;font-size:9px;margin-top:5px}.resume-details h3{margin:0 0 3px;font-size:17px}.resume-details>b{font-size:13px}.resume-details>span{font-size:11px}.resume-photo{position:relative;flex:0 0 100px;align-self:flex-start;width:100px;height:128px;border:3px solid #fff;box-shadow:0 0 0 1px #a4ae9d}.resume-photo svg{width:100%;height:100%;display:block}.portrait-long-hair{display:none}.female .portrait-long-hair{display:block}.resume-photo .death-stamp{position:absolute;z-index:1;top:47px;left:-28px;width:150px;padding:5px 4px;margin:0;border-width:5px;color:#bc302b;background:#f8ecd81c;text-shadow:none}.resume-photo .death-stamp span{font-size:12px;letter-spacing:5px}.resume-photo .death-stamp strong{font-size:21px;letter-spacing:1px;line-height:1.45}.resume-details .resume-verdict{color:#a83d34;font-weight:700;margin-top:9px}.resume-bottom{border-top:1px solid #a6af9e;padding-top:8px;font-size:8px;color:#7a8272;letter-spacing:2px}

.teacher-panel{display:flex;gap:20px;align-items:center;padding:16px 18px;margin:0 0 14px;background:#203025;border:1px solid #a4bc6d33;border-radius:9px}.teacher-panel>div{min-width:210px}.teacher-panel b{font-size:15px;color:#d1e2a5}.teacher-panel small{float:right;font-size:10px;color:#9fae91}.teacher-panel .track div{background:#99c7e3;width:0;height:5px}.teacher-panel p{font-size:11px;color:#a5b396;flex:1}.teacher-panel>span{font-size:11px;color:#dec694}.arsenal-row{display:flex;gap:15px;padding:15px 5px 0;font-size:11px;color:#b6c4ae;line-height:1.8}.arsenal-row b{white-space:nowrap;color:#d1dea9}#upgrade-target{width:100%;background:#243629;color:#edf2df;border:1px solid #748664;border-radius:6px;padding:9px;margin:7px 0;font:inherit;font-size:12px}#upgrade-choices label{font-size:12px;color:#b8c8a8}@media(max-width:760px){.teacher-panel{flex-wrap:wrap;gap:8px}.teacher-panel p{margin:0}.teacher-panel>span{width:100%}.teacher-panel>div{flex:1}}


.death-stats-title{font-size:11px;font-weight:bold;border-top:1px solid #a6af9e;padding-top:10px;margin-top:6px}.death-stats{display:grid;grid-template-columns:1fr 1fr;gap:5px 14px;padding:9px 0 13px;font-size:10px}.death-stats>div{display:flex;justify-content:space-between;gap:6px}.death-stats b{color:#97433c}

.npc-status{padding:13px 5px 0;display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:#a9c3ab;line-height:1.8}.npc-status b{color:#e3d49b;font-weight:500}
.npc-status{padding:10px 14px;margin:0 0 12px;border:1px solid #b7d58b33;border-radius:7px;background:#253526;color:#dfebc5;font-size:12px;font-variant-numeric:tabular-nums}
.touch-controls{display:none;position:absolute;z-index:5;left:max(18px,env(safe-area-inset-left));bottom:max(34px,env(safe-area-inset-bottom));text-align:center;user-select:none;-webkit-user-select:none;pointer-events:none}.touch-controls[hidden]{display:none!important}.joystick{position:relative;width:124px;height:124px;border:2px solid #e6edce88;background:#13291c66;border-radius:50%;touch-action:none;pointer-events:auto;box-shadow:0 2px 16px #0004}.joystick-knob{position:absolute;left:38px;top:38px;width:44px;height:44px;background:#d7e5aecc;border:2px solid #f0f4df;border-radius:50%;box-shadow:0 3px 10px #0004;pointer-events:none}.joystick-cross{position:absolute;inset:0;display:grid;place-items:center;font-size:52px;font-weight:200;color:#e0e9d54a;pointer-events:none}.touch-controls small{display:block;color:#e8eddb;font-size:10px;margin-top:6px;text-shadow:0 1px 4px #000}.stage{isolation:isolate}.overlay{z-index:10}.hud{z-index:2}.stage-label{z-index:1}button,select{touch-action:manipulation}
@media(any-pointer:coarse),(max-width:900px){.touch-controls:not([hidden]){display:block}.tools button{min-height:36px}.stage{aspect-ratio:1120/620;min-height:310px}.modal{max-height:calc(100% - 16px);padding:18px 26px}.game-footer{flex-wrap:wrap}.weapon{margin-left:0}.health{width:150px}.hud{gap:10px}.timer strong,.kills strong{font-size:20px}.experience{width:120px}}
@media(any-pointer:coarse) and (orientation:landscape) and (max-height:600px){main{padding:0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left))}header,.heading,.notes,.bottom,.enemy-legend,.arsenal-row,.game-footer{display:none}.teacher-panel{padding:7px 12px;margin:5px 0;font-size:10px}.teacher-panel p{display:none}.teacher-panel .track{display:none}.npc-status{padding:5px 10px;font-size:10px;margin-bottom:5px}.toolbar{height:40px}.stage{height:calc(100svh - 130px);min-height:240px;aspect-ratio:auto}.modal{width:430px}.modal h2{font-size:20px;margin:7px 0}.modal p{font-size:11px;margin:7px 0}.loadout{margin:5px 0}.loadout-note{display:none}.joystick{width:108px;height:108px}.joystick-knob{left:30px;top:30px}.touch-controls{bottom:20px;left:18px}}

.consent-dialog{position:fixed;inset:0;z-index:200;background:#08130fea;backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:20px}.consent-dialog[hidden]{display:none}.consent-card{width:570px;max-width:100%;max-height:92vh;overflow:auto;padding:30px;border-radius:14px;border:1px solid #91a96a;background:#1c2d22;box-shadow:0 24px 100px #0008}.consent-card h2{font-size:25px;margin:12px 0 20px}.consent-card p{font-size:13px;line-height:1.9;color:#c0ccba;margin:0 0 14px}.consent-card>small{display:block;margin-top:12px;text-align:center;font-size:10px;color:#8c9e83}.consent-card .primary{margin-top:7px}@media(max-width:500px){.consent-card{padding:22px}.consent-card p{font-size:12px}}
@media(any-pointer:coarse),(max-width:900px){.stage-label{display:none}}
/* Phone portrait layout: 390 CSS pixels including the side padding. */
@media(max-width:600px) and (orientation:portrait){main{width:100%;max-width:390px;margin-inline:auto;padding:0 12px}header{height:58px;gap:8px}.brand{font-size:10px;letter-spacing:1px;gap:7px}.brand span{width:28px;height:28px;font-size:18px}.version{font-size:9px;white-space:nowrap}.version b{margin-left:4px;padding:4px}.heading{padding:18px 0}.eyebrow{font-size:10px;letter-spacing:2px}h1{font-size:27px}h1 span{font-size:11px;margin-top:5px}.teacher-panel{padding:11px 12px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:10px}.teacher-panel>div{min-width:0;width:100%}.teacher-panel p{display:none}.teacher-panel>span{font-size:10px}.npc-status{font-size:11px;padding:9px 11px;margin-bottom:10px;overflow-wrap:anywhere}.toolbar{height:auto;min-height:48px;padding:8px 10px;flex-wrap:wrap;gap:8px}.live{font-size:10px}.tools{margin-left:auto;gap:6px;flex-wrap:wrap}.tools button{font-size:11px;min-height:36px}.stage{min-height:340px}.hud{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);top:12px;left:12px;right:12px;gap:9px 12px}.health,.experience{width:auto;min-width:0;margin:0}.health small,.experience small{font-size:9px;gap:5px}.timer,.kills{margin:0;min-width:0;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:4px}.timer small,.kills small{font-size:9px}.timer strong,.kills strong{font-size:16px}.touch-controls{left:12px;bottom:24px}.joystick{width:108px;height:108px}.joystick-knob{left:30px;top:30px}.modal{width:calc(100% - 20px);padding:17px 20px}.modal h2{font-size:20px}.modal p{font-size:11px}.game-footer{padding:9px;gap:8px;font-size:9px}.key{min-width:19px;height:22px}.notes{gap:12px}.notes h3{font-size:11px}.notes p{font-size:10px}.consent-dialog{padding:14px}.consent-card{width:390px;padding:21px}.consent-card h2{font-size:23px}}
@media(max-width:600px) and (orientation:portrait){.stage{width:100%;height:340px;aspect-ratio:auto}}
.screen-mode,.screen-mode body{width:100%;height:100%;overflow:hidden;background:#101813}.screen-mode main{width:100%;max-width:none;height:100vh;height:100dvh;padding:env(safe-area-inset-top) max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:5px}.screen-mode header,.screen-mode .heading,.screen-mode .teacher-panel,.screen-mode .notes,.screen-mode .bottom,.screen-mode .enemy-legend,.screen-mode .arsenal-row,.screen-mode .game-footer{display:none}.screen-mode .npc-status{flex:none;margin:0;padding:5px 8px;font-size:10px;max-height:64px;overflow:auto}.screen-mode .game-shell{flex:1;min-height:0;display:flex;flex-direction:column;border-radius:7px}.screen-mode .toolbar{flex:none;min-height:44px;height:auto;padding:5px 8px;gap:5px}.screen-mode .tools{gap:5px;flex-wrap:wrap}.screen-mode .tools>span{display:none}.screen-mode .tools button{min-height:34px;font-size:11px;padding:6px 8px}.screen-mode .stage{flex:1;min-height:0;width:100%;height:auto;aspect-ratio:auto}.screen-mode .touch-controls{bottom:max(20px,env(safe-area-inset-bottom))}.screen-mode .modal{max-height:calc(100% - 16px)}@media(max-width:600px){.screen-mode .live{display:none}.screen-mode .toolbar{justify-content:flex-end}.screen-mode .tools{margin:0}.tools{gap:4px}}

