:root{font-family:"Trebuchet MS",system-ui,sans-serif;color:#173e29;background:#fcf8ed;font-synthesis:none;--ink:#173e29;--green:#22623b;--muted:#536658;--line:#e9e2ca}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #237854;outline-offset:3px}[hidden]{display:none!important}
.wrap{width:min(1180px,calc(100% - 48px));margin-inline:auto}.header{background:#fffdf5;border-bottom:1px solid var(--line)}.header-inner{height:70px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{background:none;border:0;color:var(--ink);display:flex;align-items:center;gap:10px;padding:0;text-align:left;font-weight:900;font-size:19px}.brand span{width:42px;height:42px;border-radius:14px;background:#227044;color:#ffdf72;display:grid;place-items:center;font-size:28px}
.primary,.secondary,.link{min-height:44px;border-radius:12px;padding:8px 15px;font-weight:800}.primary{background:var(--green);color:white;border:1px solid var(--green);box-shadow:0 3px 0 #174a2b}.primary:hover{background:#194e2f}.primary:disabled{opacity:.55;box-shadow:none}.secondary{background:#fffdf5;border:1px solid #d7dfc9;color:var(--green)}.secondary:hover{background:#eff4e3}.link{padding-inline:0;border:0;background:none;color:var(--green);text-align:left}.link:hover{text-decoration:underline}
.hero{margin-top:30px;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:29px;background:#ffe989;border:1px solid #f4d566;border-radius:28px;padding:24px;box-shadow:0 14px 30px #75632d12}.hero-copy{padding:15px 0 15px 19px}.hero h1{font-size:clamp(47px,7vw,90px);font-weight:900;line-height:.94;margin:0;letter-spacing:-.075em}.hero p{font-size:clamp(17px,2vw,22px);line-height:1.42;max-width:380px;margin:22px 0}.cover{display:block;width:100%;border-radius:19px;box-shadow:0 6px 20px #6d4b1530}
.catalog{padding-block:26px 50px}.catalog h2{font-size:38px;letter-spacing:-.045em;margin:0 0 18px}.level{margin-bottom:20px}.level h3{font-size:18px;margin:0 0 8px}.level-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tile{min-width:0;text-align:left;min-height:68px;display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fffdf6;color:var(--ink);border:1px solid var(--line);border-radius:13px;font-weight:800}.tile:hover{border-color:#87a676;background:#eff5e5}.tile span{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#ffebaa;color:#735310}.tile b{margin-left:auto;color:#628846}
.game-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.game-head h1{font-size:clamp(31px,5vw,50px);line-height:1.05;letter-spacing:-.055em;margin:4px 0 14px}.game-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);align-items:start;gap:16px;margin-bottom:32px}.stage{min-width:0}.board{position:relative;isolation:isolate;width:100%;overflow:hidden;border-radius:20px;background:#ffdf62;box-shadow:0 7px 19px #82703822}.board>img{display:block;position:relative;width:100%;height:auto}.board.cart{max-width:380px;background:#fff}.cart-caption,.shelf-caption{margin:0 0 7px;font-weight:900}.cart-section{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fffdf7}.cart-section .board{max-width:290px}.slot{position:absolute;display:grid;place-items:center;border-radius:13%;padding:0;border:2px solid transparent;background:transparent;color:var(--green)}.slot img{width:100%;height:100%;object-fit:contain;border-radius:11%;pointer-events:none}.slot:not(:disabled):hover,.slot.chosen{border-color:#2a6839;box-shadow:0 0 0 3px #ffdb54}.slot.hint{border-color:#bf8100;box-shadow:0 0 0 4px #ffdf56}.slot .empty-label{font-size:clamp(17px,3vw,34px);font-weight:900}.panel{background:#fffdf6;border:1px solid var(--line);padding:17px;border-radius:18px;box-shadow:0 7px 20px #82703812}.panel h2{font-size:clamp(22px,3vw,30px);line-height:1.14;margin:0 0 9px;letter-spacing:-.035em}.panel p{line-height:1.36}.note{margin:7px 0 12px;color:var(--muted)}.status{padding:9px 10px;border-radius:10px;background:#ebf3dc;min-height:38px;line-height:1.35;margin:11px 0}.status:empty{display:none}.tools,.choices,.actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.choices,.actions{margin-top:10px}.choice{padding:3px;border-radius:9px;background:#fff;border:1px solid #d8e1c7;min-width:57px;min-height:57px;display:grid;place-items:center}.choice img{width:62px;height:62px;border-radius:7px}.choice.active{outline:3px solid #e9b843;outline-offset:1px}.choice:disabled{opacity:.48}.people{display:flex;gap:4px;align-items:flex-end;margin-bottom:11px;padding:7px 10px;background:#fff;border-radius:12px;border:1px solid #f1ead4;width:max-content;max-width:100%}.people img{height:99px;width:auto;object-fit:contain}.people img.person-kid{height:78px}.parent{margin-top:14px;border-top:1px solid var(--line);padding-top:10px;font-size:14px}.parent summary{cursor:pointer;font-weight:800;color:var(--green)}.parent p{margin:7px 0}.round-picker{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px}.round-picker select,.diary select,.diary input,.diary textarea{max-width:100%;min-height:42px;padding:7px;border:1px solid #d7ddc8;background:#fffdf5;color:var(--ink);border-radius:8px}.diary{padding:22px 0 35px}.diary h1{font-size:clamp(29px,5vw,52px);margin:6px 0}.diary h2{font-size:20px;margin:14px 0 8px}.diary .panel{max-width:820px}.diary-row{display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--line)}.diary textarea{display:block;width:100%;margin-block:6px 12px}.tags{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:800px){.wrap{width:calc(100% - 28px)}.hero{padding:15px;gap:15px}.hero-copy{padding-left:6px}.game-grid{grid-template-columns:1fr;gap:10px}.game-grid .panel{grid-row:1}.board:not(.cart){max-width:690px;margin-inline:auto}.cart-section{margin-inline:auto;max-width:690px}.panel{padding:13px}.people img{height:73px}.people img.person-kid{height:61px}}
@media(max-width:480px){.wrap{width:calc(100% - 20px)}.header-inner{height:56px}.brand{font-size:14px;gap:6px}.brand span{width:32px;height:32px;border-radius:10px;font-size:22px}.header .secondary{padding:6px 9px;font-size:13px}.hero{margin-top:12px;grid-template-columns:1fr;gap:10px;border-radius:18px;padding:12px}.hero-copy{padding:5px}.hero p{margin:12px 0}.cover{border-radius:12px}.catalog{padding-top:17px}.catalog h2{font-size:29px}.level h3{font-size:16px}.level-games{grid-template-columns:1fr;gap:6px}.tile{min-height:52px}.game-head{margin-top:4px}.game-head h1{margin-bottom:9px}.board{border-radius:13px}.slot{border-width:1px}.choice img{width:49px;height:49px}.choice{min-width:49px;min-height:49px}.diary-row{grid-template-columns:1fr}}

.slot.destination{border:2px dashed #24633b;background:#fff5ba;color:#24633b}.slot.destination:hover{border-style:solid}
.header a.brand{text-decoration:none}
.header a.brand:focus-visible{outline:3px solid #237854;outline-offset:3px}
.shopping-field{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:clamp(6px,2vw,15px);align-items:start}
.shopping-shelf{overflow:hidden;border:2px solid #dfa54e;border-radius:16px;background:#ffe290}
.awning{height:17px;background:repeating-linear-gradient(90deg,#388449 0 13%,#fff5ce 13% 25%);border-radius:0 0 30% 30%;box-shadow:0 2px 0 #ac6e2a38}
.shelf-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;background:repeating-linear-gradient(0deg,#c9833c 0 3px,transparent 3px 100%)}
.product-card,.product-gap{min-width:0;min-height:44px;aspect-ratio:1;border-radius:9px}
.product-card{position:relative;display:grid;place-items:center;padding:2px;border:2px solid transparent;background:#fffdf6;touch-action:none;user-select:none}
.product-card img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;pointer-events:none;border-radius:5px}
.product-card.selected,.product-card.highlighted{border-color:#296b3d;box-shadow:0 0 0 2px #fff6c9}
.product-card.wrong{border-color:#b93832}
.product-card.wrong::after{content:"×";display:grid;place-items:center;position:absolute;right:0;top:0;width:23px;height:23px;border-radius:50%;background:#a52d2a;color:white;font-size:18px;font-weight:900}
.product-card:disabled{opacity:.58}
.product-gap{background:#ffefb2;box-shadow:inset 0 0 0 1px #e9bd71}
.shopping-cart{position:sticky;top:8px;text-align:center;border:1px solid #e6dcba;border-radius:16px;background:#fffdf6;padding:clamp(3px,1.25vw,12px);min-width:0}
.shopping-cart .board{border-radius:9px;box-shadow:none;margin-inline:auto}
.shopping-cart.drag-over{background:#e4f2dc}
.cart-touch{position:absolute;inset:0;z-index:3;border:2px dashed #d7caa7;border-radius:16px;background:transparent;touch-action:manipulation}
.cart-touch.ready,.shopping-cart.drag-over .cart-touch{border-color:#286940}
.shopping-cart.drag-over .cart-touch{border-style:solid}
.cart-count{margin:5px 0;font-weight:900;font-size:clamp(13px,2.5vw,21px)}
.cart-count strong{display:inline-grid;place-items:center;min-width:20px;padding:0 4px;border-radius:20px;background:#ffedaf;font-size:.82em}
.cart-tip{margin:5px 0;font-weight:750;color:#4e644f;font-size:clamp(11px,2vw,15px)}
.cart-help{color:var(--muted);font-size:14px;margin:10px 0 0}
.status.correct,.status.incorrect{display:flex;align-items:center;gap:8px;font-weight:750}
.status.correct{background:#e3f3dd;color:#215434}.status.incorrect{background:#fde6e2;color:#9d2a29}
.status b{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;color:white;font-weight:900;font-size:19px;animation:stamp-pop .25s ease-out}
.status.correct b{background:#2c6e41}.status.incorrect b{background:#a52d2a}
.product-fly{position:fixed;z-index:20;transform:translate(-50%,-50%);width:56px;height:56px;object-fit:contain;border-radius:9px;background:#fff;pointer-events:none;box-shadow:0 5px 16px #32291845}
@keyframes stamp-pop{0%{transform:scale(.65)}65%{transform:scale(1.15)}100%{transform:scale(1)}}
@media(max-width:370px){.shelf-products{gap:3px;padding:3px}.shopping-field{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.status b{animation:none}}
