/* feature:official-shop — the LOJA OFICIAL window (Client/app/shop.js) and the GM panel's Loja tab.
   Work-ID 20260926-official-shop-bbb3. Built on the shared Shutdown skin: the #modal window chrome and the 24px nine-slice
   panel PNGs of ui/login (slot / frame-active), with the wallet's gold / red tokens; our own layout, not a copy.
   UI hover geometry (Docs/UI_HOVER_GEOMETRY_POLICY.md): every control has its box authored in the idle rule;
   hover / focus / selected only repaint (background, colour, opacity, inset shadow, outline with negative offset).
   Animations here move only art (the hatching egg, the revealed Pokémon), never a control. */

#modal[data-view="shop"],#modal[data-view="gm"]{
  --sh-gold:var(--sd-gold,#efc989);--sh-gold-bright:var(--sd-gold-bright,#ffe0a0);--sh-cream:var(--sd-cream,#f0ede7);
  --sh-muted:var(--sd-secondary,#cbbbad);--sh-red:var(--sd-red,#bf4c46);--sh-red-bright:var(--sd-red-bright,#d17b6c);
  --sh-inset:var(--sd-inset,#171e30);--sh-green:#2fbf6a;--sh-green-ink:#062414;--sh-egg:#b98cff;--sh-test:#ffb347;--sh-test-ink:#1e2941;
}
/* A fixed window height (like the Pokédex): the product grid scrolls inside, the dialogs stay in view. */
#modal[data-view="shop"]{height:min(54rem,92dvh)}
#modal[data-view="shop"] #modal-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.sh-root{position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;min-width:0;color:var(--sh-cream)}
.sh-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;gap:8px;min-width:0}
.sh-loading,.sh-empty{margin:20px 0;text-align:center;color:var(--sh-muted)}
.sh-icon{width:18px;height:18px;object-fit:contain;image-rendering:pixelated;vertical-align:middle;flex:0 0 auto}
.sh-icon.large{width:48px;height:48px}

/* Panels share the 24px nine-slice of the login/HUD slots. */
.sh-hero,.sh-card,.sh-history-wrap,.sh-dialog,.sh-balance{
  box-sizing:border-box;border:7px solid transparent;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch;background-color:var(--sh-inset);
}

/* Hero: crest, title, balance with the link to MEU SALDO */
.sh-hero{display:flex;align-items:center;gap:14px;padding:4px 10px;min-height:84px;flex:0 0 auto}
.sh-crest{display:grid;place-items:center;width:58px;height:58px;flex:0 0 58px;border-radius:50%;
  background:radial-gradient(circle at 50% 40%,#28324a,#192135 70%);box-shadow:inset 0 0 0 2px var(--sh-gold),0 0 12px #efc98955}
.sh-crest .sh-icon.large{width:38px;height:38px}
.sh-hero-copy{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
.sh-hero h3{margin:0;font-size:18px;letter-spacing:.08em;color:var(--sh-gold-bright);text-transform:uppercase}
.sh-sub,.sh-fine,.sh-note-foot{margin:0;color:var(--sh-muted);font-size:12px;line-height:1.35}
.sh-note-foot{text-align:center;flex:0 0 auto}
/* The VIP crest (VIP products): a gold shield with the days. */
.sh-vip{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:66px;height:74px;
  clip-path:polygon(50% 0,100% 16%,100% 62%,50% 100%,0 62%,0 16%);background:linear-gradient(180deg,#ffe08a,#b98534);color:#1f2942;text-align:center}
.sh-vip b{font-size:22px;font-weight:900;letter-spacing:.04em;line-height:1;text-shadow:0 1px 0 #fff6}
.sh-vip small{font-size:9px;font-weight:900;letter-spacing:.08em;margin-top:2px}
.sh-vip.large{width:78px;height:88px}.sh-vip.large b{font-size:26px}
.sh-art-frame.small .sh-vip,.sh-hrow-art .sh-vip{width:36px;height:40px}.sh-art-frame.small .sh-vip b,.sh-hrow-art .sh-vip b{font-size:12px}
.sh-art-frame.small .sh-vip small,.sh-hrow-art .sh-vip small{display:none}
.sh-balance{display:grid;grid-template-columns:auto auto;grid-template-areas:"label test" "amount amount" "link link";align-items:center;gap:2px 8px;
  flex:0 0 232px;width:232px;padding:4px 8px}
.sh-balance.test{border-image-source:url("../login/frame-active.png?v=cabare-uv-1")}
.sh-balance-label{grid-area:label;color:var(--sh-muted);font-size:11px;letter-spacing:.12em}
.sh-balance-amount{grid-area:amount;font-size:24px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-test{grid-area:test;justify-self:end;display:inline-flex;align-items:center;box-sizing:border-box;height:18px;padding:0 6px;border-radius:3px;
  background:repeating-linear-gradient(135deg,var(--sh-test) 0 8px,#ffc56d 8px 16px);color:var(--sh-test-ink);font-size:9px;font-weight:900;letter-spacing:.1em;white-space:nowrap}
.sh-test.empty{visibility:hidden}
#modal[data-view="shop"] .sh-balance .sh-wallet-link{grid-area:link;box-sizing:border-box;width:100%;height:30px;margin:0;padding:0 8px;
  display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* The purchase switch banner ([shop] purchases_open off) */
.sh-banner{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin:0;box-sizing:border-box;min-height:32px;padding:4px 10px;border-radius:4px;
  background:#202a43;color:#ffe0a0;box-shadow:inset 0 0 0 1px #d9a53b88;font-size:12px}
.sh-banner.admin{background:#232f4a;color:#cfe3ff;box-shadow:inset 0 0 0 1px #6f9ad988}
#modal[data-view="shop"] .sh-actions :is(.sh-buy,.sh-gift).soon:disabled{opacity:.8;color:#ffe0a0}

/* Category tabs: one row of equal cells sized by the window (never by a state); the selected one is an inset gold line. */
.sh-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:6px;flex:0 0 auto}
#modal[data-view="shop"] .sh-tabs .sh-tab{box-sizing:border-box;width:100%;min-width:0;height:38px;margin:0;padding:0 4px;
  display:flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:700;letter-spacing:.01em;white-space:nowrap;overflow:hidden}
.sh-tab-label{overflow:hidden;text-overflow:ellipsis;min-width:0}
.sh-section{display:flex;flex-direction:column;gap:8px}
.sh-section-head{display:flex;align-items:center;gap:8px;margin:2px 0 0;color:var(--sh-gold);font-size:13px;letter-spacing:.1em}
.sh-count{display:inline-grid;place-items:center;box-sizing:border-box;min-width:22px;height:18px;padding:0 5px;border-radius:9px;background:#ffffff1a;font-size:10px;color:var(--sh-muted)}
.sh-section-head::after{content:"";flex:1 1 auto;height:1px;background:linear-gradient(90deg,#efc98955,transparent)}
#modal[data-view="shop"] .sh-tabs .sh-tab.selected{box-shadow:inset 0 -3px 0 var(--sh-gold),inset 0 0 0 1px #efc98966;color:var(--sh-gold-bright)}
#modal[data-view="shop"] .sh-tabs .sh-tab:focus-visible{outline:2px solid var(--sh-gold-bright);outline-offset:-4px}

/* Product grid */
.sh-body{flex:1 1 auto;min-height:0;overflow:auto;padding:2px 4px 2px 2px}
.sh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:10px}
.sh-card{display:flex;flex-direction:column;min-width:0;padding:0}
.sh-card.featured{border-image-source:url("../login/frame-active.png?v=cabare-uv-1")}
.sh-card.soldout{opacity:.72}
.sh-card.focus{box-shadow:0 0 0 2px var(--sh-gold-bright)}
.sh-art{position:relative;display:grid;place-items:center;height:104px;flex:0 0 104px;
  background:radial-gradient(ellipse at 50% 55%,#2b354f 0,#1c253c 45%,transparent 72%),linear-gradient(180deg,#192135,#151c2d);
  border-bottom:1px solid #ffffff12}
.sh-art-frame{display:grid;place-items:center;width:84px;height:84px}
.sh-art-frame.small{width:44px;height:44px;flex:0 0 44px}
.sh-art-frame>img,.sh-art-frame>canvas{max-width:100%;max-height:100%;image-rendering:pixelated;object-fit:contain}
.sh-art-frame .bag-icon{width:64px;height:64px;display:grid;place-items:center;background:none;border:0;box-shadow:none}
.sh-art-frame .bag-icon img{width:64px;height:64px;image-rendering:pixelated;object-fit:contain}
.sh-art-frame.small .bag-icon,.sh-art-frame.small .bag-icon img{width:36px;height:36px}
.sh-art-frame .tc-portrait{width:84px;height:84px}
.sh-mon{width:40px;height:40px;object-fit:contain;image-rendering:pixelated}
.sh-mon.large{width:84px;height:84px}.sh-mon.small{width:34px;height:34px}.sh-mon.tiny{width:20px;height:20px}
.sh-price{position:absolute;top:6px;right:6px;display:flex;flex-direction:column;align-items:flex-end;box-sizing:border-box;padding:3px 8px;border-radius:6px;
  background:linear-gradient(180deg,#39d17b,#1f9a53);color:#fff;box-shadow:0 2px 8px #0d111c88,inset 0 0 0 1px #ffffff40}
.sh-price strong{font-size:15px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.sh-price s{font-size:10px;opacity:.85;white-space:nowrap}
.sh-ribbon{position:absolute;top:6px;left:6px;box-sizing:border-box;max-width:60%;padding:2px 8px;border-radius:4px;font-size:10px;font-weight:900;letter-spacing:.04em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-ribbon.timer{background:linear-gradient(180deg,var(--sh-red-bright),var(--sh-red));color:#fff;font-variant-numeric:tabular-nums}
.sh-ribbon.featured{background:linear-gradient(180deg,#ffd978,#d9a53b);color:#1e2941}
.sh-card-body{flex:1 1 auto;display:flex;flex-direction:column;gap:6px;padding:8px 10px;min-width:0}
.sh-name{margin:0;font-size:14px;color:var(--sh-cream);letter-spacing:.02em}
.sh-desc{margin:0;color:var(--sh-muted);font-size:11.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.sh-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.sh-chip{display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;min-height:26px;padding:2px 7px 2px 3px;border-radius:5px;background:#ffffff0d;
  box-shadow:inset 0 0 0 1px #ffffff17;font-size:11px;color:var(--sh-cream);max-width:100%}
.sh-chip.plain{padding:2px 8px}
.sh-chip.egg{box-shadow:inset 0 0 0 1px #b98cff88;background:#b98cff14}
.sh-chip-art{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px}
.sh-chip-art .bag-icon,.sh-chip-art .bag-icon img{width:20px;height:20px;min-width:0;min-height:0;background:none;border:0;box-shadow:none;image-rendering:pixelated;object-fit:contain}
.sh-chip-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sh-chip-shiny{color:#ffe06a;font-size:10px;white-space:nowrap}
.sh-pool{box-sizing:border-box;padding:4px 6px;border-radius:6px;background:#2a1640;box-shadow:inset 0 0 0 1px #b98cff66}
.sh-pool small{display:block;color:#d9c4ff;font-size:10.5px;margin-bottom:2px}
.sh-pool-mons{display:flex;flex-wrap:wrap;gap:0}
.sh-pool .sh-mon.small{width:48px;height:48px;margin:-6px -4px -8px}
.sh-notes{display:flex;flex-direction:column;gap:3px;margin-top:auto}
.sh-note{display:flex;align-items:center;gap:5px;box-sizing:border-box;min-height:22px;padding:2px 6px;border-radius:4px;background:#ffffff08;color:var(--sh-muted);font-size:10.5px}
.sh-note.limit{background:#202a43;color:#ffd978;box-shadow:inset 0 0 0 1px #d9a53b66}
.sh-note.stock{color:#ffb0a0}.sh-note.stock.out{color:var(--sh-red-bright)}
.sh-note .sh-icon{width:14px;height:14px}

/* Quantity and actions: fixed boxes */
.sh-foot{display:flex;flex-direction:column;gap:6px;padding:0 10px 10px}
.sh-qty{display:grid;grid-template-columns:36px minmax(0,1fr) 36px 44px;align-items:center;box-sizing:border-box;height:34px;border-radius:4px;background:#0d111c4d;
  box-shadow:inset 0 0 0 1px #ffffff1a}
#modal[data-view="shop"] .sh-qty .sh-step{box-sizing:border-box;width:36px;min-width:36px;max-width:36px;height:34px;margin:0;padding:0;font-size:16px;font-weight:900;line-height:1}
.sh-qty-value{text-align:center;font-weight:900;font-size:15px;font-variant-numeric:tabular-nums}
.sh-qty-label{text-align:center;color:var(--sh-muted);font-size:10px;letter-spacing:.1em}
.sh-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#modal[data-view="shop"] .sh-actions :is(.sh-buy,.sh-gift){box-sizing:border-box;width:100%;min-width:0;height:36px;margin:0;padding:0 6px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800}
#modal[data-view="shop"] .sh-actions .sh-gift:not(:disabled){color:#ffe0a0;box-shadow:inset 0 0 0 1px #d9a53b88}
#modal[data-view="shop"] .sh-actions :is(.sh-buy,.sh-gift):disabled{opacity:.5}
#modal[data-view="shop"] :is(.sh-actions button,.sh-qty button,.sh-dialog button,.sh-pager button):focus-visible{outline:2px solid var(--sh-gold-bright);outline-offset:-4px}

/* History */
.sh-history-wrap{padding:4px 6px;display:flex;flex-direction:column;gap:8px}
.sh-history{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.sh-hrow{display:grid;grid-template-columns:40px minmax(0,1fr) 7.5rem 7rem;align-items:center;gap:10px;box-sizing:border-box;min-height:46px;padding:4px;border-bottom:1px solid #ffffff14;font-size:12px}
.sh-hrow:last-child{border-bottom:0}
.sh-hrow-art{display:grid;place-items:center;width:40px;height:40px}
.sh-hrow-art>*,.sh-hrow-art .bag-icon,.sh-hrow-art .bag-icon img{max-width:36px;max-height:36px;width:36px;height:36px;object-fit:contain;image-rendering:pixelated;background:none;border:0;box-shadow:none}
.sh-hrow-what{display:flex;flex-direction:column;min-width:0}
.sh-hrow-what strong,.sh-hrow-what small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-hrow-what small{color:var(--sh-muted)}
.sh-hrow-total{text-align:right;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.sh-status{justify-self:center;box-sizing:border-box;padding:2px 8px;border-radius:3px;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  background:#ffffff14;color:var(--sh-muted)}
.sh-status.done{background:#1f5a36;color:#b8ffd1}.sh-status.refunded{background:#202a43;color:#ffd978}.sh-status.failed{background:#20293c;color:#ffb0b0}
.sh-pager{display:flex;align-items:center;justify-content:center;gap:10px}
#modal[data-view] .sh-pager .sh-page{box-sizing:border-box;width:128px;min-width:128px;max-width:128px;height:32px;margin:0;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#modal[data-view] .sh-pager .sh-page:disabled{opacity:.45}
.sh-page-label{min-width:7rem;text-align:center;color:var(--sh-muted);font-variant-numeric:tabular-nums}

/* Confirmation / reveal dialog over the window */
.sh-overlay{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#111724d9;padding:10px;box-sizing:border-box}
.sh-body[aria-hidden="true"]{visibility:hidden}
.sh-dialog{display:flex;flex-direction:column;gap:8px;width:min(460px,100%);max-height:100%;overflow:auto;padding:10px 14px;border-image-source:url("../login/frame-active.png?v=cabare-uv-1")}
.sh-dialog h3{margin:0;text-align:center;font-size:16px;letter-spacing:.1em;color:var(--sh-gold-bright)}
.sh-confirm-product{display:flex;align-items:center;gap:10px}
.sh-confirm-product>div{display:flex;flex-direction:column;min-width:0}
.sh-confirm-product small{color:var(--sh-muted)}
.sh-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--sh-muted)}
.sh-field input{box-sizing:border-box;height:34px;padding:0 10px;font-size:14px}
.sh-friends{display:flex;flex-wrap:wrap;gap:4px}
#modal[data-view="shop"] .sh-friends .sh-friend{box-sizing:border-box;width:112px;min-width:112px;max-width:112px;height:28px;margin:0;padding:0 6px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#modal[data-view="shop"] .sh-friends .sh-friend.selected{box-shadow:inset 0 0 0 2px var(--sh-gold);color:var(--sh-gold-bright)}
.sh-sum{display:grid;grid-template-columns:1fr auto;gap:4px 12px;margin:0;padding:6px 8px;border-radius:4px;background:#0d111c4d}
.sh-sum dt{color:var(--sh-muted);font-size:12px}
.sh-sum dd{margin:0;text-align:right;font-weight:800;font-variant-numeric:tabular-nums}
.sh-sum dd.sh-total{font-size:18px;color:var(--sh-gold-bright)}
.sh-sum dd.bad{color:var(--sh-red-bright)}
.sh-warn{margin:0;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#ffb0a0;font-size:12px}
#modal[data-view="shop"] .sh-warn .sh-wallet-inline{box-sizing:border-box;width:120px;min-width:120px;height:28px;margin:0;padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-dialog-actions{display:flex;justify-content:center;gap:10px}
#modal[data-view="shop"] .sh-dialog-actions button{box-sizing:border-box;width:170px;min-width:170px;max-width:170px;height:38px;margin:0;padding:0 8px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800}
#modal[data-view="shop"] .sh-dialog-actions button:disabled{opacity:.5}

/* The egg: CSS art (the game has no egg sprite) */
.sh-egg{position:relative;display:inline-block;width:52px;height:66px;flex:0 0 auto;border-radius:50% 50% 47% 47%/60% 60% 40% 40%;
  background:radial-gradient(circle at 35% 30%,#fffdf5,#e3e0da 55%,#c9b98f);box-shadow:inset -4px -6px 0 #0d111c1f,0 3px 8px #0d111c77}
.sh-egg i{position:absolute;border-radius:50%;background:#5fbf6a}
.sh-egg i:nth-child(1){width:26%;height:20%;left:18%;top:28%}
.sh-egg i:nth-child(2){width:20%;height:16%;right:18%;top:48%}
.sh-egg i:nth-child(3){width:16%;height:12%;left:40%;bottom:14%}
.sh-egg.egg-johto i{background:#e0a23c}.sh-egg.egg-dragon i{background:#5a7be0}.sh-egg.egg-mega i{background:#b98cff}
.sh-egg.large{width:64px;height:80px}
.sh-egg.tiny{width:14px;height:18px;box-shadow:none}

/* Reveal: the egg wobbles and cracks, then the Pokémon appears (art only; no control moves). */
.sh-hatches{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.sh-hatch{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;width:110px;min-height:124px;padding:6px 4px;box-sizing:border-box;border-radius:8px;
  background:radial-gradient(circle at 50% 40%,#3a1a4a,#140a1a 70%)}
.sh-hatch.shiny{background:radial-gradient(circle at 50% 40%,#6a5a14,#161e2f 70%);box-shadow:inset 0 0 0 1px #ffe06a88}
.sh-hatch strong{font-size:12px;text-align:center}
.sh-shiny-note{color:#ffe06a;font-size:10px;font-weight:900;letter-spacing:.1em}
.sh-hatch .sh-hatch-mon{display:grid;place-items:center;height:84px}
.sh-hatch.from-egg .sh-egg.hatching{position:absolute;top:14px;left:50%;margin-left:-32px;z-index:2;animation:sh-wobble 1.1s ease-in-out calc(var(--i,0)*.25s) 1 both,sh-crack .35s ease-out calc(1.1s + var(--i,0)*.25s) 1 forwards}
.sh-hatch.from-egg :is(.sh-hatch-mon,.sh-hatch-name,.sh-shiny-note){animation:sh-appear .5s ease-out calc(1.3s + var(--i,0)*.25s) 1 both}
@keyframes sh-wobble{0%,100%{rotate:0deg}20%{rotate:-12deg}40%{rotate:10deg}60%{rotate:-8deg}80%{rotate:6deg}}
@keyframes sh-crack{to{opacity:0;scale:1.35;filter:brightness(2.2)}}
@keyframes sh-appear{from{opacity:0;scale:.4;filter:brightness(3)}to{opacity:1;scale:1;filter:none}}
@media (prefers-reduced-motion:reduce){
  .sh-hatch.from-egg .sh-egg.hatching{display:none;animation:none}
  .sh-hatch.from-egg :is(.sh-hatch-mon,.sh-hatch-name,.sh-shiny-note){animation:none}
}

/* GM panel: Loja tab */
#modal[data-view="gm"] .gm-tab i.fa-solid.fa-store::before{content:"";display:inline-block;width:1.25em;height:1.25em;vertical-align:-.15em;
  background:url("../GameIcon/icons/store.png?v=10") center/contain no-repeat;image-rendering:pixelated}
.sh-gm-list{max-height:min(56vh,560px);overflow:auto}
#modal[data-view="gm"] .sh-gm .sh-gm-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;box-sizing:border-box;
  height:46px;min-height:46px;margin:0 0 3px;padding:3px 8px;overflow:hidden}
.sh-gm-row-main{display:flex;flex-direction:column;min-width:0}
.sh-gm-row-main :is(strong,small){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#modal[data-view="gm"] .sh-gm .sh-gm-row-main small{font-size:10px;color:var(--sh-muted)}
.sh-gm-row-side{display:flex;align-items:center;gap:4px;white-space:nowrap}
.sh-gm-row-side b{font-size:12px;font-variant-numeric:tabular-nums;color:var(--sh-gold-bright)}
.sh-gm-search{display:flex;flex-wrap:nowrap;gap:6px;align-items:center}
.sh-gm-search input{flex:1 1 auto;min-width:0;box-sizing:border-box;height:34px}
#modal[data-view="gm"] .sh-gm .sh-gm-find{box-sizing:border-box;width:110px;min-width:110px;max-width:110px;height:34px;margin:0;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-gm .sh-banner{margin:0 0 6px}
#modal[data-view="gm"] .sh-gm :is(.sh-gm-new,.sh-gm-save,.sh-gm-add,.sh-gm-review,.sh-gm-cancel){box-sizing:border-box;width:150px;min-width:150px;max-width:150px;height:34px;margin:0;
  padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-gm-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.sh-gm-heading{margin:6px 0 2px;color:var(--sh-gold);font-size:12px;letter-spacing:.08em}
.sh-gm-contents{display:flex;flex-direction:column;gap:4px}
.sh-gm-content{display:grid;grid-template-columns:110px minmax(0,1.4fr) repeat(3,minmax(0,.7fr)) 34px;gap:4px;align-items:center}
.sh-gm-content>:is(input,select){box-sizing:border-box;height:36px;min-width:0;padding:0 6px;font-size:12px}
.sh-gm-check{display:flex;align-items:center;gap:4px;color:#ffe06a}
#modal[data-view="gm"] .sh-gm .sh-gm-remove{box-sizing:border-box;width:34px;min-width:34px;max-width:34px;height:34px;margin:0;padding:0;grid-column:6}
.sh-gm-purchases{display:flex;flex-direction:column;max-height:min(40vh,380px);overflow:auto}
.sh-gm-purchase{display:grid;grid-template-columns:3.5rem minmax(0,1fr) 6.5rem auto auto 104px;align-items:center;gap:6px;box-sizing:border-box;min-height:40px;padding:3px 2px;
  border-bottom:1px solid #ffffff14;font-size:12px}
.sh-gm-pid{color:var(--sh-muted);font-variant-numeric:tabular-nums}
.sh-gm-pwhat{display:flex;flex-direction:column;min-width:0}
.sh-gm-pwhat :is(strong,small){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-gm-pwhat small{color:var(--sh-muted)}
.sh-gm-ptotal{text-align:right;font-weight:800;font-variant-numeric:tabular-nums}
#modal[data-view="gm"] .sh-gm .sh-gm-refund{box-sizing:border-box;width:104px;min-width:104px;max-width:104px;height:30px;margin:0;padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-gm-refund-gap{display:block;width:104px}
.sh-gm-refund-form{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:4px 0}
.sh-gm-refund-form input{flex:1 1 200px;box-sizing:border-box;height:32px}

@media (max-width:720px){
  .sh-hero{min-height:0;padding:2px 6px}
  .sh-crest,.sh-hero-copy{display:none}
  .sh-balance{flex:1 1 100%;width:auto;grid-template-columns:auto auto 1fr;grid-template-areas:"label test link" "amount amount link"}
  #modal[data-view="shop"] .sh-balance .sh-wallet-link{width:120px;justify-self:end}
  .sh-balance-amount{font-size:20px}
  .sh-tabs{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:108px;overflow-x:auto;padding-bottom:2px}
  .sh-note-foot{display:none}
  .sh-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
  .sh-hrow{grid-template-columns:36px minmax(0,1fr) 6rem;grid-template-areas:"art what total" "art what status"}
  .sh-hrow-art{grid-area:art}.sh-hrow-what{grid-area:what}.sh-hrow-total{grid-area:total}.sh-hrow .sh-status{grid-area:status;justify-self:end}
  #modal[data-view="shop"] .sh-dialog-actions button{width:140px;min-width:140px;max-width:140px}
  .sh-gm-content{grid-template-columns:1fr 1fr}
  #modal[data-view="gm"] .sh-gm .sh-gm-remove{grid-column:auto}
  .sh-gm-purchase{grid-template-columns:3rem minmax(0,1fr) 5.5rem;grid-auto-rows:auto}
}

/* feature:official-shop-uv-refine-20261005 */
/* The shop now uses the same physical PNG/UV control language as the navbar and the rest of the game.
   No hover/focus rule changes dimensions; every box is authored here in its idle state. */
#modal[data-view="shop"]{
 --sh-uv-button:url("../login/button.png?v=cabare-uv-1");
 --sh-uv-button-on:url("../login/button-active.png?v=cabare-uv-1");
 --sh-uv-slot:url("../login/slot.png?v=cabare-uv-1");
 --sh-uv-frame:url("../login/frame.png?v=cabare-uv-1");
 --sh-uv-frame-on:url("../login/frame-active.png?v=cabare-uv-1");
}
#modal[data-view="shop"] .sh-hero,
#modal[data-view="shop"] .sh-card,
#modal[data-view="shop"] .sh-balance,
#modal[data-view="shop"] .sh-history-wrap,
#modal[data-view="shop"] .sh-dialog{
 border-radius:0!important;
 box-shadow:none!important;
 background-image:none!important;
}
#modal[data-view="shop"] .sh-crest{
 box-sizing:border-box;width:64px;height:64px;flex:0 0 64px;border:8px solid transparent!important;
 border-image:var(--sh-uv-frame-on) 24 fill / 8px / 0 stretch!important;border-radius:0!important;
 background:#192135!important;box-shadow:none!important;
}
#modal[data-view="shop"] .sh-banner{
 box-sizing:border-box;min-height:34px;padding:3px 10px;border:6px solid transparent!important;
 border-image:var(--sh-uv-slot) 24 fill / 6px / 0 stretch!important;border-radius:0!important;
 background:#192135!important;box-shadow:none!important;
}
#modal[data-view="shop"] .sh-banner.admin{background:#1b243a!important;color:#cfe3ff}
#modal[data-view="shop"] .sh-tabs{
 display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;
}
#modal[data-view="shop"] .sh-tabs .sh-tab{
 box-sizing:border-box;width:100%;min-width:0;height:38px;margin:0;padding:0 5px;
 border:6px solid transparent!important;border-image:var(--sh-uv-button) 24 fill / 6px / 0 stretch!important;
 border-radius:0!important;background:#1e2840!important;background-image:none!important;box-shadow:none!important;
 color:#d7d4cf!important;font-size:11px!important;font-weight:400!important;letter-spacing:.045em!important;
 white-space:nowrap;overflow:visible;text-overflow:clip;
}
#modal[data-view="shop"] .sh-tabs .sh-tab:is(:hover:not(:disabled),:focus-visible,.selected,[aria-selected="true"]){
 border-image-source:var(--sh-uv-button-on)!important;background:#24304c!important;color:#fff0d1!important;box-shadow:none!important;
}
#modal[data-view="shop"] .sh-tab-label{overflow:visible;text-overflow:clip;white-space:nowrap}
#modal[data-view="shop"] .sh-body{
 box-sizing:border-box;flex:1 1 auto;min-height:0;overflow:auto;padding:8px;
 border:8px solid transparent!important;border-image:var(--sh-uv-slot) 24 fill / 8px / 0 stretch!important;
 border-radius:0!important;background:#171e30!important;
}
#modal[data-view="shop"] .sh-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;
}
#modal[data-view="shop"] .sh-card{
 min-width:0;height:100%;border:8px solid transparent!important;border-image:var(--sh-uv-frame) 24 fill / 8px / 0 stretch!important;
 background:#182134!important;
}
#modal[data-view="shop"] .sh-card.featured{
 border-image-source:var(--sh-uv-frame-on)!important;
}
#modal[data-view="shop"] .sh-card.focus{
 border-image-source:var(--sh-uv-frame-on)!important;box-shadow:none!important;
}
#modal[data-view="shop"] .sh-art{
 box-sizing:border-box;height:104px;flex:0 0 104px;border:6px solid transparent;
 border-image:var(--sh-uv-slot) 24 fill / 6px / 0 stretch;
 background:#171f31!important;background-image:none!important;
}
#modal[data-view="shop"] .sh-price{
 box-sizing:border-box;top:6px;right:6px;padding:1px 7px;border:5px solid transparent;
 border-image:var(--sh-uv-button-on) 24 fill / 5px / 0 stretch;border-radius:0;
 background:#203c2b;background-image:none;box-shadow:none;
}
#modal[data-view="shop"] .sh-ribbon{
 box-sizing:border-box;padding:1px 7px;border:5px solid transparent;border-image:var(--sh-uv-button) 24 fill / 5px / 0 stretch;
 border-radius:0;background:#1e2840;background-image:none;box-shadow:none;
}
#modal[data-view="shop"] .sh-ribbon.timer{background:#222e49;background-image:none}
#modal[data-view="shop"] .sh-ribbon.featured{border-image-source:var(--sh-uv-button-on);background:#222e49;background-image:none}
#modal[data-view="shop"] .sh-qty{
 box-sizing:border-box;height:34px;border:6px solid transparent;border-image:var(--sh-uv-slot) 24 fill / 6px / 0 stretch;
 border-radius:0;background:#171e30;box-shadow:none;
}
#modal[data-view="shop"] .sh-qty .sh-step{
 box-sizing:border-box;width:36px;min-width:36px;max-width:36px;height:34px;margin:0;padding:0;
 border:6px solid transparent!important;border-image:var(--sh-uv-button) 24 fill / 6px / 0 stretch!important;
 border-radius:0!important;background:#1e2840!important;background-image:none!important;box-shadow:none!important;
 color:#f2dfc8!important;font-size:15px!important;font-weight:400!important;
}
#modal[data-view="shop"] .sh-qty .sh-step:is(:hover:not(:disabled),:focus-visible){
 border-image-source:var(--sh-uv-button-on)!important;background:#24304c!important;color:#fff0d1!important;
}
#modal[data-view="shop"] .sh-actions{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;
}
#modal[data-view="shop"] .sh-actions :is(.sh-buy,.sh-gift){
 box-sizing:border-box;width:100%;min-width:0;height:36px;margin:0;padding:0 5px;
 border:6px solid transparent!important;border-image:var(--sh-uv-button) 24 fill / 6px / 0 stretch!important;
 border-radius:0!important;background:#1e2840!important;background-image:none!important;box-shadow:none!important;
 color:#f4e1c9!important;font-size:11px!important;font-weight:400!important;letter-spacing:.045em!important;
 white-space:nowrap;overflow:visible;text-overflow:clip;
}
#modal[data-view="shop"] .sh-actions :is(.sh-buy,.sh-gift):is(:hover:not(:disabled),:focus-visible){
 border-image-source:var(--sh-uv-button-on)!important;background:#24304c!important;color:#fff0d1!important;box-shadow:none!important;
}
#modal[data-view="shop"] .sh-actions .sh-buy:not(:disabled){border-image-source:var(--sh-uv-button-on)!important}
#modal[data-view="shop"] .sh-actions .sh-gift:not(:disabled){color:#f4e1c9!important;box-shadow:none!important}
#modal[data-view="shop"] .sh-wallet-link,
#modal[data-view="shop"] .sh-dialog-actions button,
#modal[data-view="shop"] .sh-pager .sh-page,
#modal[data-view="shop"] .sh-friends .sh-friend{
 border:6px solid transparent!important;border-image:var(--sh-uv-button) 24 fill / 6px / 0 stretch!important;
 border-radius:0!important;background:#1e2840!important;background-image:none!important;box-shadow:none!important;
}
#modal[data-view="shop"] :is(.sh-wallet-link,.sh-dialog-actions button,.sh-pager .sh-page,.sh-friends .sh-friend):is(:hover:not(:disabled),:focus-visible,.selected,[aria-pressed="true"]){
 border-image-source:var(--sh-uv-button-on)!important;background:#24304c!important;color:#fff0d1!important;box-shadow:none!important;
}
#modal[data-view="shop"] .sh-chip,
#modal[data-view="shop"] .sh-note,
#modal[data-view="shop"] .sh-pool,
#modal[data-view="shop"] .sh-sum{
 border-radius:0;background:#182032;background-image:none;box-shadow:none;
}
@media (max-width:850px){
 #modal[data-view="shop"] .sh-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
 #modal[data-view="shop"] .sh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
 #modal[data-view="shop"] .sh-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 #modal[data-view="shop"] .sh-grid{grid-template-columns:minmax(0,1fr)}
}

