*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Hiragino Maru Gothic ProN,Yu Gothic,Noto Sans JP,sans-serif;background:#c88ea7;-webkit-user-select:none;user-select:none;touch-action:none}#app-canvas{display:block;width:100%;height:100%;cursor:pointer}#labels-layer{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;z-index:5}.world-label{position:absolute;transform:translate(-50%,-100%);pointer-events:auto;cursor:pointer;background:#f9edd4;color:#5a3c24;border:2.5px solid #8a6443;border-radius:30px;padding:10px 16px 9px;box-shadow:0 10px 26px #2d191052;transition:transform .15s ease,box-shadow .15s ease;display:flex;flex-direction:column;gap:6px;min-width:228px}.world-label:hover{transform:translate(-50%,-105%) scale(1.03)}.world-label.playing{border-color:#e69545;box-shadow:0 12px 28px #e695456b}.world-label:after{content:"";position:absolute;left:50%;bottom:-11px;transform:translate(-50%);border-width:11px 10px 0 10px;border-style:solid;border-color:#f9edd4 transparent transparent transparent;filter:drop-shadow(0 2px 0 #8a6443)}.bubble-top-row{display:flex;align-items:center;gap:10px}.bubble-play-circle{width:34px;height:34px;border-radius:50%;background:#f2be7e;border:2px solid #7d522f;color:#5c371a;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:900;flex-shrink:0}.world-label.playing .bubble-play-circle{background:#f29d4b;color:#fff}.bubble-right-col{display:flex;flex-direction:column;gap:5px;flex:1}.bubble-wave{display:flex;align-items:center;gap:2.5px;height:24px}.bubble-bar{width:3px;border-radius:99px;background:#8f7259;transition:background .12s ease,height .08s ease}.bubble-bar.filled{background:#e3863b}.bubble-seek-row{display:flex;align-items:center;gap:8px}.bubble-seek-track{position:relative;flex:1;height:7px;border-radius:99px;background:#d8c7a9;border:1px solid #9e8262}.bubble-seek-fill{height:100%;width:0%;border-radius:99px;background:#f2a24c}.bubble-seek-knob{position:absolute;top:50%;left:0%;transform:translate(-50%,-50%);width:13px;height:13px;border-radius:50%;background:#f7c57c;border:2px solid #7d522f}.bubble-time{font-size:11px;font-weight:800;color:#6b4c33;font-variant-numeric:tabular-nums;white-space:nowrap}.hud-top-left{position:fixed;top:14px;left:14px;z-index:10;display:flex;flex-direction:column;gap:8px;pointer-events:none}.stat-top-row{display:flex;align-items:center;gap:8px}.heart-badge{width:44px;height:44px;border-radius:50%;background:#f7e6c4;border:2.5px solid #6e4829;display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 4px 12px #28160c47}.stat-meter-group{display:flex;flex-direction:column;gap:4px}.stat-icons-mini{font-size:13px;letter-spacing:3px;text-shadow:0 1px 3px rgba(0,0,0,.45)}.stat-bar-track{width:96px;height:9px;border-radius:99px;background:#3a2416a6;border:1.5px solid #f2d6a7;overflow:hidden}.stat-bar-fill{width:55%;height:100%;background:linear-gradient(90deg,#f5b35c,#ffe08a);transition:width .25s ease}.stat-counter-row{display:flex;gap:10px;padding-left:4px}.counter-pill{background:#3622168c;color:#fff3da;font-size:13px;font-weight:800;padding:3px 10px;border-radius:999px;border:1.5px solid rgba(247,230,196,.55);text-shadow:0 1px 2px rgba(0,0,0,.4)}.hud-top-right{position:fixed;top:14px;right:14px;z-index:10;display:flex;flex-direction:column;gap:10px}.round-cream-btn{width:48px;height:48px;border-radius:50%;background:#f7e6c4;border:2.5px solid #6e4829;color:#5c371a;font-size:21px;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 14px #28160c4d;cursor:pointer;transition:transform .12s ease}.round-cream-btn:active{transform:scale(.92)}.joystick-zone{position:fixed;left:20px;bottom:max(20px,env(safe-area-inset-bottom));z-index:12;width:112px;height:112px;display:flex;align-items:center;justify-content:center;touch-action:none}.joystick-base{position:relative;width:96px;height:96px;border-radius:50%;background:#f7e6c440;border:2px solid rgba(255,240,210,.55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center}.joystick-knob{width:42px;height:42px;border-radius:50%;background:#f7e6c4e0;border:2px solid #7a5230;box-shadow:0 4px 10px #28160c4d;transform:translate(0);pointer-events:none}.hud-bottom-right{position:fixed;right:18px;bottom:max(18px,env(safe-area-inset-bottom));z-index:12;display:grid;grid-template-columns:auto auto;gap:10px;align-items:end}.action-circle-btn{border-radius:50%;background:#f7e6c4;border:2.5px solid #6e4829;color:#54341b;font-weight:800;box-shadow:0 8px 18px #28160c57;cursor:pointer;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.15;transition:transform .12s ease,background .15s ease}.action-circle-btn:active{transform:scale(.92)}.action-circle-btn.listen{width:62px;height:62px;font-size:13px}.action-circle-btn.clap{width:64px;height:64px;font-size:12px}.action-circle-btn.sing{width:78px;height:78px;font-size:14px;background:linear-gradient(145deg,#f8c67c,#eb9846);color:#4a280e;border-color:#6b3d17;grid-column:2}.player-card{position:fixed;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translate(-50%);z-index:11;width:min(56vw,310px);background:#f9edd4f5;border:2.5px solid #7d5432;border-radius:20px;padding:12px 14px;box-shadow:0 12px 26px #28160c57}.player-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.player-badge{display:inline-block;font-size:10.5px;font-weight:800;color:#8a4b16;background:#f5d8a8;padding:2px 8px;border-radius:999px;margin-bottom:3px}.player-title{font-size:14px;font-weight:800;color:#4d3018}.player-author{font-size:11.5px;color:#7d5b3e}.player-visualizer{margin:8px 0}.level-bar-track{width:100%;height:9px;border-radius:999px;background:#e2d1b2;overflow:hidden}.level-bar-fill{width:0%;height:100%;border-radius:999px;background:linear-gradient(90deg,#f2a24c,#e66a45);transition:width .05s linear}.player-actions{display:flex;align-items:center;gap:8px}.primary-btn,.secondary-btn,.danger-btn,.like-btn,.rec-btn,.demo-btn{border:2px solid #7d5432;border-radius:14px;font-weight:800;cursor:pointer;font-size:13.5px;padding:9px 15px}.primary-btn{background:linear-gradient(145deg,#f4b668,#e68c3e);color:#4a280e}.primary-btn:disabled{opacity:.45;cursor:not-allowed}.primary-btn.full{width:100%;padding:12px;font-size:15px}.primary-btn.small,.danger-btn.small{padding:7px 12px;font-size:12.5px}.secondary-btn{background:#efe2c6;color:#5c3c24}.danger-btn{background:#f7d6d0;color:#a63429;border-color:#a63429;margin-left:auto}.like-btn{background:#f9e6b8;color:#7d4e15;padding:7px 12px;font-size:12.5px}.rec-btn{background:#d95241;border-color:#7d251b;color:#fff8ee;flex:1}.rec-btn.recording{background:#4a2e1b}.demo-btn{width:100%;background:#f3e4c5;color:#5c3c24;border-style:dashed;font-size:13px}.close-mini-btn{border:2px solid #7d5432;background:#efe2c6;color:#5c3c24;width:28px;height:28px;border-radius:50%;font-size:13px;font-weight:800;cursor:pointer}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#22140e8f;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:16px}.modal-panel{width:min(94vw,400px);max-height:90vh;overflow-y:auto;background:#faf0da;border:3px solid #7d5432;border-radius:24px;padding:20px;box-shadow:0 20px 44px #180e0a6b}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.modal-header h2{margin:0;font-size:18px;color:#4d3018}.form-group{margin-bottom:13px}.form-group label{display:block;font-size:12px;font-weight:700;color:#735136;margin-bottom:6px}.form-group input[type=text]{width:100%;border:2px solid #c9b08b;background:#fffaf0;border-radius:12px;padding:9px 12px;font-size:14px;color:#4d3018;outline:none;-webkit-user-select:text;user-select:text}.form-group input[type=text]:focus{border-color:#e68c3e}.motion-picker{display:flex;flex-wrap:wrap;gap:8px}.motion-chip{border:2px solid #c9b08b;background:#fff8ea;color:#5c3c24;font-size:12.5px;font-weight:700;padding:7px 12px;border-radius:999px;cursor:pointer}.motion-chip.active{border-color:#d97a29;background:#f7d8a3;color:#4d290a}.record-box{background:#f4e6ca;border:2px solid #d4bc94;border-radius:16px;padding:12px;margin-bottom:14px}.record-status-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.record-status{font-size:12px;color:#6b4c33;font-weight:700}.record-timer{font-size:12px;font-weight:800;color:#c24234;font-variant-numeric:tabular-nums}.record-controls{display:flex;gap:8px;margin-top:10px}.divider-text{text-align:center;font-size:11px;color:#8c6e50;margin:10px 0 8px}.swatch-row{display:flex;flex-wrap:wrap;gap:10px}.swatch-btn{width:34px;height:34px;border-radius:50%;border:3px solid #fff8ea;box-shadow:0 0 0 2px #b59772;cursor:pointer}.swatch-btn.active{box-shadow:0 0 0 3px #e68c3e;transform:scale(1.1)}.toast{position:fixed;top:72px;left:50%;transform:translate(-50%);z-index:40;background:#4a2c18f0;color:#fff4df;border:2px solid #f2c683;padding:9px 18px;border-radius:999px;font-size:13px;font-weight:700;box-shadow:0 8px 20px #0000004d}.hidden{display:none!important}@media(max-width:680px){.player-card{display:none}}
