:root{--paper:#f8f5e9;--ink:#46372c;--muted:#79715e;--green:#4e6950;--line:#dfdecf;--rose:#b07993}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);background-image:radial-gradient(#b8989b12 .8px,transparent .8px);background-size:7px 7px;font:16px/1.55 Arial,Helvetica,sans-serif}button,a,svg{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.45}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--rose);outline-offset:4px}a{color:inherit;text-decoration:none}button{transition:transform .15s,background .2s}button:active{transform:translateY(2px)}[hidden]{display:none!important}.shell{max-width:1380px;margin:auto;padding:0 44px}header{height:95px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:20px}.brand img{display:block;width:145px;height:52px}.edition,.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px;color:var(--muted)}nav{display:flex;align-items:center;gap:10px}.coffee{font-size:14px;margin-right:12px;border-bottom:1px solid #bcbba8}.icon{border:1px solid var(--line);background:#fff9;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;font-size:23px;flex-shrink:0}.icon[aria-pressed=true]{background:#dce8d1}main{display:grid;grid-template-columns:.83fr minmax(320px,510px) .82fr;align-items:center;gap:38px;padding:54px 0 40px;min-height:calc(100svh - 165px)}h1{font-size:clamp(40px,4.1vw,61px);font-weight:800;line-height:1.04;letter-spacing:-2px;margin:20px 0}h1 em{font-style:normal;color:var(--green)}.intro>p{color:var(--muted);font-size:17px;line-height:1.7}.handwritten{font-size:18px;font-style:italic;color:#7c835f;transform:rotate(-5deg);margin:40px 0 64px}.intro .story{font-size:14px}.text-link{display:inline-block;font-size:14px;font-weight:600;border-bottom:1px solid #bca28c;padding:0 0 6px;line-height:1.5}.workshop{min-width:0;width:100%}.worktop{display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:1.2px;color:var(--muted);font-weight:700;padding:0 5px 15px}#counter{letter-spacing:0;font-weight:400}.workspace{position:relative;aspect-ratio:1;background:#eee6d6;border:1px solid #d8c8b4;border-radius:28px;box-shadow:0 8px 0 -2px #c6a58c,0 16px 30px #5e453410;display:grid;place-items:center;isolation:isolate;overflow:hidden;background-image:repeating-linear-gradient(2deg,transparent 0px,transparent 18px,#bca78d12 19px,#bca78d12 20px)}.board-frame{width:83%;aspect-ratio:1;background:#fffaf1;box-shadow:0 5px 0 #d7cfbe,0 10px 16px #4d3a2020;position:relative;transition:width .6s,transform .5s,border .4s,box-shadow .5s;touch-action:none}#board{width:100%;height:100%;display:block;overflow:visible;touch-action:none}.welcome{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#fffaf0ed;backdrop-filter:blur(2px);padding:24px;z-index:4}.welcome h2{font-size:28px;letter-spacing:-.7px;margin:12px 0}.welcome p{color:var(--muted);margin:0 0 22px}.heart{font-size:35px;background:#e2e8d6;width:53px;height:53px;border-radius:50%;color:var(--green);line-height:53px}.welcome>span{font-size:12px;margin-top:20px;color:var(--muted)}.primary{border:0;background:var(--green);color:#fffaf1;padding:14px 25px;border-radius:17px;box-shadow:0 4px 0 #374c3a;font-weight:700;min-height:48px}.secondary{background:transparent;border:1px solid #c9c8b8;border-radius:13px;padding:11px 15px;font-size:14px;min-height:44px}.tools h2{font-size:29px;line-height:1.2;letter-spacing:-.6px;margin:16px 0}.tools>p{font-size:15px;color:var(--muted)}.materials{margin-top:35px;border-top:1px solid var(--line);padding-top:22px}.material-icons{display:flex;gap:20px;margin-top:15px}.material-icons>span{font-size:28px;color:#7c835f;text-align:center}.material-icons small{font:12px Arial;display:block;color:var(--muted);margin-top:5px}.quiet{font-size:14px!important;margin-top:30px;line-height:1.8}.status-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:20px 0 14px;min-height:42px}.status-row p{font-size:14px;margin:0;color:var(--muted)}.status-row .icon{width:34px;height:34px}.progress{height:4px;border-radius:8px;background:#e1dfcf;overflow:hidden}#progress-fill{height:100%;width:0;background:#7c936d;display:block;transition:width .5s}.step-list{display:flex;justify-content:space-between;margin-top:12px;gap:6px}.step-list span{font-size:12px;color:#999484}.step-list .active{color:var(--green);font-weight:700}.step-list .complete{color:#72865f}.pin-hit{cursor:crosshair;outline:none}.pin-hit:focus-visible circle:first-child{stroke:var(--rose);stroke-width:4}.pin-target{fill:#fff9;stroke:#aaa28c;stroke-width:1.5;stroke-dasharray:4 4}.pin-head{fill:#c69b63;stroke:#986b40;stroke-width:2;filter:drop-shadow(2px 4px 1px #654b3940)}.trace-line{fill:none;stroke:#c5baa6;stroke-width:1.7;pointer-events:none}.trace-line.active{stroke:#b07993;stroke-width:3;stroke-dasharray:6 6}.trace-line.finished{stroke:#72865f;stroke-width:2}.piece{stroke:#6e624d;stroke-width:1.3;stroke-linejoin:round;transition:fill .4s;pointer-events:none}.piece.target{stroke:#ae7d96;stroke-width:3;stroke-dasharray:6 5;animation:breathe 1.8s infinite}.placed{animation:settle .4s ease-out}.trace-hand{pointer-events:none}.swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0}.swatch{background:#fff8;border:1px solid var(--line);border-radius:12px;padding:7px 5px;font-size:12px;min-height:70px}.swatch.selected{outline:2px solid var(--green);outline-offset:2px}.swatch i{width:100%;height:32px;display:block;border-radius:7px;margin-bottom:5px;background-color:var(--swatch);background-image:repeating-linear-gradient(0deg,#fff2 0 1px,transparent 1px 4px),repeating-linear-gradient(90deg,#3331 0 1px,transparent 1px 4px)}.cut-pad{border:1px solid #d8c8b4;border-radius:18px;overflow:hidden;background:#fff8;margin:16px 0;position:relative;touch-action:none}.cut-pad svg{width:100%;height:auto;display:block;touch-action:none}.cut-pad.ready{cursor:grab}.cut-label{position:absolute;left:0;right:0;bottom:7px;text-align:center;font-size:12px;pointer-events:none;color:var(--ink)}.small-button{font-size:13px;padding:9px 13px;width:100%;min-height:42px;border:1px solid #c9c8b8;background:#fff7;border-radius:12px}.hint{font-size:12px;color:var(--muted);margin-top:9px}.tool-icon{font-size:50px;color:var(--green);margin:16px 0}.cut-progress{height:4px;position:absolute;bottom:0;left:0;background:var(--green);transition:width .15s}.drag-ghost{position:fixed;pointer-events:none;z-index:50;width:130px;height:130px;opacity:.85;transform:translate(-50%,-50%);filter:drop-shadow(0 8px 8px #4333)}.frame-options{display:flex;gap:8px;margin:22px 0}.frame-option{width:68px;height:68px;border:9px solid var(--wood);background:#fff8;font-size:11px}.frame-option.selected{outline:2px solid var(--green);outline-offset:4px}.framed{border:15px solid #c39c6c;border-image:repeating-linear-gradient(85deg,#bb905d,#d5b689 8px,#c39c6c 13px) 15;box-shadow:0 4px 0 #96744d,0 13px 18px #4d3a2033}.framed.walnut{border-image:none;border-color:#6c4c38}.framed.white{border-image:none;border-color:#eeeae0}.workspace.wall{background-color:#eeeade;background-image:linear-gradient(90deg,#b4ad9815 1px,transparent 1px);background-size:32px 100%;}.wall .board-frame{width:60%;transform:translateY(62px) rotate(-5deg);cursor:grab}.wall-hook{position:absolute;top:35px;left:50%;transform:translateX(-50%);text-align:center;width:70%;height:53%;border:2px dashed #b6baa6;border-radius:6px;color:#8b9077;pointer-events:none}.wall-hook span{display:block;margin-top:10px;font-size:25px}.wall-hook p{font-size:14px;margin:0}.workspace.done .board-frame{width:62%;transform:translateY(-30px);cursor:default;animation:hang .8s ease-out}.workspace.done .board-frame:before{content:'';position:absolute;left:26%;right:26%;height:52px;top:-67px;background:linear-gradient(150deg,transparent 48%,#a68e6e 49% 51%,transparent 52%),linear-gradient(30deg,transparent 48%,#a68e6e 49% 51%,transparent 52%);z-index:-1}.wall-caption{position:absolute;bottom:20px;text-align:center}.wall-caption h2{font-size:23px;margin:7px 0}.wall-caption .eyebrow{font-size:9px}.done-actions{display:flex;flex-direction:column;gap:15px;margin-top:24px}.done-actions a{text-align:center;font-size:14px}.tools .primary{width:100%}dialog{color:var(--ink);border:1px solid #dfd6c6;background:#fffaf0;border-radius:24px;padding:30px;width:min(92vw,480px);max-height:90dvh;overflow:auto;box-shadow:0 20px 100px #50314633}dialog::backdrop{background:#40392f55;backdrop-filter:blur(4px)}dialog h2{font-size:27px;letter-spacing:-.5px}dialog ol{padding-left:24px}dialog li{padding-left:5px;margin:12px 0;font-size:15px}dialog p{font-size:14px;color:var(--muted)}dialog .primary{width:100%;margin-top:12px}dialog .secondary{width:100%;margin-top:16px}.close{position:absolute;right:15px;top:12px;width:30px;height:30px}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:20px 0;color:var(--muted);font-size:12px}.invalid{animation:wiggle .3s}.spark{position:absolute;pointer-events:none;color:#9b854b;font-size:26px;animation:spark 1s forwards;z-index:10}@keyframes breathe{50%{stroke-opacity:.35}}@keyframes settle{from{opacity:.3;transform:translateY(-5px)}to{opacity:1;transform:none}}@keyframes hang{0%{transform:translateY(-30px) rotate(-5deg)}50%{transform:translateY(-30px) rotate(2deg)}100%{transform:translateY(-30px)}}@keyframes wiggle{25%{translate:-4px}75%{translate:4px}}@keyframes spark{to{transform:translateY(-50px) rotate(60deg);opacity:0}}
.cut-cursor{position:fixed;width:48px;height:48px;z-index:70;pointer-events:none;transform:translate(-8px,-40px);filter:drop-shadow(2px 3px 2px #4334)}.cut-cursor svg{width:100%;height:100%}.tool-drawing{width:64px;height:64px;margin:14px 0 18px}.tool-drawing svg{width:100%;height:100%}
@media(max-width:1100px){.shell{padding:0 24px}main{grid-template-columns:minmax(320px,1.35fr) minmax(220px,.8fr);gap:32px;padding-top:28px}.intro{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px}.intro h1{font-size:38px;margin:0}.intro h1 br{display:none}.intro .eyebrow{max-width:140px}.intro>p{font-size:15px}.intro .story,.intro .text-link,.handwritten{display:none}.workshop{max-width:550px;justify-self:center}.tools{align-self:center}.edition{display:none}}
@media(max-width:650px){.shell{padding:0 16px}header{height:65px;gap:10px}.brand img{width:113px;height:43px}nav{gap:7px}.icon{width:34px;height:34px;font-size:21px}.coffee{font-size:12px;margin-right:3px}main{display:flex;flex-direction:column;gap:20px;padding:23px 0 28px;min-height:0}.intro{display:block;text-align:center;width:100%}.intro .eyebrow{font-size:9px;max-width:none}.intro h1{font-size:37px;margin:6px 0}.intro>p{font-size:14px;margin:8px 0 0}.intro>p br{display:none}.workshop{max-width:440px}.worktop{font-size:9px;padding-bottom:12px}.workspace{border-radius:23px}.welcome h2{font-size:25px}.welcome p{font-size:15px}.welcome>span{font-size:11px}.status-row{margin-top:17px}.status-row p{font-size:13px}.step-list span{font-size:11px}.tools{align-self:stretch;background:#fff7;padding:21px;border:1px solid var(--line);border-radius:20px;max-width:440px;width:100%;margin:auto}.tools h2{font-size:25px;margin:9px 0}.tools h2 br{display:none}.tools>p{font-size:14px;margin:10px 0}.materials,.quiet{display:none}.swatches{grid-template-columns:repeat(6,1fr);gap:7px}.swatch{font-size:10px;padding:4px 2px;min-height:57px}.swatch i{height:29px}.cut-pad{max-width:250px;margin:15px auto}.tool-icon{font-size:35px;margin:7px 0}.wall-hook{top:25px}.wall-caption h2{font-size:20px}.wall-caption{bottom:15px}.workspace.done .board-frame{transform:translateY(-22px)}footer{font-size:11px;gap:10px}.handwritten{display:none}}
@media(max-width:650px){
 body:not([data-stage="welcome"]) header{height:54px}
 body:not([data-stage="welcome"]) main{padding-top:10px;gap:12px}
 body:not([data-stage="welcome"]) .intro{height:28px}
 body:not([data-stage="welcome"]) .intro h1{font-size:25px;letter-spacing:-.7px;margin:0}
 body:not([data-stage="welcome"]) .intro .eyebrow,body:not([data-stage="welcome"]) .intro>p{display:none}
 body:not([data-stage="welcome"]) .workspace{width:min(100%,34dvh);margin:auto}
 body:not([data-stage="welcome"]) .worktop{padding-bottom:9px}
 body:not([data-stage="welcome"]) .status-row{margin:13px 0 8px;min-height:34px}
 body:not([data-stage="welcome"]) .status-row p{font-size:12px}
 body:not([data-stage="welcome"]) .step-list{margin-top:8px}
 body:not([data-stage="welcome"]) .tools{padding:14px}
 body:not([data-stage="welcome"]) .tools h2{font-size:22px;margin:6px 0}
 body:not([data-stage="welcome"]) .tools>p{font-size:13px;line-height:1.5;margin:7px 0}
 body:not([data-stage="welcome"]) .tools .eyebrow{font-size:9px}
 body:not([data-stage="welcome"]) .tool-drawing,body:not([data-stage="welcome"]) .tool-icon{display:none}
 body:not([data-stage="welcome"]) .swatches{margin:10px 0}
 #tool-content:has(.cut-pad){display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px 14px}
 #tool-content:has(.cut-pad) .swatches{grid-column:1/-1}
 #tool-content .cut-pad{width:150px;max-width:100%;margin:3px 0}
 #tool-content:has(.cut-pad)>.primary{padding:11px 13px;font-size:14px}
 body[data-stage="fabric"] .workshop{position:sticky;top:0;z-index:5;background:var(--paper);padding-top:6px;padding-bottom:8px}
 body:not([data-stage="welcome"]) .framed{border-width:10px}
 body:not([data-stage="welcome"]) .wall-hook{top:15px}
 body:not([data-stage="welcome"]) .wall-caption{bottom:10px}
 body:not([data-stage="welcome"]) .wall-caption h2{font-size:16px}
 body:not([data-stage="welcome"]) .wall-caption .eyebrow{font-size:7px}
 body:not([data-stage="welcome"]) .workspace.done .board-frame{transform:translateY(-13px)}
}
@media(prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important}}
/* The game sits inside Happinio's shared navigation and footer. */
html,body{height:auto;min-height:0;overflow-x:hidden}body{padding-bottom:20px}.shell{max-width:1380px;padding:0 36px}header.gamebar,body:not([data-stage="welcome"]) header.gamebar{height:52px!important;justify-content:flex-end;border-bottom:1px solid var(--line)}.gamebar .edition{margin-right:auto}.gamebar nav{gap:8px}.about-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:13px;padding:8px}.gamebar .icon{width:33px;height:33px}main{min-height:0;padding:32px 0 28px;gap:30px;grid-template-columns:.75fr minmax(320px,510px) .82fr}.intro h1{font-size:clamp(34px,3.5vw,51px)}.handwritten{margin:25px 0 40px}.worktop{font-size:9px;letter-spacing:.7px}.workspace{overflow:hidden}.piece{stroke:#b9af97;stroke-width:1.5;fill-opacity:1}.piece.excess{stroke:#c997b0;stroke-width:7;stroke-dasharray:4 3;paint-order:stroke fill;animation:breathe 2s infinite}.piece.target{stroke-width:3;stroke:#ad7990;fill:#f5e9ed}.trace-line{stroke:#b9af97;stroke-width:1.5}.trace-line.active{stroke:#b07993;stroke-width:3;stroke-dasharray:6 5}.scene-tool{position:absolute;right:6%;bottom:8%;width:62px;height:62px;transform:rotate(12deg);pointer-events:none;filter:drop-shadow(3px 5px 2px #4332)}.scene-tool svg{width:100%;height:100%}.fabric-scene .board-frame{width:72%;transform:translate(-10%,-10%)}.scene-cloth{position:absolute;bottom:16px;right:12px;width:39%;aspect-ratio:180/155;touch-action:none;cursor:crosshair;filter:drop-shadow(4px 5px 3px #4333);user-select:none;animation:cloth-in .45s ease-out}.scene-cloth.ready{cursor:grab}.scene-cloth svg{width:100%;display:block;touch-action:none}.scene-cloth>span{display:block;background:#fffaf0ed;border:1px solid #d8ccb7;border-radius:10px;padding:5px 7px;text-align:center;font-size:12px;font-weight:700;line-height:1.3;margin-top:-10px;position:relative}.fabric-scene .scene-tool{left:6%;right:auto;bottom:5%;width:54px}.craft-phases{display:flex;gap:5px;flex-wrap:wrap;margin:16px 0;color:var(--muted);font-size:11px}.craft-phases span{border:1px solid var(--line);padding:5px 8px;border-radius:9px}.craft-phases .current{background:#e1e9d8;color:var(--green);border-color:#9eaf91;font-weight:700}.tools h2{font-size:27px}.tools .swatches{grid-template-columns:repeat(6,1fr);gap:5px}.tools .swatch{font-size:10px;padding:4px 2px;min-height:52px}.swatch i{height:27px}.fact-card{margin-top:24px;border-top:1px solid #dbd9c8;padding-top:20px}.fact-card .eyebrow{font-size:9px}.fact-card h3{font-size:17px;line-height:1.35;margin:10px 0}.fact-card p{font-size:13px;color:var(--muted);line-height:1.65;margin:8px 0}.fact-card button{border:0;background:none;padding:6px 0;text-align:left;text-decoration:underline;text-underline-offset:3px;color:var(--green);font-size:12px}.step-list{gap:4px}.step-list span{font-size:10px}.step-list span:nth-child(3){max-width:105px;text-align:center}.finished-link{margin-top:22px}.source-links{font-size:12px!important}.source-links a{text-decoration:underline}#about-dialog{width:min(94vw,620px)}#about-dialog details{border-top:1px solid var(--line);padding:15px 0}#about-dialog summary{font-weight:700;cursor:pointer;font-size:17px}#about-dialog details p{line-height:1.8}.drag-ghost{width:150px;height:120px}.drag-ghost svg{width:100%;height:100%}@keyframes cloth-in{from{opacity:0;transform:translate(40px,12px) rotate(8deg)}to{opacity:1;transform:none}}
@media(max-width:1100px){main{grid-template-columns:minmax(320px,1.3fr) minmax(220px,.8fr)}.intro h1{font-size:35px}.intro .story{display:none}}
@media(max-width:650px){body{padding-bottom:12px}.shell{padding:0 12px}header.gamebar,body:not([data-stage="welcome"]) header.gamebar{height:44px!important}.gamebar .edition{display:none}.about-button{font-size:12px}.gamebar .icon{width:30px;height:30px}main,body:not([data-stage="welcome"]) main{display:flex;padding:14px 0 6px;gap:14px}.intro h1{font-size:34px!important}.intro>p{font-size:14px}.intro .eyebrow{font-size:9px}body:not([data-stage="welcome"]) .intro{height:30px}body:not([data-stage="welcome"]) .intro h1{font-size:25px!important}body:not([data-stage="welcome"]) .workspace,.workspace{width:100%;max-width:400px;margin:auto;aspect-ratio:1}body[data-stage="fabric"] .workshop{position:relative;top:auto;padding:0;background:transparent;z-index:auto}.tools,body:not([data-stage="welcome"]) .tools{padding:16px}.fact-card{padding-top:15px;margin-top:17px}.fact-card h3{font-size:16px}.fact-card p{font-size:13px}.tools h2,body:not([data-stage="welcome"]) .tools h2{font-size:23px}.tools>p,body:not([data-stage="welcome"]) .tools>p{font-size:14px}.worktop{font-size:8px}.scene-cloth{width:39%;right:8px;bottom:12px}.scene-cloth>span{font-size:11px}.scene-tool{width:48px;height:48px}.step-list span{font-size:10px}.status-row p,body:not([data-stage="welcome"]) .status-row p{font-size:13px}.tools .swatch{font-size:11px}.tools .hint{font-size:12px}.tools .small-button{font-size:14px;min-height:44px}.intro .handwritten,.intro .story{display:none}}
/* Motif selection, fabric patterns and optional finished-art sharing. */
.design-picker{padding:26px 0 8px}.picker-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px}.picker-heading h2{font-family:Georgia,serif;font-size:26px;font-weight:400;margin:6px 0 0}.picker-heading p{font-size:13px;color:var(--muted);margin:0}.design-options{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}.design-option{min-width:0;border:1px solid #d7d9c6;background:#fffcf2;border-radius:12px;padding:7px;text-align:left;cursor:pointer;transition:transform .2s,border-color .2s}.design-option:hover{transform:translateY(-3px)}.design-option[aria-pressed="true"]{border:2px solid #607c4c;padding:6px;background:#eef2de;box-shadow:0 0 0 3px #7e9b5c20}.design-option svg{width:100%;aspect-ratio:1;border-radius:7px;display:block}.design-option span{font-size:13px;font-weight:700;display:block;line-height:1.3;padding-top:8px;min-height:40px}.design-option small{font-size:12px;color:#737866}.welcome{inset:auto 10px 12px!important;width:calc(100% - 20px)!important;height:auto!important;padding:10px!important;gap:8px!important;background:#fffcf1eb!important;border-radius:12px;box-shadow:0 3px 16px #34362115}.welcome .primary{margin:0;min-height:44px}.welcome>span{margin:0;font-size:12px!important}.tools .swatch svg{display:block;width:100%;height:30px;border-radius:3px;margin-bottom:4px}.tools .swatches{gap:6px}.tools .swatch{min-height:59px;font-size:10px}.swatch span{display:block;line-height:1.2}.campaign-note{font-size:13px!important;line-height:1.6!important;border-left:3px solid #bfcf9d;padding-left:12px;margin-top:22px!important}.campaign-note:empty{display:none}.share-box{display:grid;gap:8px;margin:16px 0}.share-box .primary,.share-box .secondary{margin:0;font-size:14px;min-height:44px}.share-box .hint{margin:5px 0;font-size:13px;line-height:1.6}.coupon-box{background:#eff2e3;border:1px dashed #98ac7b;padding:18px;border-radius:12px;margin:18px 0}.coupon-box h3{font-size:20px;line-height:1.4;margin:0 0 10px}.coupon-code{font:700 16px monospace;letter-spacing:.4px;display:block;padding:10px 0;overflow-wrap:anywhere}.coupon-box p{font-size:13px;line-height:1.65;color:#5f6854}.coupon-box .small-button{margin:0;min-height:44px}body[data-stage="done"] .tools{align-self:start}.tools textarea{max-width:100%;min-height:95px;font:14px sans-serif}.primary:disabled{opacity:.65;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #8a6b9d;outline-offset:3px}
@media(max-width:900px){.design-options{gap:8px}.design-option span{font-size:12px}.picker-heading{align-items:start}.picker-heading p{max-width:210px}}
@media(max-width:650px){.design-picker{padding-top:18px}.picker-heading{display:block}.picker-heading h2{font-size:23px}.picker-heading p{max-width:none;margin-top:8px}.design-options{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 3px 12px;gap:10px}.design-option{flex:0 0 119px;scroll-snap-align:start}.design-option span{font-size:13px;min-height:40px}.welcome{bottom:8px!important;padding:8px!important}.welcome .primary{font-size:14px}.welcome>span{font-size:11px!important}.campaign-note{font-size:13px!important}.tools .swatch{font-size:10px}.coupon-box{padding:14px}.gamebar .about-button{min-height:44px}.share-box .primary,.share-box .secondary{font-size:15px}.design-option[aria-pressed="true"]{box-shadow:none}}
/* The next action lives with the board on every screen. */
main{align-items:start}.intro{align-self:center}.tools{align-self:start;padding-top:12px}body:not([data-stage="welcome"]):not([data-stage="done"]) .tools>h2,body:not([data-stage="welcome"]):not([data-stage="done"]) .tools>p:not(.campaign-note),body:not([data-stage="welcome"]):not([data-stage="done"]) .tools>#step-label{display:none}.tools .fact-card{margin-top:0}.worktop{font-size:12px;line-height:1.4;padding-bottom:10px;letter-spacing:.3px}.action-guide{display:flex;align-items:center;gap:12px;background:#fffdf6;border:1px solid #d2d8bc;border-left:5px solid #66834e;border-radius:14px;padding:12px;margin-bottom:14px;min-height:110px}.action-guide h2{font-size:19px;line-height:1.25;margin:4px 0 6px;letter-spacing:-.3px}.action-guide p{font-size:14px;line-height:1.45;margin:0;color:#5a5b4f}#guide-step{font-size:11px;font-weight:700;letter-spacing:.7px;color:#546c42}#guide-tool{width:50px;height:50px;flex:none;display:grid;place-items:center}#guide-tool svg{width:48px;height:48px}#guide-tool>span{font-size:37px;color:#65814b}#action-panel{margin-top:17px}#action-panel:has(#tool-content:empty){display:none}#tool-content .primary{width:100%;min-height:48px;font-size:15px;padding:11px 14px;box-shadow:0 3px 0 #374c3a}#tool-content .hint{font-size:12px;margin:10px 0 0;line-height:1.5}.craft-phases{display:none}.fabric-palette{margin:0 0 12px;border:1px solid #d2d8bc;border-radius:12px;background:#fffcf3}.fabric-palette summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:9px 12px;min-height:56px;font-size:15px;font-weight:700;list-style:none}.fabric-palette summary::after{content:'+';font-size:23px;margin-left:auto;color:#627c50}.fabric-palette[open] summary::after{content:'−'}.fabric-palette summary::-webkit-details-marker{display:none}.fabric-palette summary>svg{width:48px;height:36px;border-radius:5px}.fabric-palette summary small{display:block;font-size:12px;font-weight:400;color:#686e5c}.fabric-palette .swatches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:4px 12px 12px}.fabric-palette .swatch{min-height:65px;font-size:11px;padding:5px 3px}.fabric-palette .swatch svg{width:100%;height:32px;display:block;border-radius:4px}.swatch:focus-visible{outline-offset:1px}.status-row{margin:12px 0 8px;min-height:38px}.status-row p{font-size:13px;color:#4e6042}.status-row .icon{min-width:44px;width:44px;height:44px}.scene-tool{display:none!important}.scene-cloth{width:44%;animation:none}.scene-cloth>span{font-size:13px;line-height:1.35;min-height:44px;display:grid;place-items:center;background:#fffdf5;border:2px solid #b52a69;color:#812349}.piece.target,.piece.excess{animation:none}.trace-line.active{stroke:#b52a69;stroke-width:4;stroke-dasharray:none}.guide-track-base{stroke:#fffef7;stroke-width:12;fill:none;stroke-linejoin:round}.guide-track{stroke:#b52a69;stroke-width:5;stroke-dasharray:9 6;fill:none;stroke-linejoin:round}.guide-runner{fill:#fbd66d;stroke:#7d284b;stroke-width:3}.guide-dot{fill:#b52a69;stroke:#fff;stroke-width:3}.guide-halo{fill:#b52a69;opacity:.18;animation:guide-pulse 1.8s infinite;transform-box:fill-box;transform-origin:center}.drop-target{fill:#d44a893d;stroke:#b52a69;stroke-width:5;stroke-dasharray:10 5;paint-order:stroke fill}.pin-target{fill:#fffdf2;stroke:#b52a69;stroke-width:3;stroke-dasharray:none}.pin-number{fill:#9d2457;pointer-events:none}.pin-hit.pinned>.pin-target,.pin-hit.pinned>.pin-number{visibility:hidden}.pin-hit{touch-action:manipulation}.pin-hit:not(.pinned) .pin-target{filter:drop-shadow(0 0 5px #b52a6955)}body[data-stage="welcome"] #board{touch-action:pan-y}body[data-stage="pin"] #board{touch-action:manipulation}body[data-stage="trace"] #board,body[data-stage="fabric"] #board{touch-action:none}.frame-options{justify-content:center}.frame-option{width:76px;height:68px;font-size:13px}.step-list{flex-wrap:wrap;justify-content:flex-start;gap:8px 12px}.step-list span{font-size:12px}.step-list span:nth-child(3){max-width:none;text-align:left}.share-box .primary{font-size:16px}.finished-link{margin-top:18px}.about-button,.gamebar .icon{min-height:44px;min-width:44px}@keyframes guide-pulse{50%{opacity:.32;transform:scale(1.16)}}
@media(max-width:650px){.shell{padding:0 10px}body:not([data-stage="welcome"]) .intro{display:none!important}main,body:not([data-stage="welcome"]) main{gap:18px;padding-top:12px}header.gamebar,body:not([data-stage="welcome"]) header.gamebar{height:48px!important}.action-guide{min-height:98px;padding:10px;gap:9px;margin-bottom:12px}.action-guide h2{font-size:18px;margin:3px 0 5px}.action-guide p{font-size:14px;line-height:1.4}#guide-tool{width:40px;height:42px}#guide-tool svg{width:40px;height:40px}#guide-step{font-size:10px}.worktop{font-size:12px;gap:8px}body:not([data-stage="welcome"]) .workspace{max-width:350px;width:100%;aspect-ratio:1;scroll-margin-top:10px}.workspace{border-radius:19px}.board-frame{transition:none}.fabric-scene .board-frame{width:76%;transform:translate(-7%,-7%)}.scene-cloth{width:44%;right:5px;bottom:8px}.scene-cloth>span{font-size:12px;margin-top:-8px;padding:3px;min-height:44px}.tools,body:not([data-stage="welcome"]) .tools{padding:14px}.tools>.campaign-note{font-size:13px!important;margin:0 0 16px!important}.tools .fact-card{padding-top:14px;margin-top:0}#action-panel{margin-top:14px}#tool-content .primary{min-height:48px;font-size:15px}#tool-content .hint{font-size:12px}.fabric-palette .swatches{grid-template-columns:repeat(5,minmax(0,1fr));margin:3px 10px 12px;gap:7px}.fabric-palette .swatch{min-height:64px;font-size:11px}.fabric-palette summary{min-height:58px}.step-list span{font-size:11px}.status-row{margin-top:12px}.gamebar nav{gap:6px}.design-option:hover{transform:none}.design-option{transition:none}.welcome .primary{min-height:48px}.frame-options{margin:14px 0}.share-box .primary,.share-box .secondary{font-size:15px}.guide-track{stroke-width:6}.guide-track-base{stroke-width:14}}
@media(max-width:360px){.fabric-palette .swatches{grid-template-columns:repeat(4,minmax(0,1fr))}.action-guide h2{font-size:17px}.action-guide p{font-size:13px}.worktop{font-size:11px}}
@media(prefers-reduced-motion:reduce){.guide-runner{display:none}.guide-halo{animation:none}}

/* Original product proportions stay intact on every screen. */
.workspace{aspect-ratio:var(--art-ratio,1)!important}.board-frame{aspect-ratio:inherit}.design-option svg{background:#eee9dc}.design-option small{display:block;font-size:11px;line-height:1.35;margin-top:3px}.piece{fill-rule:evenodd}.piece.target{fill:#f9f7ed}.fabric-scene .board-frame{width:78%}#original-art{transition:opacity .2s}.scene-cloth{max-width:210px}body[data-stage="done"] .workspace{max-height:none}
@media(max-width:650px){.workspace{max-width:350px}.design-option{flex-basis:132px}.design-option span{min-height:38px}.fabric-scene .board-frame{width:76%}.scene-cloth{width:46%}}

@media(max-width:650px){body:not([data-stage="welcome"]) .workspace{max-width:300px}}

/* Compact board and visible cloth controls share the same working area. */
.shell{max-width:1140px;padding:0 24px}
main,body:not([data-stage="welcome"]) main{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding:18px 0 20px;min-height:0}
.intro,body:not([data-stage="welcome"]) .intro{display:none!important}
.workshop{display:grid;grid-template-columns:minmax(210px,360px) minmax(0,1fr);grid-template-areas:"top top" "board guide" "board controls" "status status" "progress progress" "steps steps";grid-template-rows:auto auto 1fr auto auto auto;gap:10px 24px;max-width:950px;width:100%;margin:0 auto;align-items:start}
.worktop{grid-area:top;padding:0;font-size:12px;min-width:0}
#workspace,body:not([data-stage="welcome"]) #workspace{grid-area:board;width:min(100%,calc(380px * var(--art-proportion,1)))!important;max-width:none!important;justify-self:center;margin:0 auto;transition:none;border-radius:19px}
#action-panel{display:contents}
#action-guide{grid-area:guide;min-height:0;margin:0;padding:10px 12px;gap:10px}
#action-guide h2{font-size:18px;margin:2px 0 4px}
#action-guide p{font-size:14px;line-height:1.4}
#tool-content{grid-area:controls;min-width:0}
#tool-content .hint{font-size:12px;line-height:1.4;margin:9px 0 0}
.status-row{grid-area:status;margin:0!important;min-height:32px!important}
.progress{grid-area:progress;margin:0}
.step-list{grid-area:steps;margin-top:0!important}
.tools,body:not([data-stage="welcome"]) .tools{width:100%;max-width:950px;margin:auto;padding:16px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}
.tools .campaign-note{margin:0 0 12px!important}
.tools .fact-card{padding-top:10px;margin-top:0}
body:not([data-stage="welcome"]) .tools>h2,body:not([data-stage="welcome"]) .tools>p:not(.campaign-note),body:not([data-stage="welcome"]) .tools>#step-label{display:none}
.fabric-palette{margin:0 0 10px;padding:10px;border-radius:12px}
.palette-heading{display:flex;gap:9px;align-items:center;font-size:15px;font-weight:700;margin-bottom:8px}
.palette-heading>svg{width:38px;height:30px;border-radius:4px;flex:none}
.palette-heading small{display:block;font-size:12px;font-weight:400;color:#686e5c}
.fabric-palette .swatches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0}
.fabric-palette .swatch{min-height:54px;min-width:0;padding:4px 3px;font-size:11px;line-height:1.15;border-radius:7px}
.fabric-palette .swatch svg{height:24px;width:100%;margin-bottom:3px}
.palette-hint{display:none}
body[data-stage="done"] .tools>h2,body[data-stage="done"] .tools>p:not(.campaign-note){display:block}
@media(max-width:800px) and (min-width:651px){.workshop{grid-template-columns:minmax(190px,270px) minmax(0,1fr);gap:10px 18px}.fabric-palette .swatches{grid-template-columns:repeat(5,minmax(0,1fr))}.fabric-palette .swatch{font-size:10px}}
@media(max-width:650px){
 .shell{padding:0 10px}
 main,body:not([data-stage="welcome"]) main{padding-top:10px;gap:14px}
 .workshop{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "guide" "board" "controls" "status" "progress" "steps";grid-template-rows:none;gap:8px;max-width:440px}
 #workspace,body:not([data-stage="welcome"]) #workspace{width:min(100%,calc(280px * var(--art-proportion,1)))!important;border-radius:15px}
 #action-guide{padding:8px 10px;gap:8px}
 #action-guide h2{font-size:16px;margin:0 0 3px}
 #action-guide p{font-size:13px;line-height:1.35}
 #guide-tool{width:32px;height:36px}#guide-tool svg{width:32px;height:36px}
 #guide-step{font-size:10px}
 .fabric-palette{padding:8px;margin-bottom:8px}
 .palette-heading{font-size:14px;margin-bottom:7px}.palette-heading small{font-size:12px}
 .fabric-palette .swatches{display:flex;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;scroll-snap-type:x proximity;padding:2px 2px 7px;gap:6px;scrollbar-width:thin;scrollbar-color:#829c69 #e7e9db}
 .fabric-palette .swatch{flex:0 0 64px;min-height:54px;font-size:11px;scroll-snap-align:start}
 .fabric-palette .swatch svg{height:23px}
 .palette-hint{display:block;font-size:12px;color:#657154;line-height:1.3;margin:3px 0 0}
 #tool-content .primary{min-height:44px;padding:9px 12px;font-size:14px}
 #tool-content>.hint{display:none}
 .status-row p{font-size:12px!important;line-height:1.35}.status-row .icon{width:36px;height:36px;min-width:36px}
 .tools,body:not([data-stage="welcome"]) .tools{padding:12px 0 0;max-width:440px}
 .scene-cloth{width:48%;right:0;bottom:5px}.scene-cloth>span{font-size:11px;min-height:36px;padding:3px 5px;margin-top:-6px}
 .step-list{gap:5px 10px}.step-list span{font-size:10px}
 .welcome .primary{font-size:13px;min-height:44px;padding:8px 9px}.welcome>span{display:none}
}
body:not([data-stage="welcome"]) .fabric-palette .swatches{margin:0}
@media(max-width:650px){
 #workspace,body:not([data-stage="welcome"]) #workspace{width:min(100%,calc(240px * var(--art-proportion,1)))!important}
 #guide-step{display:none}#action-guide{padding:7px 9px}#action-guide p{font-size:13px}
 .fabric-palette{padding:6px}.palette-heading{margin-bottom:4px;font-size:13px}.palette-heading>svg{display:none}
 .palette-heading>span{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;line-height:1.4}.palette-heading small{font-size:12px}
 .fabric-palette .swatches{padding-bottom:5px}.fabric-palette .swatch{min-height:48px;font-size:11px;padding:3px}
 .palette-hint{font-size:11px;margin-top:2px}
}

/* Finished art and its caption share normal flow, including narrow phones. */
#workspace.done{
 display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
 aspect-ratio:auto!important;gap:16px;padding:40px 10px 16px;
}
#workspace.done .board-frame{
 flex:none;width:78%;margin:0;transform:none;animation:finished-hang .7s ease-out;
}
#workspace.done .board-frame::before{height:30px;top:-30px;background:#a68e6e;clip-path:polygon(0 100%,50% 0,100% 100%,97% 100%,50% 8%,3% 100%)}
#workspace.done .wall-caption{
 position:static;inset:auto;width:100%;margin:0;text-align:center;min-width:0;
}
#workspace.done .wall-caption .eyebrow{
 display:block;font-size:10px;line-height:1.5;letter-spacing:.8px;overflow-wrap:break-word;
}
#workspace.done .wall-caption h2{font-size:18px;line-height:1.4;margin:7px 0 0}
@media(max-width:650px){
 #workspace.done{gap:12px;padding:36px 10px 14px}
 #workspace.done .wall-caption h2{font-size:16px}
}
@keyframes finished-hang{0%{transform:rotate(-5deg)}55%{transform:rotate(2deg)}100%{transform:rotate(0)}}
