:root{--ink:#304d4c;--muted:#7f918a;--paper:#f8f5ed;--teal:#578d85;--teal-dark:#43796f;--mint:#dfece3;--line:#e7e9dd;--peach:#dfb29a;--amber:#d8b46d;--soft:#edf0e6;--shadow:0 8px 24px #37594a09;color-scheme:light;font-family:ui-rounded,"SF Pro Rounded","PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none}body{background:#e8e9e1}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;touch-action:manipulation;user-select:none;-webkit-user-select:none}button:focus-visible{outline:3px solid #71a99a;outline-offset:4px}button:disabled{cursor:default}h1,h2,h3,p{margin:0}button svg{pointer-events:none}.ui-icon{width:23px;height:23px;flex-shrink:0;vertical-align:middle}.art-icon{display:block;width:100%;height:100%;overflow:visible}.flower{width:38px;height:38px;display:block}.star-icon{width:17px;height:17px;color:var(--amber)}.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}
#app{width:100%;max-width:460px;margin:0 auto;height:100vh;height:100dvh;background:var(--paper);display:flex;flex-direction:column;overflow:hidden;position:relative;isolation:isolate;padding-top:env(safe-area-inset-top)}#app:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 7% 35%,#e1ece550,transparent 52%),radial-gradient(ellipse at 100% 80%,#ede1d550,transparent 48%)}#topbar{height:62px;min-height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:12px;z-index:3}.brand{display:flex;align-items:center;gap:7px;letter-spacing:1.5px;font-size:12px;font-weight:850;line-height:1.02}.brand svg{width:35px;height:35px;color:#7da89c}.brand small{font-size:8px;display:block;letter-spacing:2px;margin-top:3px;color:#8d9c94}.top-actions{display:flex;gap:6px;align-items:center}.icon-btn{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fffaf377;border:1px solid #e2e7dd90;color:#799188;transition:background .16s,transform .16s}.icon-btn:active{transform:scale(.91);background:#e0e9df}.icon-btn.small{width:34px;height:34px;border-radius:11px}.version-chip{border:1px solid #dae3d7;border-radius:20px;padding:7px 11px;font-size:10px;font-weight:700;color:#93a08e;letter-spacing:.6px}#screen{flex:1;min-height:0;position:relative;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd8c8 transparent}.page-pad{padding:13px 23px calc(24px + env(safe-area-inset-bottom))}.eyebrow{color:#92a08d;font-size:10px;letter-spacing:2.3px;font-weight:800;text-transform:uppercase}.section-title{display:flex;justify-content:space-between;align-items:center;margin:24px 0 13px}.section-title h2{font-size:18px;font-weight:750;letter-spacing:.5px}.section-title small{font-size:11px;color:var(--muted)}
/* Home: one journey, a handful of small discoveries. */
.home-page{padding:0 23px calc(20px + env(safe-area-inset-bottom))}.hero{text-align:center;position:relative;padding:18px 0 8px}.hero h1{font-size:43px;letter-spacing:7px;font-weight:800;padding-left:7px;line-height:1.2}.hero>p{font-size:12px;letter-spacing:2px;color:#89978a;margin-top:12px}.hero-art{height:207px;position:relative;margin:7px auto 0;max-width:350px}.hero-halo{position:absolute;width:230px;height:166px;background:#e3ebdf;border-radius:48% 48% 45% 45%;left:50%;top:27px;transform:translateX(-50%) rotate(-7deg)}.mini-card{position:absolute;width:93px;height:111px;border-radius:19px;background:#fffcf5;box-shadow:0 5px 0 #e3e2d5,0 14px 22px #56694310;border:1px solid #fffdf8;display:grid;place-items:center;padding:9px}.mini-card.left{top:52px;left:30px;transform:rotate(-15deg)}.mini-card.center{top:18px;left:calc(50% - 48px);z-index:2;transform:rotate(5deg)}.mini-card.right{right:21px;top:67px;transform:rotate(16deg);background:linear-gradient(150deg,#cce3d8,#add0c4);border-color:#d6e9de}.mini-card.right .flower{width:78px;height:78px;color:#f6faec}.hero-art .float-star{position:absolute;width:19px;height:19px;color:#c9b682;top:22px;right:55px;transform:rotate(15deg)}.hero-art .float-star.second{left:14px;top:133px;width:13px;color:#a8bdae}.hero-art .dot{position:absolute;background:#d7b69e;width:7px;height:7px;border-radius:50%;left:68px;top:19px}.hero-tag{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;border-radius:20px;background:#fffaf1;box-shadow:0 3px 11px #60735307;border:1px solid #e7e8db;padding:8px 13px;color:#8b9a88;letter-spacing:1px}.hero-tag i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#a0b99a;margin-right:6px;vertical-align:2px}.journey-card{margin-top:8px;padding:17px;background:#fffdf6b8;border:1px solid #e4e6d9;border-radius:23px;box-shadow:var(--shadow)}.journey-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.journey-head b{font-size:13px;font-weight:750}.journey-head span{font-size:11px;color:#8d9d8f}.progress-track{height:6px;border-radius:10px;background:#e8ece1;overflow:hidden}.progress-track>span{height:100%;display:block;border-radius:10px;background:#98b6a4;transition:width .4s ease}.journey-chapters{display:flex;justify-content:space-between;gap:5px;font-size:10px;color:#9da68f;margin:12px 0 16px}.journey-chapters span{display:flex;gap:4px;align-items:center}.journey-chapters i{width:6px;height:6px;border-radius:50%;background:#c1cdb9}.journey-chapters .active{color:#749583}.journey-chapters .active i{background:#8ab39d}.primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;padding:13px 17px;border-radius:17px;background:#62978c;box-shadow:0 4px 0 #4c8076;color:#fffdf3;font-size:16px;font-weight:750;letter-spacing:.8px;transition:transform .12s,box-shadow .12s,background .12s}.primary:active{transform:translateY(3px);box-shadow:0 1px 0 #4c8076;background:#578d81}.primary:disabled{opacity:.5}.primary .ui-icon{width:21px;height:21px}.primary.left{justify-content:space-between}.button-subtitle{text-align:center;font-size:10px;color:#a2a793;margin-top:14px;line-height:1.6;letter-spacing:.3px}.home-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:17px}.home-tile{display:flex;align-items:center;gap:10px;border:1px solid #e4e7db;background:#fffdf561;min-height:77px;border-radius:21px;padding:13px 12px;text-align:left}.home-tile .tile-icon{width:39px;height:43px;border-radius:14px;display:grid;place-items:center;background:#e7ece1;color:#87a28b;flex-shrink:0}.home-tile:nth-child(2) .tile-icon{background:#f0e6d8;color:#b4a086}.home-tile b{display:block;font-size:13px;margin-bottom:5px;font-weight:700}.home-tile small{display:block;font-size:10px;color:#9aa18f}.bottom-links{display:flex;justify-content:center;gap:24px;padding-top:18px;font-size:11px;color:#8a9b8b}.bottom-links button{display:flex;align-items:center;gap:6px;min-height:40px}.bottom-links .ui-icon{width:18px;height:18px}.home-footer{font-size:9px;text-align:center;color:#b0b4a5;letter-spacing:1px;padding-top:9px}
/* Board chrome is intentionally compact; space belongs to the cards. */
#app.game-screen #topbar{height:52px;min-height:52px;padding:0 17px}#app.game-screen .brand{font-size:11px;letter-spacing:1.3px}#app.game-screen .brand .flower{width:28px;height:28px}#app.game-screen #screen{overflow:hidden}.game-layout{height:100%;display:flex;flex-direction:column;padding:0 18px calc(10px + env(safe-area-inset-bottom));gap:0}.play-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 3px 8px}.play-heading .eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:5px}.play-heading h1{font-size:21px;font-weight:780;letter-spacing:.5px;line-height:1.3}.mechanic-chip{font-size:10px;color:#8aa18e;display:flex;align-items:center;gap:5px;padding:8px 9px;border-radius:12px;background:#e7eee280;white-space:nowrap}.mechanic-chip .ui-icon{width:15px;height:15px}.game-progress{display:flex;align-items:center;gap:10px;padding:0 3px}.game-progress .progress-track{height:5px;flex:1}.game-progress .progress-track>span{background:#86ae9d}.progress-label{font-size:11px;color:#86978b;font-variant-numeric:tabular-nums;white-space:nowrap}.stat-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0;border:1px solid #e6e9de;background:#fffcf477;border-radius:18px;margin:13px 0 10px;padding:10px 3px}.stat{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:3px;position:relative}.stat+.stat:before{content:"";position:absolute;width:1px;height:25px;background:#e8eadf;left:0;top:9px}.stat span{font-size:9px;letter-spacing:.4px;color:#a1a895;line-height:1.1}.stat b{font-size:21px;font-weight:760;line-height:1.2;font-variant-numeric:tabular-nums;color:#536c5e;display:flex;align-items:center;justify-content:center;gap:3px}.stat b small{font-size:10px;font-weight:550;color:#9aa28e}.stat b .star-icon{width:16px;height:16px}.stat .combo-active{color:#b69662}.stat .urgent{color:#c98273}.coach{min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;line-height:1.6;color:#879984;padding:5px 2px;text-align:center}.coach .ui-icon{width:18px;height:18px;flex-shrink:0;color:#99ae92}.coach strong{font-weight:600;color:#678c77}.coach .countdown{font-variant-numeric:tabular-nums;display:inline-block;background:#e3ecde;border-radius:9px;min-width:35px;padding:2px 4px;font-weight:700;color:#5d8c73}.coach .skip{color:#9da592;text-decoration:underline;font-size:10px;margin-left:3px;flex-shrink:0;padding:5px 0}.board-wrap{flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;padding:8px 0 12px}.board{display:grid;grid-template-columns:repeat(var(--cols),var(--cw));grid-template-rows:repeat(var(--rows),var(--ch));gap:var(--gap);position:relative;isolation:isolate;touch-action:manipulation}.slot{width:var(--cw);height:var(--ch);position:relative;border-radius:16px;background:#e7ebdf55;box-shadow:inset 0 0 0 1px #dee5d933}.slot:before{content:"";position:absolute;left:calc(50% - 2px);top:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#cbd8c9;opacity:0;transition:opacity .3s}.slot.hole:before{opacity:.7}.card{position:relative;width:100%;height:100%;padding:0;background:none;border:0;perspective:650px;border-radius:15px;z-index:1;will-change:transform;transition:filter .18s;outline-offset:3px}.card:active:not(.revealed):not(.locked):not(.gone){transform:translateY(3px)}.card-rotor{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .18s cubic-bezier(.25,.7,.35,1)}.card.revealed .card-rotor,.card.collecting .card-rotor{transform:rotateY(180deg)}.card-face{position:absolute;inset:0;border-radius:15px;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 0 #9bbdb09e,0 6px 8px #536f5a0c;border:1px solid #f4fff585}.card-back{background:linear-gradient(150deg,#cee5d9,#b6d6c8);color:#eef5e8;transform:rotateY(0deg)}.card-back:before{content:"";position:absolute;inset:6px;border:1px solid #eff8e29c;border-radius:10px}.card-back:after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:#ebf6e780;top:12px;right:12px;box-shadow:0 calc(var(--ch) - 30px) 0 #eff8e370}.card-back .flower{width:72%;height:72%;max-width:95px;max-height:95px;filter:drop-shadow(0 2px 0 #94b9a73b)}.card-front{transform:rotateY(180deg);background:linear-gradient(145deg,#fffef9,#fbf7ed);box-shadow:0 4px 0 #dedacaa1,0 6px 9px #57633d0a;border:1px solid #fffdf3;padding:8%}.card-front:before{content:"";position:absolute;inset:5px;border:1px solid #eceade70;border-radius:10px}.card-front .art-icon{width:100%;height:100%;filter:drop-shadow(0 2px 0 #a5968010)}.card.locked .card-back{background:linear-gradient(145deg,#e2e4d9,#d3dace);box-shadow:0 4px 0 #bdc7b5a6}.card.locked .flower{opacity:.23}.lock-badge{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#95a08b}.lock-badge .ui-icon{width:28px;height:28px;filter:drop-shadow(0 1px 0 #edf1e3)}.card.focus-card{z-index:3}.card.focus-card:after{content:"";position:absolute;inset:-5px;border:2px dashed #b8a274;border-radius:20px;pointer-events:none;animation:guide-glow 1.8s ease-in-out infinite}.card.collecting{pointer-events:none;z-index:5;animation:collect .36s cubic-bezier(.28,.25,.3,1) both}.card.gone{opacity:0;pointer-events:none;visibility:hidden}.card.swap-cue{z-index:4}.card.swap-cue:after{content:attr(data-swap);position:absolute;right:-5px;top:-6px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#f0ce8e;color:#826d49;font-size:12px;font-weight:750;box-shadow:0 2px 0 #d1b379}.card.swap-cue .card-face{border:2px solid #ecd197}.card.shake{animation:small-shake .22s ease}.board.swap-running .card:not(.swap-cue){opacity:.8}.board-wrap .path-layer{position:absolute;inset:0;pointer-events:none;z-index:8;width:100%;height:100%;overflow:visible}.board-wrap .path-layer path{stroke:#cdb67e;stroke-width:2;stroke-dasharray:5 5;fill:none;opacity:.75}.play-footer{flex-shrink:0;min-height:61px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 1px 0}.peek-button{height:49px;display:flex;align-items:center;gap:9px;background:#fffbf1;border:1px solid #e2e6d9;box-shadow:0 3px 0 #e3e6d7;border-radius:16px;padding:9px 14px;color:#83947d;min-width:134px;text-align:left}.peek-button b{font-size:12px;display:block}.peek-button small{font-size:9px;display:block;margin-top:3px;color:#a6ad98}.peek-button .ui-icon{color:#9baf94}.peek-button:disabled{opacity:.46;box-shadow:none}.footer-note{font-size:10px;line-height:1.8;text-align:right;color:#a5ac97;letter-spacing:.2px}.footer-note .ui-icon{width:12px;height:12px;vertical-align:-2px;margin-right:3px}.tutorial-hand{position:absolute;right:-13px;bottom:-18px;width:40px;height:40px;color:#a59873;z-index:9;pointer-events:none;transform:rotate(-19deg);filter:drop-shadow(0 1px 0 #fff)}.tutorial-hand .ui-icon{width:34px;height:34px;stroke-width:1.9;fill:#fff6df}
/* Maps & album */
.page-title{padding:7px 0 18px}.page-title h1{font-size:27px;letter-spacing:1px;margin-top:7px}.page-title p{font-size:11px;line-height:1.8;color:#97a18e;margin-top:8px}.map-toolbar{display:flex;justify-content:space-between;align-items:center;background:#eef0e6;border-radius:15px;padding:10px 12px;gap:9px;margin-bottom:20px;font-size:10px;color:#92a08c}.toggle{display:inline-flex;align-items:center;gap:7px;font-size:11px;min-height:29px;white-space:nowrap}.switch{width:34px;height:21px;background:#d9e0d1;border-radius:20px;position:relative;transition:background .2s;display:inline-block;flex-shrink:0}.switch:before{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;background:#fffcf5;border-radius:50%;box-shadow:0 1px 3px #79856518;transition:transform .2s}.toggle[aria-checked="true"] .switch{background:#8caf9a}.toggle[aria-checked="true"] .switch:before{transform:translateX(13px)}.chapter-card{border:1px solid #e3e6d8;background:#fffdf780;border-radius:22px;padding:15px;margin-bottom:15px}.chapter-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.chapter-head>div{display:flex;align-items:center;gap:8px}.chapter-head .art-icon{width:36px;height:36px}.chapter-head h2{font-size:14px;letter-spacing:.4px}.chapter-head small{font-size:9px;color:#a2ab94;display:block;margin-top:3px}.chapter-head .chapter-progress{font-size:11px;color:#94a48e;font-variant-numeric:tabular-nums}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px 9px}.level-tile{aspect-ratio:.88;min-height:56px;border:1px solid #e4e8db;border-radius:14px;background:#f4f5eb;position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;box-shadow:0 3px 0 #e2e7d8;transition:transform .1s}.level-tile:active{transform:translateY(2px);box-shadow:0 1px 0 #e2e7d8}.level-tile b{font-size:18px;font-weight:650;color:#8b9d86}.level-tile.current{border:1px solid #a6c2ab;background:#e0ebdc}.level-tile.current b{color:#60886d}.level-tile.cleared{background:#fff7e8;border-color:#e8dcc2;box-shadow:0 3px 0 #e5dac1}.level-tile.locked-level{opacity:.45}.level-stars{display:flex;gap:1px;height:10px}.level-stars .star-icon{width:10px;height:10px}.level-mechanic{position:absolute;top:4px;right:4px;color:#97ac91}.level-mechanic .ui-icon{width:10px;height:10px}.map-footnote{text-align:center;font-size:10px;line-height:1.8;color:#a8ad9d;margin:16px 0}.album-summary{border:1px solid #e4e5d8;border-radius:19px;padding:16px;display:flex;align-items:center;gap:14px;background:#fff9ee}.album-summary>.ui-icon{color:#bea578;width:34px;height:34px}.album-summary h3{font-size:14px}.album-summary p{font-size:11px;color:#a49f8b;margin-top:5px}.sticker-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px 10px;margin-top:15px}.sticker{aspect-ratio:1;border-radius:50%;background:#eef0e6;padding:3px;border:1px dashed #dbe2d2;display:grid;place-items:center;position:relative}.sticker.earned{background:#fff7e7;border:1px solid #e9dfc8;box-shadow:0 2px 0 #e7e3d4}.sticker.locked-sticker .art-icon{filter:grayscale(1);opacity:.12}.sticker .sticker-number{position:absolute;font-size:10px;color:#a5b19e}.album-reward{display:flex;align-items:center;gap:10px;font-size:11px;color:#93a18b;margin-top:17px;padding-top:12px;border-top:1px solid #e8e9dc}.album-reward .mini-back{width:26px;height:33px;border-radius:7px;background:#b7d5c3;color:#eaf3df;display:grid;place-items:center}.mini-back .flower{width:25px;height:25px}
/* Dialogs */
#modal-root{position:fixed;inset:0;pointer-events:none;z-index:30}#modal-root:empty{display:none}.modal-shade{position:absolute;inset:0;background:#31443c52;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);pointer-events:auto;display:flex;align-items:center;justify-content:center;padding:24px 20px;animation:shade-in .18s ease}.modal{background:var(--paper);border:1px solid #fff9e8;border-radius:28px;box-shadow:0 20px 70px #213c3030;width:100%;max-width:382px;max-height:calc(100dvh - 48px);overflow:auto;padding:22px;position:relative;animation:modal-in .24s cubic-bezier(.2,.8,.3,1);overscroll-behavior:contain}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.modal-head h2{font-size:19px;font-weight:750;letter-spacing:.6px}.modal-head .icon-btn{width:33px;height:33px;border-radius:11px}.modal p{font-size:12px;color:#8f9c89;line-height:1.9}.secondary{min-height:46px;border-radius:15px;padding:10px 12px;background:#edf0e5;border:1px solid #e0e5d5;color:#83947d;font-size:13px;display:flex;align-items:center;justify-content:center;gap:7px;width:100%}.secondary .ui-icon{width:18px;height:18px}.modal-buttons{display:flex;gap:10px;margin-top:14px}.modal-buttons>.secondary{flex:1}.modal .primary{min-height:51px;font-size:14px;margin-top:18px}.text-button{font-size:11px;color:#a5ad98;min-height:38px;padding:7px 0}.modal .text-button.full{width:100%;text-align:center;margin-top:7px}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-top:1px solid #e2e7d8;gap:12px}.setting-row:first-of-type{border-top:0}.setting-row b{font-size:12px;font-weight:650;display:block}.setting-row small{font-size:10px;color:#a1aa95;display:block;margin-top:6px;line-height:1.5}.setting-note{padding:13px;border-radius:13px;background:#e9eee1;font-size:10px;line-height:1.8;color:#96a08b;margin:10px 0}.help-row{display:flex;gap:11px;margin:17px 0;align-items:flex-start}.help-row>.ui-icon{background:#e5edde;border-radius:10px;padding:8px;width:37px;height:37px;color:#90a489}.help-row b{font-size:12px;display:block;margin:1px 0 4px}.help-row p{font-size:11px;line-height:1.75}.pause-art{width:73px;height:73px;background:#e5edde;border-radius:24px;color:#a8bba0;display:grid;place-items:center;margin:3px auto 17px}.pause-art .ui-icon{width:34px;height:34px}.center-copy{text-align:center}.center-copy h2{font-size:24px;letter-spacing:1px;margin:9px 0}.center-copy p{font-size:11px}.result-art{width:88px;height:88px;padding:7px;background:#eef0df;border:1px solid #e6e8d1;border-radius:50%;margin:0 auto 12px}.result-overline{font-size:9px;color:#a6ad96;letter-spacing:2px}.result-title{font-size:28px;text-align:center;margin:8px 0 10px;letter-spacing:1.8px}.result-stars{display:flex;align-items:center;justify-content:center;gap:11px;margin:12px 0 18px}.result-stars .star-icon{width:37px;height:37px;filter:drop-shadow(0 2px 0 #b9996030)}.result-stars .star-icon:nth-child(2){width:48px;height:48px;transform:translateY(-4px)}.result-stats{display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid #e3e6d5;border-radius:17px;background:#fffcf280;padding:13px 4px;margin-top:15px}.result-stats b{font-size:23px;display:block;line-height:1.3;font-weight:700;color:#69836d}.result-stats span{font-size:9px;color:#a3a990}.result-note{font-size:10px!important;line-height:1.7!important;text-align:center;margin-top:13px}.result-sticker{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;background:#eeeadd;color:#a99b7b;font-size:11px;margin-top:13px;padding:9px}.result-sticker .art-icon{width:28px;height:28px}.new-best{display:inline-flex;gap:4px;align-items:center;border-radius:15px;padding:5px 9px;font-size:9px;color:#b79961;background:#f0e7d3;margin:8px auto 0}.new-best .ui-icon{width:13px;height:13px}.challenge-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;background:#e7ebdf;border-radius:15px;margin:17px 0 14px}.challenge-tabs button{min-height:38px;border-radius:11px;font-size:12px;color:#a0a994}.challenge-tabs .active{background:#fffaf0;box-shadow:0 2px 5px #8b977619;color:#748c73}.difficulty{width:100%;display:flex;justify-content:space-between;align-items:center;background:#fffaf084;border:1px solid #e1e6d6;border-radius:16px;padding:14px;margin-top:10px;text-align:left}.difficulty b{font-size:13px;display:block}.difficulty small{font-size:10px;color:#99a38d;display:block;margin-top:5px}.difficulty>span{font-size:12px;color:#90a083;display:flex;align-items:center;gap:6px}.difficulty .ui-icon{width:16px;height:16px}.intro-features{display:flex;gap:8px;justify-content:center;margin:17px 0}.intro-features span{padding:8px 10px;background:#e8edde;border-radius:10px;font-size:10px;color:#8d9c84}.modal .tiny{font-size:10px;line-height:1.7;color:#a3ab97;margin-top:11px}
/* Small, non-blocking feedback. */
#fx-root{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:21}.score-pop{position:absolute;transform:translate(-50%,-50%);color:#567f65;font-size:20px;font-weight:800;text-align:center;letter-spacing:.5px;white-space:nowrap;text-shadow:0 2px 0 #fff7e9,0 0 9px #fffbee;animation:score-up .88s ease-out both}.score-pop small{font-size:10px;display:block;color:#a79770;letter-spacing:1.4px;margin-bottom:4px}.particle{position:absolute;width:6px;height:6px;border-radius:2px;animation:particle .68s ease-out both}.confetti{position:absolute;width:7px;height:11px;border-radius:2px;animation:confetti 1.8s ease-in both}#toast-root{position:fixed;left:0;right:0;bottom:max(25px,env(safe-area-inset-bottom));display:flex;align-items:center;flex-direction:column;pointer-events:none;z-index:70;padding:0 22px}.toast{background:#486755ee;border:1px solid #607c60;color:#fffcef;border-radius:14px;padding:11px 16px;box-shadow:0 5px 20px #39513922;font-size:12px;line-height:1.65;max-width:370px;text-align:center;animation:toast-in .2s ease}.paused .card,.paused .card *{animation-play-state:paused!important}.reduce-motion *{scroll-behavior:auto!important}.reduce-motion .card-rotor{transition-duration:.01ms}.reduce-motion .card.collecting{animation-duration:.12s}.reduce-motion .card.focus-card:after{animation:none}.reduce-motion .score-pop{animation-duration:.3s}.reduce-motion .particle,.reduce-motion .confetti{display:none}.reduce-motion .modal,.reduce-motion .modal-shade{animation:none}
@keyframes collect{0%{transform:translateY(0) scale(1);opacity:1}28%{transform:translateY(-8px) scale(1.05);opacity:1}55%{transform:translateY(-7px) scale(1.03);opacity:1}100%{transform:translateY(-13px) scale(.74);opacity:0}}@keyframes guide-glow{0%,100%{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.035)}}@keyframes small-shake{0%,100%{transform:translateX(0)}30%{transform:translateX(-3px)}70%{transform:translateX(3px)}}@keyframes score-up{0%{opacity:0;translate:0 8px;scale:.8}15%{opacity:1;scale:1.05}55%{opacity:1}100%{opacity:0;translate:0 -36px;scale:1}}@keyframes particle{0%{opacity:1;transform:translate(0,0) scale(.3)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(90deg) scale(.7)}}@keyframes confetti{0%{opacity:0;transform:translate(0,-20px) rotate(0)}10%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--rot))}}@keyframes modal-in{from{opacity:0;transform:translateY(15px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes shade-in{from{opacity:0}to{opacity:1}}@keyframes toast-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:680px){#app{height:calc(100dvh - 36px);max-height:940px;margin:18px auto;border-radius:32px;border:1px solid #fffaf4;box-shadow:0 12px 64px #4f665019,0 2px 10px #4c66590a}#topbar{padding-top:3px}.modal{max-width:382px}body{background:radial-gradient(ellipse at 18% 22%,#edf0e5,transparent 48%),radial-gradient(ellipse at 85% 70%,#e8dfd2,transparent 50%),#e5e8df}}
@media(max-height:760px){#topbar{height:54px;min-height:54px}.hero{padding-top:8px}.hero h1{font-size:37px}.hero-art{height:170px}.mini-card{width:82px;height:96px}.mini-card.center{top:11px;left:calc(50% - 43px)}.mini-card.left{top:39px;left:41px}.mini-card.right{top:44px;right:34px}.hero-halo{height:132px;top:19px}.hero-tag{bottom:1px}.hero-art .float-star{top:11px;right:61px}.journey-card{padding:14px}.home-tiles{margin-top:13px}.home-tile{min-height:68px}.bottom-links{padding-top:10px}.game-layout{padding-bottom:calc(6px + env(safe-area-inset-bottom))}.stat-row{padding:8px 2px;margin-top:10px;margin-bottom:4px}.coach{min-height:39px;font-size:10px}.play-heading h1{font-size:19px}.play-footer{min-height:55px}.board-wrap{padding:5px 0 10px}}
@media(max-height:650px){#app.game-screen #topbar{height:45px;min-height:45px}.game-layout{padding-left:14px;padding-right:14px}.play-heading{padding-top:2px;padding-bottom:5px}.play-heading .eyebrow{font-size:8px;margin-bottom:2px}.play-heading h1{font-size:17px}.mechanic-chip{padding:6px 8px;font-size:9px}.stat-row{padding:6px 2px;margin-top:8px;margin-bottom:2px;border-radius:14px}.stat b{font-size:18px}.stat span{font-size:8px}.stat+.stat:before{top:5px;height:23px}.coach{min-height:35px;font-size:9px;padding:3px 0}.coach .ui-icon{width:15px;height:15px}.play-footer{min-height:50px;padding-top:4px}.peek-button{height:42px;padding:6px 11px;min-width:119px;border-radius:13px}.peek-button b{font-size:11px}.footer-note{font-size:9px}.card-face,.card,.slot{border-radius:12px}.card-back:before{inset:4px;border-radius:8px}.card-front:before{inset:3px;border-radius:8px}.board-wrap{padding-top:3px;padding-bottom:8px}.modal{padding:19px;max-height:calc(100dvh - 28px)}.modal-shade{padding:14px 18px}.result-art{width:64px;height:64px;margin-bottom:8px}.result-title{font-size:24px;margin:5px 0}.result-stars{margin:8px 0 12px}.result-stats{margin-top:10px;padding:10px 4px}.modal .primary{margin-top:13px}.result-sticker{margin-top:10px;padding:7px}.result-note{margin-top:9px}.hero h1{font-size:34px}.home-page{padding-left:19px;padding-right:19px}.hero>p{font-size:10px;margin-top:9px}.hero-art{height:154px}.hero-tag{font-size:9px;padding:6px 11px}.journey-head{margin-bottom:9px}.journey-chapters{margin:9px 0 11px}.primary{min-height:47px;font-size:14px}.journey-card{padding:12px}.button-subtitle{font-size:9px;margin-top:10px}.home-tile{min-height:62px;padding:9px}.home-tile b{font-size:12px}.home-tile .tile-icon{width:32px;height:35px}.home-tiles{gap:9px;margin-top:12px}.bottom-links{padding-top:5px}.home-footer{padding-top:0}}
@media(prefers-reduced-motion:reduce){.card-rotor{transition-duration:.01ms}.card.focus-card:after{animation:none}.particle,.confetti{display:none}.modal,.modal-shade{animation:none}}
[hidden]{display:none!important}
#app[data-back="orchard"] .card-back{background:linear-gradient(150deg,#dbe6bf,#c1d39e);color:#f4f7e4}
#app[data-back="toys"] .card-back{background:linear-gradient(150deg,#d2e5e9,#b7cfdc);color:#f2f7ef}
#app .card.locked .card-back{background:linear-gradient(145deg,#e2e4d9,#d3dace);color:#eef5e8}
@media(max-height:650px){#app.game-screen #topbar{height:42px;min-height:42px}#app.game-screen .play-heading .eyebrow{display:none}.play-heading{min-height:31px;padding:2px 2px 5px}.stat-row{padding:4px 2px;margin:7px 0 1px}.stat{gap:2px}.stat b{font-size:17px}.stat span{font-size:8px}.coach{min-height:29px;line-height:1.4}.play-footer{min-height:46px}.game-layout{padding-bottom:5px}.peek-button{height:40px}.footer-note{font-size:8px}.card-back:after{display:none}}
@media(max-width:350px){#app.game-screen .brand small{display:none}#app.game-screen .brand{font-size:10px}.play-heading h1{font-size:16px}.mechanic-chip{font-size:8px;padding:6px}.game-layout{padding-left:12px;padding-right:12px}.home-tile{gap:7px}.home-tile small{font-size:9px}}


.pwa-update{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:80;padding:12px 18px;border-radius:16px;background:#43796f;color:#fffdf3;box-shadow:0 4px 20px #304d4c33;font-size:12px;white-space:nowrap}
