.m03-mount { position: fixed; inset: 0; z-index: 980; background: #213126;
  display: grid; place-items: center; overflow: hidden; overscroll-behavior: none;
  touch-action: none; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; color: #fff1d1; }
.m03-scene { position:relative; width:min(100vw,160dvh); aspect-ratio:8/5; max-height:100dvh; box-sizing:border-box;
  user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.m03-scene * { box-sizing:border-box; }
.m03-scene, .m03-scene canvas, .m03-joystick, .m03-actions, .m03-actions button { touch-action:none; }
.m03-actions button { -webkit-touch-callout:none; -webkit-user-select:none; }
.m03-scene canvas { display:block; width:100%; height:100%; image-rendering:pixelated; }
.m03-scene canvas:focus { outline:none; }
.m03-scene .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.m03-facilities { margin:8px 0; color:#3e5639; font-size:13px; font-weight:700; }
.m03-scene button { font: inherit; font-weight: 750; min-height: 44px; cursor:pointer; touch-action:manipulation; }
.m03-scene .m03-actions button { touch-action:none; }
.m03-scene button:focus-visible { outline: 3px solid #ffe6a8; outline-offset:3px; }
.m03-plate { background: #352d23f0; color: #ffefce; border: 2px solid #b89d6c;
  box-shadow: 0 3px 0 #27251d, inset 0 0 0 2px #554334; border-radius: 4px; }
.m03-hud { position:absolute; top:clamp(8px,2.15vw,22px); left:clamp(8px,2.15vw,22px);
  right:clamp(8px,2.15vw,22px); display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr);
  align-items:start; gap:clamp(6px,1.3vw,14px); pointer-events:none; z-index:4; }
.m03-hud.player-only { grid-template-columns:1fr 1fr; }
.m03-vital { padding:8px 12px 9px; max-width:220px; min-width:0; }
.m03-vital.boss { width:100%; max-width:450px; justify-self:center; }
.m03-lbl { display:flex; justify-content:space-between; gap:5px; font-size:14px; font-variant-numeric:tabular-nums; }
.m03-boss-sub { display:flex; justify-content:space-between; gap:5px; margin-top:5px; color:#ddc59c; font-size:12px; }
.m03-boss-sub .guard[data-open="true"] {color:#ffe089;font-weight:800;}
.m03-clock { min-width:58px; padding:9px 8px; text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums; }
.m03-meter { height:8px; background:#241e18; border:1px solid #c3a878; margin-top:5px; }
.m03-meter i { display:block; height:100%; background:#92b563; box-shadow:inset 0 2px #ffffff27; }
.m03-meter i.boss { background:#b5593b; }
.m03-utilities { display:flex; justify-content:flex-end; align-items:center; gap:7px; pointer-events:auto; }
.m03-wallet { min-width:75px; display:flex; align-items:center; gap:7px; justify-content:center; padding:6px 8px;
  height:42px; white-space:nowrap; font-variant-numeric:tabular-nums; font-weight:750; }
.m03-wallet i { background:#ecc16a; color:#68472e; box-shadow:inset 0 0 0 2px #8b5b31,0 0 0 1px #352820;
  width:17px;height:17px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:10px; }
.m03-wallet.rising { color:#ffe193; border-color:#ffd275; box-shadow:0 0 0 2px #ffd27565,inset 0 0 0 2px #845d37; }
.m03-pause { min-width:58px; padding:4px 8px; }
.m03-cue { position:absolute; left:50%; transform:translateX(-50%); top:14%; z-index:2; text-align:center; padding:5px 14px;
  background:#312a23ed; border:1px solid #c9a470; font-size:clamp(12px,1.4vw,18px); white-space:nowrap; }
.m03-cue.danger { color:#ffd7a7; border-color:#ffad73; background:#6b3026f5; }
.m03-joystick { width:clamp(104px,14vw,148px); aspect-ratio:1; position:absolute; bottom:5%; left:4%; border-radius:50%;
  border:2px solid #e0bd805c; background:#28282078; display:grid; place-items:center; opacity:.86; }
.m03-joystick::after { content:""; position:absolute; inset:10%; border:1px solid #e4c38e43; border-radius:50%; pointer-events:none; }
.m03-joystick b { width:44%; aspect-ratio:1; border-radius:50%; border:2px solid #d3bb87; background:#75634aeb;
  display:grid; place-items:center; font-size:clamp(11px,1.45vw,16px); pointer-events:none; box-shadow:0 3px 0 #342d28; }
.m03-actions { position:absolute; bottom:6%; right:4%; display:flex; gap:clamp(10px,2.25vw,24px); align-items:flex-end; }
.m03-actions button { width:clamp(64px,8.5vw,94px); aspect-ratio:1; border-radius:50%; color:#fff0d0;
  border:2px solid #dfbf87; box-shadow:0 4px 0 #2d2a22,inset 0 0 0 3px #674f3a;
  background:#463526e8; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.m03-actions .attack { background:#8a512fec; width:clamp(70px,9.4vw,102px); }
.m03-actions .ranged { background:#344d55e8; border-color:#9ac9cf;
  box-shadow:0 4px 0 #252d2c,inset 0 0 0 3px #54787c; }
.m03-actions .ranged[data-charging="true"] {background:#42616a; border-color:#d0f0eb;}
.m03-actions .ranged small {color:#cee8e1;}
.m03-actions .charge-track {background:#263b42; margin-top:6px; width:50%; height:4px; }
.m03-actions .charge-track i {display:block;height:100%;background:#b9e4d9;}
.m03-actions button[data-ready="false"] { opacity:.57; }
.m03-actions small { color:#f5d4a1; margin-top:3px; font-size:11px; }
.m03-controls-hint { position:absolute; background:#2b2b20d8; border:1px solid #a18e65; left:50%; bottom:2%;
  transform:translateX(-50%); color:#efe3be; padding:4px 9px; font-size:clamp(10px,1.17vw,14px); white-space:nowrap; }
.m03-modal { position:absolute; inset:0; display:grid; place-items:center; background:#242521ae; padding:45px 8px 12px; z-index:3; }
.m03-panel { width:min(532px,94%); max-height:100%; overflow:auto; padding:clamp(15px,3vw,29px);
  background:#f4deb6; color:#372b23; border:3px solid #996c46; border-radius:7px;
  box-shadow:0 4px 0 #3a2e27,inset 0 0 0 2px #eac895; }
.m03-panel .label { margin:0 0 5px; color:#77573d; font:700 13px system-ui; }
.m03-panel h2 { margin:0 0 8px; font-size:clamp(20px,2.8vw,28px); color:#442e24; line-height:1.2; text-wrap:balance; }
.m03-panel p { margin:0 0 14px; line-height:1.55; font-size:clamp(13px,1.6vw,16px); }
.m03-panel .m03-buttons { display:flex; flex-wrap:wrap; gap:7px; }
.m03-panel button { padding:6px 14px; background:#6b4b36; color:#fff1d3; border:2px solid #8a6748; border-radius:5px; }
.m03-panel .primary { background:#4b6745; border-color:#6e8a57; }
.m03-panel .progress { display:flex; gap:6px; margin:0 0 13px; }
.m03-panel .progress i { width:21px; height:4px; background:#ceb08a; }
.m03-panel .progress i.done { background:#668450; }
.m03-story-banner { position:absolute; top:max(65px,env(safe-area-inset-top)); left:max(14px,env(safe-area-inset-left));
  z-index:4; background:#29392ce8; color:#fff4d6; border:1px solid #b99e6e; border-radius:7px;
  padding:7px 10px; font-size:clamp(12px,1.5vw,15px); box-shadow:0 3px 0 #2434297d; pointer-events:none; }
.m03-story-banner strong { display:block; font-variant-numeric:tabular-nums; font-size:13px; color:#f1cc8e; margin-bottom:2px; }
.m03-story-dialog[hidden], .m03-mount [hidden], .m03-story-banner[hidden] { display:none; }
.m03-story-dialog { position:absolute; z-index:35; inset:0; display:flex; align-items:end; justify-content:center;
  background:#201a153f; padding:12px 12px max(19px,env(safe-area-inset-bottom)); }
.m03-story-sheet { width:min(670px,96%); display:grid; grid-template-columns:minmax(0,1fr) auto;
  align-items:end; gap:8px 14px; padding:15px 17px; background:#fff1d4; color:#36291f;
  border:3px solid #966e4d; box-shadow:0 5px 0 #3b2f24aa; border-radius:8px; }
.m03-story-sheet b { color:#6e533c; font-size:15px; }
.m03-story-sheet p { margin:0; min-height:2.8em; font-size:clamp(15px,2vw,20px); grid-column:1; line-height:1.45; }
.m03-story-sheet button { grid-row:1 / 3; grid-column:2; min-height:44px; }
.m03-start-story { margin-top:8px; display:block; width:100%; min-height:44px; }
@media (orientation:portrait) {
  .m03-hud { gap:3px; }
  .m03-vital { padding:3px 4px; }
  .m03-wallet,.m03-pause { min-width:0; padding:2px 4px; }
  .m03-lbl { font-size:10px; }
  .m03-boss-sub {font-size:9px;}
  .m03-joystick { width:74px; }
  .m03-actions button,.m03-actions .attack { width:52px; font-size:12px; }
  .m03-actions small,.m03-controls-hint { display:none; }
}
