:root{--ink:#493541;--jade:#407b6e;--cream:#fff8e8;--ochre:#d6a94d;--paper:url('./assets/atelier/paper.webp')}
*{box-sizing:border-box}body{margin:0;background:#f3f1e9;color:var(--ink);font-family:'Zen Maru Gothic','Yu Gothic',sans-serif}
.atelier-page{width:min(1280px,calc(100% - 28px));max-width:1280px!important;margin:24px auto 44px;padding:0!important}
.atelier-app{position:relative;isolation:isolate;border:1px solid #c7baa5;border-radius:20px;overflow:hidden;background:var(--cream);box-shadow:0 12px 40px #50452d1c;color:var(--ink)}
.atelier-app [hidden]{display:none!important}.atelier-app button{font:inherit;font-weight:700;color:var(--ink);background:var(--cream);border:1px solid #ab9680;border-radius:12px;min-height:44px;cursor:pointer;padding:9px 15px;touch-action:manipulation}.atelier-app button:where(:hover):not(:disabled){background:#f5e8ca}.atelier-app button:focus-visible{outline:4px solid #ca9429;outline-offset:3px}.atelier-app button:disabled{cursor:default}
.atelier-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 20px;background:var(--paper) center/cover;border-bottom:1px solid #bba992;min-height:62px}.atelier-bar strong{font-size:16px;white-space:nowrap;letter-spacing:.04em}.atelier-bar strong span{font-size:26px;color:var(--jade);vertical-align:middle;margin-right:5px}.atelier-bar nav{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.atelier-bar button{font-size:11px;min-height:37px;padding:6px 11px;border-radius:8px;background:#fffaf0be}.atelier-bar button[aria-pressed=true]{background:#e0ebd9;border-color:var(--jade)}
.atelier-scenes{height:748px;background:url('./assets/atelier/workshop.webp') center/cover no-repeat}.scene{height:100%;position:relative}.cover{display:flex;align-items:center;justify-content:center;padding:34px 8%}.cover-copy{text-align:center;width:min(900px,100%)}.eyebrow{font-size:13px;letter-spacing:.05em;margin:0 0 15px}.cover h1{font-size:clamp(44px,6.2vw,78px);line-height:1.4;margin:0 0 14px;font-weight:900;letter-spacing:.055em}.cover h1 span{display:block;font-size:.28em;letter-spacing:.04em;line-height:2}.cover-lead{font-size:20px;margin:8px 0 30px;font-weight:700}.cover-shapes{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;max-width:800px;margin:0 auto 40px}.cover-shapes svg{width:100%;height:auto;filter:drop-shadow(0 6px 2px #49354122)}.cover-shapes svg:nth-child(even){transform:translateY(12px)}
.atelier-app .primary{background:var(--jade);color:#fffef1;border:1px solid #2f5b4f;box-shadow:0 3px 0 #244e42;border-radius:22px;min-height:51px;padding:12px 25px;font-size:17px}.atelier-app .primary:hover{background:#35695c}.atelier-app .primary:active{transform:translateY(2px);box-shadow:0 1px 0 #244e42}.cover .primary{min-width:300px;font-size:24px;padding:15px 35px;display:inline-flex;gap:65px;justify-content:space-between}.cover-steps{display:flex;justify-content:center;align-items:center;gap:11px;font-size:14px;margin:30px 0 0;font-weight:700}.cover-steps b{background:#e5bd65;border-radius:50%;width:26px;height:26px;display:grid;place-items:center}.cover-steps>span{margin:0 9px}
.play{display:grid;grid-template-rows:56px minmax(0,1fr) 58px 22px;padding:18px 4% 14px;gap:12px;background:#fff7e521}.work-heading{display:flex;align-items:center;justify-content:center;gap:24px}.work-heading h2{font-size:27px;margin:0;letter-spacing:.05em}.progress{font-size:20px;font-variant-numeric:tabular-nums}.progress b{font-size:42px;color:#ad4937}.remaining{font-size:12px;margin:0}.workbench{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:0;gap:26px}.piece-shelf{display:flex;flex-direction:column;padding:15px;background:linear-gradient(90deg,#ae795170,#f5d4a670 50%,#af785070),var(--paper);border:3px solid #a17650;border-radius:9px;box-shadow:inset 0 0 0 4px #e3bc87,0 6px 12px #674a3426;min-height:0}.piece-shelf h3{text-align:center;font-size:14px;margin:0 0 12px}.pieces{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:10px;min-height:0}.atelier-app .piece{padding:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;min-width:0;background:#fff8e8ba;border:2px solid #99795f;border-radius:6px;gap:3px;box-shadow:inset 0 3px 7px #82644825}.piece svg{width:100%;height:calc(100% - 19px);max-height:82px;min-height:0;filter:drop-shadow(0 3px 1px #3f232222)}.piece small{font-size:10px;line-height:1.25;white-space:nowrap}.piece:last-child{grid-column:1 / -1;flex-direction:row!important}.piece:last-child svg{width:55%;height:100%}.atelier-app .piece[aria-pressed=true]{background:#fff0bd;border-color:#65402c;outline:4px solid #e7b338;outline-offset:1px}.atelier-app .piece:disabled{opacity:.28}.drawing-mat{background:#5d8070;border:5px solid #6d8d77;padding:23px;position:relative;box-shadow:0 5px 12px #38292220;min-height:0}.paper-board{height:100%;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;padding:14px 24px;background:var(--paper) center/cover;box-shadow:1px 3px 8px #392e2d22}.atelier-app .slot{display:flex;justify-content:center;align-items:center;min-height:0;min-width:0;padding:4px;border:2px solid transparent;border-radius:15px;background:transparent;position:relative}.slot svg,.gallery-shape svg{width:100%;height:100%;max-height:150px;max-width:150px;display:block}.slot:nth-child(1),.gallery-shape:nth-child(1){grid-area:1/1;transform:translateX(30%)}.slot:nth-child(2),.gallery-shape:nth-child(2){grid-area:1/3;transform:translateX(-30%)}.slot:nth-child(3),.gallery-shape:nth-child(3){grid-area:2/1}.slot:nth-child(4),.gallery-shape:nth-child(4){grid-area:2/2}.slot:nth-child(5),.gallery-shape:nth-child(5){grid-area:2/3}.slot:nth-child(6),.gallery-shape:nth-child(6){grid-area:3/1;transform:translateX(30%)}.slot:nth-child(7),.gallery-shape:nth-child(7){grid-area:3/3;transform:translateX(-30%)}.atelier-app .slot:hover:not(:disabled){background:#e6d8b457}.atelier-app .slot.is-hinted{border-color:#b48d1e;background:#ffdf816e}.slot.is-filled svg{filter:drop-shadow(0 4px 2px #44302a22)}.slot.is-filled::after{content:'✓';position:absolute;right:3px;bottom:2px;font-size:16px;color:var(--jade)}.slot.is-wrong svg{animation:wiggle .34s ease-in-out}.pin{position:absolute;width:13px;height:13px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f1d58b,#a57628);box-shadow:1px 2px 2px #3e3b294d}.pin.one{top:27px;left:27px}.pin.two{top:27px;right:27px}.pin.three{bottom:27px;left:27px}.pin.four{bottom:27px;right:27px}.work-tools{display:flex;align-items:center;justify-content:space-between;gap:16px}.work-tools p{font-size:16px;text-align:center;font-weight:700;line-height:1.5;margin:0;flex:1}.atelier-app .hint{background:#efd078;border:1px solid #b99c52;min-width:120px;font-size:16px}.atelier-app .secondary{border:2px solid var(--ink);background:#fff9e7de;min-height:44px;font-size:13px}.work-tools .secondary{font-size:12px;white-space:nowrap}.work-tools .primary{font-size:14px;min-height:45px;white-space:nowrap;padding:9px 17px}.mistakes{margin:0;text-align:center;font-size:11px}.feedback-ok{color:#2e6555}.feedback-bad{color:#ad4937}
.result{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 6%;gap:15px}.result h2{font-size:40px;letter-spacing:.06em;margin:0 0 7px}.gallery-paper{width:min(670px,76%);height:64%;min-height:0;background:var(--paper) center/cover;padding:18px 20px 12px;box-shadow:0 10px 17px #4a382324;position:relative;margin:0;display:flex;flex-direction:column}.gallery-paper::before,.gallery-paper::after{content:'';position:absolute;top:-12px;width:17px;height:32px;background:linear-gradient(90deg,#83682b,#baa052,#725529);border:2px solid #795e2c;border-radius:3px;box-shadow:2px 3px 2px #43342a55}.gallery-paper::before{left:15%}.gallery-paper::after{right:15%}.gallery-paper .paper-board{background:none;box-shadow:none;flex:1;padding:5px 15px;gap:5px}.gallery-shape{display:flex;align-items:center;justify-content:center;min-height:0}.gallery-shape svg{filter:drop-shadow(0 3px 1px #49354125)}.gallery-paper figcaption{font-size:12px;text-align:center;padding-top:10px;flex-shrink:0}.result-record{display:flex;align-items:center;gap:10px;font-size:15px;margin:4px 0 0}.result-record b{font-size:21px}.result-record span{margin:0 12px;font-size:14px}.result-actions{display:flex;gap:18px}.result-actions .secondary{min-width:170px;border-radius:22px}.parent-note{max-width:930px;padding:22px;margin:25px auto 0;background:#fffdf6;border-radius:15px;color:#615748}.parent-note h2{font-size:18px;margin:0 0 10px}.parent-note p{font-size:13px;line-height:1.9;margin:9px 0}.notice{position:absolute;bottom:0;left:0;right:0;margin:0;padding:4px;background:#fff8e8;font-size:12px;text-align:center}.notice:empty{display:none}
.atelier-app dialog{background:var(--paper) center/cover;border:2px solid var(--ink);color:var(--ink);border-radius:18px;width:min(480px,calc(100% - 28px));padding:25px;max-height:90dvh;text-align:center;box-shadow:0 20px 60px #37252055}.atelier-app dialog::backdrop{background:#392d35a3}.atelier-app dialog h2{font-size:25px;margin:0 0 18px}#dialog-content{font-size:14px;line-height:1.9}#dialog-content p{margin:10px 0}#dialog-content ul{text-align:left;padding-left:23px}.dialog-actions{display:grid;gap:12px;margin-top:20px}.atelier-app .text-button{border:0;background:transparent;font-size:12px;text-decoration:underline;text-underline-offset:4px}.atelier-app:fullscreen{width:100vw;height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column}.atelier-app:fullscreen .atelier-scenes{height:auto;min-height:0;flex:1}.atelier-app:fullscreen .workbench{max-width:1190px;width:100%;margin:0 auto}.atelier-app:fullscreen .play{padding-left:max(4%,calc((100vw - 1190px)/2));padding-right:max(4%,calc((100vw - 1190px)/2))}
@keyframes wiggle{25%{translate:-5px}75%{translate:5px}}@media(prefers-reduced-motion:reduce){.slot.is-wrong svg{animation:none}}
@media(max-width:760px){
 .atelier-page{width:calc(100% - 16px);margin:16px auto 30px}.atelier-bar{padding:8px 10px;gap:5px;flex-wrap:wrap}.atelier-bar strong{font-size:12px}.atelier-bar strong span{font-size:22px}.atelier-bar nav{gap:4px}.atelier-bar button{font-size:10px;min-height:34px;padding:5px 7px}.atelier-scenes{height:690px;background-position:center}.cover{padding:24px 15px}.cover-copy{background:#fff8e8b0;border-radius:45% 45% 20px 20px;padding:24px 10px}.cover .eyebrow{font-size:10px;margin-bottom:13px}.cover h1{font-size:43px;letter-spacing:.025em}.cover h1 span{font-size:16px}.cover-lead{font-size:13px;margin-bottom:20px}.cover-shapes{gap:5px;grid-template-columns:repeat(4,1fr);max-width:290px;margin-bottom:27px}.cover-shapes svg{max-height:62px}.cover-shapes svg:nth-child(even){transform:none}.cover-shapes svg:nth-child(5){grid-column:1;transform:translateX(45%)}.cover-shapes svg:nth-child(6){transform:translateX(45%)}.cover-shapes svg:nth-child(7){transform:translateX(45%)}.cover .primary{font-size:19px;min-width:235px;padding:13px 25px}.cover-steps{font-size:10px;gap:5px;margin-top:25px;flex-wrap:wrap}.cover-steps b{width:20px;height:20px}.cover-steps>span{margin:0 2px}
 .play,.atelier-app:fullscreen .play{padding:12px 10px 7px;grid-template-rows:38px minmax(0,1fr) 79px 18px;gap:9px}.work-heading{gap:12px}.work-heading h2{font-size:17px;letter-spacing:0}.progress{font-size:14px}.progress b{font-size:28px}.remaining{font-size:10px}.workbench{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 147px;gap:12px}.drawing-mat{grid-column:1;grid-row:1;padding:11px;border-width:3px}.paper-board{padding:7px 9px;gap:3px}.pin{width:9px;height:9px}.pin.one{top:14px;left:14px}.pin.two{top:14px;right:14px}.pin.three{bottom:14px;left:14px}.pin.four{bottom:14px;right:14px}.piece-shelf{grid-row:2;padding:7px;border-width:2px;box-shadow:inset 0 0 0 2px #e3bc87}.piece-shelf h3{font-size:10px;margin-bottom:5px}.pieces{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:5px}.atelier-app .piece{padding:3px;gap:2px}.piece svg{height:calc(100% - 13px);max-height:44px}.piece small{font-size:8px}.piece:last-child{grid-column:3 / 5;grid-row:2}.piece:last-child svg{width:45%;height:100%;max-height:48px}.slot.is-filled::after{right:0;bottom:0;font-size:11px}.atelier-app .slot{padding:2px;border-radius:9px}.work-tools{display:grid;grid-template-columns:auto 1fr;gap:5px 8px}.work-tools p{font-size:12px;grid-column:1 / -1;grid-row:1;min-height:22px;line-height:1.5}.work-tools .hint{font-size:12px;min-width:103px;min-height:42px;padding:6px 12px}.work-tools .secondary,.work-tools .primary{font-size:11px;min-height:42px;padding:6px 10px;justify-self:end}.mistakes{font-size:10px}.result{padding:22px 17px;gap:18px}.result h2{font-size:29px;margin-bottom:7px}.gallery-paper{width:100%;height:58%;padding:15px 8px 9px}.gallery-paper figcaption{font-size:9px;padding-top:8px}.result-record{font-size:12px;gap:5px}.result-record b{font-size:18px}.result-record span{margin:0 5px}.result-actions{gap:10px;width:100%;justify-content:center}.result-actions .primary{font-size:13px;padding:11px 15px;min-height:48px}.result-actions .secondary{min-width:95px;font-size:12px;border-radius:22px;min-height:48px}.atelier-app:fullscreen .gallery-paper{height:60%;max-height:450px}.atelier-app:fullscreen .cover-copy{padding:18px 9px}
}
@media(max-width:360px){
 .atelier-bar strong{flex-basis:100%}.atelier-bar nav{width:100%;justify-content:center;gap:3px}.atelier-bar button{font-size:9px;padding:5px 3px;flex:1;white-space:nowrap;line-height:1.4}.atelier-scenes{height:635px}.cover h1{font-size:37px}.cover h1 span{font-size:13px}.cover-lead{font-size:11px}.cover-copy{padding:17px 5px}.cover .eyebrow{font-size:9px}.cover-shapes{max-width:250px;gap:3px}.cover-shapes svg{max-height:50px}.cover .primary{font-size:17px;min-width:215px}.cover-steps{font-size:9px;gap:4px}.cover-steps b{width:17px;height:17px}.atelier-app:fullscreen .play{padding:7px;gap:6px;grid-template-rows:32px minmax(0,1fr) 76px 15px}.work-heading{gap:8px}.work-heading h2{font-size:14px}.progress b{font-size:23px}.remaining{font-size:9px}.workbench{gap:8px;grid-template-rows:minmax(0,1fr) 123px}.pieces{gap:4px}.piece-shelf h3{margin-bottom:3px;font-size:9px}.piece small{font-size:7px}.drawing-mat{padding:8px}.paper-board{padding:5px}.pin.one{top:10px;left:10px}.pin.two{top:10px;right:10px}.pin.three{bottom:10px;left:10px}.pin.four{bottom:10px;right:10px}.work-tools p{font-size:10px}.work-tools .secondary,.work-tools .primary{font-size:10px}.result{padding:16px 12px;gap:14px}.result h2{font-size:25px;margin-bottom:3px}.atelier-app:fullscreen .gallery-paper{height:56%}.result-actions .primary{font-size:11px;padding:10px 12px}.result-actions .secondary{min-width:88px;font-size:10px}.result-record{font-size:10px}.result-record b{font-size:16px}
}
@media(max-height:520px) and (min-width:600px){
 .atelier-bar{padding:5px 12px;flex-wrap:nowrap;min-height:42px}.atelier-bar strong{font-size:11px}.atelier-bar nav{gap:4px}.atelier-bar button{font-size:9px;min-height:31px;padding:5px 7px}.atelier-scenes{height:450px}.cover{padding:10px 8%}.cover-copy{padding:0;background:none}.cover .eyebrow{font-size:9px;margin-bottom:5px}.cover h1{font-size:39px;line-height:1.2;margin-bottom:6px}.cover h1 span{font-size:13px;line-height:1.8}.cover-lead{font-size:12px;margin:3px 0 8px}.cover-shapes{grid-template-columns:repeat(7,1fr);gap:7px;max-width:440px;margin-bottom:13px}.cover-shapes svg{max-height:54px;transform:none!important;grid-column:auto!important}.cover .primary{font-size:17px;min-height:43px;min-width:235px;padding:8px 22px}.cover-steps{font-size:10px;margin:13px 0 0}.cover-steps b{width:19px;height:19px}.atelier-app:fullscreen .cover-copy{padding:0}
 .play,.atelier-app:fullscreen .play{grid-template-rows:28px minmax(0,1fr) 36px;gap:7px;padding:6px 4% 9px}.work-heading{gap:12px}.work-heading h2{font-size:17px}.progress{font-size:12px}.progress b{font-size:24px}.remaining{font-size:10px}.workbench{grid-template-columns:145px minmax(0,1fr);grid-template-rows:1fr;gap:16px}.piece-shelf{grid-column:1;grid-row:1;padding:5px;border-width:2px}.piece-shelf h3{font-size:9px;margin:0 0 4px}.pieces{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:4px}.atelier-app .piece{padding:2px;flex-direction:row}.piece svg{height:100%;width:40px;max-height:none}.piece small{font-size:8px}.piece:last-child{grid-column:1 / -1;grid-row:4}.piece:last-child svg{width:50px}.drawing-mat{grid-row:1;grid-column:2;padding:8px;border-width:3px}.paper-board{padding:2px 15px;gap:3px}.pin{width:8px;height:8px}.pin.one{top:10px;left:10px}.pin.two{top:10px;right:10px}.pin.three{bottom:10px;left:10px}.pin.four{bottom:10px;right:10px}.atelier-app .slot{padding:1px}.slot.is-filled::after{font-size:9px}.work-tools{display:flex;gap:10px}.work-tools p{font-size:11px;min-height:0}.work-tools .hint{font-size:11px;min-width:90px;min-height:34px;padding:5px 9px}.work-tools .secondary,.work-tools .primary{font-size:10px;min-height:34px;padding:5px 12px}.mistakes{position:absolute;top:11px;right:5%;font-size:9px}
 .result{padding:12px 6%;display:grid;grid-template-columns:1.35fr 1fr;grid-template-rows:auto auto 1fr;column-gap:25px;row-gap:13px}.result h2{grid-column:2;grid-row:1;font-size:27px;align-self:end;text-align:center;margin:14px 0 0}.gallery-paper,.atelier-app:fullscreen .gallery-paper{grid-column:1;grid-row:1 / -1;width:100%;height:100%;max-height:100%;padding:10px 8px 8px}.gallery-paper .paper-board{padding:2px 6px}.gallery-paper figcaption{font-size:9px;padding-top:5px}.result-record{grid-column:2;grid-row:2;justify-content:center;font-size:11px;gap:5px}.result-record b{font-size:16px}.result-record span{margin:0 3px}.result-actions{grid-column:2;grid-row:3;flex-direction:column;gap:10px;align-self:start;width:100%}.result-actions .primary{font-size:12px;min-height:40px;padding:9px 10px}.result-actions .secondary{font-size:11px;min-height:36px;min-width:0}.gallery-paper::before,.gallery-paper::after{width:12px;height:23px;top:-7px}
}
