.hud{pointer-events:none;color:#f2ead8;-webkit-user-select:none;user-select:none;font-family:system-ui,-apple-system,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;position:fixed;inset:0}.hud button,.hud .panel,.hud .wave-card,.hud .modal{pointer-events:auto}.hud-top{flex-wrap:wrap;align-items:center;gap:8px;display:flex;position:absolute;top:6px;left:8px;right:8px}.stat{background:#14161ac7;border:1px solid #4a4a40;border-radius:6px;padding:4px 8px}.stat b{color:#ffd98a}.stat.seal b{color:#ff9a8a}.stat.phase.combat{border-color:#c0603a}.spacer{flex:1}.hud-preview{gap:6px;max-width:calc(100% - 230px);display:flex;position:absolute;top:44px;left:8px;overflow-x:auto}.wave-card{background:#14161ac7;border:1px solid #4a4a40;border-radius:6px;min-width:128px;padding:4px 6px;font-size:12px}.wave-title{margin-bottom:2px;font-weight:600}.wave-entry{border-left:4px solid #7fd36b;gap:6px;margin-top:2px;padding-left:4px;display:flex}.wave-entry.threat-medium{border-left-color:#e0b03a}.wave-entry.threat-high{border-left-color:#e05a4a}.wave-entry .entrance{font-weight:600}.wave-entry .eta{opacity:.8;margin-left:auto}.hud-side{flex-direction:column;gap:4px;width:210px;display:flex;position:absolute;top:44px;right:8px}.fronts{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.alert{text-align:left;color:#f2ead8;cursor:pointer;background:#14161ad9;border:1px solid #4a4a40;border-radius:6px;padding:5px 8px;font-size:12px}.alert.p3{background:#5a1814e6;border-color:#e05a4a;animation:.9s ease-in-out infinite alternate pulse}.alert.p2{border-color:#e0a030}@keyframes pulse{0%{box-shadow:0 0 #e05a4a99}to{box-shadow:0 0 8px 2px #e05a4a99}}.hud-panel{max-width:min(360px,100% - 16px);position:absolute;bottom:74px;left:8px}.hud-panel.right{left:auto;right:8px}.btn.toggle{align-self:flex-start}.panel{background:#14161aeb;border:1px solid #6a6450;border-radius:8px;padding:8px 10px}.panel-title{margin-bottom:4px;font-weight:700}.panel-line{opacity:.9;font-size:13px}.panel-buttons{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.hud-bottom{align-items:stretch;gap:6px;display:flex;position:absolute;bottom:8px;left:8px;right:8px}.btn{font:inherit;color:#f2ead8;cursor:pointer;background:#3a3c36;border:1px solid #6a6450;border-radius:6px;min-height:40px;padding:6px 10px}.btn.small{min-height:32px;padding:4px 8px}.btn.primary{background:#6a4a22;border-color:#d0a050}.btn.active{background:#2f5a3a;border-color:#7fd36b}.btn:disabled{opacity:.45;cursor:default}.btn.start{background:#7a2e22;border-color:#e0806a;min-width:150px;font-weight:700}.card{font:inherit;color:#f2ead8;cursor:pointer;background:#1e201ce6;border:1px solid #6a6450;border-radius:8px;grid-template-rows:auto auto;grid-template-columns:auto auto;align-items:center;column-gap:6px;min-width:82px;min-height:56px;padding:4px 8px;display:grid}.card.active{background:#2f5a3ae6;border-color:#7fd36b}.card.poor .card-cost{color:#e05a4a}.card-icon{background:#9a7448;grid-row:span 2;width:22px;height:22px}.card-icon.crossbow{clip-path:polygon(50% 0,100% 100%,0 100%)}.card-icon.snare{background:#5f8f4f;border-radius:50%}.card-icon.catapult{background:#7a7a8f}.card-cost{color:#ffd98a;font-weight:700}.hud-toasts{flex-direction:column;align-items:center;gap:4px;display:flex;position:absolute;bottom:80px;left:50%;transform:translate(-50%)}.toast{background:#14161ae6;border:1px solid #6a6450;border-radius:16px;padding:5px 14px;transition:opacity .4s}.toast.warn{border-color:#e05a4a}.toast.bark{border-color:#d0a050;font-style:italic}.toast.out{opacity:0}.modal-back,.level-select{pointer-events:auto;background:#0000008c;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.modal{background:#22241f;border:1px solid #6a6450;border-radius:10px;max-width:min(460px,100% - 32px);max-height:calc(100% - 32px);padding:16px 20px;overflow-y:auto}.modal h1,.modal h2{margin:0 0 8px}.modal h2.victory{color:#9be07f}.modal h2.defeat{color:#f08a7a}.modal p{margin:4px 0}.modal .badge{color:#ffd98a;margin:8px 0;font-weight:700}.report-story{background:#fff3d60f;border-left:3px solid #b89a5a;margin:6px 0 8px;padding:6px 10px;font-style:italic}.modal-buttons{flex-direction:column;gap:6px;margin-top:12px;display:flex}.survey-intro,.playtest-notice{color:#c9c2ad;font-size:.9em}.survey-q{margin-top:10px}.survey-text{font-weight:600}.survey-options{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.survey-options.scale .btn{min-width:40px}.survey-scale{color:#a9a28d;justify-content:space-between;max-width:240px;font-size:.85em;display:flex}.survey-q textarea{box-sizing:border-box;width:100%;color:inherit;font:inherit;background:#15160f;border:1px solid #6a6450;border-radius:6px;margin-top:4px;padding:6px;font-size:16px}.hud-coach{pointer-events:none;position:absolute;inset:0}.coach-bubble{color:#2a2418;pointer-events:auto;background:#fff3d6;border-radius:8px;align-items:center;gap:8px;max-width:300px;padding:8px 10px;font-weight:600;display:flex;position:absolute;box-shadow:0 2px 10px #00000073}.coach-bubble .btn{flex:none}.coach-bubble.at-build{bottom:84px;left:12px}.coach-bubble.at-look{top:150px;left:12px}.coach-bubble.at-start{bottom:84px;right:12px}@keyframes coach-pulse{0%,to{box-shadow:0 0 #ffdc78e6}50%{box-shadow:0 0 0 6px #ffdc7800}}.hud[data-coach=build] .card,.hud[data-coach=look] .wave-card:first-child,.hud[data-coach=start] .btn.start{animation:1.2s ease-in-out infinite coach-pulse}.wave-card{cursor:pointer}@media (prefers-reduced-motion:reduce){.hud[data-coach] .card,.hud[data-coach] .wave-card,.hud[data-coach] .btn.start{animation:none}}@media (height<=480px){.hud{font-size:12px}.hud-preview{top:40px}.wave-card{min-width:104px;font-size:11px}.hud-side{width:170px;top:40px}.coach-bubble{max-width:240px;padding:6px 8px}.coach-bubble.at-build,.coach-bubble.at-start{bottom:60px}.coach-bubble.at-look{top:112px}.card{min-width:64px;min-height:44px;padding:2px 6px}.btn{min-height:36px;padding:4px 8px}.btn.start{min-width:110px}.hud-panel{bottom:56px}.hud-top .stat{padding:2px 6px}.hud-top .btn.small{min-height:28px;padding:2px 7px}.fronts .btn.small{min-height:26px;padding:1px 6px;font-size:11px}.hud-side .alert:nth-of-type(n+3){display:none}.panel{padding:6px 8px}.panel-buttons .btn{min-height:32px}}
