/* Header: title on the left, a line-up of characters on the right standing on the tabs line */
.shop-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; gap: 0 32px; padding-top: clamp(32px, 6vh, 64px); }
.shop-intro { padding-bottom: 28px; }
.shop-head h1 { margin-bottom: 12px; }
.shop-head .sub { margin-bottom: 0; }
.shop-intro .sponsor-open { margin-top: 20px; }
/* the characters of home.css's line-up (.roster-char), cut out, on their own stage of light, smaller */
.shop-roster {
    position: relative; display: flex; justify-content: center; align-items: flex-end; height: clamp(220px, 21vw, 320px); overflow-x: clip;
    -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 99%); mask-image: linear-gradient(180deg, #000 74%, transparent 99%);
}
.shop-roster .roster-char { --w: clamp(160px, 15vw, 230px); margin: 0 calc(var(--w) * -0.24) 0 calc(var(--w) * (var(--push, 0) - 0.24)); }
.shop-roster .roster-char:nth-child(1), .shop-roster .roster-char:nth-child(5) { --dim: 0.8; z-index: 0; }
.shop-roster .roster-char:nth-child(2), .shop-roster .roster-char:nth-child(4) { --w: clamp(176px, 16.5vw, 252px); --dim: 0.92; z-index: 1; }
.shop-roster .roster-char:nth-child(3) { --w: clamp(200px, 19vw, 290px); --dim: 1; z-index: 2; }
.shop-roster .roster-char:nth-child(6), .shop-roster .roster-char:nth-child(7) { display: none; }
/* sized by the width of their own box: on 1440 px the five measured by the screen were 710 px across a box of 539
   and lost the outer two figures at its edges (only the empty sides of their pictures may go past it) */
@supports (width: 1cqw) {
    .shop-roster { container-type: inline-size; }
    .shop-roster .roster-char { --w: min(33cqw, 230px); }
    .shop-roster .roster-char:nth-child(2), .shop-roster .roster-char:nth-child(4) { --w: min(37cqw, 252px); }
    .shop-roster .roster-char:nth-child(3) { --w: min(42cqw, 290px); }
}
@media (max-width: 900px) {
    .shop-head { grid-template-columns: minmax(0, 1fr); }
    .shop-roster { display: none; }
}

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 12px 16px; font: 600 15px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold); }
.tabs button small { font: italic 700 16px var(--num); color: var(--muted); margin-left: 4px; }
.panel { padding-bottom: clamp(56px, 9vh, 96px); }
.panel-note { color: var(--muted); font-size: 14px; margin: 0 0 20px; max-width: 46em; }

