/* Donat do'koni — bosh sahifadagi #donat bo'limi (void.css ustiga) */
.shop { position: relative; z-index: 6; padding: 60px 16px 120px; scroll-margin-top: 60px;
  background: radial-gradient(ellipse 60% 25% at 50% 0%, rgba(123, 47, 242, .35), transparent 70%),
    radial-gradient(ellipse 50% 30% at 85% 55%, rgba(46, 197, 247, .1), transparent 70%), #05020f; }
.shop .wrap { max-width: 1100px; }
.shop { overflow: hidden; }

/* ---------- Animatsiyali Shard ---------- */
.shard { position: relative; display: inline-block; width: var(--s, 48px); height: var(--s, 48px); }
.shard img { width: 100%; height: 100%; image-rendering: pixelated; display: block; filter: drop-shadow(0 0 calc(var(--s, 48px) / 5) rgba(214, 77, 255, .65));
  animation: shardFloat 3s ease-in-out infinite; animation-delay: var(--delay, 0s); }
/* Yaltirash: kristall ustidan yorug'lik o'tadi */
.shard::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: var(--shard-mask) center / 100% 100% no-repeat; mask: var(--shard-mask) center / 100% 100% no-repeat;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .95) 48%, transparent 60%) 0 0 / 300% 100%;
  animation: shardShine 2.6s ease-in-out infinite, shardFloat 3s ease-in-out infinite; animation-delay: var(--shine, 0s), var(--delay, 0s); }

