:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#203b36;background:#f6f5f0;font-synthesis:none;--green:#254f45;--accent:#d9ef79;--muted:#78847b;--line:#e2e5dc}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input,label{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:#fff;color:inherit;border-radius:12px;min-height:52px;padding:12px 18px;font-weight:600;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#edf1e7}button:active:not(:disabled){transform:scale(.98)}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,label:focus-visible{outline:3px solid #7e9c2e;outline-offset:4px}[hidden]{display:none!important}h1,h2,p{margin-top:0}h1,h2{letter-spacing:-.045em}h1{font-size:30px;font-weight:650;margin-bottom:0}h2{font-weight:650}a{color:inherit}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:750;color:#7e8d79;margin-bottom:10px}.primary{background:var(--accent);border-color:var(--accent);color:#233b27}.primary:hover:not(:disabled){background:#cbe263}.icon-button{width:52px;padding:8px;font-size:25px;background:transparent}.topbar{height:94px;padding:0 3.2%;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:32px;background:#fafbf6}.brand{display:flex;align-items:center;text-decoration:none;font-size:29px;font-weight:750;letter-spacing:-1.5px;gap:10px}.brand-dot{color:#91ac39;margin-left:-10px}.brand-mark{display:grid;place-items:center;width:41px;height:41px;font-size:36px;border-radius:10px;background:var(--green);color:var(--accent);line-height:1;font-weight:400}.tagline{font-size:12px;color:var(--muted)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.header-actions form{margin:0}.quiet{background:transparent;border-color:transparent;display:flex;align-items:center;gap:10px;font-size:13px}.badge{background:#e7ecdd;min-width:23px;height:23px;padding:4px 6px;border-radius:7px;font-size:11px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:38px;padding:32px 3.2%;max-width:2000px;margin:auto}.stage-panel{min-width:0}.stage-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.round-badge{font-size:9px;font-weight:700;letter-spacing:.08em;border:1px solid #d9dfcd;background:#eef2e3;padding:9px 12px;border-radius:20px;white-space:nowrap}.stage{height:calc(100dvh - 246px);min-height:350px;max-height:1100px;display:flex;align-items:center;justify-content:center;border:1px solid #dce2d4;border-radius:18px;background:#e9ede2;background-image:radial-gradient(#cdd6c7 .8px,transparent .8px);background-size:16px 16px;overflow:hidden}.board{position:relative;overflow:hidden;background:#fff;max-width:100%;max-height:100%}.board>img{position:absolute;width:100%;height:100%;object-fit:contain;user-select:none}.tiles{position:absolute;inset:0;display:grid;gap:0}.tile{border-radius:0;min-height:0;min-width:0;padding:0;border:1px solid #ffffff13;color:#d6e4cf6b;font-size:clamp(10px,1vw,17px);font-weight:400;transition:opacity .25s,background .15s;user-select:none;-webkit-user-select:none;touch-action:manipulation}.tile.tone-0{background:#31594e}.tile.tone-1{background:#365e52}.tile.tone-2{background:#3b6356}.tile.tone-3{background:#345b50}.tile:hover:not(:disabled){background:#507c63;color:#e5f4be}.tile.revealed{opacity:0;pointer-events:none}.stage-footer{display:flex;justify-content:space-between;align-items:center;color:#879080;font-size:11px;margin-top:16px;gap:12px}.stage-footer>span:first-child{display:flex;align-items:center;gap:8px}.stage-footer>span:last-child{font-size:9px;letter-spacing:.1em;font-weight:700}.live-dot{width:6px;height:6px;background:#90a658;border-radius:50%}.controls{background:#fffefa;border:1px solid var(--line);border-radius:18px;padding:26px 23px;align-self:start}.controls-heading h2{font-size:22px;line-height:1.2;margin-bottom:24px}.control-section{border-top:1px solid var(--line);padding-top:23px;margin-top:22px}.label-row{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;margin-bottom:14px}.label-row label{font-weight:650}.label-row output{color:#526a37;font-size:11px;font-weight:650;background:#eef3df;padding:5px 7px;border-radius:5px}.label-row>span{font-size:11px}.stepper{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:12px;padding:7px;background:#f9faf5}.stepper button{font-size:24px;width:51px;padding:6px;border:0;background:white;box-shadow:0 1px 4px #233b2710}.stepper>div{text-align:center}.stepper strong{display:block;font-size:23px;font-weight:650;letter-spacing:.02em}.stepper>div span{font-size:9px;color:#8d978b}.helper{font-size:10px;color:#8b9588;margin:10px 0 0;line-height:1.6}.centered{text-align:center}input[type=range]{width:100%;height:38px;margin:0;accent-color:var(--green);cursor:pointer;touch-action:pan-y}input[type=range]::-webkit-slider-thumb{min-width:26px;min-height:26px}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:#8b9588;margin-top:3px}.play-button{margin-top:22px;width:100%;display:flex;justify-content:center;align-items:center;gap:12px;min-height:58px;font-size:15px}.play-button.playing{background:var(--green);color:white;border-color:var(--green)}progress{appearance:none;width:100%;height:5px;display:block;border:0;border-radius:10px;overflow:hidden;background:#edf0e6}progress::-webkit-progress-bar{background:#edf0e6}progress::-webkit-progress-value{background:#9eb656;border-radius:10px}progress::-moz-progress-bar{background:#9eb656}.round-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.round-actions button{padding:10px 5px;font-size:12px;background:#f8f9f3}.next-button{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:10px;font-size:12px}.next-button span{font-size:21px}.touch-tip{display:flex;gap:12px;margin-top:23px;padding-top:22px;border-top:1px solid var(--line);align-items:center}.touch-tip>span{font-size:25px;color:#95a47a}.touch-tip p{margin:0;color:#909888;font-size:10px;line-height:1.8}.touch-tip strong{color:#65775d;font-weight:600}.empty-state{text-align:center;padding:30px}.empty-state h2{font-size:32px;margin:25px 0 12px;line-height:1.15}.empty-state p{font-size:13px;line-height:1.8;color:#7b8976}.empty-state button{margin:8px auto 14px;display:block;min-width:210px}.empty-art{width:86px;height:86px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:auto;transform:rotate(-7deg)}.empty-art i{border-radius:5px;background:#4b6a54}.empty-art i:nth-child(3){background:#d2e98b;transform:translate(5px,-7px) rotate(16deg)}.empty-art i:nth-child(5){background:#94ac69}.empty-art i:nth-child(8){background:#6e8b59}dialog{border:1px solid #d6dfcf;border-radius:22px;color:inherit;padding:30px;width:min(860px,92vw);max-height:88dvh;background:#fafbf6;box-shadow:0 20px 100px #132a3540}dialog::backdrop{background:#132a35a3;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{font-size:30px;margin-bottom:10px}dialog>p{font-size:13px;line-height:1.6}.upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#eef3e2;border:2px dashed #bbcba0;border-radius:14px;padding:26px;cursor:pointer}.upload-zone strong{font-size:17px}.upload-zone span{color:#7b8973;font-size:11px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.image-card{border:2px solid transparent;border-radius:14px;padding:5px;background:#fff;overflow:hidden}.image-card.selected{border-color:#729450}.choose-image{border:0;width:100%;padding:0;text-align:left;border-radius:8px;overflow:hidden}.choose-image img{width:100%;height:135px;object-fit:cover;display:block}.choose-image span{display:block;padding:12px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remove-image{margin:0 5px 5px;min-height:44px;font-size:11px;color:#9b6153;padding:8px 12px;border:0;background:#fff7f0}.gallery-empty{text-align:center;padding:35px;color:var(--muted)}#upload-status{font-size:12px;color:#6b7b58;overflow-wrap:anywhere}#delete-dialog{width:min(420px,92vw)}.delete-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.danger{background:#a34232;color:white}.danger:hover:not(:disabled){background:#893526}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#203c32;color:white;border-radius:12px;padding:15px 23px;font-size:14px;box-shadow:0 8px 25px #203c3230;z-index:10;max-width:90vw}.login-page{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at 20% 0%,#e5edcc,transparent 60%),#f6f5f0;padding:30px}.login-card{max-width:460px;width:100%;padding:44px;background:#fffefa;border:1px solid var(--line);border-radius:25px;box-shadow:0 20px 70px #26442c0a}.login-card>.brand-mark{margin-bottom:30px}.login-card h1{font-size:64px;margin:0 0 20px;letter-spacing:-4px}.login-card h1 span{color:#a2b653}.login-intro{color:#7d8a77;line-height:1.7;font-size:14px}.login-card form{margin:30px 0}.login-card label{display:block;font-size:12px;font-weight:600;margin-bottom:10px}.login-card input[type=password]{width:100%;height:56px;border:1px solid #d9dfd0;background:#f9faf5;border-radius:10px;padding:16px;color:inherit}.login-card .primary{width:100%;margin-top:15px;display:flex;justify-content:space-between;align-items:center}.login-error{font-size:12px;color:#ad483c;margin:15px 0 0}.login-card>.small{margin:0}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(0,1fr) 360px;gap:45px}.controls{padding:30px}.controls-heading h2{font-size:25px}.label-row{font-size:14px}.round-actions button,.next-button{font-size:14px}.helper,.touch-tip p{font-size:12px}.control-section{padding-top:26px;margin-top:26px}}
@media(max-width:1100px){.tagline{display:none}.workspace{gap:22px;padding:24px;grid-template-columns:minmax(0,1fr) 280px}.controls{padding:22px 18px}.stage-heading{align-items:flex-start}.round-badge{display:none}h1{font-size:26px}.stage{height:calc(100dvh - 230px)}}
@media(max-width:760px){.topbar{height:78px;padding:0 18px;gap:10px}.brand{font-size:25px}.brand-mark{width:35px;height:35px;font-size:31px}.header-actions{gap:4px}.header-actions .quiet{padding:10px;gap:6px}.header-actions .quiet>span:first-of-type{display:none}.icon-button{width:45px;min-height:48px}.workspace{display:flex;flex-direction:column;padding:22px 16px;gap:24px}.stage-heading{margin-bottom:18px}.stage{height:54dvh;min-height:290px}.controls{width:100%;padding:24px}.controls-heading h2{margin-bottom:16px}.control-section{margin-top:18px;padding-top:20px}.touch-tip p{font-size:12px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}dialog{padding:22px}.upload-zone{padding:20px 12px}.upload-zone span{text-align:center;line-height:1.7}.empty-state h2{font-size:27px}.empty-art{width:65px;height:65px}.empty-state{padding:22px}.empty-state .small{font-size:10px}.login-card{padding:30px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
