#shop-open,#wardrobe-open{background:#ffcf24;border:2px solid #123d61;color:#123d61;min-height:52px;min-width:48px;padding:4px 8px;font-size:22px}#shop-open span{display:block;font-size:10px}.heading-tools{flex-wrap:wrap;justify-content:flex-end}
#shop-dialog{width:min(680px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;padding:18px;box-sizing:border-box}#shop-title{margin:0 0 8px}#shop-balance{font-size:21px;color:#875400;font-weight:bold}.shop-tabs{display:flex;gap:10px}.shop-tabs button{flex:1;min-height:46px}.shop-tabs [aria-pressed=true]{background:#ffcf24}.shop-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.shop-item{border:2px solid #123d61;border-radius:14px;display:flex;align-items:center;flex-direction:column;padding:8px;text-align:center;gap:6px}.shop-item>img{width:90px;height:90px;object-fit:contain;image-rendering:pixelated;background:#00b8d5;border-radius:10px}.shop-item strong{font-size:13px;min-height:34px}.shop-item span{font-size:12px}.shop-item button{width:100%;min-height:48px;font-size:12px;background:#ffcf24}.shop-item button:disabled{opacity:.55;cursor:default}#shop-close{width:100%}.shop-items>button{font-size:12px;min-height:48px}
.outfit-layer{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;pointer-events:none;image-rendering:pixelated;z-index:4;object-fit:fill!important}.adoption-scene{position:relative;height:250px;background:linear-gradient(#15b7e8 0 65%,#37ae3b 65%);border:3px solid #123d61;border-radius:15px;overflow:hidden}.adoption-girl{position:absolute;height:88%;left:10%;bottom:5%;image-rendering:pixelated;animation:girl-wave 1.4s ease-in-out infinite}.adoption-cat{position:absolute;width:48%;height:75%;left:47%;bottom:3%;background-size:400% 100%;animation:cat-wave 1.4s ease-in-out infinite}.adoption-hearts{position:absolute;left:38%;top:12%;font-size:27px;color:#f13172;animation:duck-bob 2s ease-in-out infinite}#adoption-dialog,#restart-dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:18px;box-sizing:border-box;text-align:center}#adoption-dialog h2,#restart-dialog h2{font-size:26px}#adoption-dialog p,#restart-dialog p{line-height:1.6;font-size:14px}#adoption-dialog button,#restart-dialog button{width:100%;margin-top:10px}#adoption-next{font-size:14px;padding:10px}.enc-reward img{object-fit:contain}
@keyframes girl-wave{50%{rotate:3deg;translate:0 -3px}}@keyframes cat-wave{50%{rotate:-5deg;translate:0 -6px}}@media(max-width:600px){.shop-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.heading-tools{gap:5px;max-width:175px}#shop-open,#wardrobe-open{min-height:44px;min-width:43px}.adoption-scene{height:210px}}@media(prefers-reduced-motion:reduce){.adoption-girl,.adoption-cat,.adoption-hearts{animation:none!important}}.reduced .adoption-girl,.reduced .adoption-cat,.reduced .adoption-hearts{animation:none!important}
.adoption-cat:after{content:'';position:absolute;left:73%;top:46%;width:14%;height:19%;background:var(--paw-color,#ffbe35);border:3px solid #123d61;border-radius:8px;transform-origin:50% 100%;animation:paw-wave .65s ease-in-out infinite;z-index:5}@keyframes paw-wave{0%,100%{rotate:-20deg}50%{rotate:25deg}}@media(prefers-reduced-motion:reduce){.adoption-cat:after{animation:none}}.reduced .adoption-cat:after{animation:none}

#shop-dialog{max-width:680px}.wardrobe-defaults{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}.wardrobe-defaults button{flex:1 1 95px;min-height:44px;font-size:12px;padding:6px}

/* Two objects per page keep the shop easy to browse with small hands. */
#shop-dialog .shop-items{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0}
.shop-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-18px;background:#fff;z-index:2;padding:6px 0}
.shop-header #shop-title{margin:0}.shop-header #shop-close{width:auto;min-width:115px;min-height:52px;background:#db263b;color:white;border:2px solid #90152b;padding:10px 16px}
.shop-paging{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}.shop-paging button{min-height:60px;padding:10px;background:#ffcf24;color:#123d61;font-size:15px}.shop-paging output{font-size:13px;text-align:center}.shop-paging button:disabled{opacity:.45}
@media(max-width:420px){.shop-paging{gap:6px}.shop-paging button{font-size:12px;padding:8px}.shop-paging output{font-size:11px}.shop-item>img{width:76px;height:76px}.shop-header #shop-close{min-width:100px}}