.pile { position: relative; height: 120px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; }
.pile .shard { position: absolute; }
.sparkle { position: absolute; width: 8px; height: 8px; pointer-events: none; z-index: 2;
  background: linear-gradient(#fff, #fff) center / 2px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 2px no-repeat;
  animation: twinkle 1.4s ease-in-out forwards; filter: drop-shadow(0 0 4px var(--sky-light)); }

/* Hero */
.shop-hero { text-align: center; padding: 30px 0 20px; }
.hero-shard { position: relative; width: 210px; height: 210px; margin: 0 auto 26px; display: grid; place-items: center; }
.hero-shard::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 77, 255, .45), rgba(46, 197, 247, .15) 50%, transparent 70%); animation: pulse 3s ease-in-out infinite; }
.hero-shard .main { --s: 128px; }
.hero-shard .main img { animation: shardFloat 3s ease-in-out infinite, itemspin 6s linear infinite; }
.hero-shard .orbit { position: absolute; inset: 0; animation: rot 10s linear infinite; }
.hero-shard .orbit .shard { --s: 26px; position: absolute; }
.hero-shard .orbit .shard:nth-child(1) { top: -4px; left: calc(50% - 13px); }
.hero-shard .orbit .shard:nth-child(2) { bottom: 18px; left: 6px; }
.hero-shard .orbit .shard:nth-child(3) { bottom: 18px; right: 6px; }
.shop-hero .mc-title { font-size: clamp(36px, 8vw, 72px); }
.shop-hero .sub { max-width: 620px; margin: 16px auto 0; color: #d6cfee; font-size: 18px; }

.shop-section { margin-top: 90px; scroll-margin-top: 90px; }
.shop-section > h2 { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 30px; text-align: center;
  font: 400 clamp(28px, 5vw, 44px) var(--title); color: #fff; text-shadow: 0 4px 0 var(--purple), 0 7px 0 #000; }
.shop-section > h2 img { width: 40px; height: 40px; image-rendering: pixelated; }

/* ---------- Shards paketlari ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.pack { position: relative; text-align: center; padding: 22px 18px 20px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pack:hover { transform: translateY(-6px); border-color: var(--purple-2); box-shadow: inset 0 0 0 3px rgba(214, 77, 255, .35), 10px 10px 0 rgba(0, 0, 0, .45), 0 0 40px rgba(164, 60, 245, .35); }
.pack:hover .shard img { animation-duration: 1.2s; }
.pack .amount { font: 400 34px var(--title); color: #fff; text-shadow: 0 3px 0 var(--purple), 0 5px 0 #000; line-height: 1.1; }
.pack .unit { font: 13px var(--hud); color: var(--sky-light); letter-spacing: .1em; margin: 4px 0 14px; }
.price { display: inline-block; font-weight: 700; font-size: 20px; color: #fff; padding: 4px 14px; background: rgba(0, 0, 0, .45); border: 2px solid #000; margin-bottom: 14px; }
.price small { font-size: 14px; color: #c9c0e6; font-weight: 600; }
.pack .mc-btn, .rank .mc-btn { width: 100%; }

/* ---------- Ranklar ---------- */
.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; align-items: stretch; }
.rank { position: relative; display: flex; flex-direction: column; padding: 30px 24px 24px; --tc: #e0985a; --tc2: #8a4f22; }
.rank.silver { --tc: #e3e8f0; --tc2: #7d8696; }
.rank.gold { --tc: #ffd23f; --tc2: #b07c00; }
.rank { /* aylanuvchi rangli chegara */
  border: 4px solid transparent;
  background: linear-gradient(#120a26, #120a26) padding-box,
    conic-gradient(from var(--ang, 0deg), var(--tc), var(--tc2), var(--tc), var(--purple-2), var(--tc)) border-box;
  animation: angspin 4s linear infinite; }
.rank.gold::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 210, 63, .12) 50%, transparent 60%) 0 0 / 300% 100%; animation: shardShine 3.5s ease-in-out infinite; }
.rank { --sc: #ffd23f; }
.rank.gold { --sc: #ff7ad9; }
.rank-icon { position: relative; width: 80px; margin: -6px auto 12px; }
.crown { width: 80px; height: 80px; image-rendering: pixelated; display: block;
  animation: crownBob 2.4s ease-in-out infinite; filter: drop-shadow(0 0 18px var(--sc)) drop-shadow(4px 4px 0 rgba(0, 0, 0, .5)); }
.rank-plus { position: absolute; top: -6px; right: -14px; width: 28px; height: 28px; display: grid; place-items: center;
  font: 900 18px/1 var(--num); color: #ffd23f; background: #160b2b; border: 2px solid #ffd23f; border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 210, 63, .5); animation: crownBob 2.4s ease-in-out infinite; }
.rank h3 { margin: 0; text-align: center; font: 400 44px var(--title); color: var(--tc); text-shadow: 0 4px 0 var(--tc2), 0 7px 0 #000; }
.rank .price { display: block; text-align: center; margin: 12px auto 18px; width: max-content; }
.perks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; }
.perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #e6e0f5; }
.perks li img { width: 18px; height: 18px; flex: none; margin-top: 2px; image-rendering: pixelated; }
.rank.gold .mc-btn { background: linear-gradient(180deg, #ffd23f, #c98f00); color: #2a1a00; text-shadow: none; }
.rank.silver .mc-btn { background: linear-gradient(180deg, #f0f3f8, #8e97a8); color: #1b1f29; text-shadow: none; }
.rank.bronze .mc-btn { background: linear-gradient(180deg, #e9a868, #9a5a28); }

/* Crate keys */
.soon-card { text-align: center; padding: 30px; }
.soon-card .tag { font-size: 15px; padding: 4px 12px; }

/* Xarid tartibi */
.buy-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; counter-reset: s; }
.buy-steps .panel { position: relative; padding: 34px 18px 18px; font-weight: 600; }
.buy-steps .num { position: absolute; top: -22px; left: 18px; width: 44px; height: 44px; display: grid; place-items: center;
  font: 400 24px var(--title); color: #fff; background: linear-gradient(135deg, var(--sky), var(--purple)); border: 4px solid #000; }
.contact-row { text-align: center; margin-top: 28px; }

/* ---------- Xarid oynasi ---------- */
dialog.buy { width: min(460px, calc(100vw - 32px)); padding: 0; border: 4px solid #000; background: #120a26; color: #f4efff;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .08), 12px 12px 0 rgba(0, 0, 0, .6); }
dialog.buy::backdrop { background: rgba(5, 2, 15, .75); backdrop-filter: blur(4px); }
dialog.buy[open] { animation: popIn .3s cubic-bezier(.3, 1.4, .5, 1); }
.buy-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: rgba(123, 47, 242, .25); border-bottom: 3px solid #000; }
.buy-head img { width: 52px; height: 52px; image-rendering: pixelated; }
.buy-head h3 { margin: 0; font: 400 26px var(--title); }
.buy-head .price { margin: 4px 0 0; font-size: 16px; padding: 2px 10px; }
.buy-body { padding: 18px 20px 20px; }
.buy-body label { display: block; font-size: 14px; color: #c9c0e6; margin-bottom: 6px; }
.buy-body input { width: 100%; padding: 10px 12px; font: 600 16px var(--body); color: #fff; background: rgba(0, 0, 0, .4); border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #3a2d57; }
.buy-body input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sky); }
.buy-body .hint { font-size: 13px; color: #f05264; min-height: 18px; margin: 4px 0 8px; }
.msg { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Consolas, monospace; padding: 10px 12px; background: rgba(0, 0, 0, .45); border: 2px dashed #3a2d57; color: #d6cfee; margin-bottom: 14px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-actions .mc-btn { text-align: center; }
.mc-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.buy-note { font-size: 13px; color: #8f86b3; margin: 12px 0 0; }
.close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; font-size: 20px; line-height: 1; color: #fff; background: rgba(0, 0, 0, .4);
  border: 2px solid #000; cursor: pointer; }

/* Nav dagi Donat tugmasi (bosh sahifada ham) */
.nav-donat { display: inline-flex; align-items: center; gap: 6px; }
.nav-donat img { width: 18px; height: 18px; image-rendering: pixelated; animation: shardFloat 2s ease-in-out infinite; }

@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes angspin { to { --ang: 360deg; } }
@keyframes shardFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes shardShine { 0%, 55% { background-position: 120% 0; } 100% { background-position: -60% 0; } }
@keyframes twinkle { 0% { transform: scale(0) rotate(0); opacity: 0; } 40% { transform: scale(1.2) rotate(45deg); opacity: 1; } 100% { transform: scale(0) rotate(90deg); opacity: 0; } }
@keyframes crownBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } }

@media (max-width: 820px) {
  .buy-actions { grid-template-columns: 1fr; }
}
