/* Gems-only live consumable shop. */
#panel[data-front="store"]:has([data-shop-view="gems"]){position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#00142b url("menu-shop-background.png") center/cover!important;box-shadow:none!important}
#panel[data-front="store"]:has([data-shop-view="gems"]) #panelbody{position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important;background:none!important}
#panel[data-front="store"]:has([data-shop-view="gems"]) .panelhead{top:calc(44px + 100vw * .084)!important;left:3.5%!important;right:auto!important;width:23%!important;height:calc(100vw * .079)!important;z-index:10}
#panel[data-front="store"]:has([data-shop-view="gems"]) #closepanel{width:100%!important;height:100%!important;min-height:32px!important;background:transparent!important;box-shadow:none!important;border:0!important;color:transparent!important;font-size:0!important}
#panel[data-front="store"]:has([data-shop-view="gems"]) #closepanel::after{content:none!important}
#panel[data-front="store"]:has([data-shop-view="gems"]) #shop-wallet{position:absolute;right:3.5%;top:calc(100vw * .084);width:29%;height:calc(100vw * .079);min-height:32px;display:flex;align-items:center;justify-content:space-around;margin:0;padding:2px;border:1px solid #20dfff;border-radius:8px;background:#001831;color:white;font:800 3.6cqw GameText;box-shadow:inset 0 0 5px #13c3ff}
#panel[data-front="store"]:has([data-shop-view="gems"]) #shop-wallet b{border:1px solid #20dfff;border-radius:5px;width:22px;font-size:24px;line-height:24px}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;min-height:0;padding:0;margin:0;background:none;box-shadow:none;order:initial!important}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-sections button{min-height:0;padding:3px 0;border:1px solid #08a6ff;border-radius:8px;background:linear-gradient(#072c58,#001a36);color:white;font:800 2.9cqw GameText;display:flex;align-items:center;justify-content:center;gap:4px}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-sections button::before{content:'';font-size:0}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-sections button[aria-pressed="true"]{background:linear-gradient(#ffed73,#ffbd21);color:#08121a;border-color:#fff097;box-shadow:inset 0 0 5px #fff,0 0 6px #ffdc39}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0;margin:0;min-height:0;order:initial!important;background:#00142ad9}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-footer button{padding:4px 6px;min-height:30px;margin:0;background:none;color:#f0f7ff;font:600 2.8cqw GameText}
#panel[data-front="store"]:has([data-shop-view="gems"]) #restore-purchases{border:1px solid #0082de;border-radius:8px;background:#002147}
#panel[data-front="store"]:has([data-shop-view="gems"]) #shop-message{position:fixed;left:5%;right:5%;bottom:20px;max-height:25px;overflow:auto;margin:0;background:#001a30ed;border-radius:5px;font:500 11px/1.2 GameText}
#panel[data-front="store"]:has([data-shop-view="gems"]) button:focus-visible{outline:2px solid #fff297;outline-offset:-2px}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-gems-shell{position:absolute;inset:44px 2.5% 46px;height:auto;width:auto;display:grid;grid-template-rows:calc(100vw * .259) minmax(38px,6fr) minmax(0,20fr) minmax(0,54fr) minmax(44px,7fr);gap:8px;min-height:0;margin:0;padding:0;container-type:inline-size;font-family:GameText,system-ui;color:#edf6ff;background:linear-gradient(transparent 12%,#00142efc 18%)}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-gems-shell>*{order:0!important}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gems-shop-heading{grid-row:1;position:relative;display:block;width:105.263%;left:-2.632%;height:100%;min-height:0;margin:0;padding:0;background:url('shop-gems-header.png') top center/100% auto no-repeat}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gems-shop-heading h1{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
#panel[data-front="store"]:has([data-shop-view="gems"]) .panelhead{top:calc(44px + 100vw * .058)!important;left:3.7%!important;width:22%!important;height:calc(100vw * .07)!important}
#panel[data-front="store"]:has([data-shop-view="gems"]) #shop-wallet{top:calc(100vw * .058);right:3.3%;width:26.5%;height:calc(100vw * .07);font-size:3.5cqw}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-sections{grid-row:2;height:100%}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gems-approved-banner{grid-row:3;height:100%;min-height:0;margin:0;padding:0;border:1px solid #0de4ff;border-radius:10px;background:#00142c url('shop-gems-banner.png') center/100% auto no-repeat}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gem-grid{grid-row:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));height:100%;min-height:0;gap:8px;margin:0;padding:0}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gem-pack{position:relative;display:block;min-height:0;height:100%;padding:0;margin:0;overflow:hidden;border:1px solid #00dfff;border-radius:10px;background:radial-gradient(ellipse at 50% 60%,#131867,#00172d 75%);box-shadow:none}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gem-pack-art{position:absolute;left:1%;top:30%;width:98%;height:47%;object-fit:contain}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gem-pack .shop-card-copy{position:absolute;inset:0;display:block;margin:0;padding:0;min-height:0;background:none}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gem-pack h3{position:absolute;left:0;right:0;top:5%;display:flex;flex-direction:column;align-items:center;margin:0!important;gap:1px;color:#f2ffff;text-shadow:0 1px 0 #168cff,0 0 5px #497dff;font:900 4cqw/1 GameText}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gem-pack h3 strong{font:900 6.8cqw/1 GameText}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gem-pack h3 span{font:900 3.6cqw/1 GameText}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gem-pack .shop-buy{position:absolute;left:12%;right:12%;bottom:5%;top:auto;width:76%;height:22%;min-height:32px;margin:0;padding:2px!important;border:1px solid #fff47b;border-radius:7px;color:#101607;background:linear-gradient(#ffff5c 0%,#ffe831 50%,#ffd12b 51%,#ffe43a);box-shadow:0 0 5px #ffee51;font:900 5.2cqw/1 GameText!important}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gem-pack .shop-buy:disabled{font-size:3.2cqw!important;opacity:.65}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-footer{grid-row:5;height:100%;order:0!important}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-footer p{font:italic 500 2.8cqw/1.25 GameText;margin:0;flex:1}
#panel[data-front="store"]:has([data-shop-view="gems"]) #purchase-info{border:2px solid #10e2fa;border-radius:50%;padding:0;width:30px;height:30px;font-size:24px;line-height:26px;flex-shrink:0;color:#24edff}
#panel[data-front="store"]:has([data-shop-view="gems"]) #restore-purchases{font-size:2.8cqw;width:30%;min-height:36px}
#panel[data-front="store"]:has([data-shop-view="gems"]) #shop-message:empty{display:none}
#panel[data-front="store"]:has([data-shop-view="gems"]) .shop-gems-shell{grid-template-rows:calc(100vw * .259) 40px calc(95vw * .252) minmax(0,1fr) 48px}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gems-approved-banner{background-size:100% 100%;border:0}
#panel[data-front="store"]:has([data-shop-view="gems"]) #purchase-info{font:700 25px/1 system-ui!important;display:flex;align-items:center;justify-content:center;text-align:center!important}
#panel[data-front="store"]:has([data-shop-view="gems"]) .gem-pack-art{mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent)}

/* Shared Shop Back control: cover the baked header buttons with the approved
   Gems artwork, so departments cannot inherit different arrows or borders.
   Crop coordinates in the existing 1024 x 265 header: x38 y58 w222 h74. */
#panel[data-front="store"]:has([data-shop-view]) #closepanel{background:#001329 url("shop-gems-header.png") 4.738% 30.366%/461.261% 358.108% no-repeat!important;border:0!important;border-radius:8px!important;box-shadow:none!important;outline:none!important;color:transparent!important;font-size:0!important}
#panel[data-front="store"]:has([data-shop-view]) #closepanel::before,#panel[data-front="store"]:has([data-shop-view]) #closepanel::after{content:none!important}
#panel[data-front="store"]:has([data-shop-view]):not([data-world-pointer]) #closepanel:focus-visible{outline:2px solid #32d8ff!important;outline-offset:2px}

/* The Outfits header paints a wider button than its old hit target. Cover
   that exact painted area; do not punch a hole in the surrounding artwork. */
#panel[data-front="store"]:has([data-shop-view="wardrobes"]) .panelhead{left:3.4%!important;width:24.6%!important;top:calc(44px + 100vw * .077)!important;height:calc(100vw * .087)!important}
