.shop-screen{max-width:1100px;margin:auto;padding-bottom:3rem}.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.shop-heading h1{font-size:clamp(1.8rem,4vw,3rem)}.shop-balance{background:#1c2940;border:1px solid #cba359;border-radius:18px;padding:1rem 1.5rem;white-space:nowrap}.shop-balance strong{font-size:2rem;color:#f7d18a}.shop-balance small{display:block}.shop-category{margin:2rem 0}.shop-chests,.shop-collection{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem}.shop-chest,.shop-collection article{border:1px solid #38465a;background:#152035;border-radius:14px;padding:1.2rem;min-width:0}.shop-chest p{line-height:1.6;overflow-wrap:anywhere}.shop-chest button{width:100%;min-height:44px}.shop-collection progress{display:block;width:100%;margin:.8rem 0;accent-color:#e5bc72}.shop-history{padding:0;list-style:none}.shop-history li{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:space-between;border-bottom:1px solid #38465a;padding:.8rem 0}.shop-history time{color:#aebbd0}.shop-feedback{color:#f7d18a;min-height:1.5rem}.fa-r-collection{display:block;font-size:.7rem;padding:.3rem;color:#d7b879}button:disabled{cursor:not-allowed}button:focus-visible{outline:2px solid #f7d18a;outline-offset:3px}@media(max-width:600px){.shop-heading{align-items:stretch;flex-direction:column}.shop-balance{align-self:flex-start;margin:0}.shop-history li{flex-direction:column}.shop-screen h2{font-size:1.4rem}}

.shop-screen h1 { margin: .4rem 0; letter-spacing: -.045em; }
.shop-screen h1 em { color: #c8afff; font-style: normal; }
.shop-feedback:empty { display: none; }
.shop-category h2, .shop-factions > summary { margin-bottom: .85rem; font-size: 1.25rem; font-weight: 800; }
.shop-factions > summary, .shop-chest summary { cursor: pointer; color: #cad3e9; }
.shop-factions > .shop-chests { margin-top: 1rem; }
.shop-chest, .chest-reveal { --chest-rgb: 134 195 224; --chest-dark: #23496b; }
[data-tint="leaders"] { --chest-rgb: 109 222 193; --chest-dark: #1e685e; }
[data-tint="epic"] { --chest-rgb: 207 155 255; --chest-dark: #633888; }
[data-tint="team"] { --chest-rgb: 157 171 241; --chest-dark: #35497d; }
[data-tint="legendary"] { --chest-rgb: 255 205 110; --chest-dark: #8a531f; }
.shop-chest { display: grid; grid-template-columns: minmax(118px, .7fr) minmax(0, 1.3fr); padding: 0; overflow: hidden; border-color: rgb(var(--chest-rgb) / .26); }
.shop-chest-content { padding: 1.15rem; min-width: 0; }
.shop-chest-content h3 { margin: 0 0 .85rem; }
.shop-chest-art, .chest-stage { display: grid; place-items: center; position: relative; perspective: 500px; min-height: 160px; background: radial-gradient(ellipse at 50% 55%, rgb(var(--chest-rgb) / .21), transparent 72%), #101a2c; }
.shop-price { position: absolute; top: .8rem; left: .8rem; color: rgb(var(--chest-rgb)); background: #0e182a; border: 1px solid rgb(var(--chest-rgb) / .26); border-radius: 8px; padding: .35rem .6rem; font-weight: 900; font-size: .85rem; }
.chest-art { display: block; width: 82px; height: 64px; position: relative; filter: drop-shadow(0 12px 13px #030815b0); }
.chest-base, .chest-lid { position: absolute; left: 0; right: 0; border: 3px solid rgb(var(--chest-rgb)); background: linear-gradient(90deg, transparent 15%, rgb(var(--chest-rgb) / .8) 15% 21%, transparent 21% 79%, rgb(var(--chest-rgb) / .8) 79% 85%, transparent 85%), linear-gradient(150deg, rgb(var(--chest-rgb) / .48), var(--chest-dark) 65%); }
.chest-base { bottom: 1px; height: 41px; border-radius: 5px 5px 9px 9px; box-shadow: inset 0 -8px 12px #0005; }
.chest-lid { top: 4px; height: 25px; border-radius: 16px 16px 3px 3px; transform-origin: center bottom; }
.chest-lock { position: absolute; z-index: 1; left: 50%; top: 20px; transform: translateX(-50%); width: 20px; height: 23px; display: grid; place-items: center; border-radius: 5px; background: rgb(var(--chest-rgb)); color: #131425; box-shadow: 0 1px 8px rgb(var(--chest-rgb) / .65); }
.shard-odds { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0 0 .85rem; padding: 0; }
.shard-odds li { display: flex; gap: .4rem; align-items: center; padding: .35rem .55rem; border: 1px solid #40506a; border-radius: 8px; font-size: .84rem; }
.shard-odds li span { color: rgb(var(--chest-rgb)); }
.shop-chest details { margin: .65rem 0 1rem; font-size: .86rem; }
.shop-chest details ul { list-style: none; padding: 0; }
.shop-chest details li { display: flex; gap: .6rem; justify-content: space-between; padding: .25rem .15rem; }
.shop-chest .primary-button { background: rgb(var(--chest-rgb)); color: #141321; }
.chest-reveal { width: min(415px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.35rem; border: 1px solid rgb(var(--chest-rgb) / .55); border-radius: 24px; background: #131e32; color: #edf2ff; text-align: center; box-shadow: 0 22px 80px #080b15cc; }
.chest-reveal::backdrop { background: #050a14ba; backdrop-filter: blur(4px); }
.chest-reveal h2 { margin: .3rem 0 1rem; }
.chest-stage { min-height: 146px; overflow: hidden; border-radius: 16px; }
.chest-stage .chest-art { scale: 1.35; }
.chest-stage.is-spinning .chest-art { animation: chest-spin 1.05s cubic-bezier(.35,.05,.55,1) infinite; }
.chest-stage.is-open .chest-art { filter: drop-shadow(0 0 20px rgb(var(--chest-rgb) / .85)); }
.chest-stage.is-open .chest-lid { animation: chest-open .48s ease-out both; }
.chest-stage.is-open .chest-lock { opacity: 0; }
.chest-reveal [role="status"] { margin: .9rem 0; }
.chest-reward-hero { display: inline-block; font-size: 2rem; animation: chest-reward .42s ease-out both; }
.chest-reveal [data-chest-close] { min-height: 44px; min-width: 120px; }
@keyframes chest-spin { from { transform: rotateY(0deg) translateY(0); } 48% { transform: rotateY(180deg) translateY(-16px); } to { transform: rotateY(360deg) translateY(0); } }
@keyframes chest-open { from { transform: translateY(0); } to { transform: translateY(-14px) rotate(-12deg); } }
@keyframes chest-reward { from { transform: translateY(5px) scale(.75); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 440px) { .shop-chest { grid-template-columns: 1fr; } .shop-chest-art { min-height: 115px; } }
@media (prefers-reduced-motion: reduce) { .chest-stage.is-spinning .chest-art, .chest-stage.is-open .chest-lid, .chest-reward-hero { animation: none; } .chest-stage.is-open .chest-lid { transform: translateY(-14px) rotate(-12deg); } }

.sticky-section-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  padding: .5rem .7rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #455473;
  background: #10192af5;
  border-radius: 0 0 12px 12px;
}
.sticky-section-nav .app-nav { flex: 1; margin: 0; min-width: min(100%, 220px); }
.shop-toolbar .shop-balance { padding: .35rem .75rem; margin: 0; }
.shop-toolbar .shop-balance strong { font-size: 1.3rem; }
.shop-toolbar .shop-balance small { display: none; }
.achievement-list { display: grid; gap: 12px; margin: 1rem 0; }
.achievement-card { padding: 1rem; border: 1px solid #405372; border-radius: 14px; background: #16233a; }
.achievement-card h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.achievement-card progress { display: block; width: min(100%, 460px); margin: .6rem 0; accent-color: #b99bff; }

.shop-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.shop-screen h1 { margin-bottom: .85rem; }
.shop-tile {
  --chest-rgb: 134 195 224;
  --chest-dark: #23496b;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
  color: #edf2ff;
  background: #152035;
  border: 1px solid rgb(var(--chest-rgb) / .38);
  border-radius: 16px;
}
.shop-tile[data-tint="leaders"] { --chest-rgb: 109 222 193; --chest-dark: #1e685e; }
.shop-tile[data-tint="epic"] { --chest-rgb: 207 155 255; --chest-dark: #633888; }
.shop-tile[data-tint="legendary"] { --chest-rgb: 255 205 110; --chest-dark: #8a531f; }
.shop-tile:hover, .shop-tile:focus-visible { border-color: rgb(var(--chest-rgb)); }
.shop-tile-art {
  display: grid;
  place-items: center;
  height: clamp(100px, 14vw, 186px);
  background: radial-gradient(ellipse at 50% 66%, rgb(var(--chest-rgb) / .30), transparent 65%), #101827;
}
.shop-tile-art .chest-art { scale: 1.65; }
[data-tint="leaders"] .chest-lid { inset-inline: -5px; top: 0; height: 29px; border-radius: 20px 20px 4px 4px; }
[data-tint="leaders"] .chest-lock { border-radius: 50%; }
[data-tint="epic"] .chest-base { clip-path: polygon(0 0, 100% 0, 89% 100%, 11% 100%); }
[data-tint="epic"] .chest-lid { inset-inline: -6px; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
[data-tint="epic"] .chest-lock { rotate: 0deg; border-radius: 11px 11px 50% 50%; }
.shop-tile-label { display: grid; align-content: space-between; justify-items: center; gap: .5rem; padding: .85rem .45rem; }
.shop-tile-label strong { font-size: clamp(.875rem, 2vw, 1.15rem); line-height: 1.2; }
.shop-tile-price { color: rgb(var(--chest-rgb)); font-size: .9rem; font-weight: 750; }
.shop-factions > .shop-tiles { margin-top: .8rem; }
.shop-chest-details .shop-chest-content { display: grid; gap: .75rem; text-align: left; padding: .85rem 0 0; }
.shop-chest-details .shard-odds { margin: 0; }
.shop-chest-details details { color: #cad3e9; }
.shop-chest-details details li { display: flex; justify-content: space-between; margin: .3rem 0; }
.shop-chest-details .primary-button, .shop-chest-details form button { width: 100%; min-height: 44px; }
@media (max-width: 620px) {
  .shop-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .shop-tile-art .chest-art { scale: 1.18; }
  .shop-tile-label { gap: .36rem; padding: .65rem .35rem; }
}
.shop-chest-details details ul { padding: 0; max-height: min(13rem, 30dvh); overflow-y: auto; }
.shop-chest-details .primary-button { background: rgb(var(--chest-rgb)); color: #141321; }


.obelisk-shelf .shop-tiles { margin-top:.75rem; }
.obelisk-item { min-width:0; padding:.75rem; border:1px solid #485983; border-radius:12px; background:#17233a; overflow-wrap:anywhere; }
.obelisk-item h3 { margin:.2rem 0; }
.obelisk-item .quiet-button { display:block; margin-top:.45rem; min-height:44px; white-space:normal; }
.shop-toolbar .shop-overflow { border-color:#9b80ce; }
.shop-toolbar .shop-overflow strong { color:#d4baff; }
