.balance-playground{--bp-teal: var(--color-primary, #0d9488);color:#1e293b;border:1px solid #cbdedc;border-radius:24px;background:#fff;overflow:hidden;max-width:100%;min-width:0;container-type:inline-size;container-name:balance-playground;box-shadow:0 12px 32px #0f766e0a}.balance-playground *,.balance-playground *:before,.balance-playground *:after{box-sizing:border-box}.balance-playground button{font:inherit;cursor:pointer;min-height:44px;border-radius:12px;line-height:1.3;transition:background-color .15s,box-shadow .15s}.balance-playground button:focus-visible,.balance-playground input:focus-visible{outline:3px solid #0f766e;outline-offset:3px}.balance-playground button:disabled{cursor:default;opacity:.48}.balance-playground h2,.balance-playground h3,.balance-playground p{margin:0}.balance-playground h2{font-size:clamp(1.25rem,2.5vw,1.65rem);font-weight:800;line-height:1.25}.balance-playground h3{font-size:1rem;font-weight:750;line-height:1.4}.bp-topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px}.bp-eyebrow{color:#0f766e;font-size:.69rem;font-weight:800;letter-spacing:.12em;display:block;margin-bottom:5px}.bp-difficulties{display:flex;background:#eff6f6;border:1px solid #d1e4e1;padding:4px;border-radius:14px;gap:3px}.bp-difficulties button{border:0;padding:10px 13px;background:transparent;font-size:.875rem;font-weight:700}.bp-difficulties button[aria-pressed=true]{background:#0f766e;color:#fff;box-shadow:0 2px 4px #0f766e30}.bp-difficulties button:hover:not([aria-pressed=true]){background:#d8efeb}.bp-guide{margin:0 24px 18px;background:#f0fdfa;border:1px solid #ccfbf1;border-radius:14px;padding:14px 16px;display:flex;gap:12px;align-items:center}.bp-guide-number{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;flex-shrink:0;background:#0f766e;color:#fff;font-weight:800}.bp-guide p{font-size:.875rem;line-height:1.5;margin-top:2px}.bp-puzzle-count{margin-left:auto;white-space:nowrap;font-size:.75rem;color:#475569}.bp-park{position:relative;background:#effaff;border-block:1px solid #d5e9ee}.bp-scene{width:100%;height:auto;display:block;user-select:none}.bp-beam{transition:transform .25s ease-out;transform-box:view-box}.bp-scene-slot{cursor:pointer;touch-action:none}.bp-fixed{cursor:default}.bp-scene-note{font-size:.75rem;color:#475569;text-align:center;padding:9px 16px;background:#edf6e8;line-height:1.5}.bp-status{position:absolute;top:12px;left:50%;transform:translate(-50%);border-radius:99px;padding:6px 15px;background:#fff;border:1px solid #cbd5e1;display:flex;align-items:center;gap:7px;font-size:.875rem;font-weight:750;white-space:nowrap;z-index:1}.bp-status span{font-size:1.1rem}.bp-status-balanced{color:#0f766e}.bp-feedback{margin:18px 24px 0;border-radius:12px;background:#f1f5f9;padding:12px 16px;line-height:1.5}.bp-feedback>p:first-child{font-weight:700;font-size:.95rem}.bp-feedback-success{background:#e8f8ef}.bp-feedback .bp-action-message{margin-top:3px;color:#475569;font-size:.85rem}.bp-controls{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr);gap:24px;padding:22px 24px}.bp-controls section{min-width:0}.bp-controls section>p{font-size:.8rem;line-height:1.5;color:#475569;margin:4px 0 12px}.bp-weight-choices{display:flex;gap:8px}.balance-playground .bp-weight-choice{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;padding:13px 7px 10px;background:#f8fafc;border:2px solid #dbe4ec;touch-action:none;user-select:none}.bp-weight-choice[aria-pressed=true]{outline:3px solid #0f766e;outline-offset:2px}.bp-weight-choice strong{font-size:.875rem}.bp-mini-weight{position:relative;width:29px;height:29px;border-radius:6px;margin-top:6px;display:block}.bp-mini-weight:before{content:"";position:absolute;width:14px;height:11px;border:3px solid currentColor;border-bottom:0;border-radius:7px 7px 0 0;left:7px;top:-8px}.bp-mass-1{color:#0f766e}.bp-mass-1 .bp-mini-weight{background:#0d9488}.bp-mass-2{color:#1d4ed8}.bp-mass-2 .bp-mini-weight{background:#2563eb}.bp-mass-3{color:#92400e}.bp-mass-3 .bp-mini-weight{background:#d97706}.balance-playground .bp-remove{width:100%;margin-top:12px;padding:9px;border:1px solid #cbd5e1;background:#fff;font-size:.8rem;font-weight:650}.bp-position-sides{display:grid;grid-template-columns:1fr 1fr;gap:18px}.bp-side{min-width:0}.bp-side-label{display:block;font-size:.75rem;font-weight:700;color:#475569;margin-bottom:6px}.bp-side:last-child .bp-side-label{text-align:right}.bp-slot-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.balance-playground .bp-slot{min-width:0;padding:7px 2px;display:flex;align-items:center;flex-direction:column;gap:4px;min-height:70px;border:1px dashed #94a3b8;background:#f8fafc;border-radius:10px}.bp-slot-number{font-size:.75rem;font-weight:800;color:#475569}.bp-slot-content{font-size:.8rem;font-weight:800;min-height:21px;display:flex;align-items:center;white-space:nowrap}.balance-playground .bp-slot-mass-1{color:#0f766e;background:#e6f8f5;border-style:solid;border-color:#80cfc3}.balance-playground .bp-slot-mass-2{color:#1d4ed8;background:#eff6ff;border-style:solid;border-color:#93b8f4}.balance-playground .bp-slot-mass-3{color:#92400e;background:#fffbeb;border-style:solid;border-color:#e8bf6e}.balance-playground .bp-slot-selected{outline:3px solid #0f766e;outline-offset:2px}.bp-slot:hover,.bp-remove:hover:not(:disabled){box-shadow:0 0 0 2px #0f766e35}.bp-bottom-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 24px 20px;flex-wrap:wrap}.bp-secondary-actions{display:flex;gap:8px;flex-wrap:wrap}.bp-secondary-actions button,.bp-explain-toggles button{border:1px solid #cbd5e1;background:#fff;padding:10px 12px;font-size:.8rem;font-weight:650}.bp-secondary-actions button:hover,.bp-explain-toggles button:hover{background:#f0fdfa}.balance-playground .bp-next{padding:10px 16px;background:#0f766e;color:#fff;border:1px solid #0f766e;font-size:.875rem;font-weight:750}.bp-next span{margin-left:6px}.bp-explain{border-top:1px solid #e2e8f0;padding:16px 24px;background:#fbfdfd}.bp-explain-toggles{display:flex;gap:8px;flex-wrap:wrap}.bp-effects,.bp-hint{margin-top:12px!important;font-size:.85rem;line-height:1.6;background:#fff;padding:12px;border:1px solid #e2e8f0;border-radius:12px}.bp-effects-values{display:flex;gap:16px;padding:8px 0}.bp-effects-values span{display:flex;gap:12px;align-items:center;padding:5px 12px;border-radius:9px;background:#eff6ff}.bp-effects-values strong{font-size:1.2rem}.bp-model-note{color:#64748b;font-size:.75rem;line-height:1.6;margin-top:12px!important}.bp-share{margin:0 24px 20px;padding:12px;background:#f0fdfa;border:1px solid #99dacf;border-radius:12px;min-width:0;font-size:.85rem}.bp-share input{display:block;width:100%;min-width:0;margin-top:8px;border:1px solid #94a3b8;padding:10px;height:44px;border-radius:8px;color:#334155;font-size:.8rem;background:#fff}.bp-share .bp-share-note{margin-top:6px;font-size:.75rem;color:#475569}.bp-drag-ghost{position:fixed;pointer-events:none;transform:translate(-50%,-110%);padding:12px 14px;border:3px solid #fff;border-radius:12px;box-shadow:0 5px 20px #0f172a40;color:#fff;font-size:1rem;font-weight:800;z-index:1000}@container balance-playground (max-width: 760px){.bp-topbar{align-items:flex-start;flex-direction:column;padding:18px;gap:14px}.bp-difficulties{width:100%}.bp-difficulties button{flex:1}.bp-guide{margin-inline:18px;padding:12px;align-items:flex-start}.bp-puzzle-count{display:none}.bp-controls{grid-template-columns:1fr;gap:22px;padding:20px 18px}.bp-weight-choices{max-width:330px}.balance-playground .bp-remove{width:auto;padding-inline:16px}.bp-position-sides{gap:20px}.bp-slot-row{gap:7px}.balance-playground .bp-slot{min-width:44px}.bp-feedback{margin-inline:18px}.bp-bottom-bar,.bp-explain{padding-inline:18px}.bp-share{margin-inline:18px}}@container balance-playground (max-width: 480px){.bp-status{font-size:.75rem;top:8px;padding:3px 11px}.bp-status span{font-size:.9rem}.bp-position-sides{grid-template-columns:1fr;gap:12px}.bp-side:last-child .bp-side-label{text-align:left}.balance-playground .bp-slot{min-height:64px}.bp-secondary-actions{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.bp-secondary-actions button{font-size:.75rem;padding:8px 5px}.bp-next{width:100%}.bp-scene-note{font-size:.69rem;padding:7px 12px}}@media(prefers-reduced-motion:reduce){.balance-playground button,.bp-beam{transition:none}}
