*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;overflow:hidden;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#0b1e2e;color:#122}#scene{position:fixed;top:0;right:0;bottom:0;left:0}#scene canvas{display:block}.hidden{display:none!important}button{font-family:inherit;cursor:pointer}.btn{background:#0f766e;color:#fff;border:0;border-radius:10px;padding:10px 14px;font-weight:700}.btn.big{width:100%;padding:14px;font-size:16px}.btn.small{padding:7px 10px;font-size:12px;background:#134e4a}.btn.ghost{background:#e2e8f0;color:#0f172a}.btn.warn{background:#b45309}.btn:disabled{opacity:.5;cursor:not-allowed}#hud{position:fixed;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;background:linear-gradient(#041420d9,#0414208c);color:#fff;z-index:20;flex-wrap:wrap}.logo{font-weight:900;letter-spacing:.5px;font-size:17px}.hud-sub{font-size:11px;opacity:.85}.hud-mid{display:flex;gap:6px;flex-wrap:wrap}.chip{background:#ffffff24;border:1px solid rgba(255,255,255,.25);padding:6px 9px;border-radius:20px;font-size:12px;font-weight:600}.chip.coins{background:#f59e0b;color:#1c1005;border-color:#fbbf24}#needs{position:fixed;top:64px;left:10px;width:210px;background:#fffffff0;border-radius:14px;padding:10px 12px;z-index:15;box-shadow:0 6px 24px #00000040}.needs-title{font-size:12px;font-weight:900;letter-spacing:.5px;color:#0f766e;display:flex;justify-content:space-between}.need{margin-top:7px;font-size:12px}.need label{display:flex;justify-content:space-between;font-weight:600}.bar{height:8px;background:#e2e8f0;border-radius:6px;overflow:hidden;margin-top:3px}.bar i{display:block;height:100%;border-radius:6px;background:#10b981;transition:width .4s}.bar i.low{background:#f59e0b}.bar i.crit{background:#ef4444}.needs-note{font-size:11px;color:#475569;margin-top:8px;line-height:1.4}#action-bar{position:fixed;left:50%;bottom:86px;transform:translate(-50%);background:#fffffff5;border-radius:14px;padding:10px 14px;z-index:16;box-shadow:0 8px 30px #0000004d;text-align:center;max-width:92vw}#action-title{font-weight:800;margin-bottom:8px}#action-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}#toast{position:fixed;left:50%;bottom:190px;transform:translate(-50%);background:#0f172a;color:#fff;padding:10px 16px;border-radius:12px;z-index:40;font-size:14px;box-shadow:0 8px 30px #00000059;max-width:90vw;text-align:center}#bottomnav{position:fixed;left:50%;bottom:10px;transform:translate(-50%);display:flex;gap:4px;background:#041420eb;padding:6px;border-radius:16px;z-index:20}#bottomnav button{background:transparent;color:#cbd5e1;border:0;padding:9px 13px;border-radius:11px;font-size:14px;font-weight:700}#bottomnav button.active{background:#0f766e;color:#fff}#joystick{position:fixed;left:18px;bottom:84px;width:110px;height:110px;border-radius:50%;background:#ffffff2e;border:2px solid rgba(255,255,255,.4);z-index:18;touch-action:none}#stick{position:absolute;left:35px;top:35px;width:40px;height:40px;border-radius:50%;background:#ffffffd9}#keys-hint{position:fixed;right:12px;bottom:84px;font-size:11px;color:#fff;background:#00000073;padding:6px 9px;border-radius:9px;z-index:15}#panel{position:fixed;top:64px;right:10px;width:min(430px,94vw);max-height:calc(100vh - 150px);overflow:auto;background:#fff;border-radius:16px;z-index:25;box-shadow:0 12px 40px #00000059}#panel-head{position:sticky;top:0;background:#0f766e;color:#fff;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;font-weight:800;z-index:2}#panel-close{background:transparent;border:0;color:#fff;font-size:18px}#panel-body{padding:14px}#panel-body h3{margin:12px 0 6px;color:#0f766e}#panel-body p{font-size:14px;line-height:1.55;color:#334155;margin:6px 0}#panel-body ul{margin:6px 0 6px 18px;font-size:14px;line-height:1.6;color:#334155}.card{background:#f1f5f9;border-radius:12px;padding:12px;margin:10px 0}.card b{color:#0f172a}.row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #e2e8f0;font-size:14px}.row:last-child{border-bottom:0}.pill{display:inline-block;background:#ccfbf1;color:#115e59;border-radius:20px;padding:3px 9px;font-size:11px;font-weight:700}.pill.sim{background:#fef3c7;color:#92400e}.pill.live{background:#dcfce7;color:#166534}#modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#020a1499;display:flex;align-items:center;justify-content:center;z-index:50;padding:12px}#modal-card{background:#fff;border-radius:18px;width:min(560px,96vw);max-height:88vh;overflow:auto}#modal-head{background:#0f172a;color:#fff;padding:13px 16px;display:flex;justify-content:space-between;font-weight:800}#modal-close{background:transparent;border:0;color:#fff;font-size:18px}#modal-body{padding:16px}#modal-body p{font-size:14px;line-height:1.55;color:#334155;margin:6px 0}.taskbtn{display:block;width:100%;text-align:left;background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:12px;margin:8px 0;font-size:15px;font-weight:600}.taskbtn:hover{border-color:#0f766e}.taskbtn.correct{border-color:#10b981;background:#ecfdf5}.taskbtn.wrong{border-color:#ef4444;background:#fef2f2}.progress{height:10px;background:#e2e8f0;border-radius:6px;overflow:hidden;margin:8px 0}.progress i{display:block;height:100%;background:#0f766e}#create{position:fixed;top:0;right:0;bottom:0;left:0;background:linear-gradient(160deg,#0b3b4d,#0f766e 55%,#f59e0b);display:flex;align-items:center;justify-content:center;z-index:100;padding:14px;overflow:auto}.create-card{background:#fff;border-radius:20px;padding:24px;width:min(520px,96vw)}.create-card h1{font-size:24px;margin-bottom:8px}.create-sub{font-size:14px;line-height:1.6;color:#334155;margin-bottom:14px}.create-card label{display:block;font-size:13px;font-weight:700;margin:12px 0 4px}.create-card input,.create-card select{width:100%;padding:11px;border:2px solid #cbd5e1;border-radius:10px;font-size:15px;margin-top:4px}.swatches{display:flex;gap:8px;margin-top:6px;flex-wrap:wrap}.sw{width:34px;height:34px;border-radius:50%;border:3px solid transparent;cursor:pointer}.sw.sel{border-color:#0f172a;transform:scale(1.12)}.create-note{font-size:13px;background:#fef3c7;border-radius:10px;padding:10px;margin-top:14px;line-height:1.5}.create-fine{font-size:11px;color:#64748b;margin-top:10px;line-height:1.5}#fade{position:fixed;top:0;right:0;bottom:0;left:0;background:#020617;z-index:90;display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px;font-weight:800}.mixer{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}.track{background:#0f172a;color:#fff;border-radius:12px;padding:10px;text-align:center}.track h4{font-size:12px;margin-bottom:6px}.track input[type=range]{width:100%;accent-color:#f59e0b}.track .fader{writing-mode:vertical-lr;direction:rtl;height:90px;width:26px;margin:6px auto;display:block}.track select{width:100%;margin-top:6px;background:#1e293b;color:#fff;border:0;border-radius:6px;padding:5px}.eq{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;font-size:10px;margin-top:6px}.eq label{font-size:10px}.eq input{width:100%}canvas#minimap{width:100%;border-radius:12px;background:#dbeafe}.kbd{background:#e2e8f0;border-radius:5px;padding:1px 6px;font-size:12px}@media(max-width:640px){#hud{padding:6px 8px}.logo{font-size:15px}.chip{font-size:11px;padding:5px 7px}#btn-about{display:none}#needs{width:178px;top:118px}#panel{top:118px}#toast{bottom:200px}.hud-sub,#keys-hint{display:none}#joystick{display:block}#panel{top:104px}}#needs .needs-title{cursor:pointer}#needs.collapsed .need,#needs.collapsed .needs-note{display:none}#needs.collapsed .needs-title:after{content:" ▾"}#needs .needs-title:after{content:" ▴"}
