/* BOXY TWIST 95: contrast-tuned royal boutique. All selectors are iOS-only. */
.modal:has(.premium-gold-shop) .modal-head h2{color:#fff3d3!important;font-weight:900}
.modal:has(.premium-gold-shop) .modal-head .eyebrow{color:#ffe29c!important}
.premium-gold-shop :is(.shop-v2-card,.shop-v2-crate,.shop-v2-tool,.shop-v2-pack,.product,.coin-uses-card){color:#282f39!important}
.premium-gold-shop .premium-royal-marquee :is(h2,p,small){text-shadow:0 2px 3px #071326aa}
.premium-gold-shop .premium-royal-marquee>small{font-size:11px;color:#ffedc8}
.premium-gold-shop .premium-royal-marquee>p{font-size:13px;color:#fdf0d0}
.premium-gold-shop .premium-offer-copy :is(h3,strong){color:#17263a!important;font-size:16px}
.premium-gold-shop .premium-offer-copy small{color:#663907!important;font-size:11px}
.premium-gold-shop .premium-offer-copy p{color:#374455!important;font-size:12px;line-height:1.35}
.premium-gold-shop .premium-offer-tile button:not(:disabled){background:linear-gradient(#3ddc85,#047839)!important;border:2px solid #034c23!important;color:#fff!important;text-shadow:0 1px 1px #013a18!important;font-size:14px;min-height:46px}
.premium-gold-shop .premium-offer-tile button:disabled{background:linear-gradient(#e7e3d9,#a6adb4)!important;color:#243246!important;border:2px solid #738293!important;text-shadow:none!important;font-size:12px}
.premium-gold-shop .premium-royal-note{font-size:11px;line-height:1.5;color:#432e14;font-weight:850}
.premium-gold-shop .premium-cosmetic-link strong{color:#fff1bd!important;font-size:14px}
.premium-gold-shop .premium-cosmetic-link small{color:#e0ecfa!important;font-size:12px}
.premium-gold-shop :is(.native-notice,.shop-v2-disclosure,.shop-price-disclosure){font-size:12px!important;line-height:1.5!important;color:#f9e5c3!important}
.premium-gold-shop :is(.native-notice strong,.shop-price-disclosure strong){color:#fff4b6!important}
.premium-gold-shop .shop-v2-card .shop-v2-ribbon{color:#fff!important;font-size:14px}
.premium-gold-shop .shop-v2-card .shop-v2-body{background:linear-gradient(155deg,#fff7de,#f4d9a2)}
.premium-gold-shop .shop-v2-card .shop-v2-item{background:#fffaea;border:1px solid #bd9149}
.premium-gold-shop .shop-v2-item strong{color:#27364a!important;font-size:12px}
.premium-gold-shop .shop-v2-item small{color:#5c4730!important;font-size:11px}
.premium-gold-shop .shop-v2-badge{color:#3e2712!important;font-size:10px}
.premium-gold-shop .shop-v2-card :is(h3,h4,p,strong,.shop-price-column strong){color:#24364c!important}
.premium-gold-shop .shop-v2-card :is(p,small){font-size:12px;color:#4d473d!important}
.premium-gold-shop .shop-v2-card .shop-price-button:not(:disabled){color:#fff!important;text-shadow:0 1px #063f20!important}
.premium-gold-shop .shop-v2-crate .crate-title{color:#fff4d9!important}
.premium-gold-shop .shop-v2-crate .crate-title span{color:#fff9eb!important;font-size:15px}
.premium-gold-shop .shop-v2-crate .crate-title small{color:#fff0bf!important;font-size:11px}
.premium-gold-shop .shop-v2-tool{background:linear-gradient(155deg,#fffbef,#e8e8ea);border:2px solid #cca963}
.premium-gold-shop .shop-v2-tool strong{color:#202e3e!important;font-size:12px;line-height:1.35}
.premium-gold-shop .shop-v2-tool :is(.shop-price-column strong,.shop-price-column small){color:#2d3c50!important;font-size:12px}
.premium-gold-shop .shop-v2-tool button{font-size:12px;min-height:44px;color:#27384c!important;background:#e9ecf0}
.premium-gold-shop .shop-v2-tool button:not(:disabled){background:linear-gradient(#ffe69d,#e3aa35)!important;color:#463012!important}
.premium-gold-shop .shop-v2-tool button:disabled{color:#35475a!important;background:#d5dadd!important}
.premium-gold-shop .shop-v2-pack{padding:12px 7px 11px}
.premium-gold-shop .shop-v2-pack h4{color:#4d2e14!important;font-size:12px}
.premium-gold-shop .shop-v2-pack strong{color:#283442!important;font-size:14px;line-height:1.35}
.premium-gold-shop .shop-v2-pack .shop-price-column :is(strong,small){color:#283442!important;font-size:12px}
.premium-gold-shop .shop-v2-pack button:not(:disabled){min-height:44px;font-size:14px;background:linear-gradient(#3ddd80,#087b3c)!important;color:#fff!important;border-color:#034e23!important;text-shadow:0 1px #053d1b!important}
.premium-gold-shop .shop-v2-pack button:disabled{background:#bcc5c9!important;color:#293848!important;border-color:#8295a1!important;text-shadow:none!important}
.premium-gold-shop .product-list{display:grid;gap:10px;margin:12px 0}
.premium-gold-shop .product-list .product{border:2px solid #d1b273;border-radius:15px;background:linear-gradient(145deg,#fff9e8,#f1ddb5);box-shadow:0 3px 0 #906923;padding:12px 10px}
.premium-gold-shop .product-list :is(.product-details strong,.shop-price-column strong){color:#172b43!important;font-size:14px;font-weight:900}
.premium-gold-shop .product-list :is(.product-details small,.shop-price-column small){color:#364859!important;font-size:12px;line-height:1.4}
.premium-gold-shop .product-list .product button:not(:disabled){background:linear-gradient(#ffeaab,#e2b047)!important;border:2px solid #a57627!important;border-radius:12px;color:#342914!important;font-weight:900;min-height:44px}
.premium-gold-shop .product-list .product button:disabled{background:#d1d4d3!important;color:#354254!important;border-color:#8a9293!important}
.premium-gold-shop .coin-uses-card{background:linear-gradient(#fff8e4,#edd5ab);border:1px solid #d4a455;border-radius:14px;padding:12px;color:#23364d!important}
.premium-gold-shop .coin-uses-card :is(h3,p,small){color:#293d50!important;font-size:12px;line-height:1.5}
.premium-gold-shop .coin-uses-card h3{font-size:15px}
.premium-gold-shop .shop-bottom-nav :is(b,span){color:inherit!important}
.premium-gold-shop .shop-bottom-nav button.active{color:#513113!important}
.premium-gold-shop .shop-bottom-nav button:not(.active){color:#f9e7c7!important}
.premium-gold-shop .shop-bottom-nav button{font-size:11px}
.premium-gold-shop button:focus-visible{outline:3px solid #fff4a0;outline-offset:2px}
@media(max-width:390px){.premium-gold-shop .shop-v2-currency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-gold-shop .shop-v2-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-gold-shop .product-list .product{gap:7px;padding:10px}.premium-gold-shop .premium-offer-tile{gap:7px}.premium-gold-shop .shop-bottom-nav button{font-size:10px}}

/* GOLDEN ROUTE – actual CSS 3D treasure: independent cuboid and hinged lid. */
.modal:has(.golden-route){max-width:468px;padding:0;overflow-y:auto;border:2px solid #d8a64b;border-radius:24px;background:#091b35;box-shadow:0 18px 60px #010819bb}
.modal:has(.golden-route) #modal-content{padding:0}
.golden-route{position:relative;isolation:isolate;min-height:500px;overflow:hidden;padding:17px 17px 20px;border-radius:20px;background:radial-gradient(ellipse at 50% 3%,#294f7a 0%,#0e2a4f 49%,#07172e 100%);color:#f9eac2;text-align:center}
.golden-route:before{content:"";position:absolute;inset:5px;pointer-events:none;border:1px solid #e7be6177;border-radius:18px}
.gr-aura{position:absolute;inset:5% 0 48%;background:radial-gradient(ellipse,#ffe89a1e,transparent 67%);pointer-events:none}
.gr-title-band{position:relative;z-index:2}
.gr-title-band>span{font-size:10px;letter-spacing:1.7px;color:#ffdd91;font-weight:850}
.golden-route .gr-title-band h2{font-size:clamp(25px,6.7vw,33px);font-weight:1000;color:#fff1bb;margin:6px 0 3px;letter-spacing:.1px;text-shadow:0 3px 3px #030b1a}
.gr-title-band p{font-size:12px;color:#d9e9f8;margin:3px 0}
.gr-scene{position:relative;height:166px;margin:8px auto 0;perspective:800px;isolation:isolate}
.gr-royal-halo{position:absolute;left:50%;top:22px;width:158px;height:114px;transform:translateX(-50%);border:1px solid #d8a94c44;border-radius:50%;box-shadow:0 0 0 12px #f4ce5410,0 0 0 26px #f4ce5407,0 0 40px #f9c65730;background:radial-gradient(circle,#fff8b54a,transparent 72%)}
.gr-star{position:absolute;z-index:1;font-size:17px;color:#ffe7ad;text-shadow:0 0 12px #ffc94d;pointer-events:none}
.gr-star-1{top:27px;left:17%}.gr-star-2{top:38px;right:17%;font-size:27px}.gr-star-3{bottom:29px;left:25%;font-size:13px}.gr-star-4{bottom:47px;right:27%;font-size:13px}
.gr-treasure{position:absolute;z-index:3;top:31px;left:50%;width:126px;height:85px;transform:translateX(-50%) rotateX(-13deg) rotateY(-19deg);transform-style:preserve-3d;filter:drop-shadow(0 11px 12px #020e1ce6)}
.gr-treasure-shell{position:absolute;inset:12px 0 0;transform-style:preserve-3d}
.gr-face{position:absolute;display:block;border:2px solid #fff3b9;backface-visibility:visible;box-shadow:inset 0 0 12px #fff4b057,inset 0 -14px 14px #99591d50}
.gr-front,.gr-back{width:126px;height:72px;border-radius:6px;background:linear-gradient(150deg,#ffefa8,#e4ae3e 50%,#91541e)}
.gr-front{transform:translateZ(33px);display:grid;place-items:center}
.gr-front span{font-size:41px;line-height:1;color:#8c5417;text-shadow:0 2px #fff4c8}
.gr-back{transform:rotateY(180deg) translateZ(33px)}
.gr-left,.gr-right{width:66px;height:72px;left:30px;border-radius:5px;background:linear-gradient(#e3aa3e,#8d531c)}
.gr-left{transform:rotateY(-90deg) translateZ(63px)}.gr-right{transform:rotateY(90deg) translateZ(63px)}
.gr-top,.gr-bottom{width:126px;height:66px;top:4px;background:linear-gradient(145deg,#f8d576,#ad712b)}
.gr-top{transform:rotateX(90deg) translateZ(35px)}.gr-bottom{transform:rotateX(-90deg) translateZ(37px)}
.gr-treasure-lid{position:absolute;z-index:6;top:4px;left:-5px;width:136px;height:24px;background:linear-gradient(#fff5bd,#e9b74c 55%,#a66e24);border:2px solid #fff8cc;border-radius:7px;transform-origin:50% 100%;transform:translateZ(3px) rotateX(-9deg);transform-style:preserve-3d;box-shadow:inset 0 2px #fffbea,0 5px 0 #a57024}
.gr-treasure-lid:before{content:"";position:absolute;left:-3px;right:-3px;top:-7px;height:13px;border:2px solid #fff4bd;background:linear-gradient(90deg,#ad752f,#ffe498 40%,#a9772c);border-radius:7px}
.gr-treasure-lid i,.gr-treasure-lid b{position:absolute;top:0;bottom:0;width:11px;background:#88521e55;display:block}.gr-treasure-lid i{left:17px}.gr-treasure-lid b{right:17px}
.gr-pedestal{position:absolute;top:128px;left:50%;width:195px;height:20px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,#d2a34a99,#1b2946 70%,transparent);filter:blur(3px)}
.gr-streak-heading{display:flex;align-items:center;justify-content:space-between;text-align:left;margin:2px 0 11px}
.gr-streak-heading>div small{display:block;font-size:10px;color:#ffe5a6;font-weight:850;letter-spacing:1px}
.gr-streak-heading>div strong{display:block;margin-top:3px;color:#fff4d8;font-size:20px;font-weight:950}
.gr-streak-heading>span{display:grid;place-items:center;padding:8px 13px;border:1px solid #f0cc79;border-radius:10px;background:linear-gradient(#fbe4a2,#c88f30);color:#563615;font-weight:900;font-size:12px}
.gr-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:0 auto}
.gr-day{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:62px;border:1px solid #8c99ab;border-radius:12px;background:linear-gradient(#324e72,#172d50);box-shadow:inset 0 1px #a1b8d14d,0 3px 0 #09172a;color:#e7edf5}
.gr-day.is-done{border-color:#fae4a3;background:linear-gradient(#ffeaaa,#ba7b2c);color:#483019}
.gr-day.is-current{border:2px solid #fff4c0;background:linear-gradient(#fff1bf,#eabb51);color:#55380b;box-shadow:0 3px 0 #94671e,0 0 17px #ffdc77a6;transform:translateY(-3px)}
.gr-day-icon{display:block;font-size:22px;line-height:1.2}
.gr-day small{font-size:9px;font-weight:800;color:inherit;line-height:1.15}
.gr-day.is-crown .gr-day-icon{font-size:23px}
.gr-track{position:relative;height:12px;margin:13px 2px 17px;border:1px solid #d9b56c;border-radius:30px;background:#07182e;overflow:visible;box-shadow:inset 0 2px 4px #0008}
.gr-track-fill{position:absolute;left:0;top:0;bottom:0;width:var(--gr-fill);max-width:100%;border-radius:30px;background:linear-gradient(90deg,#c2862d,#f9d768,#fff7bd);box-shadow:0 0 10px #ffd45b8c,inset 0 1px #fff9d9}
.gr-track>span{position:absolute;right:-3px;top:-9px;font-size:21px;color:#ffe59c;filter:drop-shadow(0 0 6px #e6ab37)}
.gr-prize{display:flex;align-items:center;gap:12px;text-align:left;padding:12px;border:1px solid #f5d786;border-radius:14px;background:linear-gradient(140deg,#fff8e1,#e8c88c);box-shadow:inset 0 2px #fffcf3,0 4px 0 #895e28;color:#243446}
.gr-prize-gem{width:55px;height:55px;flex:0 0 55px;display:grid;place-items:center;border-radius:16px;border:2px solid #fff7cf;background:linear-gradient(#f8d47b,#b98333);box-shadow:inset 0 2px #ffefbe,0 3px 0 #875922;font-size:32px}
.gr-prize>div:nth-child(2){flex:1;min-width:0}
.gr-prize small{font-size:10px;font-weight:950;color:#704616;letter-spacing:.6px}
.gr-prize strong{display:block;font-size:18px;color:#1e2b44;font-weight:950;line-height:1.2;margin:3px 0}
.gr-prize p{font-size:13px;font-weight:850;color:#3c4a51;margin:2px 0}
.gr-claimed-check{display:grid;place-items:center;width:29px;height:29px;border:2px solid #15743a;border-radius:50%;background:#e7f9e8;color:#086431;font-size:18px;font-weight:900}
.gr-claimed-check[hidden]{display:none}
.golden-route .gr-headline{font-size:17px;line-height:1.25;color:#fff0be;margin:18px auto 5px;font-weight:950}
.gr-note{font-size:12px;line-height:1.5;color:#e6ecf5;margin:5px auto 14px;max-width:360px}
.gr-action{width:100%;min-height:52px;padding:10px 12px;border:2px solid #fff6c2;border-radius:14px;background:linear-gradient(#fff5c5,#eac05b 62%,#ca8f2f);color:#4a3018;font-size:16px;font-weight:950;box-shadow:inset 0 2px #fffef0,0 5px 0 #8a5e22,0 10px 13px #08121d8c}
.gr-action:focus-visible{outline:3px solid #fff;outline-offset:3px}
.gr-small-print{margin:15px 4px 0;color:#d7e3ef;font-size:11px;line-height:1.5}
@media(max-width:365px){.golden-route{padding:13px 10px 17px}.gr-day{min-height:56px;border-radius:9px}.gr-day-icon{font-size:18px}.gr-day small{font-size:8px}.gr-prize strong{font-size:16px}.gr-scene{height:144px}.gr-treasure{top:24px}.gr-pedestal{top:117px}}
@media(max-height:650px){.gr-scene{height:126px}.gr-treasure{top:16px;transform:translateX(-50%) rotateX(-13deg) rotateY(-19deg) scale(.82)}.gr-pedestal{top:104px}.gr-title-band p{margin:0}}
@media(prefers-reduced-motion:no-preference){
 .golden-route.gr-collected .gr-treasure{animation:gr-entry 1300ms cubic-bezier(.18,.8,.24,1) both}
 .golden-route.gr-collected .gr-treasure-lid{animation:gr-lid-open 1000ms ease-out 900ms both}
 .golden-route.gr-collected .gr-track-fill{animation:gr-fill-up 1450ms ease-out both}
 .golden-route.gr-collected .gr-prize{animation:gr-prize-appear 700ms cubic-bezier(.13,1.5,.47,1) 1700ms backwards}
 .golden-route.gr-collected .gr-star{animation:gr-twinkle 1700ms ease-in-out infinite alternate}
 .gr-star-2{animation-delay:.45s!important}.gr-star-3{animation-delay:.85s!important}
 @keyframes gr-entry{0%{transform:translateX(-50%) translateY(44px) rotateX(-30deg) rotateY(-75deg) scale(.55);opacity:.4}55%{transform:translateX(-50%) translateY(-6px) rotateX(-8deg) rotateY(15deg) scale(1.06)}100%{transform:translateX(-50%) rotateX(-13deg) rotateY(-19deg) scale(1);opacity:1}}
 @keyframes gr-lid-open{0%{transform:translateZ(3px) rotateX(-9deg)}55%{transform:translateZ(9px) rotateX(-112deg)}100%{transform:translateZ(9px) rotateX(-94deg)}}
 @keyframes gr-fill-up{from{width:0}to{width:var(--gr-fill)}}
 @keyframes gr-prize-appear{from{opacity:0;transform:translateY(14px) scale(.88)}to{opacity:1;transform:translateY(0) scale(1)}}
 @keyframes gr-twinkle{from{opacity:.45;transform:scale(.7)}to{opacity:1;transform:scale(1.3)}}
}
@media(prefers-reduced-motion:reduce){.golden-route *, .golden-route *:before,.golden-route *:after{animation:none!important;transition:none!important}}

/* Final high-contrast pass: the shop's fixed navigation must never use cream on pale blue. */
#modal-content .premium-gold-shop .shop-bottom-nav{
 background:linear-gradient(180deg,#183f6c,#071d3b)!important;
 border-top:2px solid #e3ba63!important;box-shadow:0 -8px 24px #010e28ab!important;
}
#modal-content .premium-gold-shop .shop-bottom-nav button:not(.active){
 background:linear-gradient(180deg,#284c76,#132d53)!important;
 border:1px solid #d1af6e!important;
 color:#fff1c9!important;box-shadow:inset 0 2px #ffffff19,0 3px 0 #06172d!important;
}
#modal-content .premium-gold-shop .shop-bottom-nav button:not(.active) :is(span,b){
 color:#fff1c9!important;-webkit-text-fill-color:#fff1c9!important;text-shadow:0 1px #09182b!important;font-weight:900;
}
#modal-content .premium-gold-shop .shop-bottom-nav button.active{
 background:linear-gradient(180deg,#fff0b8,#e5ad3b)!important;color:#4e310d!important;
 border:2px solid #ffeebe!important;box-shadow:inset 0 2px #fffcee,0 4px 0 #885917!important;
}
#modal-content .premium-gold-shop .shop-bottom-nav button.active :is(span,b){
 color:#4e310d!important;-webkit-text-fill-color:#4e310d!important;text-shadow:none!important;font-weight:950;
}
#modal-content .premium-gold-shop :is(.premium-offer-tile,.shop-v2-pack,.shop-v2-tool,.product-list) button:disabled{
 opacity:1!important;
}
#modal-content .golden-route .gr-action:focus-visible{
 outline:3px solid #fff3bc!important;outline-offset:3px!important;
 box-shadow:inset 0 2px #fffef0,0 5px 0 #8a5e22,0 0 0 4px #deaa3f!important;
}

/* Native App Store disclosure had an ID-specific ivory background from legacy CSS. */
#modal-content .premium-gold-shop .shop-price-disclosure{
 background:linear-gradient(145deg,#1b4166,#112c50)!important;
 color:#fff0cf!important;
 border:1px solid #e2b965!important;border-radius:13px;padding:12px 14px;
 font-size:13px!important;line-height:1.55!important;
 text-shadow:none!important;-webkit-text-fill-color:#fff0cf!important;
}
#modal-content .premium-gold-shop .shop-price-disclosure :is(strong,small,span,p){
 color:#fff0cf!important;-webkit-text-fill-color:#fff0cf!important;
}
