@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');
:root{--ink:#3e554b;--sub:#73867a;--paper:#fffaf0;--cream:#f7efe2;--mint:#b6d8c8;--mint-light:#d5ecdd;--mint-dark:#679e88;--coral:#d98a77;--gold:#e6bd78;--stroke:#e8dbc9}*{box-sizing:border-box}html{min-height:100%}body{margin:0;background:#faf3e9;background-image:radial-gradient(#d9cbbd 0.7px,transparent .7px);background-size:19px 19px;color:var(--ink);font-family:'DM Sans',sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.hidden{display:none!important}.site{width:min(1100px,100% - 36px);margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px 0 30px}.brand{font:700 30px 'Fraunces',Georgia,serif;letter-spacing:-1.5px;color:#355b4a;text-decoration:none;display:flex;align-items:center;gap:9px}.brand-light{color:#c7876f}.brand-mark{display:grid;place-items:center;border-radius:12px;width:39px;height:39px;background:#e7c69b;color:#fff;font:24px Georgia;transform:rotate(-8deg)}nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.top-link,.avatar{border:0;background:none;color:#637769;font-weight:700;font-size:13px;border-radius:30px;padding:11px 13px}.top-link:hover,.top-link.active{background:#e9e7d8;color:#355b4a}.top-link span{color:#d39b51}.avatar{background:#fffaf2;border:1px solid #e5dacb;box-shadow:0 3px 0 #e8ddd0}.avatar:hover{background:#f6eedf}.layout{display:grid;grid-template-columns:minmax(340px,600px) minmax(255px,330px);align-items:start;justify-content:center;column-gap:52px;padding-bottom:42px}.scene{position:relative;display:flex;justify-content:center;padding-bottom:28px}.fridge{position:relative;width:min(100%,480px);height:705px;padding:0 10px 10px;filter:drop-shadow(14px 18px 0 #c6bbae85)}.freezer{height:157px;background:linear-gradient(118deg,#e2f2e8 0%,#b6d8c8 20%,#b4d6c6 70%,#8db8a4 100%);border:7px solid #81aa98;border-bottom:8px solid #719d89;border-radius:52px 52px 14px 14px;box-shadow:inset 7px 8px 0 #effcf1a6,inset -9px -7px 0 #80af9a88,0 4px 0 #eaf6ed;position:relative}.freezer-etch{font:700 11px 'DM Sans';letter-spacing:3px;color:#709685;position:absolute;left:34px;top:42px;transform:rotate(-4deg)}.freezer-handle{position:absolute;bottom:18px;right:40px;width:100px;height:14px;border-radius:13px;background:linear-gradient(#f5f8ed,#becdc3);border:2px solid #83a49a;box-shadow:1px 3px 0 #6f988a}.fridge-door{position:relative;margin-top:7px;height:530px;background:linear-gradient(110deg,#e2f0e5 0%,#b6d8c8 18%,#b6d8c8 72%,#92bca8 100%);border:8px solid #80a995;border-bottom:11px solid #719b86;border-radius:18px 18px 40px 40px;box-shadow:inset 8px 2px #e5f7ea99,inset -10px -5px #73a78e6f;overflow:hidden}.door-shine{position:absolute;left:13px;top:10px;bottom:25px;width:13px;border-radius:30px;background:#eaf8ef50;pointer-events:none}.door-handle{position:absolute;right:18px;top:102px;height:124px;width:16px;border-radius:14px;background:linear-gradient(90deg,#f6f8f2,#a0b9b0,#eff3e9);border:2px solid #7da599;box-shadow:4px 3px 0 #6b9a8b;z-index:2}.fridge-foot{position:absolute;bottom:-4px;width:28px;height:19px;background:#779685;border-radius:0 0 5px 5px}.foot-one{left:46px}.foot-two{right:48px}.floor-shadow{position:absolute;bottom:4px;width:430px;max-width:85%;height:18px;border-radius:50%;background:#887f7240;filter:blur(12px);z-index:-1}.fixture{position:absolute;z-index:2;pointer-events:none}.fixture-star{right:70px;top:23px;font-size:35px;color:#f5d27e;transform:rotate(-18deg);text-shadow:2px 3px #699d87}.fixture-card{left:19px;bottom:26px;background:#fff8dd;border:6px solid #fffdf6;box-shadow:3px 4px 0 #659d86;padding:8px 7px;width:94px;min-height:100px;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(-9deg);color:#8b9069;font:italic 12px Georgia}.fixture-card b{font-size:16px}.fixture-card em{font-size:12px}.fixture-card small{font-size:16px;color:#d5a65f;padding-top:6px}.fixture-tape{position:absolute;top:-14px;height:15px;width:55px;left:15px;background:#f9dba3ad;transform:rotate(10deg)}.decor-layer{position:absolute;inset:0;z-index:3;pointer-events:none}.decor{position:absolute;pointer-events:auto;border:0;background:none;font-size:35px;line-height:1;filter:drop-shadow(2px 3px 1px #4c877656);cursor:grab;touch-action:none;transform:translate(-50%,-50%);padding:4px}.decor:active{cursor:grabbing}.decor.movable{outline:2px dashed #fef2cf;border-radius:8px;background:#fff8e966}.door-content{position:relative;z-index:4;padding:18px 40px 18px 24px;height:100%;display:flex;flex-direction:column;align-items:center;pointer-events:none}.door-content>*{pointer-events:auto}.hero-note{margin:30px auto 0;width:min(100%,340px);padding:27px 21px 24px;text-align:center;background:#fffaf0;box-shadow:4px 6px 0 #7fab97;border-radius:8px;transform:rotate(-1.8deg);position:relative}.hero-note:before,.sticky:before,.receipt:before{content:'';display:block;position:absolute;top:-10px;left:calc(50% - 35px);background:#f5d09dce;height:18px;width:70px;transform:rotate(4deg)}.overline{font-size:10px;letter-spacing:2.4px;font-weight:800;color:#a18e71}.hero-note h1{font:700 clamp(35px,6vw,46px) 'Fraunces',Georgia,serif;letter-spacing:-2px;line-height:1.1;margin:12px 0}.hero-note p{color:#8d9582;font-size:13px;line-height:1.6;margin:10px auto 22px}.button-primary{border:0;border-radius:10px;padding:15px 24px;background:#467967;color:#fffdf4;font-weight:800;letter-spacing:.2px;box-shadow:0 4px 0 #315849}.button-primary:hover:not(:disabled){background:#385f54;transform:translateY(-1px)}.button-secondary{border:1px solid #d8cfba;border-radius:10px;padding:12px 16px;background:#fffaf0;color:#537364;font-weight:800}.button-secondary:hover{background:#f3ecd9}.center-caption{text-align:center;font-size:11px;color:#668d7b;font-weight:700;letter-spacing:1.2px;margin-top:18px}.handwritten{font:italic 16px Georgia;color:#56836e;transform:rotate(-5deg);margin-top:31px}.side{padding-top:58px}.side .eyebrow{font-size:11px;letter-spacing:2.2px;color:#a58c71;font-weight:800}.side h2{font:600 37px 'Fraunces',Georgia,serif;letter-spacing:-1.5px;line-height:1.15;margin:15px 0}.side p{color:#738174;font-size:14px;line-height:1.8}.card{background:#fffaf1;border:1px solid #e8dece;border-radius:17px;box-shadow:4px 6px 0 #e9ddcd;padding:21px;margin:18px 0}.card h3{font:600 23px 'Fraunces',Georgia,serif;margin:0 0 10px}.card small{font-size:12px;line-height:1.6;color:#788277}.card .mini{font-size:11px;color:#97a396}.card hr,.divider{border:0;border-top:1px dashed #e5d8c4;margin:15px 0}.stats-row{display:flex;justify-content:space-between;font-size:13px;padding:7px 0;color:#738075}.stats-row b{color:#436d5e}.side-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.instruction{display:flex;gap:12px;padding:9px 0;align-items:start;font-size:13px;line-height:1.55;color:#647b6d}.instruction b{background:#e8ecdb;border-radius:7px;min-width:26px;height:26px;display:grid;place-items:center;color:#527766}.tiny{font-size:11px;color:#839286}.game-head{width:100%;display:flex;justify-content:space-between;align-items:center;margin:0 0 15px;color:#456d5e}.game-head .time{font:700 28px 'Fraunces';font-variant-numeric:tabular-nums}.game-head .score{font-weight:800;font-size:17px}.countdown-bad{color:#b45d50!important}.magnet-area{margin-top:19px;width:100%;text-align:center}.magnet-heading{font-size:10px;letter-spacing:2px;font-weight:800;color:#558472;margin-bottom:14px}.magnets{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;max-width:380px;margin:auto}.magnet{width:43px;height:51px;display:grid;place-items:center;border:0;border-radius:8px;box-shadow:0 4px 0 #79a994,2px 6px 5px #4e826b4f;color:#46584f;font:700 25px 'Fraunces',Georgia;transition:transform .12s}.magnet:hover:not(:disabled){transform:translateY(-3px)}.magnet.selected{opacity:.38;transform:translateY(3px)}.magnet.swap{outline:3px dashed #f8e4b6;outline-offset:3px;animation:bob .8s ease-in-out infinite alternate}.magnet:nth-child(5n+1){background:#f5d2b8}.magnet:nth-child(5n+2){background:#f5dea0}.magnet:nth-child(5n+3){background:#dcd2ed}.magnet:nth-child(5n+4){background:#eaf4d9}.magnet:nth-child(5n){background:#ffede0}@keyframes bob{to{transform:translateY(-5px)}}.word-slot{margin-top:24px;width:100%;min-height:63px;border:2px dashed #81b49d;border-radius:13px;background:#e4f1e6b0;display:flex;justify-content:center;align-items:center;gap:6px;padding:7px;flex-wrap:wrap}.word-slot .piece{border:0;background:#f8edca;box-shadow:0 2px #b8a883;color:#456b57;border-radius:5px;font:700 23px 'Fraunces';min-width:35px;height:40px}.placeholder{font-size:13px;color:#73a18d}.game-actions{margin-top:18px;display:flex;justify-content:center;gap:10px}.game-actions button{padding:12px 16px}.game-feedback{font-size:12px;color:#426f5c;font-weight:800;margin-top:13px;text-align:center;min-height:32px;line-height:1.4}.game-feedback.bad{color:#ac6859}.history{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;margin:8px 0;max-width:350px}.history span{padding:4px 7px;background:#fff8de;border:1px solid #b8d4bf;border-radius:5px;font-size:11px;font-weight:800;color:#607568;transform:rotate(-2deg)}.sticky{position:relative;background:#fff1c9;box-shadow:3px 5px 0 #e0d2a9;padding:21px 20px 18px;transform:rotate(1deg);margin:20px 0;border-radius:2px}.sticky h3{font:700 21px 'Fraunces';margin:4px 0 11px;color:#806547}.goal{display:flex;gap:8px;justify-content:space-between;align-items:start;font-size:12px;color:#786c59;padding:8px 0;border-bottom:1px dashed #d9c694}.goal:last-child{border:0}.goal.checked{text-decoration:line-through;opacity:.6}.goal span:last-child{white-space:nowrap;color:#54765a;font-weight:800}.banner{border-radius:12px;background:#e2eadf;padding:12px 14px;color:#577263;font-size:12px;line-height:1.6}.tab-row{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.tab{border:1px solid #ded4c3;background:#fffaf0;color:#718175;border-radius:30px;padding:8px 15px;font-size:12px;font-weight:800}.tab.active{background:#4f806d;color:white;border-color:#4f806d}.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-item{border:1px solid #e8d7c5;background:#fff9ec;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:6px}.shop-emoji{font-size:34px;text-align:center;padding:4px}.shop-item b{font-size:13px}.shop-item small{font-size:11px;color:#7d8b7d}.shop-item button{padding:8px;border:0;border-radius:7px;background:#e3ece2;color:#466d59;font-size:11px;font-weight:800}.shop-item button:hover:not(:disabled){background:#cee2d2}.leader{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #eee3d4;font-size:13px}.leader-rank{width:28px;font:700 20px 'Fraunces';color:#c69b60}.leader-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leader-score{font-weight:800}.receipt{position:relative;background:#fffdf4;padding:28px 23px 25px;box-shadow:4px 6px 0 #c5bca9;text-align:center;margin-top:34px;transform:rotate(-1deg);width:100%;max-width:345px}.receipt h2{font:700 32px 'Fraunces';margin:5px 0}.receipt .receipt-score{font:700 51px 'Fraunces';color:#416c57}.receipt-lines{border-top:2px dashed #d7c8b1;border-bottom:2px dashed #d7c8b1;padding:12px 0;text-align:left;margin:13px 0}.receipt-row{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:1.9;color:#5e6f60}.receipt-row b{color:#416e58}.receipt-wordlist{max-height:105px;overflow:auto;font-size:11px;line-height:1.8;color:#718475}.modal-backdrop{position:fixed;inset:0;background:#25463b9e;z-index:40;display:flex;justify-content:center;align-items:center;padding:20px}.modal{background:#fffaf0;max-width:420px;width:100%;border-radius:20px;box-shadow:0 11px 0 #28523d80;padding:25px;text-align:center}.modal h2{font:700 28px 'Fraunces';margin:6px 0 12px}.modal p{font-size:13px;color:#738176;line-height:1.7}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#385d50;color:white;border-radius:12px;box-shadow:0 6px 18px #243e3555;opacity:0;pointer-events:none;transition:opacity .2s;z-index:80;font-size:13px;max-width:min(90vw,450px);text-align:center}.toast.show{opacity:1}footer{text-align:center;color:#a3a798;font-size:11px;padding:5px 0 28px}footer span{color:#db9a80}.tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:1px;background:#ecddc7;color:#8b785f;padding:6px 10px;border-radius:10px}.smallprint{font-size:11px;color:#829388;line-height:1.6}.simple-note{margin-top:24px;background:#fffaf0;border-radius:9px;padding:17px 18px;color:#667b6c;text-align:center;max-width:320px;font-size:12px;line-height:1.7;transform:rotate(2deg);box-shadow:3px 4px 0 #85ad99}.profile-control{display:flex;gap:7px;align-items:center;justify-content:center;flex-wrap:wrap}.profile-control input{min-width:0;border:1px solid #d9d3bf;border-radius:8px;padding:10px 12px;background:#fffcf5;max-width:170px}.kbd{font:700 11px monospace;border:1px solid #c7d1c6;border-bottom-width:3px;border-radius:4px;padding:2px 6px}button:focus-visible{outline:3px solid #e8aa67;outline-offset:3px}@media(max-width:850px){.layout{grid-template-columns:minmax(0,1fr);gap:10px}.side{max-width:550px;margin:0 auto;width:100%;padding-top:0}.fridge{max-width:480px}.site{width:min(100% - 20px,640px)}.topbar{padding:17px 0 22px}.brand{font-size:25px}.top-link{padding:8px;font-size:11px}.avatar{padding:8px;font-size:11px}}@media(max-width:430px){.fridge{height:660px}.freezer{height:140px}.fridge-door{height:505px}.door-content{padding:14px 35px 12px 18px}.magnet{width:38px;height:45px;font-size:23px}.hero-note{margin-top:30px}.brand{font-size:22px}.brand-mark{width:32px;height:32px}.top-link{padding:6px;font-size:11px}.topbar{gap:8px}.avatar{font-size:10px}.layout{column-gap:0}}

/* Matching mint and cream grocery card */
.sticky{position:relative;background:#fffaf0;border:1px solid #d8e2d6;border-radius:16px;box-shadow:4px 6px 0 #dfdfd1;padding:0;margin:22px 0;transform:none;clip-path:none;overflow:hidden}
.sticky::before{display:none}
.sticky h3{background:#d5e8dc;color:#365a4b;font:700 24px/1.3 'Fraunces',Georgia,serif;padding:19px 18px;margin:0;border:0}
.goal{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 0;margin:0 17px;border-bottom:1px solid #e8e7dc;color:#435e50;font-size:13px;font-weight:600;line-height:1.5}
.goal span:first-child{flex:1}.goal span:last-child{background:#e2eedf;color:#4c765e;border-radius:8px;padding:5px 9px;font-size:12px;font-weight:800;white-space:nowrap}.goal.checked{opacity:.65}.goal.checked span:first-child{text-decoration:line-through}.goal:last-child{border-bottom:0}
/* Full viewport receipt and cinematic fridge blur */
.receipt-visible .site{filter:blur(7px);pointer-events:none;user-select:none}
.receipt-overlay{position:fixed;inset:0;background:rgba(35,62,53,.58);z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto;animation:overlayIn .25s ease}
.receipt-overlay-paper{position:relative;flex:none;width:min(440px,100%);max-height:calc(100vh - 32px);overflow-y:auto;background:#fffaf0;color:#3e554b;text-align:center;border:1px solid #ebdfce;padding:24px 28px 27px;box-shadow:0 16px 65px #19382d66;clip-path:polygon(0 0,100% 0,100% 98%,97% 100%,94% 98%,91% 100%,88% 98%,85% 100%,82% 98%,79% 100%,76% 98%,73% 100%,70% 98%,67% 100%,64% 98%,61% 100%,58% 98%,55% 100%,52% 98%,49% 100%,46% 98%,43% 100%,40% 98%,37% 100%,34% 98%,31% 100%,28% 98%,25% 100%,22% 98%,19% 100%,16% 98%,13% 100%,10% 98%,7% 100%,4% 98%,0 100%);animation:receiptIn .45s cubic-bezier(.17,.84,.28,1.08)}
.receipt-overlay-paper h2{font:700 32px 'Fraunces',Georgia,serif;margin:5px 0 3px}.receipt-overlay-paper h3{font:600 20px 'Fraunces',Georgia,serif;text-align:left;margin:15px 0 3px}
.big-score{font:700 clamp(40px,7vw,58px) 'Fraunces',Georgia,serif;color:#426d58}.receipt-overlay-paper .receipt-lines{margin:15px 0;padding:8px 0}.receipt-overlay-paper .receipt-row{font-size:13px;line-height:2}
.receipt-graph{width:100%;display:block;max-height:160px}.distribution-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;text-align:left;color:#547764;font-size:12px}.distribution-summary span{font-size:10px;color:#859486;max-width:150px;text-align:right}
.receipt-overlay-paper .receipt-wordlist{margin:13px 0 18px}.pin-button{width:100%;padding:14px 12px}
.receipt-shrinking{background:transparent;pointer-events:none}.receipt-shrinking .receipt-overlay-paper{animation:receiptPin .42s ease-in forwards}
.pinned-receipt{position:absolute;top:66%;left:50%;z-index:5;transform:translate(-50%,-50%) rotate(-5deg);background:#fff9ee;border:0;box-shadow:3px 4px 0 #709987;width:146px;min-height:102px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:12px;color:#436654;cursor:pointer}.pinned-receipt strong{font:700 21px 'Fraunces',Georgia,serif}.pinned-receipt>span:last-child{font-size:10px;text-decoration:underline}
@keyframes overlayIn{from{opacity:0}to{opacity:1}}@keyframes receiptIn{from{transform:translateY(38px) scale(.93);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes receiptPin{to{transform:translate(var(--pin-x),var(--pin-y)) scale(.23) rotate(-5deg);opacity:.3}}
@media(max-width:450px){.receipt-overlay-paper{padding:18px 19px 23px}.receipt-overlay-paper h2{font-size:27px}}

/* V3 — physically connected word / leftovers effects */
.freezer-stickers{position:absolute;left:33px;bottom:14px;display:flex;align-items:center;gap:7px;transform:rotate(-7deg);font-size:18px;filter:drop-shadow(1px 2px #63978544)}
.freezer-stickers span:last-child{color:#fff7d8;font-size:24px}
.fridge-bump .door-handle{animation:handle-wiggle .35s ease-in-out}
@keyframes handle-wiggle{0%,100%{transform:rotate(0)}35%{transform:rotate(5deg)}70%{transform:rotate(-3deg)}}
.game-head{gap:6px;margin-bottom:5px}
.game-head .score{margin-left:auto;font-size:15px}
.sound-toggle{background:#d9eadc;border:1px solid #a1bea8;border-radius:20px;color:#406f5b;padding:5px 7px;font-size:10px;font-weight:800;min-width:44px}
.magnet-area{margin-top:13px}
.magnet-heading{margin-bottom:11px;font-size:9px}
.swap-nook{width:min(100%,345px);height:51px;margin:14px auto 0;background:#a3cdb8;border:3px solid #82b19a;border-bottom:6px solid #679883;border-radius:7px 7px 13px 13px;box-shadow:inset 0 4px 7px #4a826a2c,2px 3px 0 #629c85;display:flex;align-items:center;gap:9px;padding:4px 9px;position:relative;color:#355e4b;transition:background .2s,box-shadow .2s;min-width:0}
.swap-nook::before{content:'';position:absolute;left:13px;right:13px;top:-7px;height:9px;background:#d7eddf;border:2px solid #80b09b;border-radius:5px 5px 2px 2px;transition:transform .25s}
.swap-nook.is-open{background:#8ebaa6;box-shadow:inset 0 4px 14px #3a6c5880,2px 4px 0 #629c85}
.swap-nook.is-open::before{transform:translateY(-4px)}
.drawer-tag{font-size:8px;letter-spacing:.85px;font-weight:800;flex:0 0 115px;line-height:1.35;text-align:left}
.drawer-mouth{flex:0 0 37px;height:34px;display:grid;place-items:center;border-radius:6px;background:#e2d0ac;border:2px solid #719b85;box-shadow:inset 0 3px 4px #8b9d8555;transform:rotate(3deg)}
.drawer-inside{display:grid;place-items:center;background:#f9e3ad;color:#48624e;font:800 20px 'Fraunces',Georgia,serif;width:27px;height:29px;border-radius:5px}
.is-open .drawer-inside{animation:drawer-tilt .7s ease-in-out infinite alternate}
.just-swapped .drawer-inside{animation:drawer-pop .55s both}
.drawer-caption{font-size:10px;line-height:1.3;font-weight:600;text-align:left;color:#426e5b;flex:1}
@keyframes drawer-pop{0%{transform:translateY(15px) rotate(10deg);opacity:0}70%{transform:translateY(-3px) rotate(-4deg)}100%{transform:none;opacity:1}}
@keyframes drawer-tilt{to{transform:rotate(-11deg) translateY(-3px)}}
.magnet.fresh-magnet{animation:fresh-click .55s cubic-bezier(.17,.85,.4,1.3)}
@keyframes fresh-click{0%{transform:translateY(-32px) scale(.65);opacity:.3}60%{transform:translateY(5px) scale(1.1)}100%{transform:none;opacity:1}}
.word-slot{margin-top:15px;min-height:56px}
.game-actions{margin-top:11px}
.game-feedback{margin-top:10px;min-height:29px;font-size:11px}
.history{margin:6px 0 0;min-height:28px;max-width:365px;align-items:center}
.history-label{color:#5f927e!important;font-size:8px!important;font-weight:800;letter-spacing:1px;background:transparent!important;border:0!important;padding:0 4px!important;transform:none!important}
.history .word-sticker{display:inline-block;white-space:nowrap}
.history .word-new{animation:shelf-pop .42s ease both}
@keyframes shelf-pop{from{transform:translateY(-5px) scale(.8);opacity:.4}to{transform:rotate(-2deg);opacity:1}}
.flying-word{position:fixed;z-index:95;pointer-events:none;display:flex;align-items:center;gap:7px;transform:translate(-50%,-50%);animation:word-flight .8s cubic-bezier(.23,.62,.21,1) forwards;filter:drop-shadow(1px 3px 2px #496b5c77)}
.flying-tiles{display:flex;gap:3px}
.fly-tile{display:grid;place-items:center;font:800 17px 'Fraunces',Georgia,serif;font-style:normal;background:#f7dba5;border-radius:5px;color:#48694f;width:22px;height:26px;box-shadow:0 3px #9cac88}
.flying-word b{background:#f7f3d6;color:#4b856a;border-radius:8px;padding:5px;font-size:11px}
@keyframes word-flight{0%{opacity:0;transform:translate(-50%,-40%) scale(.92)}15%{opacity:1;transform:translate(-50%,-68%) scale(1.1)}65%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--flight-x)),calc(-50% + var(--flight-y))) scale(.42) rotate(-7deg)}}
.flying-scrap{position:fixed;z-index:95;pointer-events:none;display:grid;place-items:center;background:#f0c5ad;border:2px solid #dba987;border-radius:7px;width:37px;height:41px;color:#46634e;font:800 23px 'Fraunces',Georgia,serif;transform:translate(-50%,-50%);animation:scrap-flight .6s ease-in forwards}
@keyframes scrap-flight{0%{opacity:1;transform:translate(-50%,-50%) rotate(0) scale(1)}80%{opacity:.9}100%{opacity:0;transform:translate(calc(-50% + var(--flight-x)),calc(-50% + var(--flight-y))) rotate(40deg) scale(.25)}}
/* Pinboard shopping list: animated ink checkmark when a goal is earned. */
.grocery-paper{overflow:visible;transform:rotate(1deg);border-radius:4px 4px 13px 13px;background:#fff9eb;box-shadow:4px 5px 0 #e3ddd0}
.grocery-paper::before{display:block;content:'';height:13px;width:65px;left:calc(50% - 33px);top:-8px;position:absolute;background:#f4d8a7ac;transform:rotate(-5deg);z-index:2}
.grocery-paper h3{font-size:22px;border-radius:4px 4px 0 0;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:15px 16px}
.list-pin{font:800 18px 'Fraunces';color:#d39e76}
.grocery-tasks{padding:3px 0 1px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 52px,#ece4d5 53px)}
.grocery-paper .goal{margin:0 14px;border-color:#eae3d5;gap:10px;padding:13px 0;min-height:53px}
.grocery-paper .goal-checkbox{flex:0 0 21px;width:21px;height:21px;border:2px solid #8ba897;border-radius:5px;display:grid;place-items:center;color:#477967;font-weight:900;font-size:18px;line-height:1;position:relative}
.grocery-paper .goal-text{flex:1;min-width:0;font-size:12px;color:#4a6755;line-height:1.4;text-decoration:none}
.grocery-paper .goal-points{flex:0 0 auto;font-size:10px!important;background:#e3eddf!important}
.grocery-paper .goal.checked{opacity:.77;text-decoration:none}
.grocery-paper .goal.checked .goal-text{text-decoration:line-through;text-decoration-color:#8bac95;text-decoration-thickness:1.5px}
.grocery-paper .goal.just-done .goal-checkbox{animation:goal-mark .55s cubic-bezier(.2,.8,.3,1.2) both}
.grocery-paper .goal.just-done .goal-points{animation:goal-bonus .6s ease both}
@keyframes goal-mark{0%{transform:rotate(-20deg) scale(.5);color:transparent}70%{transform:rotate(8deg) scale(1.3);color:#477967}100%{transform:none;color:#477967}}
@keyframes goal-bonus{0%{transform:scale(1)}35%{transform:scale(1.16)}100%{transform:scale(1)}}
.grocery-foot{padding:9px 16px 13px;display:flex;align-items:center;justify-content:space-between;font:700 10px 'DM Sans',sans-serif;color:#8b9c87}
.grocery-foot span{font:italic 18px Georgia;color:#9aae8d}
/* Receipt pin and archive */
.pinned-receipt{touch-action:none;cursor:grab;user-select:none;padding-top:20px}
.pinned-receipt.is-dragging{cursor:grabbing;z-index:11;transform:translate(-50%,-50%) rotate(1deg) scale(1.02)}
.receipt-magnet{position:absolute;top:-10px;left:calc(50% - 11px);display:grid;place-items:center;font-size:16px!important;line-height:1;color:#cd8065!important;background:#e7a18a;width:23px;height:23px;border:3px solid #c87f65;border-radius:50%;box-shadow:1px 3px 2px #3d705977}
.receipt-collection{position:absolute;z-index:6;left:20px;bottom:152px;border:1px solid #92b29e;border-radius:7px;background:#fff3d6;color:#52735b;transform:rotate(-5deg);padding:7px 10px;font-size:10px;font-weight:800;box-shadow:2px 3px 0 #63957d}
.receipt-collection:hover{transform:rotate(-1deg)}
.receipt-subtitle{font-size:10px;letter-spacing:2px;color:#8caf98;margin:1px 0 6px}
.receipt-list{display:grid;gap:8px;max-height:320px;overflow:auto;margin:14px 0}
.receipt-archive-item{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid #e1ddcb;background:#f9f0df;border-radius:8px;padding:11px 12px;font-size:12px;color:#456c58}
.receipt-archive-item:hover{background:#dcebdc}
@media(max-width:430px){.swap-nook{padding:4px 6px;gap:5px}.drawer-tag{flex-basis:100px;font-size:7px}.drawer-caption{font-size:9px}.game-head .time{font-size:24px}.game-head .score{font-size:14px}.grocery-paper h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){.flying-word,.flying-scrap{display:none!important}.fresh-magnet,.word-new,.goal.just-done .goal-checkbox,.goal.just-done .goal-points,.fridge-bump .door-handle{animation:none!important}.receipt-overlay-paper{animation:none!important}}


/* V4 — the completed day's receipt IS the main fridge paper (no overlapping mini receipt). */
.hero-note.home-receipt{
 --receipt-x:0px;--receipt-y:0px;
 display:flex;flex-direction:column;align-items:stretch;
 width:min(100%,345px);min-height:345px;
 margin:0 auto 0;padding:24px 22px 24px;
 border:1px solid #e8dcc9;border-radius:4px 4px 9px 9px;
 background:#fffaf0;color:#3e554b;
 box-shadow:4px 6px 0 #7fab97;
 text-align:center;position:relative;
 transform:translate(var(--receipt-x),var(--receipt-y)) rotate(-1.5deg);
 touch-action:none;user-select:none;cursor:grab;
 transition:box-shadow .2s;
}
.home-receipt:focus-visible{outline:3px solid #ddad74;outline-offset:5px}
.home-receipt:hover{box-shadow:5px 8px 0 #699d86}
.home-receipt.is-dragging{cursor:grabbing;box-shadow:7px 10px 4px #578b7566;transition:none}
.home-receipt .overline{font-size:9px;letter-spacing:1.7px;line-height:1.4}
.home-receipt-heading{font:600 23px/1.2 'Fraunces',Georgia,serif;letter-spacing:-.4px;margin:12px 0 3px;color:#395d4d}
.home-receipt-score{display:block;font:700 55px/1.08 'Fraunces',Georgia,serif;color:#416c57;font-variant-numeric:tabular-nums;margin-top:6px}
.home-receipt-unit{font-size:9px;font-weight:800;letter-spacing:2px;color:#aa9678;margin:5px 0}
.home-receipt-rule{display:block;border-top:2px dashed #ddcdb7;margin:12px 0 7px;width:100%}
.home-receipt-line{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:12px;color:#607969;padding:5px 0}
.home-receipt-line strong{color:#416e58;font-size:13px}
.home-receipt-message{font-size:11px;letter-spacing:.4px;color:#849687;margin:7px 0 6px}
.home-receipt-view{display:inline-flex;align-items:center;justify-content:center;gap:5px;align-self:center;color:#477764;text-decoration:underline;text-underline-offset:3px;font-weight:800;font-size:12px;margin-top:7px}
.home-receipt-empty{cursor:default!important}
.home-receipt-empty .home-receipt-message{margin-top:12px;line-height:1.75}
.receipt-collection{left:auto;right:45px;bottom:32px;transform:rotate(3deg);background:#fff5da;color:#52735b;z-index:6}
.receipt-collection:hover{transform:rotate(0)}
/* Land the full-screen paper onto the large, centered receipt. */
@keyframes receiptPin{to{transform:translate(var(--pin-x),var(--pin-y)) scale(var(--pin-scale,.75)) rotate(-1.5deg);opacity:.15}}
.receipt-shrinking .receipt-overlay-paper{animation:receiptPin .46s cubic-bezier(.22,.75,.25,1) forwards;overflow:hidden}
.receipt-fading{animation:receiptFade .2s ease forwards;pointer-events:none}
@keyframes receiptFade{to{opacity:0}}
@media(max-width:430px){.hero-note.home-receipt{margin-top:0;padding:22px 17px 20px;min-height:335px}.home-receipt-score{font-size:49px}.home-receipt-heading{font-size:21px}.receipt-collection{right:37px;bottom:28px}}
@media(prefers-reduced-motion:reduce){.receipt-shrinking .receipt-overlay-paper,.receipt-fading{animation:none!important}}
