:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#344b43;background:#f3f0e7;font-synthesis:none;--green:#385e4f;--line:#dce2d6}*{box-sizing:border-box}body{margin:0;min-width:280px}.ambient{position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 9% 40%,#e2e9d7,transparent 35%),radial-gradient(ellipse at 92% 20%,#f2dcca66,transparent 35%)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:1px solid var(--line);border-radius:12px;background:#ffffff80;color:inherit;padding:10px 14px;min-height:42px}button:hover:not(:disabled){background:#e9eddf}button:focus-visible,a:focus-visible,#board:focus-visible{outline:3px solid #b37448;outline-offset:3px}button:disabled{opacity:.4;cursor:default}main{max-width:1240px;margin:auto;padding:28px 38px}header{display:flex;align-items:center;justify-content:space-between;padding-bottom:26px;border-bottom:1px solid #d7ded0}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit;letter-spacing:2px;font-size:15px}.brand b{font-weight:750}.brand small{display:block;letter-spacing:.8px;font-size:11px;margin-top:4px;color:#7b8b7d}.logo{font-size:44px;color:#7c9573;line-height:1}nav{display:flex;gap:8px}nav button{font-size:12px}.intro{padding:30px 0 27px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:750;color:#82917e}h1{font-family:Georgia,"Noto Serif SC",serif;font-size:clamp(30px,3.2vw,46px);font-weight:400;letter-spacing:-1.5px;margin:10px 0 8px}p{line-height:1.65}.intro p{font-size:13px;color:#7c8b7e;margin:0}.game-layout{display:grid;grid-template-columns:minmax(190px,270px) minmax(300px,470px) minmax(150px,220px);gap:26px;align-items:start}.art-card{background:#fffcf3;border:1px solid #e4e4d8;padding:23px 22px;border-radius:18px;box-shadow:0 12px 26px #435a3d08}.card-top{display:flex;justify-content:space-between;gap:8px}.card-top .eyebrow{font-size:9px;letter-spacing:1.1px}#levelLabel{font-size:10px;color:#8a9784}h2{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:12px 0 20px}.picture-wrap{background:#f3f0e4;border:8px solid #fffdf6;outline:1px solid #e0dfd2;box-shadow:2px 6px 0 #e8e6da;transform:rotate(-2deg);padding:18px;margin:20px 4px 28px}.pixel-picture{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;gap:2px}.pixel{border-radius:2px;background:#e5e5d8}.pixel.hidden{background:#d9dece}.pixel.blank{background:transparent}.progress-label{display:flex;justify-content:space-between;font-size:10px;margin-top:9px}.progress-label strong{color:#617b4e}.progress-track{height:5px;background:#e9eadc;border-radius:5px;margin:9px 0 18px;overflow:hidden}.progress-track div{height:100%;background:#8ca877;transition:width .4s}#pigments{display:flex;flex-wrap:wrap;gap:7px}.pigment{font-size:10px;display:flex;gap:5px;align-items:center}.dot{width:12px;height:12px;display:inline-block;border-radius:4px}.gallery-button{width:100%;display:flex;justify-content:space-between;font-size:11px;margin-top:25px;border:0;border-top:1px solid var(--line);border-radius:0;padding:18px 0 0;background:none}.play-card{background:#fffcf5;border:1px solid #e1e2d5;border-radius:23px;box-shadow:0 10px 32px #4253390c;padding:20px}.scorebar{display:flex;gap:27px;align-items:center;margin:0 2px 17px}.scorebar span{display:block;font-size:9px;color:#9a9f8e;letter-spacing:1px}.scorebar strong{font-size:23px;line-height:1.5;font-weight:650}.icon-button{margin-left:auto;width:40px;border-radius:50%;padding:0;background:#f0f1e6}.scorebar div:nth-child(2) strong{font-size:18px;color:#89987b}#board{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;padding:7px;background:#e4e8d9;border-radius:10px;aspect-ratio:1;touch-action:none}.cell{border-radius:5px;background:#f3f4e9;min-width:0;min-height:0;padding:0;aspect-ratio:1;border:0;transition:background .12s;position:relative}.cell.filled{box-shadow:inset 0 3px 0 #ffffff35,inset 0 -3px 0 #00000013}.cell.preview{opacity:.55;outline:2px solid #4a6657}.cell.invalid{background:#ecc2b9!important}.cell.keyboard{outline:2px solid #314b40;z-index:1}.cell.hint{outline:3px dashed #ab774b}.cell.flash{animation:flash .4s}@keyframes flash{50%{transform:scale(.8);filter:brightness(1.4)}}#message{text-align:center;min-height:40px;padding-top:12px;font-size:10px;color:#87947f}#tray{display:flex;gap:8px;min-height:85px;align-items:center;justify-content:space-around}.piece-slot{flex:1;height:83px;padding:4px;background:transparent;border:1px solid transparent;touch-action:none;display:flex;align-items:center;justify-content:center;border-radius:10px}.piece-slot.selected{background:#edf0e2;border:1px dashed #95a180}.piece-slot.spent{opacity:.2}.piece-grid{display:grid;gap:3px;pointer-events:none}.piece-cell{width:23px;height:23px;border-radius:4px;box-shadow:inset 0 2px 0 #ffffff35,inset 0 -2px 0 #00000013}.piece-cell.empty{visibility:hidden}.game-actions{display:flex;justify-content:space-between;border-top:1px solid #ececdf;padding-top:10px;margin-top:9px;gap:4px}.game-actions button{border:0;background:transparent;font-size:10px;padding:8px}.note-card{padding-top:25px}.flower{font-size:53px;color:#afbc96}.note-card h2{font-size:25px;margin:10px 0}.note-card p{font-size:11px;color:#88927f}.rule{display:flex;align-items:start;gap:11px;border-top:1px solid #e0e4d6;padding-top:14px;margin-top:14px}.rule span{font-size:10px;color:#a6ad95;padding-top:3px}.rule p{margin:0}.no-pressure{font-style:italic;padding-top:14px}footer{display:flex;justify-content:space-between;font-size:9px;color:#9b9e8c;margin:25px 0 0;gap:12px}dialog{border:1px solid #dbdfcf;border-radius:23px;background:#fffcf3;color:inherit;padding:30px;max-width:min(560px,92vw);width:480px;max-height:85dvh;box-shadow:0 30px 100px #152a3766}dialog::backdrop{background:#243a2e70;backdrop-filter:blur(5px)}dialog p{font-size:13px;color:#77856e}dialog h2{font-size:29px;margin-top:12px}.close{float:right;font-size:21px;padding:0;width:36px;min-height:36px;border:0;background:none}.primary{background:#496a52;color:white;border:0;width:100%;margin-top:15px}.primary:hover:not(:disabled){background:#35563e}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.gallery-item{padding:12px;background:#f1f0e5;border-radius:12px}.gallery-item p{font-size:10px;text-align:center;margin-bottom:0}.gallery-item.locked{opacity:.5}.modal-art{width:160px;margin:20px auto}#dragGhost{position:fixed;pointer-events:none;z-index:8;display:none;opacity:.8}.embed .intro,.embed footer,.embed .note-card{display:none}.embed main{padding:12px}.embed header{padding-bottom:12px;margin-bottom:12px}.embed .game-layout{grid-template-columns:minmax(180px,250px) minmax(280px,440px);justify-content:center}.embed .play-card{padding:14px}
@media(max-width:1000px){.game-layout{grid-template-columns:minmax(180px,260px) minmax(300px,470px);justify-content:center}.note-card{display:none}main{max-width:850px;padding:22px}.intro{text-align:center}}
@media(max-width:600px){main{padding:14px 12px}.brand{font-size:12px;letter-spacing:1px}.brand small{font-size:9px}.logo{font-size:31px}header{padding-bottom:13px}nav{gap:4px}nav button{padding:7px 9px;min-height:36px}#sound{font-size:0}#sound::first-letter{font-size:16px}.intro{padding:18px 0}h1{font-size:29px;margin:7px 0}.intro .eyebrow{font-size:8px}.intro p{font-size:11px}.game-layout,.embed .game-layout{display:flex;flex-direction:column;gap:12px;max-width:430px;margin:auto}.art-card{width:100%;display:grid;grid-template-columns:68px 1fr;column-gap:14px;padding:12px 15px;border-radius:15px}.card-top{grid-column:2;grid-row:1}.art-card h2{grid-column:2;grid-row:2;font-size:18px;margin:3px 0}.picture-wrap{grid-column:1;grid-row:1/6;padding:5px;border:3px solid #fffdf6;margin:2px 0;align-self:center}.pixel-picture{gap:1px}.progress-label{grid-column:2;grid-row:3;margin-top:3px;font-size:9px}.progress-track{grid-column:2;grid-row:4;margin:5px 0;height:4px}#pigments{grid-column:2;grid-row:5;gap:8px}.pigment{font-size:9px}.dot{width:9px;height:9px}.gallery-button{grid-column:1/3;margin:7px 0 0;padding:6px 0 0;min-height:27px;font-size:10px}.play-card{width:100%;padding:14px;border-radius:17px}.scorebar{margin-bottom:10px}.scorebar strong{font-size:20px}#board{gap:3px;padding:5px}.cell{border-radius:4px}#message{font-size:10px;min-height:34px}#tray{min-height:72px}.piece-slot{height:70px}.piece-cell{width:20px;height:20px}.game-actions{padding-top:4px;margin-top:3px}footer{font-size:8px;margin-top:16px}footer span:last-child{display:none}.embed header{margin-bottom:8px}.embed .game-layout{gap:8px}.embed .art-card{padding:8px 12px}.embed #tray{min-height:65px}.embed .piece-slot{height:65px}.embed .gallery-button{display:none}dialog{padding:20px}.gallery-grid{gap:8px}.gallery-item{padding:8px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

#storageStatus{font-size:11px;color:#975738;background:#f8ead7;border-radius:8px;padding:8px;margin:4px 0}#storageStatus[hidden]{display:none}
/* Keep the collection reachable even in compact iframe mode. */
@media(max-width:600px){.embed .gallery-button{display:flex}}
@media(min-width:601px){.embed #board{max-width:calc(100dvh - 255px);width:100%;margin-inline:auto}.embed .play-card{min-width:280px}}
/* Readable small text against the warm light background. */
.eyebrow,.intro p,.note-card p,#message,footer,.brand small,.scorebar span{color:#66765f}
/* Short embedded phone viewports: prioritize the board without trapping scroll. */
@media(max-width:600px){.embed #board{width:min(100%,max(200px,calc(100dvh - 360px)));margin-inline:auto}.embed .scorebar{margin-bottom:8px}.embed .game-actions{margin-top:2px}.embed #message{min-height:30px}}
