/* Fix My Fail premium shop — bright depot, cardboard only as accent. */
.modal:has(.depot-shop){max-width:560px;padding:0;background:linear-gradient(180deg,#eaf8ff,#f6ead7 34%,#f1dfc5);border:2px solid #d4e9f5;border-radius:26px;overflow-x:hidden;overflow-y:auto;box-shadow:0 28px 80px #06162fa8,0 0 0 2px #ffffff55}
.modal:has(.depot-shop) .modal-head{margin:0;padding:13px 15px 10px;background:linear-gradient(180deg,#123d65f2,#0d2e50ed);border-bottom:1px solid #8fd5ff55;color:#fff}.modal:has(.depot-shop) .modal-head h2{color:#fff;text-shadow:0 2px 8px #031426}.modal:has(.depot-shop) .modal-head .eyebrow{color:#bfe8ff}.modal:has(.depot-shop) .modal-head .icon-button{background:#f4f9ff;color:#183a5c;border:1px solid #b8d8ed}
.depot-shop{padding:0 12px 17px;background:linear-gradient(180deg,#e9f7ff00,#f6e8d4 48%,#ecd7ba);min-height:540px}
.depot-shop-header{position:relative;margin:0 -12px 12px;height:164px;overflow:hidden;background:linear-gradient(180deg,#8fdcff 0 40%,#dff6ff 40% 55%,#d6b07a 56% 100%);border-bottom:3px solid #9a6735;box-shadow:inset 0 -20px 30px #6d431c22}
.depot-shop-header:before{content:'';position:absolute;left:-5%;right:-5%;bottom:0;height:70px;background:linear-gradient(180deg,#ffffff28,#0000),repeating-linear-gradient(90deg,#b98349 0 58px,#cf9a5c 58px 116px);box-shadow:inset 0 12px 22px #4e2e1718}
.depot-shop-header:after{content:'';position:absolute;left:5%;right:5%;top:48px;height:3px;background:#ffffff80;box-shadow:0 23px #ffffff48,0 46px #ffffff2b}
.depot-shop-logo{position:absolute;z-index:3;left:12px;top:10px;width:174px;height:50px;padding:0;background-image:url('./art-atlas.png');background-repeat:no-repeat;background-size:240px 120px;background-position:0 0;background-color:transparent;border:0;border-radius:0;box-shadow:none;transform:rotate(-1deg);font-size:0;color:transparent;text-shadow:none;filter:drop-shadow(0 6px 6px #06233b55)}.depot-shop-logo strong{display:none!important}
.depot-shop-mascot{position:absolute;z-index:3;left:41%;bottom:7px;width:91px;height:86px;background-image:url('./art-atlas.png');background-repeat:no-repeat;background-size:390px 195px;background-position:0 -70px;background-color:transparent;border:0;border-radius:0;box-shadow:none;transform:rotate(-4deg);filter:drop-shadow(0 8px 6px #06233b55)}.depot-shop-mascot:before,.depot-shop-mascot:after{display:none!important}
.depot-shop-sign{position:absolute;z-index:2;right:13px;top:14px;padding:9px 15px;background:linear-gradient(#2d75aa,#175485);border:2px solid #d5efff;border-radius:12px;box-shadow:0 5px 0 #0e3a61,0 10px 18px #061a2d42;color:#fff;font-weight:1000;font-size:20px;transform:rotate(1deg)}.depot-shop-note{position:absolute;z-index:2;right:13px;bottom:12px;width:120px;padding:6px 8px;background:#fff7d9;border:1px solid #d7b878;border-radius:7px;transform:rotate(-2deg);font-size:9px;line-height:1.3;text-align:center;color:#665038;box-shadow:0 4px 10px #53301822}
.shop-v2-card{position:relative;margin-top:11px;border:1px solid #d5c2a5;border-radius:18px;background:linear-gradient(145deg,#fffaf1,#f3dfbf);box-shadow:inset 0 1px #fff,0 7px 0 #b68b5d,0 13px 24px #55382126;overflow:hidden}.shop-v2-card.featured{background:linear-gradient(145deg,#fff8df,#ffe1a1 48%,#f4c778)}
.shop-v2-ribbon{display:inline-flex;align-items:center;gap:6px;margin:10px 0 0 -4px;padding:7px 16px 7px 12px;background:linear-gradient(#f34d51,#c92736);color:#fff;border-radius:0 9px 9px 0;box-shadow:0 3px 0 #8c2029;font-size:15px;font-weight:1000;transform:rotate(-1deg);text-shadow:0 1px #7d1720}.shop-v2-timer{position:absolute;top:10px;right:11px;padding:5px 9px;border-radius:10px;background:linear-gradient(#234f79,#123a60);color:#fff;border:1px solid #bfe6ff88;font-size:10px;font-weight:1000;box-shadow:0 3px 0 #0b2947}
.shop-v2-body{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:12px}.shop-v2-items{display:flex;align-items:center;gap:7px;min-width:0}.shop-v2-item{min-width:0;flex:1;text-align:center;padding:9px 4px;border-radius:13px;background:linear-gradient(#ffffffdb,#fff3d9c7);border:1px solid #d9bf92;box-shadow:inset 0 1px #fff}.shop-v2-item span{display:block;font-size:31px;line-height:1;filter:drop-shadow(0 3px 2px #6e491e28)}.shop-v2-item strong{display:block;font-size:11px;margin-top:5px}.shop-v2-item small{display:block;font-size:8px;color:#765b3e;margin-top:2px}.shop-v2-plus{font-size:20px;font-weight:1000;color:#a9532b}
.shop-price-button,.shop-v2-pack button{background:linear-gradient(#62dc69,#1aa342)!important;color:#fff!important;border:2px solid #0b842f!important;box-shadow:inset 0 2px #a9f4aa,0 4px 0 #096326!important;text-shadow:0 1px #075822}.shop-price-button{min-width:92px;min-height:52px;border-radius:14px;font-weight:1000;font-size:18px;padding:8px 12px}.shop-price-button:disabled,.shop-v2-pack button:disabled{background:linear-gradient(#b9c0bd,#8e9793)!important;border-color:#737c78!important;box-shadow:0 3px 0 #626965!important}
.shop-v2-badge{position:absolute;right:-3px;top:7px;padding:6px 9px;background:linear-gradient(#ffd55b,#f2a817);color:#613c12;border:2px solid #bd7c0d;border-radius:9px;font-size:9px;font-weight:1000;transform:rotate(6deg);box-shadow:0 2px 0 #91600d}
.shop-v2-crate{margin-top:12px;border:1px solid #b6cfe0;border-radius:18px;background:linear-gradient(160deg,#f5fbff,#dcecf6);box-shadow:0 7px 0 #85a9bf,0 13px 24px #16334826;padding:10px}.shop-v2-crate .crate-title{display:flex;align-items:center;justify-content:space-between;margin:-2px -2px 9px;padding:9px 11px;background:linear-gradient(#2e7fb8,#175784);color:#fff;border:1px solid #8fd9ff;border-radius:11px;box-shadow:0 3px 0 #0e3e63;font-weight:1000;text-shadow:0 1px #0a3150}.shop-v2-crate .crate-title small{font-size:8px;opacity:.88}
.shop-v2-currency-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px}.shop-v2-pack{position:relative;padding:10px 6px 9px;text-align:center;border:1px solid #d7c29f;border-radius:15px;background:linear-gradient(#fffaf0,#f0dab9);box-shadow:0 5px 0 #b28656,0 9px 16px #54351d1c}.shop-v2-pack h4{font-size:10px;margin:0 0 6px}.shop-v2-pack .gold{font-size:37px;line-height:1;filter:drop-shadow(0 3px 0 #b66c0b)}.shop-v2-pack strong{display:block;font-size:12px;margin:4px 0 8px}.shop-v2-pack button{width:100%;min-height:40px;border-radius:11px;font-weight:1000;font-size:13px}
.shop-v2-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px}.shop-v2-tool{padding:10px 5px;border:1px solid #b8d3e5;border-radius:14px;background:linear-gradient(#fafdff,#e7f2f8);text-align:center;box-shadow:0 3px 0 #aac5d6}.shop-v2-tool span{display:block;font-size:27px}.shop-v2-tool strong{display:block;font-size:9px;margin:4px 0}.shop-v2-tool button{width:100%;padding:7px 4px;border-radius:9px;background:#d7eaf5;border:1px solid #a9cddd;color:#294c64;font-size:9px;font-weight:1000}.shop-v2-tool button:not(:disabled){background:linear-gradient(#ffd66b,#f2a72e);border-color:#d58c17;color:#5b3510;box-shadow:0 2px 0 #a76a0e}
.shop-v2-footer{display:grid;gap:8px;margin-top:12px}.shop-v2-footer .secondary-button{background:linear-gradient(#2e7fb8,#175784);color:#fff;border-color:#8fd9ff;box-shadow:0 3px 0 #0e3e63}.shop-v2-disclosure{margin:11px 3px 0;font-size:8px;line-height:1.5;color:#68543d;text-align:center}
@media(max-width:390px){.shop-v2-body{grid-template-columns:1fr}.shop-price-button{width:100%}.shop-v2-items{gap:4px}.shop-v2-item span{font-size:26px}.shop-v2-currency-grid{gap:5px}.shop-v2-pack{padding-inline:4px}.depot-shop-note{display:none}}
.shop-bottom-nav{position:sticky;z-index:12;bottom:-17px;display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:14px -12px -17px;padding:7px 6px max(8px,env(safe-area-inset-bottom));border-top:1px solid #ffdca875;background:linear-gradient(180deg,#c58b52f2,#9d6337f4);box-shadow:0 -8px 28px #020b1466;backdrop-filter:blur(10px)}
.shop-bottom-nav button{position:relative;min-height:64px;border:1px solid #f1d1a155;border-radius:13px;background:linear-gradient(#ddb078,#be844d);box-shadow:inset 0 2px #fff4,0 3px 0 #754522;color:#422a1b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 2px;font:900 9px/1.1 inherit}
.shop-bottom-nav button>span{font-size:23px;line-height:1}.shop-bottom-nav button>b{font:1000 9px/1.1 inherit}.shop-bottom-nav button>i{position:absolute;top:2px;right:14%;min-width:19px;height:19px;padding:0 3px;border-radius:12px;background:#ef3945;border:2px solid #fff;color:#fff;display:grid;place-items:center;font:1000 9px/1 inherit}
.shop-bottom-nav button.active{background:linear-gradient(#ffe970,#ffc62f);border-color:#f4bd38;box-shadow:inset 0 2px #fff9,0 3px 0 #9b6715,0 0 18px #ffd54f70}
@media(max-width:700px){
  .modal-backdrop:has(.depot-shop){align-items:stretch;justify-content:center;padding:0;background:#06182be8;backdrop-filter:none;-webkit-backdrop-filter:none}
  .modal:has(.depot-shop){width:100%;max-width:620px;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0;box-shadow:none;background:#07192d;overflow:auto;animation:none;opacity:1}
  .modal:has(.depot-shop) .modal-head{display:none}
  .depot-shop{min-height:100dvh;padding-top:max(0px,env(safe-area-inset-top));padding-bottom:0}
  .depot-shop-header{height:185px;margin-top:0}
  .shop-bottom-nav{bottom:0;margin-bottom:0}
}

.depot-shop-hud{position:absolute;z-index:5;left:8px;right:8px;top:max(8px,env(safe-area-inset-top));display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:7px;pointer-events:none}
.depot-shop-hud>*{pointer-events:auto}.depot-shop-hud .depot-shop-logo{position:relative;left:auto;top:auto;min-width:118px;margin:0;padding:5px 9px 7px;transform:rotate(-1deg)}
.shop-hud-right{display:flex;justify-content:flex-end;gap:5px}.shop-hud-stat{height:42px;display:flex;align-items:center;justify-content:center;gap:6px;padding:3px 7px;border:1px solid #ffe2a87a;border-radius:15px;background:linear-gradient(#f8e3b7,#dda967);box-shadow:inset 0 2px #fff8,0 4px 0 #764923,0 8px 17px #03121f55;color:#412718;font-weight:1000}
.shop-hud-stat .heart{font-size:25px;color:#df334c;text-shadow:0 2px #8f2032}.shop-hud-stat .coin{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:linear-gradient(#ffe46d,#f2a71c);border:2px solid #d98609;color:#754007}.shop-hud-stat .plus{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:linear-gradient(#5ade69,#169d3e);border:1px solid #0b7a31;color:#fff;font-size:18px}.shop-hud-stat strong{font-size:15px}
.shop-hud-settings{width:42px;height:42px;border:1px solid #bfe6ff77;border-radius:14px;background:linear-gradient(#4e80aa,#28577f);box-shadow:inset 0 2px #ffffff38,0 4px 0 #153b5b;color:#fff;font-size:20px}
@media(max-width:390px){.depot-shop-hud .depot-shop-logo{min-width:103px}.shop-hud-stat{padding-inline:5px}.shop-hud-stat strong{font-size:13px}.shop-hud-settings{width:39px}}
