/* «Очки клуба» и «Магазин клуба» (club-shop.js, 0.31): the shop, the profile's points, the hall's looks.
   0.38: the shop is a page (club-shop-page.js) — a wide window with a head, categories, a grid of tiles and the open
   card beside them; ≤ 979 px the categories are a row of tabs; ≤ 760 px a full-screen sheet, the card over the grid. */
.club-modal { position: fixed; inset: 0; z-index: 2500; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .66); backdrop-filter: blur(3px); padding: 20px; }
.club-modal.hidden { display: none; }
.club-card { position: relative; display: flex; flex-direction: column; width: min(1120px, 100%); height: min(820px, calc(100dvh - 40px)); overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); color: var(--text); }
.club-close { position: absolute; top: 12px; right: 12px; z-index: 6; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.club-close:hover, .club-close:focus-visible { color: var(--text); background: var(--line); }
/* the head: the title and the points, the history, how points come */
.club-top { position: relative; z-index: 5; flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 12px 64px 12px 20px; border-bottom: 1px solid var(--line); }
.club-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-right: auto; font-size: 18px; }
.club-bal { color: var(--accent); font-weight: 700; font-size: 16px; }
.club-bal small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.club-star { color: var(--accent); }
.club-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.club-tabs button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.club-tabs button:hover { color: var(--text); }
.club-tabs button.on { background: var(--line); color: var(--text); }
.club-tabs button:focus-visible, .club-earn-btn:focus-visible, .club-cat:focus-visible, .club-back:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.club-earn-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.club-earn-btn:hover, .club-earn-btn[aria-expanded="true"] { border-color: var(--accent); }
.club-earn-q { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--accent); font-size: 12px; font-weight: 800; }
.club-earn-panel { position: absolute; top: calc(100% + 6px); right: 20px; width: min(430px, calc(100% - 40px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.club-earn-panel[hidden], .club-earn-btn[hidden] { display: none; }
/* the body: categories | tiles | the open card */
.club-body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 216px minmax(0, 1fr) 440px; grid-template-areas: "cats tiles detail"; }
.club-body > [hidden] { display: none !important; }
.club-body[data-mode="full"] { display: block; overflow-y: auto; overscroll-behavior: contain; }
.club-full { max-width: 760px; margin: 0 auto; padding: 16px 20px 28px; }
.club-cats { grid-area: cats; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding: 14px 10px; border-right: 1px solid var(--line); }
.club-cat { position: relative; flex: none; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.club-cat:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.club-cat[aria-pressed="true"] { color: var(--text); background: rgba(229, 160, 13, .12); border-color: rgba(229, 160, 13, .35); }
.club-cat-ico { width: 22px; flex: none; text-align: center; font-size: 16px; line-height: 1; }
.club-cat.mine .club-cat-ico { color: var(--ok); font-weight: 800; }
.club-cat-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-cat-c { color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.club-cat.mine { margin-top: 13px; }
.club-cat.mine::before { content: ''; position: absolute; top: -8px; left: 12px; right: 12px; border-top: 1px solid var(--line); }
.club-tiles { grid-area: tiles; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 28px; }
.club-grid-h { margin: 2px 2px 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; margin-bottom: 20px; }
.club-tile { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); cursor: pointer; }
.club-tile:hover { border-color: rgba(229, 160, 13, .45); }
.club-tile.sel { border-color: var(--accent); background: rgba(229, 160, 13, .07); }
.club-tile.note { cursor: default; }
.club-tile-art { position: relative; display: grid; place-items: center; height: 72px; margin-bottom: 4px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 34px; line-height: 1; }
.club-tile[data-cat="looks"] .club-tile-art { background: rgba(183, 153, 255, .13); }
.club-tile[data-cat="fx"] .club-tile-art { background: rgba(229, 160, 13, .13); }
.club-tile[data-cat="sounds"] .club-tile-art { background: rgba(90, 200, 250, .13); }
.club-tile[data-cat="showcase"] .club-tile-art { background: rgba(62, 207, 122, .12); }
.club-tile[data-cat="gifts"] .club-tile-art { background: rgba(255, 120, 150, .13); }
.club-tile[data-cat="friday"] .club-tile-art { background: rgba(88, 101, 242, .16); }
.club-tile-pv { display: grid; place-items: center; max-width: calc(100% - 16px); pointer-events: none; }
.club-tile-nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; font-weight: 800; }
.club-tile-em { font-size: 36px; line-height: 1; }
.club-tile-tt { max-width: 100%; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-tile-md svg { display: block; width: 42px; height: 42px; }
.club-tile-ok { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #06210f; font-size: 13px; font-style: normal; font-weight: 800; }
.club-tile-name { font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.club-tile-price { color: var(--accent); font-size: 13px; font-weight: 700; }
.club-tile-st, .club-tile-how { font-size: 12.5px; line-height: 1.38; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.club-tile-st.ok { color: var(--ok); }
.club-tile-how { -webkit-line-clamp: 3; margin-bottom: 4px; }
.club-tile-go { margin-top: auto; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; }
.club-tile:hover .club-tile-go, .club-tile.sel .club-tile-go { border-color: var(--accent); }
.club-tile-go:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.club-tiles > .club-note { margin: 0 2px; }
.club-detail { grid-area: detail; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 28px; border-left: 1px solid var(--line); background: rgba(0, 0, 0, .14); }
.club-detail-top { display: none; }
/* one card shows at a time: club-shop-page.js adds the rule for the open one (#club-open-style) */
.club-items .club-item { display: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.club-items [data-aside] { display: none !important; }
.club-items .club-item:focus { outline: none; }
.club-items .club-item > .club-item-head { font-size: 18px; }
.club-items .club-item > .club-item-head .club-item-ico { font-size: 24px; }
/* the purchase confirmation in place (club-shop-page.js; the buttons share player.js's .cf-* look) */
.club-item.confirming .club-buy { display: none !important; }
.club-confirm { margin-top: 12px; padding: 12px 12px 14px; border: 1px solid var(--accent); border-radius: 12px; background: rgba(229, 160, 13, .08); }
.club-confirm .cf-sub { margin-top: 4px; }
.club-confirm .cf-btns { margin-top: 12px; }
.club-confirm .cf-btns button { min-height: 46px; font-size: 15px; font-weight: 700; }
.club-confirm .cf-ok { flex: 1.5; }
/* the cards (the open one) */
.club-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 14px; margin-bottom: 12px; background: rgba(255, 255, 255, .015); }
.club-item-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.club-item-ico { font-size: 18px; line-height: 1; }
.club-price { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.club-item-how { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 6px 0 10px; }
.club-note { color: var(--muted); font-size: 13.5px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); margin: 6px 0; }
.club-note.ok { color: var(--text); border-color: rgba(62, 207, 122, .45); }
.club-note.small { font-size: 12.5px; padding: 6px 10px; }
.club-film-q { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 15px; }
.club-film-q:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.club-films { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.club-films:empty { display: none; }
.club-film { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.club-film:hover, .club-film:focus-visible { background: var(--line); }
.club-film.on { border-color: var(--accent); background: rgba(229, 160, 13, .1); }
.club-film-p { flex: none; width: 32px; height: 46px; border-radius: 5px; overflow: hidden; background: var(--panel-2); }
.club-film-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.club-film-t small, .club-picked small { color: var(--muted); }
.club-picked { margin: 8px 0 2px; font-weight: 600; font-size: 14px; }
.club-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.club-emoji { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 22px; line-height: 1; cursor: pointer; }
.club-emoji:hover, .club-emoji:focus-visible { background: var(--line); }
.club-emoji.on { border-color: var(--accent); background: rgba(229, 160, 13, .14); }
.club-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.club-swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 3px var(--panel); }
.club-swatch.on { border-color: var(--text); }
.club-swatch:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.club-preview-row { margin: 10px 0 2px; }
.club-preview.react-who { font-size: 13px; padding: 3px 10px 3px 3px; }
.club-preview.react-who img { width: 20px; height: 20px; }
.club-buy { display: block; width: 100%; min-height: 46px; margin-top: 12px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #1a1205; font-size: 15px; font-weight: 700; cursor: pointer; }
.club-buy:disabled { opacity: .55; cursor: default; background: var(--panel); color: var(--muted); border-color: var(--line); }
.club-buy:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.club-earn { color: var(--muted); font-size: 13px; line-height: 1.5; }
.club-earn b { color: var(--text); font-size: 13.5px; }
.club-earn ul { margin: 6px 0 4px; padding-left: 18px; }
.club-hist { list-style: none; margin: 0; padding: 0; }
.club-h { display: flex; align-items: baseline; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.club-h:last-child { border-bottom: 0; }
.club-h-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-h-d { color: var(--muted); font-size: 12px; white-space: nowrap; }
.club-h-p { min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.club-h-p.plus { color: var(--ok); }
.club-h-p.minus { color: var(--muted); }
.club-full .club-h { padding: 10px 4px; font-size: 14.5px; }
.club-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
/* the profile: somebody else's (and one's own) ★ badge — n113 (0.66.4): one's own wallet block is gone, the shop is in the header */
.pp-sub .club-badge { margin-left: 12px; font-weight: 700; color: var(--text); }
/* the hall: the signature emoji flying with the name and the face */
.club-sig { display: inline-block; margin-left: 3px; font-size: 1.15em; line-height: 1; animation: clubSigIn .5s ease-out both; }
@keyframes clubSigIn { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .club-sig { animation: none; } }
/* a narrower window: the categories become a row of tabs over the grid and the card */
@media (max-width: 979px) {
  .club-body { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "cats cats" "tiles detail"; }
  .club-cats { flex-direction: row; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 8px 14px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .club-cats::-webkit-scrollbar { display: none; }
  .club-cat { gap: 7px; min-height: 40px; padding: 0 12px; border-color: var(--line); border-radius: 999px; }
  .club-cat-n { overflow: visible; }
  .club-cat.mine { margin-top: 0; }
  .club-cat.mine::before { display: none; }
}
/* a phone: a full-screen sheet; two tiles a row; the open card slides over the grid, «Назад» brings the grid back */
@media (max-width: 760px) {
  .club-modal { padding: 0; align-items: stretch; }
  .club-card { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .club-close { top: 6px; right: 6px; width: 44px; height: 44px; }
  .club-top { gap: 8px; padding: 10px 14px; }
  .club-head { flex: 1 0 100%; min-height: 34px; align-items: center; padding-right: 44px; font-size: 17px; }
  .club-tabs { flex: 1; }
  .club-tabs button { flex: 1; min-height: 44px; }
  .club-earn-btn { min-width: 46px; min-height: 46px; padding: 0 10px; justify-content: center; }
  .club-earn-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .club-earn-panel { left: 10px; right: 10px; width: auto; }
  .club-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cats" "tiles"; }
  .club-cats { padding: 8px 12px; }
  .club-cat { min-height: 44px; }
  .club-tiles { padding: 12px 12px 28px; }
  .club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .club-tile-art { height: 60px; font-size: 30px; }
  .club-tile-how { display: none; }
  .club-tile-go { min-height: 44px; }
  .club-detail { position: absolute; inset: 0; z-index: 4; padding: 0 14px 28px; border-left: 0; background: var(--panel); transform: translateX(104%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  .club-body[data-view="item"] .club-detail { transform: none; visibility: visible; transition: transform .22s ease; }
  .club-detail-top { position: sticky; top: 0; z-index: 2; display: flex; margin: 0 -14px 12px; padding: 6px 8px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .club-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
  .club-full { padding: 12px 14px 28px; }
}
/* a short window (a phone on its side): the whole screen, a thinner head and row of tabs */
@media (max-height: 500px) {
  .club-modal { padding: 0; }
  .club-card { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .club-top { padding-top: 6px; padding-bottom: 6px; }
  .club-close { top: 4px; }
  .club-cats { padding-top: 6px; padding-bottom: 6px; }
}
/* a finger: every target of the page at least 44 px, whatever the width */
@media (pointer: coarse) {
  .club-cat, .club-tile-go, .club-tabs button, .club-earn-btn, .club-close, .club-back { min-height: 44px; }
  .club-close { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .club-detail { transition: none !important; } }

/* ---- 0.58 shop: the registry's tiles (shop-kit.js / shop-items.js) — a real preview, where it shows, state chips; the
   search and filters; galleries as links; one look for the cards' option pickers; a sticky buy bar ---------------- */
.club-body { grid-template-columns: 200px minmax(0, 1fr) 400px; }
.club-cat-ico { display: grid; place-items: center; width: 24px; height: 24px; }
.club-cat-ico .shop-pi, .club-grid-hi .shop-pi { width: 24px; height: 24px; }
.shop-pi { display: block; object-fit: contain; pointer-events: none; user-select: none; }
.shop-li { display: block; flex: none; }
.club-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.club-grid-h { display: flex; align-items: center; gap: 8px; }
.club-grid-hi { display: grid; place-items: center; width: 24px; height: 24px; }
.club-tile-art { height: 86px; overflow: hidden; }
.club-tile[data-cat="avatar"] .club-tile-art { background: rgba(183, 153, 255, .13); }
.club-tile[data-cat="name"] .club-tile-art { background: rgba(245, 197, 66, .11); }
.club-tile[data-cat="pet"] .club-tile-art { background: rgba(62, 207, 122, .11); }
.club-tile[data-cat="hall"] .club-tile-art { background: rgba(229, 160, 13, .13); }
.club-tile[data-cat="sounds"] .club-tile-art { background: rgba(90, 200, 250, .13); }
.club-tile[data-cat="profile"] .club-tile-art { background: rgba(120, 180, 255, .11); }
.club-tile[data-cat="friends"] .club-tile-art { background: rgba(255, 120, 150, .13); }
.club-tile[data-cat="club"] .club-tile-art { background: rgba(88, 101, 242, .16); }
.club-tile[data-cat="season"] .club-tile-art { background: radial-gradient(ellipse at 50% 0%, rgba(255, 190, 110, .22), rgba(255, 255, 255, .04) 70%); }
.club-tile-pv { max-height: 82px; }
.club-tile-pv .shop-face, .club-tile-pv .club-face { flex: none; }
.club-tile-ico { display: grid; place-items: center; }
.club-tile-ico .shop-pi { width: 56px; height: 56px; }
.club-tile-ok { color: #06210f; }
.club-tile-sn { position: absolute; top: 6px; left: 6px; display: grid; place-items: center; width: 22px; height: 22px; font-style: normal; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.club-tile-sn svg, .club-tile-sn img { width: 18px; height: 18px; }
.club-tile-where { color: var(--text); opacity: .78; font-size: 12.5px; line-height: 1.3; }
.club-tile-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.club-tile-chips .club-tile-st { -webkit-line-clamp: 1; }
.shop-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5; color: var(--muted); background: rgba(255, 255, 255, .06); }
.shop-chip > span { overflow-wrap: anywhere; }
.shop-chip > svg { align-self: flex-start; margin-top: 3px; }
.shop-chip.own { color: var(--ok); background: rgba(62, 207, 122, .12); }
.shop-chip.soon { color: #ffb74a; background: rgba(255, 166, 0, .14); }
.shop-chip.lock { color: #c9cfdb; background: rgba(255, 255, 255, .08); }
.shop-chip.season { color: #ffd59a; background: rgba(255, 170, 70, .14); }
.club-tile.lock .club-tile-pv { opacity: .55; filter: saturate(.6); }
.club-tile.soon { border-color: rgba(255, 166, 0, .45); }
.shop-play { position: absolute; top: 52px; right: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(11, 13, 18, .82); color: var(--text); cursor: pointer; }
.shop-play svg { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; }
.shop-play:hover { border-color: var(--accent); color: var(--accent); }
.shop-play:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* the previews */
.shop-face { display: inline-grid; place-items: center; width: var(--fs); height: var(--fs); border-radius: 50%; overflow: hidden; background: #2b3040; }
.shop-face > img { width: 100%; height: 100%; object-fit: cover; }
.shop-ini { font-style: normal; font-weight: 800; font-size: calc(var(--fs) * .38); color: var(--text); }
.shop-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.shop-pill .club-tile-nm { font-size: 14px; }
.shop-pill .club-tile-em { font-size: 22px; }
.shop-stack { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 100%; }
.shop-stack .club-tile-nm { font-size: 18px; }
.shop-stack .club-tile-tt { font-size: 12px; padding: 3px 10px; }
.club-tile-pv .cpet:not(.pstuff-pet .cpet) { width: 70px !important; height: 70px !important; }
.shop-head-ico { display: inline-grid; place-items: center; }
.shop-head-ico .shop-pi { width: 30px; height: 30px; }
.shop-pair { display: flex; align-items: flex-end; gap: 4px; }
.shop-pair .pstuff-ic img { width: 34px; height: 34px; }
.shop-snd { position: relative; display: grid; place-items: center; }
.shop-snd .shop-pi { width: 52px; height: 52px; }
.shop-eq { position: absolute; left: -18px; bottom: 2px; display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.shop-eq b { width: 3px; height: 30%; border-radius: 2px; background: rgba(90, 200, 250, .85); }
.shop-eq b:nth-child(2) { height: 70%; } .shop-eq b:nth-child(3) { height: 45%; } .shop-eq b:nth-child(4) { height: 85%; }
.shop-mprof { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 6px; width: 118px; padding: 26px 8px 8px; border-radius: 10px; background: rgba(13, 15, 20, .82); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.shop-mprof-h { position: absolute; inset: 0 0 auto; height: 20px; background: repeating-linear-gradient(90deg, #2a2f3c 0 9px, #12151c 9px 12px); }
.shop-mprof.cover .shop-mprof-h { height: 26px; background: linear-gradient(120deg, #5865f2, #e5a00d 60%, #ff7896); }
.shop-mprof .club-tile-nm { font-size: 12px; }
.shop-mprof-strip { grid-column: 1 / -1; display: flex; gap: 3px; }
.shop-mprof-strip i { flex: 1; height: 24px; border-radius: 3px; background: linear-gradient(160deg, #3a4152, #1d212b); border: 1px solid rgba(245, 197, 66, .35); }
.shop-screen { display: block; width: 116px; height: 66px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .18); overflow: hidden; }
.shop-screen-in { display: block; width: 100%; height: 100%; }
.shop-gift { display: inline-flex; align-items: center; gap: 8px; }
.shop-gift-n { color: var(--accent); font-size: 20px; font-weight: 800; }
.shop-rib { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; padding: 6px 14px; border-radius: 8px; background: linear-gradient(180deg, #7a1f2b, #4d1019); box-shadow: inset 0 0 0 2px rgba(245, 197, 66, .5); }
.shop-rib small { color: #ffd59a; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.shop-rib .club-tile-nm { font-size: 15px; }
.shop-letter { display: flex; flex-direction: column; gap: 3px; width: 112px; padding: 8px 10px; border-radius: 4px; background: #f3e8d2; color: #3b2a14; transform: rotate(-3deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.shop-letter small { font-size: 10px; font-weight: 700; font-style: italic; }
.shop-letter i { display: block; height: 3px; border-radius: 2px; background: rgba(59, 42, 20, .3); }
.shop-letter .club-tile-nm { font-size: 13px; color: #7a1f2b !important; }
.shop-clap .shop-pi { width: 60px; height: 60px; }
/* an effect: still; ~2 s on hover / focus */
.shop-loop { position: relative; display: grid; place-items: center; width: 120px; height: 78px; }
.shop-lp-b { position: absolute; left: 50%; top: 50%; font-style: normal; font-size: 15px; line-height: 1; opacity: .85; transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-30px) rotate(calc(var(--i) * -60deg)); }
.shop-lp-banner { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: linear-gradient(90deg, rgba(229, 160, 13, .5), rgba(0, 0, 0, .4)); }
.shop-lp-banner .club-tile-nm { font-size: 13px; }
.shop-lp-core { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #fff, #ffcf6a 50%, transparent 72%); }
.shop-lp-r { font-size: 26px; }
.shop-loop[data-loop="trail"] .shop-lp-b { transform: translate(calc(-50% - 14px - var(--i) * 9px), calc(-50% + var(--i) * 5px)) scale(calc(1 - var(--i) * .12)); opacity: calc(.9 - var(--i) * .13); }
@keyframes shop-lp-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-40px) rotate(calc(var(--i) * -60deg)) scale(1.1); } }
@keyframes shop-lp-in { 0% { transform: translateX(-90px); opacity: 0; } 30%, 80% { transform: none; opacity: 1; } 100% { transform: translateX(10px); opacity: 0; } }
@keyframes shop-lp-trail { 0% { transform: translate(-60px, 20px); } 100% { transform: translate(60px, -20px); } }
@keyframes shop-eq { 0%, 100% { height: 25%; } 50% { height: 95%; } }
.club-tile:is(:hover, :focus-within) .shop-loop[data-loop="burst"] .shop-lp-b, .club-tile:is(:hover, :focus-within) .shop-loop[data-loop="entrance"] .shop-lp-b { animation: shop-lp-burst 1s ease-out calc(var(--i) * .08s) 2 both; }
.club-tile:is(:hover, :focus-within) .shop-loop[data-loop="entrance"] .shop-lp-banner { animation: shop-lp-in 2s ease-out 1 both; }
.club-tile:is(:hover, :focus-within) .shop-loop[data-loop="trail"] { animation: shop-lp-trail 1s ease-in-out 2 alternate both; }
.club-tile:is(:hover, :focus-within) .shop-eq b { animation: shop-eq .5s ease-in-out calc(var(--n, 0) * .1s) 4; }
.shop-eq b:nth-child(2) { --n: 1; } .shop-eq b:nth-child(3) { --n: 2; } .shop-eq b:nth-child(4) { --n: 3; }
@media (prefers-reduced-motion: reduce) { .club-tile .shop-loop, .club-tile .shop-loop *, .club-tile .shop-eq b { animation: none !important; } }

/* the search and the filters over the grid; the galleries as links */
.shop-bar { position: sticky; top: -14px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -14px -18px 12px; padding: 12px 18px 10px; background: var(--panel-2, #1a1e27); border-bottom: 1px solid var(--line); }
.shop-q { position: relative; flex: 1 1 200px; display: flex; align-items: center; }
.shop-q-i { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.shop-q-in { width: 100%; min-height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; }
.shop-q-in:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-filter { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.shop-filter[aria-pressed="true"] { color: var(--text); background: rgba(229, 160, 13, .14); border-color: rgba(229, 160, 13, .5); }
.shop-filter:focus-visible, .shop-gal:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.shop-gals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.shop-gal { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.shop-gal small { color: var(--muted); font-weight: 600; }
.shop-gal:hover, .shop-gal.sel { border-color: var(--accent); }
.shop-gal .shop-pi { width: 26px; height: 26px; }

/* the open card: one look for the option pickers; the main action as a sticky bar */
.club-items .shop-opts-u button:not(.club-swatch) { min-height: 44px; }
.club-swatches.shop-opts-u { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 6px; }
.club-swatches.shop-opts-u .club-swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; width: auto; height: auto; min-height: 66px; padding: 7px 2px 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: none; color: var(--text); }
.club-swatches.shop-opts-u .club-swatch::before { content: ''; width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); }
.club-swatches.shop-opts-u .club-swatch.on { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.shop-opt-n { font-size: 11.5px; font-weight: 600; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.club-items .club-item > .shop-buybar { position: sticky; bottom: -28px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 0 12px; background: var(--panel-2, #1a1e27); border-top: 1px solid var(--line); box-shadow: -18px 0 0 var(--panel-2, #1a1e27), 18px 0 0 var(--panel-2, #1a1e27), 0 -10px 18px rgba(0, 0, 0, .3); } /* the sides by shadows: no overflow. bottom -28px = the scroller's bottom padding (.club-detail): stuck, the bar sits on the window's edge and nothing shows under it; a short card has no band below its bar */
.club-items .club-item > .shop-buybar .club-buy { flex: 1 1 auto; margin: 0; }
.club-item.confirming > .shop-buybar { display: none; }
.club-items .club-item > .club-confirm { position: sticky; bottom: -28px; z-index: 7; background: var(--panel-2, #1a1e27); box-shadow: 0 -10px 18px rgba(0, 0, 0, .3); }
.shop-bb-bal { flex: 1 0 100%; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.shop-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13.5px; text-align: center; }
/* the toast above the buy bar while the shop is open */
body:has(#club-modal:not(.hidden)) .toast { bottom: 108px; }

/* «Мои покупки» and the history */
.shop-hist .shop-filters { margin: 0 0 12px; }
.club-h-i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-right: 8px; }
.club-h-i .shop-pi { width: 26px; height: 26px; }
.club-full .club-h { display: flex; align-items: center; }

@media (max-width: 979px) {
  .club-body { grid-template-columns: minmax(0, 1fr) 380px; }
  .club-cats { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 34px; }
}
@media (max-width: 760px) {
  .club-body { grid-template-columns: minmax(0, 1fr); }
  .club-tile-art { height: 72px; }
  .club-tile-pv { max-height: 70px; transform: scale(.9); }
  .shop-play { top: 36px; right: 12px; }
  .shop-bar { top: -12px; margin: -12px -12px 10px; padding: 10px 12px 8px; }
  .shop-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .shop-filter { flex: none; min-height: 40px; }
  .club-items .club-item > .shop-buybar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: -14px 0 0 var(--panel-2, #1a1e27), 14px 0 0 var(--panel-2, #1a1e27), 0 -10px 18px rgba(0, 0, 0, .3); }
  .club-tile-where { font-size: 12px; }
}
@media (pointer: coarse) { .shop-filter, .shop-q-in { min-height: 44px; } }

/* --- 0.67 «Гардероб»: owned styles, «Снять», the whole dressed chip (shop-kit.js wd / dressed) ------------------------- */
.shop-opt-k { display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.35; color: var(--muted); background: rgba(255, 255, 255, .07); white-space: nowrap; }
.shop-opt-k.now { color: #10271a; background: #3ecf7a; }
.shop-opt-p { display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.35; color: #2a1c02; background: #f5b942; white-space: nowrap; } /* n86: a showpiece style's own price */
.club-items .club-item button.own:not(.now) { border-color: rgba(62, 207, 122, .4); }
.shop-wd-off { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 66px; min-height: 66px; padding: 7px 6px 5px; border-radius: 12px; border: 1px dashed var(--line); background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.shop-wd-off:hover, .shop-wd-off:focus-visible { color: var(--text); border-color: var(--text); }
.shop-wd-off:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.shop-wd-off:disabled { opacity: .5; cursor: default; }
.shop-wd-off-x { display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; }
.shop-wd-sub { margin: 12px 0 4px; font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: baseline; gap: 8px; }
.shop-wd-sub small { font-weight: 600; color: var(--accent); }
.shop-dressed { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 0 10px; padding: 14px 10px 10px; border-radius: 14px; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%), var(--panel); border: 1px solid var(--line); overflow: hidden; }
.shop-dressed-z { display: inline-flex; zoom: 2.2; padding: 9px 6px 3px; }
.shop-dressed-z .person { cursor: default; pointer-events: none; max-width: none; }
.shop-dressed-z .person:hover .av { transform: none; }
.shop-dressed-k { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .shop-dressed-z { zoom: 1.7; } }
.shop-wd-news { margin: 0 2px 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--accent); background: rgba(255, 190, 60, .07); }
.shop-wd-news b { display: block; font-size: 15px; margin-bottom: 4px; }
.shop-wd-news p { margin: 0 0 10px; color: var(--text); font-size: 13.5px; line-height: 1.45; }
.shop-wd-news-ok { min-height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.shop-wd-news-ok:hover, .shop-wd-news-ok:focus-visible { border-color: var(--text); }
.shop-wd-renewbox { margin: 0 2px 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.shop-wd-renewbox > b { display: block; font-size: 14.5px; }
.shop-wd-renewbox ul { margin: 6px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.shop-wd-renewbox .club-buy { margin-top: 10px; }
.shop-wd-short { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; text-align: center; }
.shop-wd-lastday { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(520px, calc(100vw - 24px)); /* max-content: left 50% would halve the shrink-to-fit width — five narrow lines on a phone */ padding: 10px 10px 10px 14px; border-radius: 14px; background: #1a1e27; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); color: var(--text); font-size: 13.5px; line-height: 1.35; }
.shop-wd-lastday-t { flex: 1 1 auto; }
.shop-wd-lastday-go { flex: none; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #1a1205; font: inherit; font-weight: 700; cursor: pointer; }
.shop-wd-lastday-x { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
body.companion-mode .shop-wd-lastday { display: none; }
/* n69 (§4.9) «Новинка» and «−30 %» on a tile's picture (bottom left), the «Товар недели» banner over «Все» */
.shop-mks { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; pointer-events: none; }
.shop-mk { padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: .02em; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.shop-mk.new { background: #ffd34d; color: #2a1d00; }
.shop-mk.deal { background: #ff5d73; color: #fff; }
.shop-week { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(255, 93, 115, .55); border-radius: 14px; background: linear-gradient(100deg, rgba(255, 93, 115, .22), rgba(255, 211, 77, .12)); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.shop-week:hover, .shop-week:focus-visible { border-color: #ff5d73; background: linear-gradient(100deg, rgba(255, 93, 115, .32), rgba(255, 211, 77, .18)); }
.shop-week-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.shop-week-t { display: grid; gap: 2px; min-width: 0; }
.shop-week-t small { color: #ff8a9a; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.shop-week-t b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-week-sub { opacity: .7; font-size: 12px; }
.shop-week-p { display: grid; justify-items: end; gap: 1px; white-space: nowrap; }
.shop-week-p b { font-size: 18px; }
.shop-week-p s, .shop-week-p small { opacity: .65; font-size: 12px; }
@media (max-width: 480px) { .shop-week { grid-template-columns: auto 1fr; } .shop-week-p { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; } }

/* n113 int: what one holds of «Эффекты зала» (super reactions left, the worn entrance) — a «Моё» card in one's own profile */
.pp-body > .fx-pp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(229, 160, 13, .05); font-size: 13px; color: var(--muted); }
.fx-pp-i { color: var(--text); }

/* === n113 (0.66.4): «Магазин клуба» in the header — a pill of «Киносюрприз»'s family (club-gifts-items.css .sur-hbtn), gold;
   the two sit in one group (#hdr-club), the shop first. A phone (≤ 560): the bag only, the ★ as a small badge on it; ≤ 430 the
   two make one capsule (one border, no gap) so the avatar strip keeps its 0.66.1 room as far as it can. ================== */
.hdr-club { display: inline-flex; align-items: center; gap: 8px; }
.hdr-club:not(:has(> button:not(.hidden))) { display: none; }
.shop-hbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px 0 6px; border-radius: 18px; cursor: pointer; font: 600 13px/1 inherit; font-family: inherit;
  color: #fff4e0; border: 1px solid rgba(255, 210, 120, .6); background: linear-gradient(135deg, rgba(229, 160, 13, .42), rgba(170, 95, 20, .42)); box-shadow: 0 0 12px rgba(229, 160, 13, .28); white-space: nowrap; position: relative; }
.shop-hbtn:hover { filter: brightness(1.12); }
.shop-hbtn:focus-visible { outline: 2px solid #ffd58c; outline-offset: 2px; }
.shop-hbtn.hidden { display: none; }
.shop-hbtn-ico { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; color: #ffe2a6; }
.shop-hbtn-ico svg { width: 22px; height: 22px; }
.shop-hbtn-bal { display: inline-flex; align-items: center; gap: 2px; min-height: 24px; padding: 0 8px; border-radius: 12px; background: rgba(10, 8, 4, .42); color: #ffe4a8; font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-hbtn-bal .club-star { color: #ffd25c; }
.shop-hbtn-n:empty::before { content: '…'; }
@media (max-width: 560px) {
  .shop-hbtn { padding: 0 6px; min-width: 44px; min-height: 44px; justify-content: center; }
  .shop-hbtn-t { display: none; } /* the bag only (its name and ★ are the button's label) */
  .shop-hbtn-bal { position: absolute; bottom: 0; right: -3px; min-height: 14px; padding: 0 3px; border-radius: 7px; font: 700 9px/14px system-ui, sans-serif; letter-spacing: -.2px; background: #2a1d05; border: 1px solid rgba(255, 210, 120, .7); pointer-events: none; }
  .shop-hbtn-ico { transform: translate(-2px, -3px); } /* the bag a little up-left, the ★ number under its corner */
  .shop-hbtn-bal .club-star { display: none; }
}
@media (max-width: 430px) {
  /* n113 strip: the room the capsule took back from the chrome around it (gaps, the count's padding), the targets stay 44 */
  html body header { column-gap: 3px; }
  html #status { gap: 2px; }
  html #status #count { padding: 4px 0; min-width: 0; }
  .hdr-club { gap: 0; border-radius: 22px; border: 0; box-shadow: inset 0 0 0 1px rgba(255, 210, 120, .55), 0 0 12px rgba(229, 160, 13, .22); background: linear-gradient(135deg, rgba(229, 160, 13, .3), rgba(150, 60, 200, .4)); }
  .hdr-club > .shop-hbtn, .hdr-club > .sur-hbtn { min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none; box-shadow: none; border-radius: 22px; }
  .hdr-club > .shop-hbtn:not(.hidden) + .sur-hbtn:not(.hidden) { box-shadow: inset 1px 0 0 rgba(255, 210, 120, .35); border-radius: 0 22px 22px 0; } /* the divider drawn inside: no extra pixel */
  .hdr-club > .shop-hbtn:has(+ .sur-hbtn:not(.hidden)) { border-radius: 22px 0 0 22px; }
}
@media (pointer: coarse) { .hdr-club > .shop-hbtn, .hdr-club > .sur-hbtn { min-height: 44px; border-radius: 22px; } } /* a touch landscape (844×390) keeps the labels and gets the 44-px target */
/* the media's other option (n113 shots, html[data-hdr-fold="icons"]): two separate 44-px icon buttons at ≤ 430 */
@media (max-width: 430px) {
  html[data-hdr-fold="icons"] .hdr-club { gap: 6px; border: 0; background: none; box-shadow: none; }
  html[data-hdr-fold="icons"] .hdr-club > .shop-hbtn { min-width: 44px; padding: 0 6px; border: 1px solid rgba(255, 210, 120, .6); border-radius: 22px; background: linear-gradient(135deg, rgba(229, 160, 13, .42), rgba(170, 95, 20, .42)); }
  html[data-hdr-fold="icons"] .hdr-club > .sur-hbtn { min-width: 44px; padding: 0 6px; border: 1px solid rgba(255, 200, 120, .55); border-radius: 22px; background: linear-gradient(135deg, rgba(150, 60, 200, .55), rgba(230, 110, 70, .55)); }
}
