:root { color-scheme: dark; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 20%, #2b3742 0, #101419 42%, #07090c 100%); }
#app { display: flex; align-items: center; gap: 28px; padding: 20px; }
.phone-shell { position: relative; width: min(390px, calc(100vw - 36px)); aspect-ratio: 390 / 844; overflow: hidden; border: 8px solid #222930; border-radius: 30px; background: #17191c; box-shadow: 0 28px 70px #000b, inset 0 0 0 1px #53606b; touch-action: none; }
canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.hud { position: absolute; inset: 0; pointer-events: none; color: #f7fbff; text-shadow: 0 2px 3px #000, 0 0 10px #000; font-weight: 800; }
.mission { position: absolute; left: 17px; top: max(18px, env(safe-area-inset-top)); font-size: 12px; letter-spacing: .04em; background: #111b23aa; padding: 8px 10px; border-left: 3px solid #f5ad28; border-radius: 3px; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #faad29; box-shadow: 0 0 8px #ffb327; }
.score { position: absolute; right: 17px; top: 80px; transform: rotate(-7deg); text-align: right; font-style: italic; line-height: .8; }
.score span { display: block; font-size: 42px; -webkit-text-stroke: 1.5px #10151b; color: #eaf9ff; }
.score small { font-size: 18px; color: #f4bd45; letter-spacing: -.04em; }
.exp { position: absolute; top: 19px; right: 16px; display: flex; align-items: center; gap: 4px; font-style: italic; font-size: 13px; transform: rotate(-8deg); }
.exp span { padding: 7px 6px; background: #47b447; clip-path: polygon(50% 0,100% 23%,90% 77%,50% 100%,10% 77%,0 23%); font-size: 10px; }
.exp b { font-size: 18px; }
.squad-label { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); text-align: center; display: flex; flex-direction: column; filter: drop-shadow(0 2px 2px #000); }
.squad-label b { font-size: 36px; color: #f7cd55; line-height: .8; }
.squad-label small { font-size: 10px; letter-spacing: .18em; }
.tip { position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); width: max-content; max-width: 90%; padding: 8px 14px; border: 1px solid #ddad54aa; border-radius: 99px; background: #171b20d9; color: #ffe3a2; font-size: 12px; text-align: center; transition: opacity .35s; }
.start-panel, .result { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: linear-gradient(#10182070 15%, #121010ba 75%); }
.start-panel h1 { margin: 7px 0 0; font-size: 43px; color: #f7d071; letter-spacing: .08em; text-shadow: 0 3px #4e3112, 0 0 22px #f4a326aa; }
.start-panel p { margin: 8px 0 26px; color: #d9d4c9; letter-spacing: .25em; font-size: 13px; }
.eyebrow { color: #f0a82c; font-weight: 900; font-size: 12px; letter-spacing: .28em; }
button { border: 0; border-radius: 9px; padding: 15px 34px; color: #21160c; font: 900 16px inherit; letter-spacing: .12em; background: linear-gradient(#ffe18b,#e89b22); box-shadow: inset 0 1px #fff6, 0 5px #7d3e0a, 0 12px 22px #0008; cursor: pointer; }
button:active { transform: translateY(3px); box-shadow: inset 0 1px #fff6, 0 2px #7d3e0a; }
.start-panel small { margin-top: 22px; color: #d6d1c8a0; font-size: 10px; }
.result { background: #0910189b; backdrop-filter: blur(3px); }
.result-card { width: 306px; padding: 31px 22px 25px; border: 1px solid #d9a84677; border-radius: 18px; background: linear-gradient(135deg,#272a2d,#10151b); box-shadow: 0 15px 40px #000c; }
.result-card h2 { margin: 8px 0; font-size: 30px; color: #f7d071; }.result-card p { color: #d9d8d1; line-height: 1.7; font-size: 13px; }
.result-stats { display: flex; justify-content: space-around; margin: 18px 0 22px; padding: 14px 0; border-block: 1px solid #ffffff18; color: #afbac2; font-size: 12px; }.result-stats b { display: block; margin-top: 4px; color: #ffe19b; font-size: 22px; }
.hidden { display: none; }
.help { width: 230px; color: #b9c1c7; font-size: 13px; line-height: 1.65; }.help b { display: block; color: #f6d37c; margin-bottom: 6px; }
@media (max-width: 680px) { #app { padding: 0; }.phone-shell { width: 100vw; max-width: 430px; border-width: 0; border-radius: 0; }.help { display: none; } }
