*{box-sizing:border-box}body{margin:0;background:#fff;color:#2a2328;font:14px/1.5 system-ui,sans-serif}button{font:inherit;color:inherit;border:0;border-radius:8px;background:#f3f4f6;min-height:44px;padding:8px 12px;touch-action:manipulation}button:disabled{opacity:.4}button[aria-pressed=true]{outline:2px solid #2a2328;outline-offset:1px;background:#eef0f3}main{max-width:460px;margin:auto;padding:8px 12px 20px}.companion{display:flex;align-items:center;gap:10px}.companion img{width:64px;height:64px;object-fit:contain}.companion p{margin:2px 0;color:#6e626a;font-size:13px}.hud{display:flex;justify-content:space-between;font-size:12px;margin:5px 0}.boards{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#faf7f1;border-radius:12px;padding:10px}.boards p{text-align:center;margin:0 0 6px;font-size:12px}.grid{display:grid;grid-template-columns:repeat(5,1fr);aspect-ratio:1;border:3px solid #fff;border-radius:6px;overflow:hidden;box-shadow:0 2px 6px #0001}.cell{border:.5px solid #ffffff50;background:var(--paint)}.hint{font-size:12px;color:#6e626a;margin:8px 0}.label{margin:8px 0 6px;font-size:13px}.label span{font-size:11px;color:#6e626a}.masks{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.masks button{padding:5px;font-size:12px}.mini{display:grid;grid-template-columns:repeat(5,1fr);width:34px;height:34px;margin:0 auto 3px;gap:1px}.mini i{background:#ddd8ce}.mini .hole{background:#605a56}.colors{display:flex;gap:8px}.colors button{flex:1;display:flex;gap:6px;align-items:center;justify-content:center}.swatch{width:19px;height:19px;border-radius:50%;background:var(--paint)}.actions{display:grid;grid-template-columns:1fr 2fr;gap:10px;margin-top:12px}.primary{background:#2a2328;color:#fff}#history{font-size:11px;min-height:17px;color:#6e626a;margin:7px 0}#panel{text-align:center;background:#faf7f1;border-radius:12px;padding:12px}h1{font-size:19px;margin:0}#panel p{font-size:13px;margin:5px 0 10px}#panel button{margin:3px}#save{font-size:12px;color:#6e626a;margin:4px 0}[hidden]{display:none!important}#sound{min-width:40px;padding:4px}
.companion img{width:52px;height:52px}.colors button{font-size:12px;padding:6px 4px;gap:4px;white-space:nowrap}.swatch{flex-shrink:0;width:16px;height:16px}.label{margin:6px 0 5px}.boards{padding:8px;gap:10px}.mini{width:30px;height:30px}
