:root{color-scheme:light;--paper:#f3eedf;--ivory:#fbf8ed;--ink:#1f3529;--pine:#173c2f;--gold:#a87940;--muted:#556054;--line:#dbcfb6;--serif:Georgia,"Times New Roman",serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 12% 4%,#fff9e8,transparent 50%),var(--paper);color:var(--ink);font:15px/1.55 system-ui,sans-serif}a{color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible,[tabindex]:focus-visible,summary:focus-visible{outline:3px solid #aa6d2f;outline-offset:3px}[hidden]{display:none!important}.studio{max-width:1280px;margin:auto;padding:0 clamp(14px,4.2vw,64px)}.topline{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.topline a{font:700 1.03rem var(--serif);text-decoration:none}.topline span,.kicker,.paper-top,.paper-bottom,footer{font-size:.69rem;font-weight:800;letter-spacing:.17em}.topline span{color:#576557;text-align:right}.intro{position:relative;isolation:isolate;overflow:hidden;margin:24px 0 34px;padding:clamp(25px,6vw,72px);min-height:260px;border-radius:23px;background:linear-gradient(110deg,#173b31 5%,#244838 68%,#3e5741);color:#fff6e4;box-shadow:0 14px 35px #382f2119}.intro::before,.intro::after{content:"";position:absolute;z-index:-1;width:390px;height:250px;right:-90px;bottom:-111px;border:1px solid #dfc78a64;border-radius:50%;box-shadow:0 0 0 20px #dfc78a19,0 0 0 48px #dfc78a17,0 0 0 79px #dfc78a12;transform:rotate(-26deg)}.intro::after{right:-202px;bottom:90px;transform:rotate(50deg)}.kicker{color:#88602f;margin:0 0 9px}.intro .kicker{color:#e3c08a}.intro h1,.work-title h1{font:400 clamp(2.65rem,6.6vw,5.7rem)/.99 var(--serif);letter-spacing:-.06em;margin:0}.intro h1 i{color:#e9c98f;font-weight:400}.intro p:last-child{max-width:37ch;margin:17px 0 0;color:#f0ead8}.gallery-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px}.gallery-heading h2,.tools h2{margin:0;font:400 2.1rem/1.1 var(--serif);letter-spacing:-.035em}.gallery-heading .kicker{margin-bottom:4px}#filters{display:flex;gap:5px;flex-wrap:wrap}#filters button,.work-title button,#paint-actions button,.reset-details button,.zoom-controls button{border:1px solid #bfb49c;border-radius:8px;background:#f9f4e6;padding:8px 10px;min-height:44px}#filters button[aria-pressed=true],#paint-actions #hint:not(:disabled){background:var(--pine);border-color:var(--pine);color:#fff8eb}.shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:15px}.scene-card{display:block;width:100%;padding:0;overflow:hidden;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--ivory);box-shadow:0 4px 11px #342b1910}.scene-card:hover{border-color:#9a7749}.scene-card svg{width:100%;display:block;aspect-ratio:640/420;background:#dfdacc}.card-copy{display:block;padding:12px 14px 14px}.card-copy b{display:block;font:700 1.28rem/1.15 var(--serif);margin:4px 0}.card-copy span:last-child{display:block;font-size:.83rem;color:var(--muted)}.scene-tag{font-size:.67rem;text-transform:uppercase;letter-spacing:.11em;font-weight:800;color:#71532d}.work-title{display:flex;gap:19px;align-items:start;margin:24px 0 20px}.work-title h1{font-size:clamp(2.15rem,5vw,4.3rem)}.work-title p:last-child{margin:6px 0 0;color:var(--muted)}.work-title button{flex:none}.work-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,310px);gap:15px;align-items:start}.drawing,.tools{min-width:0;background:var(--ivory);border:1px solid var(--line);border-radius:13px;padding:clamp(8px,2vw,16px);box-shadow:0 7px 25px #44351a10}.paper-top{display:flex;align-items:center;justify-content:space-between;color:#756347;gap:5px;margin:0 0 8px}.zoom-controls{display:flex;gap:4px}.zoom-controls button{min-width:44px;padding:3px;font-size:1.18rem}.paper-bottom{margin:8px 0 0;color:#71654f;font-size:.59rem}#picture-window{overflow:auto;overscroll-behavior:contain;max-height:72vh;border:1px solid #cabda3;background:#ebe2cc}#picture svg{width:100%;display:block;aspect-ratio:640/420}.piece{fill:#fffaf0;stroke:#746449;stroke-width:1.1;cursor:pointer}.piece[data-numberless=true]{cursor:default}.piece.filled{cursor:default}.piece.hinted{stroke:#934c23;stroke-width:3.3}.piece-number{pointer-events:none;fill:#342b23;font:bold 11px system-ui,sans-serif;text-anchor:middle;dominant-baseline:central;paint-order:stroke;stroke:#fffaf0;stroke-width:2.6;stroke-linejoin:round}.piece-number.small{font-size:8px;stroke-width:1.9}.piece-number.hinted{fill:#ad4123;stroke-width:3.1}.ink{fill:none;stroke:#746449;stroke-width:1;stroke-linecap:round;pointer-events:none}.progresstext{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.progresstext strong{font-family:var(--serif);font-size:1.25rem}.progresstext span{font-size:.71rem;color:var(--muted);text-align:right}progress{width:100%;height:8px;accent-color:var(--pine);margin:3px 0 17px}.tools h2{font-size:1.65rem}.tiny{font-size:.86rem;margin:3px 0 11px;color:var(--muted)}#palette{display:grid;grid-template-columns:repeat(5,minmax(40px,1fr));gap:5px}.swatch{border-radius:8px;min-height:44px;display:grid;place-items:center;position:relative;border:1px solid #887e63;background:var(--swatch);color:#152b22;padding:3px}.swatch span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff8e9;font-weight:800;font-size:.78rem}.swatch[aria-pressed=true]{outline:2px solid #1b4636;outline-offset:1px}.swatch.done::after{content:"✓";position:absolute;right:2px;bottom:0;background:#173c2f;color:white;line-height:1;border-radius:8px;padding:1px;font-size:.65rem}#paint-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}#feedback{min-height:2.5em;margin:8px 0;color:#425045;font-size:.83rem}.reset-details{font-size:.82rem;color:var(--muted);border-top:1px solid var(--line);padding-top:8px}.reset-details summary{cursor:pointer}.reset-details p{margin:6px 0}footer{margin:40px 0 0;padding:16px 0 24px;border-top:1px solid var(--line);color:#665939;text-align:center}footer span{margin:0 6px}@media(max-width:760px){.work-layout{grid-template-columns:minmax(0,1fr)}.tools{position:relative}.intro{margin-top:15px}.work-title{gap:10px}.work-title button{font-size:.78rem;padding:6px}.gallery-heading{align-items:start;flex-direction:column}#filters button{font-size:.86rem}.shelf{grid-template-columns:repeat(2,minmax(0,1fr))}.card-copy{padding:8px}.card-copy b{font-size:1.09rem}#palette{grid-template-columns:repeat(auto-fit,minmax(42px,1fr))}#picture-window{max-height:min(54vh,560px)}}@media(max-width:355px){.shelf{grid-template-columns:minmax(0,1fr)}.topline span{font-size:.61rem}}

@media(max-width:760px){.tools{padding:12px}.paper-top{letter-spacing:.12em}#feedback{margin-bottom:4px}}

/* Gallery collections share the saved picture, not their navigation. */
#filters:empty{display:none}
.switch-collection{margin:25px 0 0;font-size:.94rem;color:#4b5c50}
[data-collection=adult] .shelf{grid-template-columns:repeat(3,minmax(0,1fr))}
[data-collection=adult] .scene-card{border-radius:13px}
[data-collection=adult] .card-copy{padding:15px 16px 19px}
[data-collection=kids]{--paper:#f5efda;--ivory:#fffaf0;--pine:#365741;--line:#d3bd91}
[data-collection=kids] .intro{background:linear-gradient(113deg,#335545,#586a45);border:2px solid #92764c}
[data-collection=kids] .gallery-heading h2,[data-collection=kids] .work-title h1{letter-spacing:-.03em}
.landscape .piece{stroke-width:.8;stroke:#685f4c}
.landscape .ink{stroke:#504d40;stroke-width:.85;stroke-opacity:.58}
.landscape.finished-art .ink{stroke-width:.8;stroke-opacity:.35}
#picture .piece{transition:stroke 420ms ease}
#picture .finished-art .piece{stroke:transparent}
#picture .finished-art.landscape .piece{stroke:transparent}
.complete .drawing{border-color:#aa8050;box-shadow:0 14px 37px #3b2c2226}
.finish-note{margin:0 0 14px;padding:14px;background:linear-gradient(145deg,#fbf1d7,#efe3c3);border:1px solid #cfb780;border-radius:10px}
.finish-note strong{display:block;font:400 1.46rem/1.15 Georgia,serif;color:#253e30}
.finish-note p:last-child{font-size:.88rem;line-height:1.4;margin:5px 0 0;color:#405042}
@media(max-width:760px){[data-collection=adult] .shelf{grid-template-columns:minmax(0,1fr)}.switch-collection{margin-top:18px}}
@media(prefers-reduced-motion:reduce){#picture .piece{transition:none}}
#picture .just-finished .piece{animation:reveal-color-art 650ms ease-out both}
@keyframes reveal-color-art{from{stroke:#746449}to{stroke:transparent}}
@media(prefers-reduced-motion:reduce){#picture .just-finished .piece{animation:none}}

.color-style{margin:0 0 14px;padding:0;border:0}
.color-style legend{font-weight:750;margin-bottom:7px}
.color-style>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.color-style button{min-height:44px;border:1px solid #bfb49c;border-radius:8px;background:#f9f4e6;padding:7px 4px;font-size:.87rem;line-height:1.1}
.color-style button[aria-pressed=true]{background:var(--pine);border-color:var(--pine);color:#fff8eb}
.color-style p{margin:5px 0 0;font-size:.78rem;color:var(--muted)}
.wheel-tools{display:grid;grid-template-columns:minmax(104px,1fr) minmax(90px,1fr);gap:12px;align-items:center}
#color-wheel{width:100%;max-width:140px;aspect-ratio:1;border:1px solid #7d7765;border-radius:50%;position:relative;cursor:crosshair;touch-action:none;background:radial-gradient(circle closest-side,#fff,transparent),conic-gradient(from 90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}
#color-wheel span{position:absolute;pointer-events:none;left:var(--wheel-x,68%);top:var(--wheel-y,55%);width:12px;height:12px;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #333;transform:translate(-50%,-50%)}
.native-color-tools {min-width:0;display:grid;gap:3px;color:#35483a;font-size:.8rem;font-weight:700}
.native-color-tools input[type=color]{width:100%;height:44px;padding:2px;border-radius:6px;border:1px solid #9f9581;background:#faf6e8;cursor:pointer}
.native-color-tools input[type=range]{width:100%;margin:0;accent-color:var(--pine);min-height:32px}
#quick-colors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:9px}
#quick-colors button{min-height:44px;border:1px solid #8c826a;border-radius:7px;background:var(--quick)}
#quick-colors button[aria-pressed=true]{outline:2px solid var(--pine);outline-offset:1px}
.work-layout:has(#color-choice:not([hidden])) .piece.filled:not([data-numberless=true]){cursor:pointer}

/* Sunset studio: keep the art itself neutral and give the controls a crisp HUD. */
body[data-collection=adult]{
  color-scheme:dark;--paper:#151625;--ivory:#242438;--ink:#fff3e7;--pine:#ffd0a0;
  --muted:#d5cbdc;--line:#5e4f6c;--serif:system-ui,sans-serif;
  color:var(--ink);background:
    radial-gradient(ellipse at 86% 0,#612851 0,transparent 40rem),
    radial-gradient(ellipse at 12% 15%,#3e2f66 0,transparent 36rem),#151625;
}
[data-collection=adult] .topline span,[data-collection=adult] .kicker,[data-collection=adult] footer{color:#ffd0a0}
[data-collection=adult] .topline a{font-weight:810}
[data-collection=adult] .intro{background:linear-gradient(125deg,#28243dd9,#492d51ad);border-color:#926c82}
[data-collection=adult] .intro h1,[data-collection=adult] .work-title h1,[data-collection=adult] .gallery-heading h2{
  font-family:system-ui,sans-serif;font-weight:860;letter-spacing:-.045em;color:#fff4e9;
}
[data-collection=adult] .intro h1 i{color:#ffb992;font-weight:850}
[data-collection=adult] .intro p:not(.kicker),[data-collection=adult] #scene-subtitle,
[data-collection=adult] .card-copy span:last-child,[data-collection=adult] .switch-collection{color:#e0d4e2}
[data-collection=adult] .scene-card,[data-collection=adult] .tools,[data-collection=adult] .drawing{
  background:#25243b;border-color:#6b536f;
}
[data-collection=adult] .scene-card:hover{border-color:#ffc39a}
[data-collection=adult] .scene-card b,[data-collection=adult] .tools h2{color:#fff4e9}
[data-collection=adult] .scene-tag,[data-collection=adult] .paper-top,[data-collection=adult] .paper-bottom{color:#ffd0ac}
[data-collection=adult] .color-style button,[data-collection=adult] #paint-actions button,
[data-collection=adult] .zoom-controls button,[data-collection=adult] #back,[data-collection=adult] #filters button{
  color:#fff4e9;background:#34304d;border-color:#806785;
}
[data-collection=adult] .color-style button[aria-pressed=true],[data-collection=adult] #filters button[aria-pressed=true]{
  color:#2a192a;background:#ffd0a0;border-color:#ffd0a0;
}
[data-collection=adult] .native-color-tools,[data-collection=adult] .tiny,[data-collection=adult] #save-note{color:#ecdfec}
[data-collection=adult] #picture-window{background:#eee7dc;color-scheme:light}
[data-collection=adult] .color-style p{color:#d5cbdc}
[data-collection=adult] #feedback{color:#ffd0ac}
[data-collection=adult] button:focus-visible,[data-collection=adult] a:focus-visible,
[data-collection=adult] [tabindex]:focus-visible{outline-color:#ffd0a0}
[data-collection=adult] .studio-crosslink{margin:8px 0 24px;color:#ffd0a0;font-weight:700}
[data-collection=adult] .color-style button{border-radius:14px;box-shadow:inset 0 1px 0 #fff4de45,0 3px 0 #171625}
[data-collection=adult] .color-style #mode-custom[aria-pressed=true]{background:linear-gradient(#f5c5ff,#dc99ea);border-color:#f5c5ff;color:#2d193c}
[data-collection=adult] .color-style #mode-default[aria-pressed=true]{background:linear-gradient(#ffdfa5,#f5bc80);border-color:#ffe0ad}

/* Original art appears only in filled numbered regions; custom paint keeps its chosen colors. */
#picture .realistic{isolation:isolate}
.realistic .piece{stroke:#75674c;stroke-width:.75}
.realistic .realism-painted,.realistic image{pointer-events:none}
.realistic .realism-blended{opacity:1}
#picture .realistic .realism-complete{opacity:1}
#picture .realistic.just-finished .realism-complete{animation:realism-reveal 730ms ease-out both}
@keyframes realism-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#picture .realistic.just-finished .realism-complete{animation:none}}

.landscape-switch{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 21px}
.landscape-switch button{min-height:45px;padding:8px 13px;border:1px solid #bfb49c;border-radius:8px;background:#fbf6e9}
.landscape-switch button[aria-pressed=true]{background:var(--pine);border-color:var(--pine);color:#fffbef}
.scene-card img.realism-preview{width:100%;height:auto;display:block;aspect-ratio:640/420;object-fit:cover;background:#dad4c4}
@media(min-width:761px){[data-collection=adult] .shelf{gap:20px}}
[data-collection=adult] .card-copy{padding-top:15px;padding-bottom:17px}
