:root{font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;color:#654d32;background:#eee5d4;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #796027;outline-offset:3px}[hidden]{display:none!important}.game{height:100vh;height:100dvh;max-width:1600px;margin:auto;padding:env(safe-area-inset-top,0) 22px env(safe-area-inset-bottom,0);display:grid;grid-template-rows:88px 90px auto minmax(0,1fr) 108px 26px;background:radial-gradient(ellipse at 55% 25%,#faf4e7,#ede3d1 80%)}header{display:flex;align-items:center;gap:14px;padding:5px 4px}header nav{display:flex;align-items:center;gap:12px}.brand{margin-right:auto;min-width:0}.brand h1{margin:0;font-size:32px;letter-spacing:-1.3px;font-weight:850;color:#75583a;white-space:nowrap;text-shadow:0 2px 0 #fff8ed}.brand span{font-size:12px;letter-spacing:.6px;color:#947b5c}.round,.clear-all{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px;border:1px solid #c7ad86;border-radius:24px;background:#f6eddf;box-shadow:0 2px 1px #b99a6a30;color:#795d3c;text-decoration:none}.round{width:44px;height:44px}.round svg,.clear-all svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.clear-all{font-size:14px;padding:10px 14px}.stages{display:flex;justify-content:center;align-items:center;gap:20px;padding:4px 0 10px}.stages button{position:relative;width:230px;height:78px;padding:0;border:0;border-radius:26px;background:none;filter:drop-shadow(0 3px 2px #68421e44);transition:transform .15s,filter .15s}.stages button>img{width:100%;height:100%;object-fit:fill;display:block;pointer-events:none}.stages button[aria-pressed=true]{transform:translateY(-2px);filter:drop-shadow(0 2px 1px #714a2677) drop-shadow(0 0 5px #d89f32aa)}.stages button[aria-pressed=true]::after{content:'';position:absolute;inset:0;border:2px solid #fff0ac;border-radius:26px;box-shadow:0 0 0 1px #ae7e30;pointer-events:none}.stages button[aria-pressed=false]{filter:brightness(.94) saturate(.9) drop-shadow(0 3px 2px #68421e33)}.stages button:active{transform:translateY(2px) scale(.98)}.stage-number{position:absolute;top:-3px;left:3px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;font-weight:900;font-size:13px;color:#fff9de;background:radial-gradient(circle at 35% 25%,#c3d194,#7f9660 75%);box-shadow:inset 0 2px 1px #e5edbd,inset 0 -2px 2px #536d3a66,0 2px 3px #50361866;text-shadow:0 1px 1px #426231}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.lesson-bar{display:flex;align-items:center;justify-content:center;gap:16px;padding:0 0 9px;min-height:66px}.lesson-copy{display:grid;text-align:center;gap:1px;min-width:min(350px,70vw)}.lesson-copy strong{font-size:20px}.lesson-copy span{font-size:12px;color:#8a7354}#lessonNumber{font-size:10px;letter-spacing:1px;text-transform:uppercase}.lesson-arrow{width:42px;height:42px;border:1px solid #d1b791;border-radius:50%;background:#f7eddc;font-size:30px;line-height:1}.lesson-arrow.ready{background:#e2e8c5;border-color:#8a9d5d}.workspace{position:relative;min-height:0;display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px}.tools{align-self:center;display:grid;grid-template-rows:repeat(6,minmax(44px,1fr));align-items:center;justify-items:center;gap:9px;height:min(100%,450px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#b9935e transparent;padding:2px}.tool{position:relative;width:100%;aspect-ratio:1;max-height:100%;border:0;background:none;padding:0;display:grid;place-items:center;filter:drop-shadow(0 3px 2px #67432226);border-radius:50%;transition:transform .12s}.tool img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;user-select:none}.tool.selected::after{content:'';position:absolute;inset:0;border:2px solid #fff0ac;box-shadow:0 0 0 2px #92723f66;border-radius:50%}.tool:active:not(:disabled){transform:scale(.94)}.pane{position:relative;min-height:0;background:url('../assets/puffy-grids/play-pane-empty.webp') center/100% 100% no-repeat;filter:drop-shadow(0 4px 3px #70572f16)}.play-area{position:absolute;inset:7% 5.5% 8%;overflow:hidden;touch-action:none;border-radius:18px}canvas{width:100%;height:100%;display:block;touch-action:none;user-select:none;-webkit-user-select:none}#emptyHint{position:absolute;left:0;right:0;top:38%;text-align:center;font-size:clamp(18px,2vw,29px);line-height:1.6;pointer-events:none;color:#8c775d;margin:0;background:radial-gradient(ellipse,#f8f2e5e8,transparent 68%)}#emptyHint strong{font-size:.7em;font-weight:500}.eye-choices{position:absolute;left:76px;top:18%;display:flex;gap:6px;z-index:5;background:#f8efdb;border:2px solid #bc8e54;padding:9px;border-radius:20px;box-shadow:0 10px 28px #50371630}.eye-choices button{border:2px solid transparent;background:none;border-radius:15px;padding:3px;width:56px;height:60px}.eye-choices button[aria-pressed=true]{border-color:#a2ad6b;background:#e6e7c9}.eye-choices img{width:100%;height:100%;object-fit:contain;pointer-events:none}footer{display:flex;align-items:center;justify-content:center;gap:clamp(14px,4vw,65px);min-width:0}.palette-tray{width:390px;height:79px;background:url('../assets/puffy-grids/wood-color-tray.webp') center/100% 100% no-repeat;padding:9px 13px}.palette{height:100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;align-items:center;justify-items:center}.swatch{width:100%;aspect-ratio:1;max-height:100%;padding:0;background:none;border:2px solid transparent;border-radius:50%}.swatch img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}.swatch[aria-pressed=true]{border-color:#fff1b0;box-shadow:0 0 0 1px #795d30}.little-counts{display:flex;align-items:center;gap:18px;text-align:center}.little-counts>div,.little-counts>button{display:grid;gap:1px;min-width:34px;background:none;border:0;padding:3px}.little-counts strong{font-size:23px;font-weight:750;color:#795738}.little-counts span{font-size:11px;color:#8c785e}.puff{display:flex;align-items:center;justify-content:center;gap:8px;min-width:134px;height:66px;border:1px solid #c47829;border-radius:31px 29px 32px 28px;background:radial-gradient(ellipse at 35% 15%,#f7be5a,#e49a36 68%,#c7832d);box-shadow:inset 0 3px 2px #ffdda2,inset 0 -4px 3px #b36b2950,0 4px 1px #bda27655;color:#fffdf1;font-size:24px;font-weight:850;text-shadow:0 2px 1px #97642f50;padding:8px 18px}.puff svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.puff.is-playing{font-size:17px;background:linear-gradient(#b3be82,#7f9461);border-color:#6b8052;box-shadow:inset 0 2px 1px #d9e5b3,0 3px 1px #9b9c7555}.puff:active:not(:disabled){transform:translateY(2px)}.hint{text-align:center;font-size:13px;line-height:20px;color:#816b50;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}@media(max-width:620px){.game{padding-left:9px;padding-right:9px;grid-template-rows:76px 72px auto minmax(0,1fr) 133px 36px}header{gap:7px;padding:3px 0}.brand h1{font-size:23px;letter-spacing:-.8px}.brand span{font-size:10px}.round{width:35px;height:39px;min-height:39px;padding:7px}header nav{gap:5px}.clear-all{padding:7px 9px;min-height:39px;font-size:12px;gap:4px}.clear-all svg{width:16px;height:18px}.stages{gap:12px;padding:5px 1px 10px}.stages button{width:min(46vw,184px);height:58px;border-radius:20px}.stages button[aria-pressed=true]::after{border-radius:20px}.stage-number{width:22px;height:22px;font-size:11px;top:-4px;left:2px}.lesson-bar{gap:7px;padding-bottom:5px;min-height:69px}.lesson-copy{min-width:0;flex:1}.lesson-copy strong{font-size:17px}.lesson-copy span{font-size:11px}.lesson-arrow{width:36px;height:36px;flex-shrink:0}.workspace{grid-template-columns:51px minmax(0,1fr);gap:5px}.tools{gap:8px;height:min(100%,350px);padding:1px}.tool svg{stroke-width:4}.tool.selected::after{border-width:1.5px}.play-area{inset:6% 6% 7%;border-radius:12px}.eye-choices{left:55px;max-width:calc(100vw - 78px);flex-wrap:wrap;padding:6px;gap:2px}.eye-choices button{width:46px;height:48px}footer{display:grid;grid-template-columns:1fr 120px;grid-template-rows:66px 56px;gap:2px 9px;align-content:center}.palette-tray{grid-column:1/-1;width:min(100%,344px);height:65px;justify-self:center;padding:7px 12px}.palette{gap:2px}.little-counts{gap:14px;justify-content:center}.little-counts strong{font-size:19px}.little-counts span{font-size:10px}.puff{min-width:0;width:116px;height:51px;font-size:22px;padding:6px 12px;gap:4px}.puff svg{width:27px;height:27px}.puff.is-playing{font-size:15px}.hint{font-size:11px}#emptyHint{font-size:18px}}
@media(max-width:360px){.brand h1{font-size:19px}.brand span{font-size:9px}.clear-all svg{display:none}.clear-all{padding:7px}.round{width:31px}header{gap:5px}header nav{gap:3px}.workspace{grid-template-columns:44px minmax(0,1fr)}.tools{gap:5px}.eye-choices{left:48px}.little-counts{gap:8px}.lesson-copy strong{font-size:15px}}
@media(max-height:510px) and (min-width:621px){.game{grid-template-rows:48px 51px auto minmax(0,1fr) 61px 21px;padding:0 9px}header{padding:2px}.brand h1{font-size:23px}.brand span{display:none}.round,.clear-all{min-height:34px;height:34px;padding:5px 9px}.round{width:34px}.stages{gap:16px;padding:3px 0 7px}.stages button{width:148px;height:45px}.stages button[aria-pressed=true]::after{border-radius:18px}.stage-number{width:18px;height:18px;font-size:10px}.lesson-bar{min-height:42px;padding-bottom:4px;gap:10px}.lesson-copy{display:flex;align-items:center;justify-content:center;gap:10px;min-width:400px}.lesson-copy strong{font-size:16px}.lesson-copy span{font-size:11px}.lesson-arrow{width:32px;height:32px}.workspace{grid-template-columns:40px minmax(0,1fr);gap:8px}.tools{gap:3px}.tool svg{width:57%;height:57%}.play-area{inset:7% 5.5% 8%}.palette-tray{width:280px;height:55px;padding:6px 9px}footer{gap:24px}.little-counts{gap:15px}.little-counts strong{font-size:18px}.puff{height:47px;min-width:116px;font-size:21px}.puff svg{width:27px;height:27px}.eye-choices{left:47px;top:5%}.hint{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
header{grid-row:1}.stages{grid-row:2}.lesson-bar{grid-row:3}.workspace{grid-row:4}footer{grid-row:5}.hint{grid-row:6}

.puff.is-playing svg{display:none}
@media(max-width:620px){.game{grid-template-rows:76px 72px auto minmax(0,1fr) 133px 36px}.hint{white-space:normal;line-height:14px;align-self:center;overflow:visible}}

.brand h1{line-height:1;letter-spacing:0;display:flex;align-items:center}.wordmark{display:block;width:clamp(220px,25vw,330px);max-width:100%;height:auto;filter:drop-shadow(0 2px 1px #7b5d291a)}.brand>span{display:block;padding:3px 0 0 5px;font-size:10px;letter-spacing:1px}.puff.is-playing{font-size:18px}.puff.is-playing span{white-space:nowrap}
@media(max-width:620px){.brand{flex:1}.wordmark{width:100%;max-width:214px}.brand>span{font-size:8px;letter-spacing:.6px;padding-top:4px}.puff.is-playing{font-size:16px}.lesson-bar{min-height:65px}.lesson-copy strong{font-size:16px}.clear-all{padding:7px 8px}.clear-all svg{display:none}}
@media(max-width:360px){.stages{gap:10px}.stages button{width:calc((100vw - 31px)/2);height:52px}.stage-number{width:19px;height:19px}.game{grid-template-rows:70px 66px auto minmax(0,1fr) 124px 34px}.lesson-bar{min-height:59px}.lesson-copy strong{font-size:15px}footer{grid-template-rows:60px 52px}.palette-tray{height:58px}.brand>span{font-size:7px}.wordmark{max-width:172px}}
@media(max-height:510px) and (min-width:621px){.wordmark{width:214px}.brand>span{display:none}.puff.is-playing{font-size:16px}.lesson-bar{min-height:40px}.stages button[aria-pressed=true]::after{border-radius:18px}}

/* Eyes are tangible pieces: direct touch dragging, a lifted preview, and a soft landing. */
.tool[data-tool=eyes],.tool[data-tool=mouths],.eye-choices button{touch-action:none;cursor:grab}
.eye-source-lifted{filter:brightness(1.08) drop-shadow(0 4px 4px #67432255)}
#eyeGhost{position:fixed;z-index:40;pointer-events:none;touch-action:none;filter:drop-shadow(0 6px 4px #4e382b22)}
.dragging-eye,.dragging-eye *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
.game.eye-can-drop .play-area{box-shadow:inset 0 0 20px #d5ad4524}

/* Raised oak-and-clay header toys, with readable labels and generous hit areas. */
header .header-toy{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:64px;min-width:44px;height:78px;min-height:44px;padding:0;border:0;border-radius:17px;background:none;box-shadow:none;text-decoration:none;color:#735033;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.header-toy img{display:block;width:58px;height:58px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 1px #65401b35);transform-origin:50% 85%;transition:transform .16s cubic-bezier(.2,.8,.3,1.4),filter .16s}
.header-toy span{font-size:12px;font-weight:850;line-height:14px;white-space:nowrap;letter-spacing:.1px;text-shadow:0 1px #fff9e8}
header .header-toy:active img{transform:translateY(3px) scale(.91, .95);filter:drop-shadow(0 1px 1px #65401b44) brightness(1.04)}
@media(hover:hover){header .header-toy:hover img{transform:translateY(-2px) rotate(-3deg)}header .header-toy:active img{transform:translateY(3px) scale(.91,.95)}}
@media(max-width:620px){header .header-toy{width:48px;height:64px;gap:1px}.header-toy img{width:45px;height:45px}.header-toy span{font-size:10px;line-height:13px}header nav{gap:5px}}
@media(max-width:360px){header .header-toy{width:44px;height:60px}.header-toy img{width:43px;height:43px}.header-toy span{font-size:10px}}
@media(max-height:510px) and (min-width:621px){header .header-toy{flex-direction:row;width:auto;min-width:72px;height:44px;gap:4px}.header-toy img{width:39px;height:39px}.header-toy span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.header-toy img{transition:none}header .header-toy:hover img,header .header-toy:active img{transform:none}header .header-toy:active img{filter:brightness(.93)}}

/* Keep six toys usable in short panes; the column scrolls instead of shrinking targets. */
.tools .tool{min-height:44px;min-width:44px}
@media(max-width:360px){.workspace{grid-template-columns:48px minmax(0,1fr)}.tools{gap:1px;padding:0}}
@media(max-height:510px) and (min-width:621px){.workspace{grid-template-columns:98px minmax(0,1fr)}.tools{grid-template-columns:repeat(2,minmax(44px,1fr));grid-template-rows:repeat(3,minmax(44px,1fr));grid-auto-flow:column;column-gap:6px;height:min(100%,155px)}.eye-choices{left:102px}}

/* Whole transparent clay icons sit directly on the picker backdrop. */
.mouth-choices{position:absolute;z-index:6;left:78px;top:22%;display:grid;grid-template-columns:repeat(4,84px);gap:8px;padding:10px;background:#f4e6cc;border:2px solid #b98b51;border-radius:22px;box-shadow:inset 0 2px 2px #fff6e5,0 9px 20px #543a2840}
.mouth-choices button{display:grid;grid-template-rows:76px 18px;align-items:center;justify-items:center;gap:4px;padding:4px 2px;border:2px solid transparent;border-radius:17px;background:transparent;touch-action:none;cursor:grab}
.mouth-choices img{display:block;width:76px;height:76px;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-select:none;transform-origin:50% 50%;animation:face-option-breathe 3.5s ease-in-out infinite}
.mouth-choices span{font-size:12px;font-weight:800;line-height:18px;pointer-events:none}
.mouth-choices button[aria-pressed=true]{border-color:#a88a50;background:#fff6d63b;box-shadow:inset 0 0 0 1px #fff8d9}
.mouth-choices [data-mouth=smirk] img{animation-name:face-option-smirk;animation-duration:4s}
.mouth-choices [data-mouth=giggle] img{animation-name:face-option-giggle;animation-duration:2.8s}
.mouth-choices [data-mouth=ooh] img{animation-duration:4.2s;animation-delay:-1s}
@keyframes face-option-breathe{0%,100%{transform:translateY(1px) scale(1)}50%{transform:translateY(-1px) scale(1.025)}}
@keyframes face-option-smirk{0%,65%,100%{transform:rotate(0)}75%,85%{transform:rotate(-3deg)}80%,90%{transform:rotate(-1deg)}}
@keyframes face-option-giggle{0%,60%,100%{transform:translateY(0) scale(1)}68%,84%{transform:translateY(-2px) scale(1.03,.97)}76%,92%{transform:translateY(1px) scale(.98,1.02)}}
@media(max-width:620px){.mouth-choices{left:55px;top:18%;grid-template-columns:repeat(2,84px);gap:6px;padding:8px}}
@media(max-width:360px){.mouth-choices{left:52px;top:4%;padding:6px;grid-template-columns:repeat(2,74px)}.mouth-choices button{grid-template-rows:64px 16px;gap:2px;padding:2px}.mouth-choices img{width:64px;height:64px}.mouth-choices span{font-size:11px;line-height:16px}}
@media(max-height:510px) and (min-width:621px){.mouth-choices{left:104px;top:0}}
@media(prefers-reduced-motion:reduce){.mouth-choices img{animation:none;transform:none}}

/* The guide is a surprise creation, with a picture of each separate piece. */
.lesson-bar{gap:12px;min-height:100px;padding:0 5px 6px}.lesson-copy{min-width:0;flex:0 1 370px}.lesson-copy strong{line-height:1.15}.lesson-pieces{display:flex;justify-content:center;gap:7px;margin-top:3px}.lesson-piece{display:block;width:28px;height:28px;border:1px solid transparent;border-radius:9px}.lesson-piece svg{display:block;width:100%;height:100%}.lesson-piece[data-state=current]{background:#fff0bc;border-color:#bd9043;box-shadow:0 0 0 2px #f7e4b855}.lesson-piece[data-state=waiting]{opacity:.48}.lesson-piece[data-state=done]{background:#e4ebd0}.lesson-surprise{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:86px;min-height:58px;padding:6px 4px;border:1px solid #b88a4b;border-radius:17px;background:radial-gradient(ellipse at 30% 0,#fff5d8,#eed4a6);box-shadow:inset 0 2px 1px #fffaf0,0 3px 0 #b28b5950;font-size:11px;font-weight:800;line-height:1.15}.lesson-surprise svg{width:28px;height:28px;fill:none;stroke:#866039;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.lesson-surprise:active{transform:translateY(2px)}.lesson-surprise.ready{background:linear-gradient(#edf3d8,#d8e3b9);border-color:#9aac75}
@media(max-width:620px){.lesson-bar{min-height:94px;gap:7px}.lesson-copy{flex:1}.lesson-copy strong{font-size:16px}.lesson-copy span{font-size:10px}.lesson-piece{width:25px;height:25px}.lesson-surprise{width:76px;min-height:56px;font-size:10px}}
@media(max-height:600px){.lesson-bar{min-height:68px}.lesson-copy{position:relative;padding-right:100px;flex-basis:430px}.lesson-pieces{position:absolute;right:0;top:0;bottom:0;align-content:center;display:grid;grid-template-columns:repeat(2,24px);gap:2px}.lesson-piece{width:24px;height:24px}.lesson-surprise{min-height:48px}.lesson-copy strong{font-size:15px}.lesson-copy span{font-size:10px}}
@media(max-width:380px) and (max-height:600px){.lesson-copy{padding-right:53px}.lesson-bar{padding-left:0;padding-right:0}.lesson-surprise{width:68px;font-size:10px}.lesson-copy strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.lesson-surprise:active{transform:none}}

/* Give each wooden toy its own space; shorter boards use more columns. */
.workspace{--tool-size:64px;--tool-gap:14px;--tool-columns:1;--tool-rows:6;--tools-width:72px;grid-template-columns:var(--tools-width) minmax(0,1fr)}
.tools{grid-template-columns:repeat(var(--tool-columns),var(--tool-size));grid-template-rows:repeat(var(--tool-rows),var(--tool-size));grid-auto-flow:column;gap:var(--tool-gap);height:auto;padding:4px;overflow:visible;justify-content:center;align-content:center}
.tools .tool{width:var(--tool-size);height:var(--tool-size);min-width:44px;min-height:44px;max-height:none;aspect-ratio:1}
.eye-choices,.mouth-choices{left:calc(var(--tools-width) + 12px)}
@media(min-width:621px) and (max-height:900px){.workspace{--tool-columns:2;--tool-rows:3;--tool-gap:14px;--tools-width:150px}}
@media(min-width:621px) and (max-height:640px){.workspace{--tool-columns:3;--tool-rows:2;--tool-size:52px;--tool-gap:12px;--tools-width:188px}}
@media(max-width:620px){.workspace{--tool-size:46px;--tool-gap:9px;--tools-width:54px}.eye-choices,.mouth-choices{left:calc(var(--tools-width) + 5px)}}
@media(max-width:620px) and (max-height:770px){.workspace{--tool-columns:2;--tool-rows:3;--tool-size:44px;--tool-gap:8px;--tools-width:104px}}

/* Six familiar clay wells and one little color carnival. */
.color-tray-group{display:flex;align-items:center;gap:12px;min-width:0;flex:0 1 470px}
.color-tray-group .palette-tray{flex:1 1 390px;min-width:0}
.more-colors{flex:0 0 66px;width:66px;min-height:76px;display:grid;justify-items:center;gap:1px;padding:0;border:0;border-radius:15px;background:none;font-size:11px;font-weight:850;line-height:14px;--chosen-clay:#97b66c}
.more-colors svg{width:57px;height:60px;overflow:visible;filter:drop-shadow(0 3px 2px #68432240)}
.ferris-hub{fill:var(--chosen-clay)}
.ferris-ring{transform-origin:40px 35px;transition:transform .5s ease}
.more-colors:hover .ferris-ring,.more-colors[aria-expanded=true] .ferris-ring{transform:rotate(45deg)}
.more-colors:active{transform:translateY(2px)}
.more-colors.custom-color{background:#fff4cf80;box-shadow:0 0 0 2px #c9a667}
footer{gap:clamp(12px,2vw,36px)}
@media(max-width:620px){footer{grid-template-columns:54px minmax(0,1fr) 116px;column-gap:8px}.color-tray-group{display:contents}.color-tray-group .palette-tray{grid-column:1/-1;grid-row:1}.more-colors{grid-column:1;grid-row:2;width:54px;min-height:52px;font-size:9px;line-height:11px}.more-colors svg{width:38px;height:39px}.little-counts{grid-column:2;grid-row:2;gap:6px}.little-counts>div,.little-counts>button{min-width:28px;padding:1px}.puff{grid-column:3;grid-row:2}}
@media(max-height:510px) and (min-width:621px){.color-tray-group{gap:6px}.more-colors{flex-basis:52px;width:52px;min-height:54px;font-size:9px;line-height:11px}.more-colors svg{width:39px;height:41px}}

.clay-color-overlay{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:12px;background:#4b39264d;backdrop-filter:blur(3px)}
.clay-color-panel{--chosen-clay:#97b66c;width:min(390px,100%);max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:3px solid #c7a16a;border-radius:30px;background:radial-gradient(ellipse at 30% 0,#fff8e8,#f0e1c7);box-shadow:inset 0 2px 1px #fffef3,0 15px 50px #42301b55;animation:clay-colors-open .2s ease-out}
.clay-color-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.clay-color-heading h2{margin:2px 0 5px;font-size:23px;letter-spacing:-.5px;color:#745230}.clay-color-heading p{margin:0;font-size:12px;line-height:18px;color:#8b6f4b}
.close-clay-colors{flex:0 0 44px;width:44px;height:44px;border:1px solid #d2b382;border-radius:50%;background:#fff5df;font-size:29px;line-height:1;box-shadow:0 2px 0 #b7976340}
.color-ferris{position:relative;width:min(290px,100%,calc(100dvh - 250px));margin:14px auto 0;padding-bottom:22px}
.color-wheel-rim{position:relative;aspect-ratio:1;border:9px solid #b68b54;border-radius:50%;background:#b68b54;box-shadow:inset 0 0 0 3px #efce97,0 0 0 3px #efd3a3,0 5px 4px #88653740}
#clayColorWheel{position:relative;z-index:1;width:100%;height:100%;border-radius:50%;cursor:crosshair;touch-action:none;box-shadow:inset 0 2px 3px #4e341f44}
.clay-color-cursor{position:absolute;z-index:2;width:19px;height:19px;border:3px solid #fff;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 2px #574430,0 2px 5px #46322360;pointer-events:none}
.ferris-feet{position:absolute;bottom:4px;left:30%;right:30%;height:39px;border-bottom:7px solid #b58b55;border-radius:4px}.ferris-feet:before,.ferris-feet:after{content:'';position:absolute;top:0;width:7px;height:34px;background:linear-gradient(90deg,#997143,#d4ad74);border-radius:4px}.ferris-feet:before{left:16%;transform:rotate(24deg)}.ferris-feet:after{right:16%;transform:rotate(-24deg)}
.clay-shade{display:flex;align-items:center;gap:10px;min-height:44px;margin:0 8px 12px;font-size:28px;color:#a08048}
.clay-shade input{--bright-clay:#97b66c;appearance:none;-webkit-appearance:none;flex:1;min-width:0;height:18px;border:2px solid #fff3d8;border-radius:12px;background:linear-gradient(90deg,#000,var(--bright-clay));box-shadow:0 1px 3px #6c51324d;cursor:pointer;touch-action:pan-y}
.clay-shade input::-webkit-slider-thumb{appearance:none;width:28px;height:28px;border:3px solid #f9edcf;border-radius:50%;background:var(--chosen-clay);box-shadow:0 1px 4px #604a37}
.clay-shade input::-moz-range-thumb{width:22px;height:22px;border:3px solid #f9edcf;border-radius:50%;background:var(--chosen-clay);box-shadow:0 1px 4px #604a37}
.clay-color-actions{display:flex;gap:12px;align-items:center;justify-content:space-between}
.exact-clay-color{display:grid;justify-items:center;gap:2px;flex:0 0 68px;font-size:10px;font-weight:800;line-height:13px;cursor:pointer}
.exact-clay-color input{width:48px;height:44px;padding:3px;border:1px solid #b8935e;border-radius:15px;background:#f8efd9;cursor:pointer}.exact-clay-color input::-webkit-color-swatch-wrapper{padding:0}.exact-clay-color input::-webkit-color-swatch{border:0;border-radius:11px}.exact-clay-color input::-moz-color-swatch{border:0;border-radius:11px}
.use-clay-color{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;min-height:58px;border:1px solid #a4af72;border-radius:21px;background:linear-gradient(#e9edce,#d4dfad);box-shadow:inset 0 2px 1px #ffffdf,0 3px 0 #9caa6840;font-size:15px;font-weight:850;white-space:nowrap}
.clay-color-preview{width:34px;height:33px;flex:0 0 auto;border-radius:46% 54% 48% 44%;background:radial-gradient(ellipse at 30% 15%,#ffffff75,transparent 60%),var(--chosen-clay);box-shadow:inset -3px -4px 5px #0003,inset 1px 2px 1px #fff8,0 3px 1px #5e42253b;transform:rotate(-9deg)}
@keyframes clay-colors-open{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
@media(max-width:360px){.clay-color-panel{padding:14px;border-radius:24px}.clay-color-heading h2{font-size:20px}.use-clay-color{gap:6px;font-size:13px}.clay-color-actions{gap:6px}}
@media(max-height:510px) and (min-width:621px){.clay-color-panel{width:560px;display:grid;grid-template-columns:220px minmax(0,1fr);gap:4px 20px;padding:14px 18px}.clay-color-heading{grid-column:1/-1}.color-ferris{grid-column:1;grid-row:2/4;width:min(200px,calc(100dvh - 120px));margin:0 auto}.clay-shade{grid-column:2;grid-row:2;margin:0;align-self:end}.clay-color-actions{grid-column:2;grid-row:3;flex-wrap:wrap;align-self:start;justify-content:center}.exact-clay-color{display:flex;justify-content:center;gap:8px;flex-basis:100%}.use-clay-color{min-height:52px}.clay-color-preview{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){.clay-color-panel{animation:none}.ferris-ring{transition:none}.more-colors:hover .ferris-ring,.more-colors[aria-expanded=true] .ferris-ring{transform:none}}