/* VIP comparison */
.vip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 16px; }
.vip-head p { margin: 0; color: var(--muted); max-width: 32em; }
.term { min-width: min(100%, 360px); }
.term-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.term-row span:first-child { color: var(--muted); }
.term-row b { font-weight: 600; }
.term small { color: var(--muted); font-size: 13px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.vip-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.vip-table th, .vip-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.vip-table th:first-child, .vip-table td:first-child { text-align: left; color: var(--soft); width: 34%; }
.vip-table thead th { font: italic 800 17px/1.2 var(--wide); padding-top: 20px; padding-bottom: 16px; color: var(--text); vertical-align: bottom; }
.vip-table thead th:first-child { font: 500 13px var(--sans); color: var(--muted); }
/* Tier heads stand on rising steps (the same steps as the ranks ladder and the top podium) */
.vip-table thead th.tier { padding-bottom: 0; }
.tier-name { display: block; font: italic 800 18px/1.2 var(--wide); }
.tier-hp { display: inline-flex; align-items: baseline; gap: 5px; margin-top: 8px; color: var(--muted); font: 500 13px var(--sans); }
.tier-hp b { font: italic 800 44px/0.9 var(--num); color: var(--text); font-variant-numeric: tabular-nums; }
.tier-from { display: block; margin-top: 6px; color: var(--muted); font: 400 13px var(--sans); }
.tier-from b { font: italic 800 17px/1 var(--num); color: var(--text); }
.tier-step { display: block; height: calc(8px + var(--i) * 12px); margin: 14px 10px 0; background: var(--raised); border-top: 1px solid var(--line-strong); border-radius: 3px 3px 0 0; }
/* Feature rows: a small icon before each line */
.feat { display: inline-flex; align-items: flex-start; gap: 10px; }
.feat .ico { flex: none; margin-top: 2px; color: var(--muted); }
.vip-table td .feat > span { display: block; }
.vip-table td.n { font: italic 800 26px/1 var(--num); padding-top: 11px; padding-bottom: 9px; }
.vip-table .yes { color: var(--text); font-weight: 600; }
.vip-table .no { color: var(--dim); }
.vip-table td .note { display: block; color: var(--muted); font-size: 13px; }
.vip-table tfoot td { border-bottom: 0; padding-top: 18px; padding-bottom: 20px; vertical-align: top; }
.vip-table .tp s { color: var(--muted); font-size: 14px; }

.btn-add { margin-top: 10px; width: 100%; border: 1px solid rgba(242, 183, 48, 0.5); background: transparent; color: var(--text); padding: 10px 8px; border-radius: 8px; font: 500 14px var(--sans); cursor: pointer; white-space: nowrap; }
.btn-add:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
/* the advised VIP tier: the only gold button of the table, and a white tag over its name */
.btn-add.is-pick:not(.in-cart) { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.btn-add.is-pick:not(.in-cart):hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.tier-tag { display: inline-block; margin-bottom: 6px; padding: 4px 7px; border-radius: 4px; background: var(--text); color: var(--bg); font: italic 800 10px/1 var(--wide); letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }
.vm-head .tier-tag { margin: 0 0 0 6px; }
.vip-trust { margin: 16px 0 0; max-width: 62em; color: var(--muted); font-size: 14px; }
/* The link to the offer in this line is quiet (the owner, 24.11.2026: white and underlined, it drew the eye).
   At rest it reads as part of the sentence; on hover and on keyboard focus it gets an underline and turns a
   lighter grey. */
.vip-trust a { color: inherit; text-decoration: none; text-underline-offset: 3px; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .vip-trust a:hover { color: var(--soft); text-decoration: underline; } }
.vip-trust a:focus-visible { color: var(--soft); text-decoration: underline; }

/* ── the price of a tier for the chosen term (every view) ── */
.vip-price { display: block; }
.vip-price b { font: italic 800 30px/1 var(--num); font-variant-numeric: tabular-nums; }
.vip-price s { color: var(--muted); font-size: 14px; margin-left: 8px; }

/* the cards (chosen by the owner on 25.11.2026): four tiers, each with what it adds to the one before it */
.vip-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.vc { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 18px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--panel); }
.vc.is-pick { border-color: rgba(242, 183, 48, 0.65); }
.vc .tier-tag { position: absolute; top: 0; left: 18px; translate: 0 -55%; margin: 0; }
.vc-top { display: grid; justify-items: start; }
.vc .tier-name { font-size: 20px; }
.vc .tier-hp { margin-top: 6px; }
.vc .tier-hp b { font-size: 40px; }
.vc-buy { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.vc-buy .btn-add { margin-top: 12px; padding: 11px 8px; }
.vc-plus { margin: 16px 0 8px; color: var(--muted); font-size: 13px; }
.vc-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.vc-perks li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 9px; align-items: start; color: var(--soft); font-size: 14px; line-height: 1.3; }
.vc-perks .ico { color: var(--gold); margin-top: 0; }
.vc-perks em { font-style: normal; font-weight: 700; color: var(--text); white-space: nowrap; }
.vip-compare { display: flex; align-items: center; gap: 8px; margin: 14px auto 0; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--soft); font: 500 14px var(--sans); cursor: pointer; transition: border-color 150ms ease, color 150ms ease; }
.vip-compare::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate 200ms ease, translate 200ms ease; }
.vip-compare[aria-expanded="true"]::after { rotate: -135deg; translate: 0 2px; }
@media (hover: hover) and (pointer: fine) { .vip-compare:hover { color: var(--text); border-color: rgba(242, 183, 48, 0.55); } }
.vip-compare + .table-scroll { margin-top: 14px; }
.vip-desk .vip-table .tp .vip-price b { font-size: 36px; }

@media (max-width: 1100px) {
    .vip-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .vip-compare, .vip-compare::after { transition: none; }
}
.btn-add.in-cart { background: var(--raised); border-color: var(--line-strong); color: var(--soft); }
.btn-add.in-cart:hover { background: var(--raised); color: var(--text); border-color: var(--line-strong); }

/* Skins */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 20px; }
.search { flex: 1 1 240px; max-width: 360px; background: var(--well); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; color: var(--text); font: 400 15px var(--sans); }
.search:focus { outline: none; border-color: rgba(242, 183, 48, 0.6); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 6px 12px; font: 500 13px var(--sans); color: var(--soft); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.sort { margin-left: auto; background: var(--well); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 10px; color: var(--text); font: 400 14px var(--sans); }

/* Characters large: four in a row on a computer, the name on the picture like a poster */
.skins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.skin-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 24px; transition: border-color 150ms ease; }
.skin-card.is-target { border-color: rgba(242, 183, 48, 0.7); }
.skin-card .pic { position: relative; aspect-ratio: 1; background: var(--well); overflow: hidden; }
.skin-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.skin-card .badge { position: absolute; left: 10px; top: 10px; background: rgba(10, 10, 11, 0.85); border-radius: 4px; padding: 3px 7px; font: italic 800 10px/1.2 var(--wide); color: var(--soft); }
.skin-card .pic h3 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 44px 16px 12px; background: linear-gradient(rgba(8, 8, 9, 0), rgba(8, 8, 9, 0.9) 70%); font: italic 800 19px/1.2 var(--wide); }
@media (hover: hover) and (pointer: fine) {
    .skin-card:hover { border-color: var(--line-strong); }
    .skin-card:hover .pic img { transform: scale(1.03); }
}
.skin-card .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.skin-card .buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skin-card .price { font: italic 800 30px/1 var(--num); white-space: nowrap; }
.skin-card .price s { font: 400 13px var(--sans); color: var(--muted); margin-right: 6px; vertical-align: 6px; }
.skin-card .btn-add { width: auto; margin: 0; padding: 9px 14px; }
.empty-search { color: var(--muted); padding: 32px 0; }

