*{box-sizing:border-box}
html,body{margin:0;background:#f6efe2;color:#2b2622;font-family:ui-rounded,"SF Pro Rounded","Nunito",system-ui,-apple-system,Segoe UI,sans-serif}
header{padding:14px 18px 6px;max-width:980px;margin:0 auto}
.brand{font-weight:800;font-size:22px;letter-spacing:.2px}
.logo{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#2b2622;color:#f6efe2;margin-right:6px}
.tag{opacity:.7;font-size:14px;margin-top:2px}
main{max-width:980px;margin:0 auto;padding:6px 14px 30px}
.stage{position:relative;width:100%;aspect-ratio:16/10;background:#fffdf8;border-radius:16px;box-shadow:0 1px 0 #e7dcc8,0 10px 30px rgba(80,60,30,.12);overflow:hidden;touch-action:none}
canvas{display:block;width:100%;height:100%;cursor:crosshair}
.hint{position:absolute;inset:auto 0 14px 0;text-align:center;font-size:14px;opacity:.45;pointer-events:none;transition:opacity .3s}
.bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.bar.small{font-size:14px;gap:12px}
button,select{font:inherit;border:0;border-radius:12px;padding:9px 13px;background:#ebe1cf;color:#2b2622;cursor:pointer}
button:hover{filter:brightness(.96)}
button.big{background:#2b2622;color:#fff8ec;font-weight:700;padding:11px 20px;min-width:110px}
button.accent{background:#ffcf5c}
.pens{display:flex;gap:8px;margin:0 6px}
.pen{width:36px;height:36px;border-radius:50%;padding:0;border:3px solid transparent}
.pen.on{border-color:#2b2622;box-shadow:0 0 0 2px #fffdf8 inset}
label{display:flex;align-items:center;gap:6px}
input[type=range]{width:110px;accent-color:#2b2622}
.chk input{width:18px;height:18px;accent-color:#2b2622}
.presets span{opacity:.6}
.foot{font-size:13px;opacity:.6;line-height:1.5;margin-top:16px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(80px);background:#2b2622;color:#fff8ec;padding:10px 16px;border-radius:12px;font-size:14px;transition:transform .25s;pointer-events:none}
.toast.show{transform:translateX(-50%) translateY(0)}
@media (max-width:600px){.stage{aspect-ratio:4/5}.tag{font-size:13px}input[type=range]{width:80px}}
