/* A single shop surface. Product artwork sits freely on it, without inner cards. */
#overlay[data-view="tools"],#overlay[data-view="coins"]{padding:18px 14px;align-items:center}
#overlay[data-view="tools"] .sheet,#overlay[data-view="coins"] .sheet{width:min(100%,430px);max-height:calc(100svh - 36px);margin:0;padding:20px 18px 18px;background:none;border:0;border-image:url('assets/polish/card.webp') 100 fill / 24px / 0 stretch;box-shadow:0 10px 22px #001a2544;display:flex;flex-direction:column}
#overlay[data-view="tools"] .sheet>header,#overlay[data-view="coins"] .sheet>header{position:relative;flex:none;height:48px;min-height:48px;display:flex;align-items:center;gap:8px;margin:0 0 14px;padding:0 42px 10px 0;border-bottom:1px solid #c7ac7180;color:#004b43}
#overlay[data-view="tools"] .sheet>header:after,#overlay[data-view="coins"] .sheet>header:after{display:none}
#overlay[data-view="tools"] .sheet h1,#overlay[data-view="coins"] .sheet h1{font:28px/1 var(--art);color:#004b43;text-shadow:none;flex:1;min-width:0}
#overlay[data-view="tools"] #close,#overlay[data-view="coins"] #close{position:absolute;right:-3px;top:0;width:38px;height:38px;min-width:38px;min-height:38px}
#overlay[data-view="tools"] .shop-wallet,#overlay[data-view="coins"] .shop-wallet{margin:0;padding:5px 8px;gap:5px;height:32px;min-width:64px;font:20px/1 var(--art)}
#overlay[data-view="tools"] .shop-wallet img,#overlay[data-view="coins"] .shop-wallet img{width:22px;height:22px}
#overlay[data-view="tools"] #sheet-body,#overlay[data-view="coins"] #sheet-body{max-height:none;min-height:0;overflow:auto;padding:0 2px;scrollbar-width:none}
#overlay[data-view="tools"] .tabs,#overlay[data-view="coins"] .tabs{position:sticky;top:0;z-index:2;display:flex;gap:0;margin:0 0 10px;padding:3px;height:44px;border:1px solid #d6b86c;border-radius:24px;background:#f3e6c5}
#overlay .tabs button{flex:1;min-height:36px;height:36px;font:18px/1 var(--art);padding:0 8px}
#overlay .tabs button.active{border-radius:20px;background:linear-gradient(#009785,#006356);color:#fff5dc;box-shadow:inset 0 1px 1px #b9e5c0,0 1px 3px #624a3244}
#overlay[data-view="tools"] #shop-content .shop-row{display:grid;grid-template-columns:66px minmax(0,1fr) 84px;grid-template-rows:auto;align-items:center;gap:9px;min-height:91px;height:auto;margin:0;padding:12px 0;background:none;border:0;border-image:none;border-radius:0;box-shadow:none}
#overlay[data-view="tools"] #shop-content .shop-row+.shop-row{border-top:1px solid #c6ac6666}
#overlay[data-view="tools"] .shop-art{display:grid;place-items:center;width:66px;height:66px;align-self:center;padding:4px;margin:0}
#overlay[data-view="tools"] .shop-art>img{position:static;display:block;width:58px;height:58px;max-width:58px;max-height:58px;transform:none;margin:0;filter:drop-shadow(0 2px 2px #82652d22)}
#overlay[data-view="tools"] .shop-row strong{display:block;font:18px/1.15 var(--art);color:#004a43;letter-spacing:0;overflow-wrap:normal}
#overlay[data-view="tools"] .shop-row p{font:15px/1.2 var(--art);margin:5px 0 0;color:#48756a}
#overlay[data-view="tools"] .shop-row .question{display:inline-grid;place-items:center;width:16px;height:16px;margin:0 0 0 3px;vertical-align:middle;font-size:13px}
#overlay[data-view="tools"] .buy,#overlay[data-view="coins"] .buy{position:relative;display:flex;align-items:center;justify-content:center;gap:3px;width:100%;height:43px;min-height:43px;min-width:0;margin:0;padding:6px 8px;font:18px/1 var(--art);border-image-width:13px 20px;white-space:nowrap}
#overlay .buy img{position:static;width:21px;height:21px;max-width:21px;max-height:21px;flex:none;object-fit:contain;margin:0}
#overlay .buy:disabled{opacity:.6;filter:saturate(.35)}
.adfree-offers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:3px 0 12px;border-bottom:1px solid #c6ac6666}
.adfree-offer{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;text-align:center}
.adfree-offer>img{width:64px;height:64px;object-fit:contain}.adfree-offer>strong{font:20px/1.1 var(--art);color:#004b43}.offer-benefit{display:block;min-height:23px;font:10px/1.15 system-ui,sans-serif;color:#486a5d;max-width:145px;text-wrap:balance}
#overlay[data-view="coins"] .adfree-offer .buy{font-size:16px;height:38px;min-height:38px;max-width:140px}
.hourly-gift{display:grid;grid-template-columns:35px minmax(0,1fr) 98px;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #c6ac6666}
.hourly-gift>img{width:33px;height:33px}.hourly-gift strong{display:block;font:19px/1.1 var(--art)}.gift-rate{font:11px/1.2 system-ui,sans-serif;color:#486a5d}
#overlay[data-view="coins"] .hourly-gift .buy{font-size:16px}
.coin-packs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:12px 0 0}
.coin-pack{display:grid;grid-template-columns:50px 1fr;align-items:center;gap:4px;min-width:0}
.coin-pack>img{width:50px;height:48px;object-fit:contain}.coin-pack>strong{font:23px/1 var(--art);text-align:center;color:#004b43}
#overlay[data-view="coins"] .coin-pack .buy{grid-column:1/-1;height:37px;min-height:37px;font-size:16px}
.store-availability{font:10px/1.2 system-ui,sans-serif;text-align:center;color:#638176;margin:12px 0 2px}
#overlay[data-view="coins"] .purchase-status{color:#486a5d;font:14px/1.3 system-ui,sans-serif}
.deal-row{display:flex;justify-content:center;padding:0 23px;gap:0;margin:0}
#deal{flex:0 1 350px;width:min(100%,350px);max-width:350px;padding-left:67px;padding-right:25px;text-align:center}
#deal>span{width:100%;text-align:center}
#toast{bottom:auto;top:max(135px,calc(env(safe-area-inset-top) + 135px));max-width:85vw}
@media(max-width:350px){#overlay[data-view="tools"] .sheet,#overlay[data-view="coins"] .sheet{padding:17px 15px 15px}#overlay[data-view="tools"] #shop-content .shop-row{grid-template-columns:55px minmax(0,1fr) 73px;gap:6px;min-height:85px}#overlay[data-view="tools"] .shop-art{width:55px;height:60px;padding:4px}#overlay[data-view="tools"] .shop-art>img{width:49px;height:52px;max-width:49px;max-height:52px}#overlay[data-view="tools"] .shop-row strong{font-size:16px}#overlay[data-view="tools"] .buy{font-size:16px}#overlay[data-view="coins"] .sheet h1,#overlay[data-view="tools"] .sheet h1{font-size:25px}.adfree-offer>img{width:56px;height:56px}.adfree-offer>strong{font-size:18px}.hourly-gift{grid-template-columns:30px minmax(0,1fr) 87px;gap:5px}.hourly-gift strong{font-size:17px}.coin-packs{gap:10px}.coin-pack{grid-template-columns:42px 1fr}.coin-pack>img{width:42px;height:44px}.coin-pack>strong{font-size:21px}.deal-row{padding:0 21px}#deal{padding-left:59px;padding-right:20px}}

#overlay[data-view="tools"] .tool-info{display:grid;grid-template-columns:minmax(0,1fr) 16px;align-items:center;gap:3px;min-height:44px;width:100%;padding:0;margin:0;background:none;border:0;border-image:none;box-shadow:none;text-shadow:none;color:#004a43;font:18px/1.1 var(--art);text-align:left;white-space:normal}
.tool-info>span{min-width:0;white-space:normal}.tool-info>b{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#e7d6a2;color:#37665a;font:13px/1 var(--art)}
#overlay[data-view="tools"] .shop-row:has(.tool-info) p{margin-top:0}
@media(max-width:350px){#overlay[data-view="tools"] .tool-info{font-size:16px}}

/* Sculpted raster jewel plus; one silhouette, no CSS badge or glyph. */
.wallet-plus{filter:none;background:transparent url('assets/comic/plus.webp') center/contain no-repeat!important;width:calc(24 * var(--u));height:calc(24 * var(--u))}
.wallet-plus:before,.wallet-plus:after{content:none!important}
.spell-confirm{text-align:center}.spell-confirm .spell-art{display:block;width:95px;height:105px;object-fit:contain;margin:10px auto}.spell-confirm .recipe{background:none;padding:8px;margin:8px 0}.spell-cancel{display:block;margin:12px auto 0;padding:12px 20px;background:transparent;color:#245c51;font:16px 'Lilita One',sans-serif;min-height:44px}