/* Credits and one-time items */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
/* the groups of the last tab: the profile look, lifting a penalty */
.packs-title { margin: 0 0 12px; font: italic 800 22px/1.2 var(--wide); text-transform: uppercase; }
.packs.is-one { grid-template-columns: minmax(0, 460px); }
.packs + .packs-title { margin-top: 36px; }
.packs-title + .panel-note { margin-top: -4px; margin-bottom: 14px; }
.pack { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.pack.is-target { border-color: rgba(242, 183, 48, 0.7); }
.pack .amount { font: italic 800 44px/0.9 var(--num); }
.pack h3 { font: italic 800 18px/1.2 var(--wide); }
.pack p { margin: 0; color: var(--soft); font-size: 14px; }
.pack .rate { color: var(--muted); font-size: 13px; }
.pack .buy { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pack .price { font: italic 800 30px/1 var(--num); white-space: nowrap; }
.pack .price small { display: block; margin-top: 4px; font: 400 13px var(--sans); color: var(--muted); }
.pack .btn-add { width: auto; margin: 0; padding: 9px 14px; }
/* «Стиль»: the preview and the link lead to its page with the fitting room (/style, 26.11.2026) */
.style-teaser-link { display: block; color: inherit; text-decoration: none; transition: filter 150ms ease; }
@media (hover: hover) and (pointer: fine) { .style-teaser-link:hover { filter: brightness(1.1); } }
.style-more { align-self: flex-start; margin: -4px 0 4px; color: var(--cn-gold-hi, var(--gold)); font: 600 14px/1.3 var(--sans); text-underline-offset: 3px; }

@media (max-width: 720px) {
    .sort { margin-left: 0; }
    .skins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .skin-card .body { padding: 10px; gap: 8px; }
    .skin-card .pic h3 { font-size: 14px; padding: 32px 10px 8px; }
    .skin-card .buy { flex-direction: column; align-items: stretch; }
    .skin-card .price { font-size: 26px; }
    .skin-card .btn-add { width: 100%; }
}

/* Sponsor window */
.sponsor-dialog { width: min(640px, calc(100vw - 32px)); background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 24px; }
.sponsor-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.sponsor-dialog h2 { font-size: clamp(22px, 2.4vw, 30px); margin-right: 32px; }
.sponsor-close { position: absolute; right: 12px; top: 10px; }
.sponsor-close button { background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; line-height: 1; }
.sponsor-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.sponsor-tier { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; }
.sponsor-tier b { font: italic 800 30px/1 var(--num); }
.sponsor-tier span { color: var(--soft); font-size: 14px; }
.sponsor-list h3 { font: 600 15px var(--sans); margin: 0 0 6px; }
.sponsor-list p { color: var(--soft); margin: 0; }
@media (max-width: 560px) { .sponsor-tiers { grid-template-columns: minmax(0, 1fr); } }

/* One tier with everything it gives: on phones, with the tier buttons over it */
.vm-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.vm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.vm-card h2 { font: italic 900 22px/1.1 var(--wide); text-transform: uppercase; margin: 0; }
.vm-head .tier-hp { margin-top: 0; }
.vm-head .tier-hp b { font-size: 36px; }
.vm-card li .feat { align-items: center; }
.vm-card li .feat .ico { margin-top: 0; }
.vm-card ul { list-style: none; margin: 0; padding: 0; }
.vm-card li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.vm-card li span { color: var(--text); }
.vm-card li small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.vm-card li em { font-style: normal; font-weight: 600; color: var(--gold); white-space: nowrap; }
.vm-card li .vm-n { font: italic 800 22px/1 var(--num); color: var(--text); }
.vm-card li.off span, .vm-card li.off em { color: var(--dim); }
.vm-buy { display: grid; gap: 12px; padding-top: 14px; }
.vm-buy .btn-add { width: 100%; padding: 13px; margin: 0; }
.vm-buy small { display: block; color: var(--muted); font-size: 12.5px; }
.vm-buy .vip-price b { font: italic 800 32px/1 var(--num); }
.vm-buy .vip-price s { color: var(--muted); font-size: 14px; margin-left: 6px; }

/* VIP on phones: tier buttons and the one card instead of the cards of a computer */
.vip-mobile { display: none; }
@media (max-width: 720px) {
    .vip-desk { display: none; }
    .vip-mobile { display: grid; gap: 12px; }
    .vm-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
    .vm-pills button { border: 0; background: none; color: var(--muted); font: italic 800 14px/1 var(--wide); padding: 11px 4px; border-radius: 9px; cursor: pointer; }
    .vm-pills button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
}
