/* Shop (owner 2026-12-01: «як магазин Fortnite / Mobile Legends»): «Пропозиція дня» hero + showcase grid.
   Rarity = the collection's card metals; crisp shapes, no glow, no outline frames. Classes sh-*; rating rt-*. */
.sh { display: grid; gap: 22px; padding-top: 22px; min-width: 0; }
.sh .rar-bronze { --rar: #e9e4d8; --rar-ink: #23262E; }
.sh .rar-silver { --rar: #7fc2ad; --rar-ink: #23262E; }
.sh .rar-gold { --rar: #EFC54B; --rar-ink: #23262E; }
.sh .rar-platinum { --rar: #b9c6ef; --rar-ink: #23262E; }
.sh .rar-diamond { --rar: #1f9e6e; --rar-ink: #F8F6F0; }

/* header: title + wallet */
.sh-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.sh-head h1 { display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.sh-head h1 .ico { width: 1.1em; height: 1.1em; font-size: inherit; }
.sh-wallet { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; padding: 8px 18px 8px 10px; border-radius: 16px; background: var(--card); }
.sh-wallet b { font: 800 22px Unbounded, sans-serif; }
.sh-wallet small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.3; }
.sh-gem { width: 34px; height: 34px; object-fit: contain; flex: none; }

/* hero: the offer of the day / try-on */
.sh-hero { display: grid; grid-template-columns: minmax(240px, 400px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px; border-radius: 28px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--rar) 26%, var(--card)) 0 38%, var(--card) 38%); transition: background .3s; min-width: 0; }
.sh-stage { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--ink2); }
.sh-stage[data-room="none"] .roombg { background:
  repeating-conic-gradient(from 0deg at 50% 62%, color-mix(in srgb, var(--rar) 30%, var(--ink2)) 0 10deg, var(--ink2) 10deg 20deg); }
.sh-stage .shopcube { position: absolute; inset: 0; }
.sh-stage.tried .shopcube { animation: sh-pop .42s var(--ease); }
@keyframes sh-pop { from { transform: scale(.9); opacity: .4; } }
.sh-sframe { position: absolute; left: 14px; bottom: 14px; width: 96px; }
.sh-sframe .frimg, .sh-fr .frimg { display: block; width: 100%; }
.sh-info { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.sh-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 800 12px/1.3 Unbounded, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.sh-eyebrow .ico { width: 26px; height: 26px; font-size: 26px; }
.sh-title { font-size: clamp(30px, 4vw, 56px); line-height: 1.05; overflow-wrap: anywhere; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { padding: 5px 12px; border-radius: 10px; background: var(--card2); font-size: 14px; font-weight: 500; }
.sh-chip[class*="rar-"] { background: var(--rar); color: var(--rar-ink); font: 800 12px/1.6 Unbounded, sans-serif; letter-spacing: .04em; }
.sh-note { margin: 0; color: var(--muted); max-width: 34em; }
.sh-hact { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }

/* price plate & status */
.sh-plate { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 8px; border-radius: 13px;
  background: var(--milk); color: var(--ink); font: 800 16px Unbounded, sans-serif; white-space: nowrap; transition: transform .15s; }
.sh-plate:hover { transform: translateY(-2px); }
.sh-plate .sh-gem { width: 30px; height: 30px; }
.sh-plate.eq { padding: 6px 16px; background: var(--edu); color: var(--milk); font-size: 14px; }
.sh-plate.big { min-height: 56px; font-size: 22px; padding: 8px 22px 8px 10px; border-radius: 16px; }
.sh-plate.big .sh-gem { width: 40px; height: 40px; }
.sh-plate.eq.big { font-size: 16px; padding: 8px 22px; }
.sh-own { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 13px; background: var(--card2); color: var(--muted); font: 800 13px Unbounded, sans-serif; white-space: nowrap; }
.sh-own.on { background: color-mix(in srgb, var(--edu) 35%, var(--card2)); color: var(--milk); }
.sh-own.lock img { width: 22px; height: 22px; }
.sh-act .sh-own { white-space: normal; justify-content: center; text-align: center; font-size: 12px; }
.sh-own.big { min-height: 56px; font-size: 15px; padding: 8px 20px; }

/* showcase grid */
.sh-h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--t-h2); margin-bottom: 14px; }
.sh-h2 .ico { width: 34px; height: 34px; font-size: 34px; }
.sh-h2 small { font: 400 15px Rubik, sans-serif; color: var(--muted); }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.sh-card { display: grid; grid-template-rows: auto 1fr auto; border-radius: 20px; overflow: hidden; background: var(--card); min-width: 0; transition: transform .15s; }
.sh-card:hover, .sh-card.cur { transform: translateY(-3px); }
.sh-card.cur .sh-meta { background: var(--card2); }
.sh-prev { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .86; padding: 0; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rar) 46%, var(--ink2)), color-mix(in srgb, var(--rar) 14%, var(--ink2))); }
.sh-prev::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--rar); }
.sh-room { position: absolute; inset: 0; } .sh-room .roombg { position: absolute; inset: 0; }
.sh-cube { position: relative; width: 62%; transition: transform .25s var(--ease); }
.sh-cube svg { display: block; width: 100%; height: auto; }
.sh-card:hover .sh-cube, .sh-card.cur .sh-cube { transform: rotate(-6deg) scale(1.05); }
.sh-fr { position: relative; width: 58%; }
.sh-other img { width: 72px; height: 72px; }
.sh-eq { position: absolute; right: 12px; bottom: 16px; display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.sh-eq i { width: 6px; border-radius: 2px; background: var(--milk); height: 40%; animation: sh-eq 1.1s ease-in-out infinite alternate; }
.sh-eq i:nth-child(2) { animation-delay: -.3s; height: 80%; } .sh-eq i:nth-child(3) { animation-delay: -.6s; height: 55%; }
.sh-eq i:nth-child(4) { animation-delay: -.9s; height: 100%; } .sh-eq i:nth-child(5) { animation-delay: -.45s; height: 30%; }
@keyframes sh-eq { to { transform: scaleY(.35); } }
.sh-eq i { transform-origin: bottom; }
.sh-rar { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 8px; background: var(--rar); color: var(--rar-ink); font: 800 10px/1.5 Unbounded, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.sh-try { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(21,23,27,.78); color: var(--milk); font-size: 12px; font-weight: 500; opacity: 0; transition: opacity .15s; }
.sh-prev:hover .sh-try, .sh-prev:focus-visible .sh-try { opacity: 1; }
.sh-meta { display: grid; gap: 2px; padding: 12px 14px 4px; min-width: 0; transition: background .15s; }
.sh-meta b { font: 800 15px/1.25 Unbounded, sans-serif; overflow-wrap: anywhere; }
.sh-meta small { color: var(--muted); font-size: 13px; }
.sh-act { display: flex; padding: 10px 14px 14px; }
.sh-act > * { flex: 1; }
.sh-card.owned .sh-prev { filter: saturate(.85); }

@media (max-width: 760px) {
  .sh { gap: 18px; padding-top: 14px; }
  .sh-hero { grid-template-columns: 1fr; gap: 16px; padding: 12px; border-radius: 22px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--rar) 26%, var(--card)) 0 52%, var(--card) 52%); }
  .sh-stage { aspect-ratio: 4 / 3; }
  .sh-info { padding: 0 6px 8px; }
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sh-meta { padding: 10px 10px 2px; } .sh-meta b { font-size: 13px; }
  .sh-act { padding: 8px 10px 10px; }
  .sh-plate { font-size: 15px; padding-right: 12px; } .sh-plate .sh-gem { width: 26px; height: 26px; }
  .sh-own { font-size: 11px; padding: 6px 8px; white-space: normal; text-align: center; justify-content: center; }
  .sh-wallet small { display: none; }
  .sh-try { display: none; }
}

