/* Only Featured opts into this composition. Other Shop departments keep their existing layout. */
#panel[data-front="store"]:has([data-shop-view="featured"]){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:#00152b url('menu-shop-background.png') center/cover!important;box-shadow:none!important}
#panel[data-front="store"]:has([data-shop-view="featured"]) #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="featured"]) .shop-featured-shell{position:absolute;inset:44px 2.5% 48px;width:auto;height:auto;min-width:0;min-height:0;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:15fr 18fr 7.5fr 31fr 18fr 7.5fr;gap:7px;container-type:inline-size;color:#eef5ff;font-family:GameText,system-ui}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-heading{grid-row:1;order:0;position:relative;width:105.263%;left:-2.632%;height:100%;margin:0;padding:0;display:block;min-height:0;background:url('shop-featured-header.png') top center/100% auto no-repeat}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-heading>h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#panel[data-front="store"]:has([data-shop-view="featured"]) .panelhead{top:calc(44px + 100vw * .053)!important;left:3.5%!important;width:23%!important;height:calc(100vw * .083)!important;right:auto!important;z-index:10}
#panel[data-front="store"]:has([data-shop-view="featured"]) #closepanel{width:100%!important;height:100%!important;min-height:34px!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:0!important;color:transparent!important}
#panel[data-front="store"]:has([data-shop-view="featured"]) #closepanel::after{content:none!important}
#panel[data-front="store"]:has([data-shop-view="featured"]) #shop-wallet{position:absolute;right:2%;top:calc(100vw * .045);width:31%;height:calc(100vw * .098);min-height:36px;margin:0;padding:3px 5px;display:flex;justify-content:space-between;align-items:center;gap:3px;border:1.5px solid #1edfff;border-radius:9px;background:#00132d;color:#f5f3ff;font:900 3.7cqw/1 GameText;box-shadow:inset 0 0 4px #0783c5}
#panel[data-front="store"]:has([data-shop-view="featured"]) #shop-wallet b{width:24px;height:26px;display:grid;place-items:center;font-size:25px;border:1px solid #2dccff;border-radius:5px}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-merchant{grid-row:2;order:1;position:relative;margin:0;padding:0;min-height:0;overflow:hidden;align-self:stretch}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-merchant-crop{position:absolute;inset:0 0 0 46%;overflow:hidden}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-merchant-crop .shop-sprite{position:absolute;width:100%;height:auto;aspect-ratio:3/4;top:0;left:0;margin:0;background-size:400% 200%;background-position:0 0}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-greeting{position:absolute;left:1%;bottom:4%;width:49%;padding:9px 11px;border:1px solid #17d2ff;border-radius:10px;background:linear-gradient(120deg,#00142df7,#002853f7);box-shadow:0 0 5px #00a7f477;text-align:left}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-greeting h2{font:900 3.8cqw/1.1 GameText;color:#ffe38b;margin:0 0 5px}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-greeting p{font:500 3cqw/1.35 GameText;color:#e4edff;margin:0}
#panel[data-front="store"]:has([data-shop-view="featured"]) .shop-sections{grid-row:3;order:2;height:100%;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0;padding:0;background:#00172e;border-radius:12px;box-shadow:0 0 8px 5px #00172e}
#panel[data-front="store"]:has([data-shop-view="featured"]) .shop-sections button{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:4px;border:1px solid #4987c1;border-radius:11px;background:linear-gradient(#173c69,#062040);color:#e9f6ff;font:850 3cqw/1 GameText;text-transform:capitalize}
#panel[data-front="store"]:has([data-shop-view="featured"]) .shop-sections button::before{width:19px;height:19px}
#panel[data-front="store"]:has([data-shop-view="featured"]) .shop-sections [aria-pressed="true"]{background:linear-gradient(#fff388,#ffd236 70%,#ffa920);color:#111e19;border-color:#fff797;box-shadow:inset 0 0 3px #fff8b5,0 0 5px #ffdc47}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo{grid-row:4;order:3;position:relative;min-height:0;margin:3px 0 0;padding:0;overflow:hidden;border:2px solid #fff191;border-radius:15px;background:linear-gradient(90deg,#00162deb,#00132b44),url('menu-night-background.png') center/cover;box-shadow:inset 0 0 5px #ffd95d,0 0 7px #ffda46}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo-copy{position:relative;z-index:1;padding:12px 13px;pointer-events:none;text-align:left}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo-copy>small{display:block;font:900 2.4cqw/1.2 GameText;color:#ffe890;letter-spacing:.18em}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo h2{font:900 5.3cqw/1.12 GameText;color:#fff0ab;margin:7px 0 6px}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo p{font:500 3cqw/1.25 GameText;color:#eeeaff;margin:0 0 12px}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo ul{list-style:none;margin:0;padding:0;width:56%;font:500 3cqw/1.4 GameText;color:#eeeaff}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo li::before{content:'✓';display:inline-grid;place-items:center;width:14px;height:14px;margin-right:5px;background:#ffe599;border-radius:50%;color:#06182b;font-weight:900}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo-copy .featured-outfit-names{width:52%;margin:8px 0 0;color:#c7deed;font:500 2.5cqw/1.3 GameText;letter-spacing:0}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo-art{position:absolute;right:0;bottom:0;width:48%;height:82%;overflow:hidden}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo-art .product-art{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;margin:0;background:none;border:0;box-shadow:none}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo-art .shop-sprite{position:absolute;width:85%;height:auto;aspect-ratio:3/4;left:-17%;bottom:-2%;margin:0;transform:none;background-size:400% 200%;background-position:0 0}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo-art .shop-sprite+.shop-sprite{left:30%;bottom:-5%}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo>.shop-buy{position:absolute;left:3%;bottom:6%;width:49%;height:39px;min-height:39px;z-index:2}
#panel[data-front="store"]:has([data-shop-view="featured"]) .shop-buy{padding:4px 7px;border:1px solid #fff69e;border-radius:11px;background:linear-gradient(#fff28a,#ffe359 49%,#ffc020 50%,#ffb224);color:#151d14;font:900 5cqw/1.1 GameText;box-shadow:inset 0 1px 2px #fff,0 4px 0 #ac753c}
#panel[data-front="store"]:has([data-shop-view="featured"]) .shop-buy:disabled{opacity:1;background:linear-gradient(#294762,#15304b);color:#bfd8eb;border-color:#6995ad;box-shadow:none;font-size:3cqw}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-ads{grid-row:5;order:4;position:relative;min-height:0;margin:0;display:grid;grid-template-columns:22% minmax(0,1fr);gap:10px;padding:14px 12px;border:1.5px solid #6ca5ee;border-radius:14px;background:linear-gradient(90deg,#00162cf5,#00152ebc),url('menu-shop-background.png') center/cover;text-align:left}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-ads>div{min-height:0;display:flex;flex-direction:column;align-items:flex-start}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-ads h2{font:900 3.8cqw/1.15 GameText;color:#ffe797;margin:0 0 6px}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-ads p{font:500 2.6cqw/1.4 GameText;color:#e8efff;margin:0 0 6px}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-ads .shop-buy{width:75%;height:34px;min-height:34px;margin-top:auto}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-ads-symbol{position:relative;align-self:center;display:grid;place-items:center;width:100%;aspect-ratio:1;color:#eef6ff;font-size:26px;border:6px solid #ff3f36;border-radius:50%;background:#011b34}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-ads-symbol::after{content:'';position:absolute;left:43%;top:-7%;height:116%;width:6px;background:#ff3f36;transform:rotate(-44deg);box-shadow:0 0 0 2px #011b34}
#panel[data-front="store"]:has([data-shop-view="featured"]) .shop-footer{grid-row:6;order:5!important;display:flex;align-items:center;justify-content:space-between;gap:7px;margin:0;padding:4px 10px 0;border-top:1px solid #276394;background:#00142ac9;min-height:0;width:100%}
#panel[data-front="store"]:has([data-shop-view="featured"]) .shop-footer button{font:600 2.7cqw/1.1 GameText;min-height:32px;padding:5px;background:none;color:#ebf5ff;margin:0}
#panel[data-front="store"]:has([data-shop-view="featured"]) #restore-purchases{border:1px solid #3e73a7;border-radius:10px;padding:7px 12px;background:#031d37}
#panel[data-front="store"]:has([data-shop-view="featured"]) #shop-message{position:fixed;left:5%;right:5%;bottom:22px;margin:0;padding:3px 7px;border-radius:6px;background:#00172df5;max-height:28px;overflow:auto;font:500 11px/1.2 GameText;color:#d6eeff}
#panel[data-front="store"]:has([data-shop-view="featured"]) button:focus-visible{outline:2px solid #fff3ae;outline-offset:1px}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-heading{mask-image:linear-gradient(#000 90%,transparent 100%)}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo-art .shop-sprite{width:100%;left:-25%}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo-art .shop-sprite+.shop-sprite{left:24%}
#panel[data-front="store"]:has([data-shop-view="featured"]) .featured-duo-art,.featured-duo-art .product-art{overflow:visible}
/* Compact screens retain readable cards and scroll instead of clipping controls. */
@media(max-height:740px){
#panel[data-front="store"]:has([data-shop-view="featured"]) #panelbody{overflow-y:auto!important}
#panel[data-front="store"]:has([data-shop-view="featured"]) .shop-featured-shell{bottom:auto;height:727px;grid-template-rows:calc(100vw * .3693) 100px 44px 220px 145px 44px;gap:7px;margin-bottom:48px}
}
