.hud{position:fixed;inset:0;pointer-events:none;font-family:inherit;z-index:10}.hud button,.hud input,.hud canvas{pointer-events:auto}.topbar{position:absolute;top:calc(6px + env(safe-area-inset-top));left:8px;right:64px;padding:6px 10px;border-radius:14px;background:#0c121c8c;backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.12);color:#f2f6fb;font-size:13px;line-height:1.25;pointer-events:none}.tb-row{display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden}.tb-goal{color:#ffe6a8;overflow:hidden;text-overflow:ellipsis;font-size:13px}.tb-needs{display:flex;gap:4px;margin-top:4px}.tb-needs i{height:4px;border-radius:2px;flex:1;display:block;background:#333}.tb-needs span{flex:1;height:4px;border-radius:2px;background:#ffffff26;overflow:hidden;display:block}.prompt{position:absolute;top:calc(66px + env(safe-area-inset-top));left:50%;transform:translate(-50%);padding:7px 14px;border-radius:999px;background:#101621c7;border:1px solid rgba(255,226,168,.55);color:#ffe9b8;font-size:14px;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}.toast{position:absolute;left:50%;bottom:200px;transform:translate(-50%);background:#141c28e6;color:#eef4fb;font-size:14px;padding:9px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.15);max-width:86vw;text-align:center;animation:pop .25s ease-out}@keyframes pop{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}.screen{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12px;background:linear-gradient(180deg,#060a128c,#060a12db);overflow-y:auto}.card{width:100%;max-width:420px;max-height:88vh;overflow-y:auto;background:linear-gradient(180deg,#141b28f7,#0e131df7);border:1px solid rgba(255,214,150,.3);border-radius:20px;padding:16px;color:#f4f7fb;box-shadow:0 18px 50px #00000080;pointer-events:auto}.title{font-size:26px;font-weight:800;letter-spacing:.5px;margin:0 0 4px;color:#ffe1a8}.sub{font-size:14px;line-height:1.5;margin:0 0 10px;color:#cfd8e3}.ct-title{font-size:20px;margin:2px 0 4px;color:#ffe1a8}.ct-sub{font-size:13px;margin:0 0 10px;color:#b9c4d2;line-height:1.45}.ct-row{display:flex;align-items:center;gap:8px;margin:6px 0;flex-wrap:wrap}.ct-label{font-size:13px;color:#cfd8e3;min-width:78px}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{min-height:44px;min-width:44px;padding:0 12px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:#ffffff14;color:#eef3f9;font-size:13px;font-family:inherit}.chip.on{background:#ffd166e6;color:#1b2230;border-color:#ffd166;font-weight:700}.swatch{width:44px;height:44px;border-radius:12px;border:2px solid rgba(255,255,255,.25)}.swatch.on{border-color:#ffd166;box-shadow:0 0 0 2px #ffd16666}.btn-play{width:100%;min-height:52px;margin-top:12px;border:none;border-radius:14px;background:linear-gradient(180deg,#ffd166,#e8a33d);color:#17202e;font-size:17px;font-weight:800;font-family:inherit}.btn-sm{min-height:44px;min-width:72px;border-radius:12px;border:1px solid rgba(255,255,255,.2);background:#ffffff1f;color:#f2f7fc;font-size:14px;font-family:inherit}.btn-sm:disabled{opacity:.4}.panel{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#e9eff7}.row-between{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}.item-row{padding:6px 0;border-bottom:1px solid rgba(255,255,255,.1)}.stat{display:flex;align-items:center;gap:8px;font-size:13px}.stat-label{width:54px;color:#c8d3df}.stat-num{width:30px;text-align:left;font-size:12px;color:#a9b6c4}.bar{flex:1;height:10px;border-radius:6px;background:#ffffff24;overflow:hidden}.bar i{display:block;height:100%;border-radius:6px}.hint{font-size:13px;line-height:1.5;color:#b3c0ce;margin:4px 0}.dialog{font-size:15px;line-height:1.6;color:#f6efdf;background:#ffffff12;border-radius:12px;padding:12px;margin:6px 0;white-space:pre-line}.map-wrap{display:flex;flex-direction:column;gap:6px;align-items:center}.map{width:100%;max-width:300px;height:auto;border-radius:12px;border:1px solid rgba(255,255,255,.15)}.slider{flex:1;min-width:160px;accent-color:#ffd166}.mt{margin-top:8px}.pad{padding:2px 0}.screen.start{align-items:flex-end;padding-bottom:calc(10px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#060a1200 30%,#060a128c 55%,#060a12e6)}.card.start{max-height:62vh}.preview-note{position:absolute;top:calc(14px + env(safe-area-inset-top));left:50%;transform:translate(-50%);color:#ffe1a8;font-size:13px;background:#0a101a99;padding:6px 12px;border-radius:999px;border:1px solid rgba(255,209,102,.35)}