/* ------------------------------------------------------------------ rating (profile «Рейтинг», «Змагання» ladder) */
.rt { display: grid; gap: 16px; min-width: 0; }
.rt-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rt-card { display: grid; align-content: start; gap: 6px; padding: 18px 20px; border-radius: 20px; background: var(--card); min-width: 0; }
.rt-card small { color: var(--muted); font: 800 12px Unbounded, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.rt-card > b { font: 800 clamp(28px, 3vw, 40px)/1.1 Unbounded, sans-serif; }
.rt-card > b em { font-style: normal; color: var(--arcade); }
.rt-card .muted { font-size: 14px; line-height: 1.4; }
.rt-elo { background: var(--arcade); color: var(--milk); } .rt-elo small, .rt-elo .muted { color: rgba(248,246,240,.82); }
.rt-bar { display: block; height: 10px; border-radius: 5px; background: var(--card2); overflow: hidden; }
.rt-bar i { display: block; height: 100%; background: var(--music); border-radius: inherit; }
.rt-h { font-size: 20px; margin-top: 8px; }
.rt-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rt-ladder li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--card); min-width: 0; }
.rt-ladder b { font: 800 14px Unbounded, sans-serif; overflow-wrap: anywhere; }
.rt-ladder small { color: var(--muted); font-size: 12px; }
.rt-ladder li.done { background: var(--card2); }
.rt-ladder li.on { background: var(--milk); color: var(--ink); } .rt-ladder li.on small { color: rgba(35,38,46,.7); }
.rt-tours { display: grid; gap: 8px; }
.rt-tour { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--card); text-decoration: none; min-width: 0; }
.rt-tour .ico { width: 36px; height: 36px; font-size: 36px; flex: none; }
.rt-tour span { display: grid; min-width: 0; } .rt-tour b { font: 800 15px Unbounded, sans-serif; overflow-wrap: anywhere; } .rt-tour small { color: var(--muted); font-size: 13px; }
.rt-tour em { margin-left: auto; font-style: normal; font-weight: 700; white-space: nowrap; }
.rt > .btn, .rt-pub > .btn { justify-self: start; }
.rt .btn .ico { width: 24px; height: 24px; font-size: 24px; }
.rt-pub { margin: 26px 0 8px; gap: 12px; }
.rt-pub p { margin: 0; }
@media (max-width: 760px) {
  .rt-ladder { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .rt-tour em { display: none; }
}
