*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:PingFang SC,Microsoft YaHei,sans-serif;color:#233e69;background:#93d4f7;--paper:#f8fcff}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible{outline:3px solid #ffa839;outline-offset:3px}[hidden]{display:none!important}svg{width:20px;height:20px;flex-shrink:0}.game-shell{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden}.scene-viewport,#game,#hotspots{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}#game canvas{display:block}#hotspots{pointer-events:none}.spot{position:absolute;pointer-events:auto;border:0;background:transparent;border-radius:10px;padding:0}.spot:focus-visible{outline:3px dashed #ffd95a;background:#fff3b02b}.hud{position:absolute;left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;pointer-events:none;gap:12px}.level-label{background:#ffffffdf;border:2px solid #233e69;border-radius:13px;box-shadow:0 3px #233e6944;padding:10px 15px;font-weight:800;font-size:14px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.hud-actions{display:flex;gap:10px;pointer-events:auto}.hud-button{display:grid;place-items:center;width:44px;height:44px;border:2px solid #233e69;border-radius:13px;background:#ffffffed;box-shadow:0 3px #233e6944}.hud-button:hover,.hud-button[aria-expanded=true]{background:#ffdc54}.floating-panel{position:absolute;top:75px;right:max(18px,env(safe-area-inset-right));width:min(300px,calc(100vw - 36px));padding:16px;background:#fffffff5;border:2px solid #233e69;border-radius:15px;box-shadow:0 5px #233e6944;font-size:13px;line-height:1.8}.floating-panel p{margin:0 0 12px}.floating-panel p:last-child{margin-bottom:0}.floating-panel button{display:flex;align-items:center;gap:8px;border:0;border-radius:9px;background:#e8f3ff;padding:10px 12px;font-size:13px}.floating-panel button:hover{background:#ffdf66}#hint-text{margin-top:12px;color:#426890}#game-menu{width:220px}#game-menu button{width:100%;margin-bottom:7px;text-align:left}#game-menu button:last-child{margin-bottom:0}.chapters{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #bfd5e7}.chapter.active{background:#ffdf66;font-weight:800}#toast{position:absolute;left:50%;bottom:max(26px,env(safe-area-inset-bottom));transform:translate(-50%,8px);width:max-content;max-width:calc(100% - 32px);background:#fffffff2;border:2px solid #233e69;border-radius:13px;padding:11px 16px;box-shadow:0 4px #233e6944;font-size:13px;line-height:1.7;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%)}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1px;color:#6487ae;display:flex;align-items:center}.icon-button{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;border:2px solid #b4cde5;background:#edf6ff;color:#42699a}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#172f5ca6;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}.ticket-dialog,.result-dialog{background:#f8fcff;border:3px solid #233e69;border-radius:23px;box-shadow:0 8px #162d53,0 20px 100px #152c5544;max-height:90dvh;overflow:auto;animation:enter .25s ease-out}.ticket-dialog{width:680px;padding:25px 30px;border-top:10px solid #ffda54}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading .icon-button{color:#446ca3;border:2px solid #a9c7e2;background:#e8f3ff}.ticket-dialog h2{font-size:27px;letter-spacing:.5px;font-weight:900;margin:15px 0 10px}.ticket-dialog>p{font-size:12px;line-height:1.8;color:#7894b0}.route{display:flex;align-items:center;justify-content:center;gap:20px;margin:20px 0 24px;color:#366ac3;font-size:14px;font-weight:800}.route>span:nth-child(2){display:flex;align-items:center;gap:10px;color:#8cbbdd}.tickets{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.ticket{padding:0;text-align:left;background:#fff;border:2px solid #233e69;box-shadow:0 4px #bed7eb;border-radius:12px;overflow:hidden;transition:transform .18s,background .18s}.ticket:hover{background:#fff3b9;transform:translateY(-4px);box-shadow:0 6px #f5bd38}.ticket-airline{display:flex;justify-content:space-between;color:#fff;background:#467cdd;font-size:9px;padding:9px 13px;letter-spacing:1px;font-weight:700}.ticket-city{display:block;font-size:25px;font-weight:900;padding:14px 13px 16px;letter-spacing:3px}.ticket-city small{display:block;font:800 10px monospace;color:#88a4c1;letter-spacing:2px;margin-top:5px}.ticket-bottom{border-top:2px dashed #ccdfef;display:flex;justify-content:space-between;align-items:center;padding:9px 13px;font-size:9px;color:#6b8cac;background:#edf6ff}.ticket-bottom svg{width:14px;height:14px}.ticket-note{font-size:11px;color:#7998b4;display:flex;align-items:center;justify-content:center;gap:8px;margin:24px 0 0}.ticket-note svg{width:16px;height:16px;color:#e7af23}.result-dialog{width:465px;text-align:center;padding:35px;border-top:10px solid #ffda54}.result-symbol{border-radius:20px;transform:rotate(-8deg);background:bisque;border:3px solid #233e69;box-shadow:4px 4px #c8e1ef;width:74px;height:74px;display:grid;place-items:center;margin:0 auto 24px;color:#db7856}.result-symbol.success{background:#ffdc54;color:#233e69}.result-symbol svg{height:36px;width:36px;stroke-width:3}.result-dialog .eyebrow{justify-content:center;font-size:9px}.result-dialog h2{font-size:27px;line-height:1.5;font-weight:900;margin:17px 0}.result-dialog p{font-size:13px;line-height:2;color:#718da9;margin:0 0 24px}.result-stats{display:flex;justify-content:center;gap:35px;padding:15px;border-top:2px dashed #c0d9ed;border-bottom:2px dashed #c0d9ed;margin:25px 0;color:#7a96b4;font-size:10px}.result-stats strong{display:block;font:900 23px Arial,sans-serif;margin-top:7px;color:#356ed7}.primary-button{background:#ffda54;border:2px solid #233e69;border-radius:12px;box-shadow:0 4px #233e69;color:#233e69;display:flex;align-items:center;justify-content:center;gap:14px;width:100%;padding:14px;font-size:14px;font-weight:900}.primary-button:hover{background:#ffe784;box-shadow:0 4px #233e69,0 0 0 2px #fff5}.primary-button svg{width:18px;height:18px}@keyframes enter{0%{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:600px){.hud{top:max(12px,env(safe-area-inset-top));left:12px;right:12px}.level-label{font-size:12px;padding:9px 11px}.hud-button{width:39px;height:39px;border-radius:11px}.hud-actions{gap:8px}.floating-panel{top:63px;right:12px}.modal-backdrop{padding:14px}.ticket-dialog{padding:17px}.ticket-dialog h2{font-size:21px}.tickets{grid-template-columns:repeat(2,1fr);gap:10px}.ticket-city{font-size:22px;padding:10px 12px}.route{margin:16px 0;gap:10px}.ticket-note{font-size:10px;margin-top:17px}.result-dialog{padding:25px 22px}.result-dialog h2{font-size:23px}.result-dialog p{font-size:12px}}@media(max-height:500px){.ticket-dialog{padding:13px 20px}.ticket-dialog h2{font-size:20px;margin:7px 0}.route{margin:10px 0}.ticket-city{padding:6px 12px;font-size:20px}.ticket-note{margin-top:12px}.result-dialog{padding:20px}.result-symbol{width:44px;height:44px;margin-bottom:12px}.result-stats{margin:12px 0;padding:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}#story-panel{position:absolute;left:50%;bottom:max(22px,env(safe-area-inset-bottom));transform:translate(-50%);width:min(580px,calc(100% - 28px));padding:17px 20px;background:#fffffff5;border:2px solid #233e69;border-radius:15px;box-shadow:0 4px #233e6944;font-size:14px;line-height:1.7}#story-panel p{margin:0 0 12px}#story-panel.encounter{width:max-content;max-width:calc(100% - 28px);pointer-events:none}#story-panel.encounter p{margin:0}.destination-options{display:flex;gap:10px}.destination-options button{flex:1;display:flex;align-items:center;justify-content:space-between;border:2px solid #233e69;border-radius:10px;background:#ffdf66;padding:10px 12px;font-weight:700;gap:8px}.destination-options button:hover{background:#ffe99b}.destination-options svg{width:16px;height:16px}#story-panel .primary-button{padding:10px}@media(max-width:600px){#story-panel{font-size:12px;padding:13px;bottom:max(16px,env(safe-area-inset-bottom))}.destination-options{gap:7px}.destination-options button{font-size:12px;padding:9px 8px;gap:3px}.destination-options svg{width:13px;height:13px}}@media(max-height:500px){#story-panel{bottom:10px;padding:9px 14px;font-size:12px}#story-panel p{margin-bottom:6px}.destination-options button{padding:6px 10px}}#game canvas{width:100%!important;height:100%!important;image-rendering:auto}
