/* 26.11.2026 (этап 24, «Торт и ферма»): игра «Собери торт» (js/cake.js), ферма во дворе, торт ко дню рождения, альбом «Мои сборки» (js/farm.js) */
/* плашка «Это… / Что делать… / Что получишь…» */
.ck-plate{background:#fffaf0;border:2px solid #f1e0bd;border-radius:16px;padding:8px 12px;margin:4px 0 10px;text-align:left}
.ck-plate p{margin:2px 0;font-size:15px;line-height:1.3;font-weight:600;color:var(--ink)}
.ck-plate b{font-weight:900}
/* игра */
.ck-game{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.ck-kinds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ck-kb{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 8px 12px;font:inherit;font-weight:900;font-size:17px;overflow:hidden}
.ck-kb.on{border-color:#ffc83d;box-shadow:0 0 0 3px #ffe39a}
.ck-ki{display:block;width:100%;max-width:176px;aspect-ratio:1;border-radius:18px;overflow:hidden;background:#fff8ee;box-shadow:inset 0 0 0 1px rgba(78,55,31,.07)}
.ck-ki img{display:block;width:100%;height:100%;object-fit:cover}
.ck-stage{display:flex;justify-content:center;background:linear-gradient(#fff7e8,#fdeccd);border-radius:18px;padding:4px;margin:0 auto;width:100%;max-width:340px}
.ck-svg{width:100%;max-width:260px;height:auto;display:block}
.ck-stage .ck-svg{max-width:230px}
.ck-stage.ck-done{animation:ckPop .6s ease}
@keyframes ckPop{0%{transform:scale(.94)}60%{transform:scale(1.05)}100%{transform:scale(1)}}
.ck-panel{display:flex;flex-direction:column;gap:6px}
.ck-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ck-opts:has(> :nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
.ck-opt{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;font:inherit;font-weight:800;font-size:14px;line-height:1.15;text-align:center}
.ck-opt .ck-mini{width:100%;max-width:110px;height:auto}
.ck-opt.farm{border-color:#f2b33d;background:#fff6dc}
.ck-opt small{font-size:11px;font-weight:700;color:#9a6a00}
.ck-end{display:flex;flex-direction:column;align-items:center;gap:2px;margin:4px 0}
.ck-end .ck-svg{max-width:170px}
.ck-end small{font-weight:700}
/* альбом «Мои сборки» */
.ck-album{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.ck-pc{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;margin:0;padding:8px}
.ck-pic .ck-svg{max-width:140px}
.ck-ac-i{font-size:38px;display:grid;place-items:center}
/* торт у постройки (house.js) и в окне праздника (rooms.js) */
.hs-cake .ck-svg{width:clamp(64px,20vw,110px);filter:drop-shadow(0 3px 4px rgba(0,0,0,.25))}
.hs-cake.sel .ck-svg{outline:2px dashed #fff;outline-offset:3px}
.rm-bday-cake{display:flex;justify-content:center}.rm-bday-cake .ck-svg{max-width:180px}
/* ферма */
.fm-field{aspect-ratio:4/3}
.fm-home{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;z-index:2}
.fm-hp{width:clamp(64px,19vw,104px)!important;height:clamp(64px,19vw,104px)!important}
.fm-home-pic{object-fit:contain;display:block;border-radius:14px;box-shadow:0 3px 8px rgba(0,0,0,.2)}
.fm-who{display:flex;gap:0;margin-top:-10px}
.fm-an{display:inline-flex;align-items:flex-end;justify-content:center;width:clamp(40px,11vw,64px);height:clamp(40px,11vw,64px);font-size:clamp(26px,8vw,40px);line-height:1}
.fm-an svg,.fm-an .fr-art{width:100%!important;height:100%!important;max-width:none!important}
.fm-roam{position:absolute;left:50%;bottom:4%;transform:translateX(-50%);display:flex;gap:2px;background:rgba(255,255,255,.55);border-radius:14px;padding:2px 6px;z-index:2}
.fm-empty{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(255,255,255,.8);border:3px dashed #e2cfa8;border-radius:14px;padding:8px 12px;font-weight:800;color:var(--muted)}
.fm-col{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.fm-col b{font-size:17px;line-height:1.25}.fm-col small{font-size:14px;line-height:1.3}
.fm-col.hot{border:3px solid #ffc83d;background:#fff8e1}.fm-col .btn.big{align-self:stretch;margin-top:4px}
.fm-store{display:flex;flex-direction:column;gap:6px}
.fm-st{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid #f1e6d2;padding:4px 0}
.fm-st-i{font-size:30px;line-height:1}.fm-prod-pic{width:46px;height:46px;object-fit:contain;border-radius:10px;vertical-align:middle}.fm-prod-pic.inline{width:26px;height:26px;border-radius:6px;display:inline-block;margin:0 2px}
.fm-st-t{display:flex;flex-direction:column;flex:1;min-width:130px}.fm-st-t small{color:var(--muted);font-weight:600}
.fm-st-b{display:flex;gap:6px;flex-wrap:wrap}
.fm-cap{font-weight:700;margin:4px 0 0}
.fm-frs{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.fm-fr{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;margin:0;padding:8px 4px}
.fm-fr>span:first-child{font-size:38px;line-height:1;width:56px;height:56px;display:flex;align-items:center;justify-content:center}
.fm-fr>span:first-child svg{width:100%;height:100%}
.fm-fr b{font-size:14px;line-height:1.15}.fm-fr small{font-size:12px;line-height:1.2;color:var(--muted)}
.fm-fr.live{background:#f1faf3}
.fm-bc small{line-height:1.25}.fm-bc .fm-home-pic{width:96px;height:96px;box-shadow:none}
.fm-big{font-size:72px;line-height:1.1}.fm-big .fm-home-pic{width:min(260px,80vw);height:auto;margin:0 auto;box-shadow:none}
.fm-gotl{font-size:20px;font-weight:800}
.fm-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);margin-top:8px}
.fm-link>span:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0}.fm-link b{font-size:19px}
.fm-link.hot{border:3px solid #ffc83d;background:#fff8e1}
.fm-link-i{font-size:40px;line-height:1}
.fm-qhint{font-weight:800;color:#2f7d4a}
@media (max-width:420px){ .ck-plate p{font-size:14px} .fm-link .btn{display:none} .ck-opt{font-size:13px} }
.fm-field{max-width:720px;margin-left:auto;margin-right:auto}
@media (min-width:700px){ .fm-hp{width:96px!important;height:96px!important} .fm-an{width:72px;height:72px} }
.fm-first{font-weight:800;color:#2f7d4a}   /* 26.11.2026 (этап 24): первый загон дешевле */
