:root {
  --bg: #090a0f;
  --bg2: #11131a;
  --card: #161821;
  --card2: #1d202b;
  --border: #2b2f3d;
  --text: #f7f8fb;
  --muted: #9298aa;
  --accent: #ff4655;
  --accent-dim: #b3323e;
  --accent-soft: #ff46551f;
  --green: #3ddc84;
  --gold: #ffc53d;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --surface-soft: rgba(255, 255, 255, .025);
  --surface-raised: #191c26;
  --line-soft: rgba(255, 255, 255, .075);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 18px 48px rgba(0, 0, 0, .28);
  --shadow-float: 0 24px 70px rgba(0, 0, 0, .48);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

button, input, select, textarea { font: inherit; color: inherit; }
:where(button, input, select, textarea, [role="button"]):focus:not(:focus-visible) { outline: none; }
:where(button, input, select, textarea, [role="button"]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* ---------- SVG-іконки ---------- */
.ic {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.ic-sm { width: 16px; height: 16px; }
.ic-xl { width: 44px; height: 44px; stroke-width: 1.6; }
.muted-ic { color: var(--muted); }
/* зірочка-заповнена, коли активна */
.ic-star-fill { fill: currentColor; stroke: currentColor; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  color-scheme: dark;
}

#screen-main { min-height: 100vh; min-height: 100dvh; position: relative; isolation: isolate; }
#screen-main::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(72% 44% at 84% -5%, color-mix(in srgb, var(--accent) 21%, transparent), transparent 70%),
    radial-gradient(58% 42% at -12% 58%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 74%),
    linear-gradient(180deg, #0d0f16 0%, var(--bg) 34%, #08090d 100%);
}
#screen-main::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  opacity: .42;
}

/* коли відкрита модалка — фон не скролиться (BUG-030) */
body.modal-open { overflow: hidden; position: fixed; width: 100%; }

.hidden { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); font-size: 14px; line-height: 1.45; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.screen { min-height: 100vh; min-height: 100dvh; padding: 24px; text-align: center; }

.logo-big {
  font-size: 40px; font-weight: 900; letter-spacing: 2px;
  color: var(--accent);
}
.logo-big span { color: var(--text); }

.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- skeleton loaders ---------- */
.sk-list { display: flex; flex-direction: column; gap: 10px; }
/* скелетон магазину повторює геометрію сітки 2×2 (і одну колонку на вузьких) */
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
@media (max-width: 370px) { .sk-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.sk-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
}
.sk-block, .sk-line {
  display: block;
  background: linear-gradient(100deg, var(--card2) 25%, #2a2a38 42%, var(--card2) 60%);
  background-size: 220% 100%; animation: sk-shimmer 1.25s ease-in-out infinite;
}
.sk-row, .sk-match-card { display: flex; align-items: center; gap: 12px; padding: 12px; }
.sk-avatar { width: 48px; height: 48px; border-radius: 11px; flex-shrink: 0; }
.sk-grow { flex: 1; min-width: 0; }
.sk-side { width: 62px; flex-shrink: 0; }
.sk-line { height: 10px; border-radius: 6px; margin: 7px 0; }
.sk-line-lg { width: 78%; }
.sk-line-md { width: 58%; }
.sk-line-sm { width: 38%; }
.sk-line-xs { width: 24%; }
.sk-side .sk-line { width: 100%; margin-left: auto; }
.sk-skin-card { padding: 16px; min-height: 150px; }
.sk-skin-img { width: 100%; height: 84px; border-radius: 12px; margin-bottom: 12px; }
.sk-detail-head { min-height: 92px; padding: 20px; margin-bottom: 12px; }
.sk-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.sk-stat { min-height: 72px; padding: 12px; }
.sk-stat .sk-line { width: 70%; margin-left: auto; margin-right: auto; }
@keyframes sk-shimmer { to { background-position-x: -220%; } }
@media (prefers-reduced-motion: reduce) {
  .sk-block, .sk-line { animation: none; }
}

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: rgba(9, 10, 15, .86);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px) saturate(135%);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
}
.brand {
  position: relative; padding-left: 13px; font-size: 20px; font-weight: 950;
  letter-spacing: 1.5px; color: var(--accent); text-shadow: 0 0 24px var(--accent-soft);
}
.brand::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px;
  border-radius: 99px; background: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 72%, transparent);
}
.brand span { color: var(--text); }

.icon-btn {
  background: var(--surface-raised); border: 1px solid var(--line-soft); color: var(--text);
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border-radius: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.055);
  transition: transform .18s var(--ease-out), border-color .18s, background .18s, opacity .18s;
}
.icon-btn:active { transform: scale(0.94); }
.settings-view #btn-settings { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.82); }

/* ---------- вкладки ---------- */
.tab { padding: 24px 16px calc(128px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; position: relative; }
.tab:not(.hidden) { animation: tab-in .3s var(--ease-out) both; }
.tab h2 {
  font-size: clamp(27px, 7.4vw, 31px); line-height: 1.02; letter-spacing: -.045em;
  font-weight: 900; margin-bottom: 18px; text-wrap: balance;
}
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }

.store-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.store-head h2 { margin: 0; }
.store-head-right { display: flex; align-items: center; gap: 10px; }

/* панель балансу валют */
.wallet-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.wallet-bar:empty { display: none; }
.wallet-chip {
  display: flex; align-items: center; gap: 6px; flex: 1;
  background: var(--surface-raised); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 9px 11px; min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 20px rgba(0,0,0,.14);
}
.wallet-chip img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.wallet-chip .amt { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.wallet-chip .cur { font-size: 11px; color: var(--muted); font-weight: 700; }

/* Night Market — тимчасова подія між балансом і постійними вкладками магазину */
.night-market-entry {
  position: relative; width: 100%; min-height: 92px; margin: 0 0 14px; padding: 12px 13px;
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  overflow: hidden; cursor: pointer; touch-action: manipulation; text-align: left; color: #fff;
  border: 1px solid rgba(218, 173, 255, .42); border-radius: 20px;
  background:
    radial-gradient(80% 170% at 100% 0, rgba(255, 190, 92, .25), transparent 58%),
    radial-gradient(75% 190% at 0 100%, rgba(183, 98, 255, .36), transparent 65%),
    linear-gradient(125deg, #211332 0%, #3a1d50 54%, #171525 100%);
  box-shadow: 0 16px 36px rgba(15, 6, 28, .42), inset 0 1px 0 rgba(255,255,255,.13);
  transition: transform .22s var(--ease-out), border-color .22s, box-shadow .22s;
}
.night-market-entry::after {
  content: ""; position: absolute; inset: -75% -24%; pointer-events: none;
  background: linear-gradient(105deg, transparent 43%, rgba(255,255,255,.12) 50%, transparent 57%);
  transform: translateX(-48%); animation: nm-entry-sheen 5.5s ease-in-out infinite;
}
@keyframes nm-entry-sheen { 0%, 66%, 100% { transform: translateX(-48%); } 82% { transform: translateX(48%); } }
.night-market-entry.active {
  border-color: #efcfff;
  background:
    radial-gradient(80% 170% at 100% 0, rgba(255, 190, 92, .3), transparent 58%),
    radial-gradient(75% 190% at 0 100%, rgba(183, 98, 255, .46), transparent 65%),
    linear-gradient(125deg, #28163c 0%, #47235f 54%, #1c172b 100%);
  box-shadow: 0 17px 42px rgba(88, 29, 125, .4), 0 0 0 1px rgba(231,188,255,.16);
}
.night-market-entry:active { transform: scale(.987); }
.night-market-entry > * { position: relative; z-index: 1; }
.nm-entry-deck { position: relative; width: 58px; height: 62px; display: grid; place-items: center; }
.nm-entry-card {
  position: absolute; width: 34px; height: 49px; border: 1px solid rgba(255,255,255,.34);
  border-radius: 7px; background: linear-gradient(145deg, #7a3ca5, #281536);
  box-shadow: 0 5px 13px rgba(0,0,0,.32);
}
.nm-entry-card:nth-child(1) { transform: translateX(-11px) rotate(-15deg); }
.nm-entry-card:nth-child(2) { transform: translateX(11px) rotate(15deg); background: linear-gradient(145deg, #a85b7e, #3b1b3d); }
.nm-entry-card:nth-child(3) { transform: translateY(-2px); background: linear-gradient(145deg, #9c5bc6, #321845); }
.nm-entry-deck .ic { position: relative; z-index: 2; width: 17px; height: 17px; color: #ffd477; fill: currentColor; }
.nm-entry-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.nm-entry-eyebrow, .nm-head-eyebrow {
  color: #e6b7ff; font-size: 11px; line-height: 1; font-weight: 850; letter-spacing: .1em; text-transform: uppercase;
}
.nm-entry-copy strong { font-size: 18px; line-height: 1.08; letter-spacing: -.02em; }
.nm-entry-copy small { color: rgba(255,255,255,.66); font-size: 11px; line-height: 1.25; }
.nm-entry-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nm-entry-count { color: #ffe2a6; font-size: 11px; font-weight: 800; white-space: nowrap; }
.nm-entry-time {
  padding: 5px 7px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px;
  color: rgba(255,255,255,.78); background: rgba(8,6,14,.24); font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.nm-entry-chev { width: 15px; height: 15px; color: rgba(255,255,255,.58); transition: transform .2s var(--ease-out), color .2s; }
.night-market-entry.active .nm-entry-chev { color: #ffe2a6; transform: rotate(90deg); }

#night-market-content { scroll-margin-top: 82px; }

.night-market-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding: 14px 15px; border: 1px solid rgba(210, 163, 245, .27); border-radius: 18px;
  background: linear-gradient(125deg, rgba(87,39,117,.36), rgba(29,22,40,.84));
}
.night-market-head h3 { margin: 4px 0 3px; font-size: 22px; line-height: 1.05; letter-spacing: -.03em; }
#night-market-title:focus:not(:focus-visible) { outline: none; }
#night-market-title:focus-visible {
  outline: 2px solid #e6b7ff; outline-offset: 4px; border-radius: 6px;
}
.night-market-head p { color: var(--muted); font-size: 11px; line-height: 1.35; }
.nm-head-time { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; }
.nm-head-time span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.nm-head-time strong { color: #e6b7ff; font-size: 12px; font-variant-numeric: tabular-nums; }
.night-market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.night-market-offer.skin-card {
  min-width: 0; min-height: 252px; margin: 0; padding: 11px 10px 10px;
  display: flex; flex-direction: column; border-radius: 17px;
  background:
    radial-gradient(120% 90% at 50% 0, color-mix(in srgb, var(--tier) 20%, transparent), transparent 70%),
    linear-gradient(155deg, color-mix(in srgb, #21162b 92%, var(--tier)), #13121a 68%);
  border-color: color-mix(in srgb, var(--tier) 35%, #43334d);
}
.night-market-offer:nth-child(2n) { animation-delay: 55ms; }
.night-market-offer:nth-child(3n) { animation-delay: 105ms; }
.skin-card.night-market-offer.owned { opacity: 1; }
.night-market-offer .owned-corner { top: 8px; right: 8px; }
.night-market-offer .tierbar { width: 3px; }
/* знижка в кольорі теми, не в золоті (фідбек власника 2026-07-19) */
.nm-discount {
  position: absolute; z-index: 3; top: 8px; left: 9px; padding: 4px 7px;
  border-radius: 8px; color: var(--text);
  background: color-mix(in srgb, var(--accent) 24%, rgba(13, 13, 18, .84));
  border: 1px solid var(--accent);
  box-shadow: 0 4px 10px rgba(0,0,0,.3),
              0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
  font-size: 11px; line-height: 1; font-weight: 900;
}
.nm-owned-status {
  position: absolute; z-index: 3; top: 8px; right: 8px; min-height: 25px; padding: 4px 7px;
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(101, 235, 165, .35);
  border-radius: 8px; color: #b9f6d2; background: rgba(18, 92, 53, .88);
  box-shadow: 0 4px 10px rgba(0,0,0,.28); font-size: 11px; line-height: 1; font-weight: 850;
  letter-spacing: .02em; white-space: nowrap;
}
.nm-owned-status .ic { width: 12px; height: 12px; }
.nm-offer-art { height: 82px; margin: 13px 0 6px; display: flex; align-items: center; justify-content: center; }
.nm-offer-art .skin-img { width: 100%; height: 78px; margin: 0; object-fit: contain; }
.nm-offer-name {
  margin-top: 5px; min-height: 34px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  color: var(--text); font-size: 13px; line-height: 1.28; font-weight: 780;
}
.nm-offer-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; }
.nm-offer-prices { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.nm-price-old { color: #aaa9b7; font-size: 11px; line-height: 1; text-decoration: line-through; text-decoration-thickness: 1px; }
.nm-price-old .vp-ic { width: 10px; height: 10px; margin-right: 2px; }
.nm-price-new { display: flex; align-items: center; color: #ffd477; font-size: 16px; line-height: 1.1; white-space: nowrap; }
.nm-price-new .vp-ic { width: 13px; height: 13px; margin-right: 3px; background: currentColor; }
.nm-offer-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 0; }
/* значок рідкості без тексту (фідбек власника: текст «…видання» прибрано, значок лишається) */
.nm-offer-tier {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--tier) 38%, transparent); border-radius: 9px;
  background: color-mix(in srgb, var(--tier) 11%, var(--bg2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 0 16px color-mix(in srgb, var(--tier) 12%, transparent);
}
.nm-offer-tier .tier-ic { width: 17px; height: 17px; }
.night-market-offer .skin-video-btn .ic { width: 14px; height: 14px; }
.night-market-offer .star-btn .ic { width: 20px; height: 20px; }

@media (max-width: 360px) {
  .night-market-entry { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .nm-entry-deck { width: 52px; }
  .nm-entry-copy small, .nm-entry-count { display: none; }
  .nm-entry-copy strong { font-size: 16px; }
  .nm-entry-time { padding: 5px; font-size: 11px; }
  .night-market-head { align-items: flex-start; flex-direction: column; }
  .nm-head-time { flex-direction: row; align-items: center; }
  .night-market-offer.skin-card { padding-inline: 9px; }
}

@media (max-width: 370px) {
  .night-market-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .night-market-offer.skin-card { min-height: 232px; padding: 12px; }
  .nm-offer-art { height: 88px; margin-top: 12px; }
  .nm-offer-art .skin-img { height: 84px; }
  .nm-offer-name { min-height: 18px; font-size: 14px; -webkit-line-clamp: 1; }
}

.store-subnav {
  display: flex; gap: 4px; margin-bottom: 18px; padding: 4px;
  background: rgba(22, 24, 33, .92); border: 1px solid var(--line-soft);
  border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 24px rgba(0,0,0,.14);
}
.subnav-btn {
  flex: 1; min-height: 44px; padding: 10px; background: transparent; border: 1px solid transparent;
  border-radius: 14px; color: var(--muted); font-size: 13px; font-weight: 760; cursor: pointer;
  touch-action: manipulation; transition: background .18s, border-color .18s, color .18s, transform .18s var(--ease-out);
}
.subnav-btn.active {
  background: var(--accent-soft);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 21%, var(--card)), color-mix(in srgb, var(--accent) 9%, var(--card)));
  border-color: color-mix(in srgb, var(--accent) 70%, white); color: color-mix(in srgb, var(--accent) 76%, white);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 30%, transparent), 0 8px 22px color-mix(in srgb, var(--accent) 13%, transparent);
}
.subnav-btn:active { transform: scale(.975); }

/* аксесуари */
.accessory-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px; margin-bottom: 10px;
}
.accessory-card img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.accessory-card .no-icon {
  width: 56px; height: 56px; border-radius: 10px; background: var(--card2);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-size: 11px; text-align: center; flex-shrink: 0;
}
.accessory-info { flex: 1; min-width: 0; }
.accessory-type {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); margin-bottom: 2px;
}
.accessory-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accessory-cost { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); white-space: nowrap; }
.kc-ic { width: 16px; height: 16px; background: var(--muted);
  -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat; }

/* бандл — компактно, щоб на високому екрані було видно вміст без надмірного скролу (BUG-033) */
.bundle-block { margin-bottom: 20px; }
.bundle-block:last-child { margin-bottom: 0; }
.bundle-banner {
  position: relative;
  width: 100%; max-height: 130px; border-radius: 18px; overflow: hidden; margin-bottom: 10px;
  border: 1px solid var(--border); background: var(--card);
}
.bundle-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* повністю куплений бандл: банер тьмяніє, по центру велика галочка (як у ValPaw) */
.bundle-banner.owned img { filter: grayscale(.55) brightness(.5); }
.owned-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #1fae5a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.owned-center .ic { width: 24px; height: 24px; }
.bundle-title-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.bundle-title-row h3 { margin: 0; }
.bundle-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bundle-price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.bundle-price-new { color: var(--text); font-weight: 850; font-size: 18px; display: flex; align-items: center; gap: 6px; }
/* галочка на куплених позиціях бандла — без текстової пілюлі (фідбек власника) */
.bundle-item-check {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
}
.bundle-item-check .ic { width: 13px; height: 13px; }
.bundle-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-raised); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 9px 12px; margin-bottom: 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 22px rgba(0,0,0,.14);
}
.bundle-item-thumb { position: relative; flex-shrink: 0; }
.bundle-item img { width: 46px; height: 26px; object-fit: contain; flex-shrink: 0; }
.bundle-item .name { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
  font-size: 14px; font-weight: 600; }
.bundle-item .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bundle-item .price { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.bundle-item.owned { opacity: 1; }
.bundle-item.owned .bundle-item-thumb,
.bundle-item.owned .name { opacity: .46; filter: saturate(.55); }
.bundle-item.owned .bundle-item-check {
  color: #b9f6d2; background: rgba(21, 111, 62, .34); border-color: rgba(94, 235, 157, .34);
  box-shadow: 0 0 18px rgba(61,220,132,.16), inset 0 1px 0 rgba(255,255,255,.08);
}

/* ---------- VCT 2026 Team Capsules ---------- */
.store-subnav .subnav-btn {
  min-width: 0; padding-inline: 6px; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vct-hero {
  position: relative; overflow: hidden; margin-bottom: 14px; padding: 18px;
  border: 1px solid rgba(255, 198, 90, .24); border-radius: 22px;
  background:
    radial-gradient(78% 125% at 100% 0, rgba(255, 70, 85, .28), transparent 64%),
    radial-gradient(72% 110% at 0 100%, rgba(255, 196, 81, .14), transparent 70%),
    linear-gradient(145deg, #1c1e28, #101219);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.065);
}
.vct-hero::after {
  content: "VCT"; position: absolute; right: -10px; top: -22px; pointer-events: none;
  color: rgba(255,255,255,.035); font-size: 92px; font-weight: 950; letter-spacing: -7px;
}
.vct-eyebrow {
  position: relative; z-index: 1; margin-bottom: 5px; color: #ffca69;
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase;
}
.vct-hero h3 { position: relative; z-index: 1; margin: 0 0 6px; font-size: 22px; line-height: 1.15; }
.vct-hero > p {
  position: relative; z-index: 1; max-width: 330px; margin: 0;
  color: #b2b7c6; font-size: 13px; line-height: 1.45;
}
.vct-price-strip {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-top: 14px;
}
.vct-price-strip > span, .vct-detail-price > span {
  min-width: 0; padding: 9px 10px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px; background: rgba(8, 10, 15, .48);
}
.vct-price-strip small, .vct-detail-price small {
  display: block; min-height: 26px; margin-bottom: 4px; color: var(--muted);
  font-size: 10px; font-weight: 700; line-height: 1.25;
}
.vct-price-strip b, .vct-detail-price b {
  display: flex; align-items: center; color: #ffcf79; font-size: 15px; line-height: 1;
}
.vct-public-note {
  position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 7px;
  margin-top: 10px; color: #a8adbb; font-size: 10.5px; line-height: 1.35;
}
.vct-public-note .ic { margin-top: 1px; color: #ffca69; }
.vct-controls { margin-bottom: 11px; }
.vct-search {
  display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 13px;
  border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface-raised);
  color: var(--muted); transition: border-color .18s, box-shadow .18s;
}
.vct-search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 65%, white);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.vct-search input {
  width: 100%; min-width: 0; min-height: 44px; padding: 0;
  border: 0; outline: 0; background: transparent; color: var(--text);
  font-size: 14px;
}
.vct-search input::placeholder { color: var(--muted); }
.vct-region-chips {
  display: flex; gap: 6px; margin: 9px -2px 0; padding: 2px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain;
}
.vct-region-chips::-webkit-scrollbar { display: none; }
.vct-region-chip {
  flex: 0 0 auto; min-height: 36px; padding: 7px 11px;
  border: 1px solid var(--line-soft); border-radius: 999px;
  background: var(--surface-raised); color: var(--muted);
  font-size: 11px; font-weight: 800; cursor: pointer;
}
.vct-region-chip.active {
  border-color: color-mix(in srgb, var(--accent) 58%, white);
  background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 72%, white);
}
.vct-results-count { min-height: 16px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.vct-capsule-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.vct-capsule-card {
  min-width: 0; padding: 0; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid var(--line-soft); border-radius: 18px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--surface-raised) 96%, white), var(--bg2));
  box-shadow: 0 12px 30px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .18s var(--ease-out), border-color .18s, box-shadow .18s;
}
.vct-capsule-card:active { transform: scale(.98); }
.vct-card-art {
  position: relative; display: block; aspect-ratio: 1.78; overflow: hidden;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,70,85,.23), transparent 46%),
    #12141c;
}
.vct-card-art > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vct-card-art .vct-team-code {
  position: absolute; left: 8px; bottom: 7px; box-shadow: 0 5px 14px rgba(0,0,0,.38);
}
.vct-team-code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; min-height: 24px; padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px;
  background: rgba(7, 9, 14, .78); color: #fff;
  font-size: 10px; font-weight: 950; letter-spacing: .6px;
}
.vct-card-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 65px; padding: 9px 10px;
}
.vct-card-copy > span { min-width: 0; }
.vct-card-copy b {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  color: var(--text); font-size: 12.5px; font-weight: 850; line-height: 1.2;
}
.vct-card-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 9.5px; font-weight: 700; }
.vct-classic-thumb { width: 57px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.vct-grid-empty, .vct-load-error { grid-column: 1 / -1; }
.vct-load-error { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vct-load-error .btn-outline { display: inline-flex; align-items: center; gap: 7px; width: auto; }

.vct-detail-modal { overflow: hidden; padding: 16px; }
.vct-detail-banner {
  aspect-ratio: 2.9; margin: 0 -16px 13px; overflow: hidden; background: var(--card);
}
.vct-detail-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vct-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.vct-detail-head > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.vct-detail-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.vct-detail-head small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.vct-detail-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 11px; }
.vct-classic-feature {
  display: grid; grid-template-columns: 82px minmax(0, 1fr) 38px; align-items: center; gap: 9px;
  min-height: 76px; padding: 10px; margin-bottom: 8px;
  border: 1px solid rgba(255, 198, 90, .2); border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 198, 90, .075), var(--card));
}
.vct-classic-feature > img { width: 82px; height: 50px; object-fit: contain; }
.vct-classic-feature > span { min-width: 0; }
.vct-classic-feature small, .vct-detail-item small {
  display: block; color: var(--muted); font-size: 9.5px; font-weight: 750; text-transform: uppercase;
}
.vct-classic-feature b {
  display: -webkit-box; overflow: hidden; margin-top: 3px;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.2;
}
.vct-detail-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.vct-detail-item {
  display: flex; min-width: 0; min-height: 116px; flex-direction: column; align-items: center;
  gap: 6px; padding: 9px 7px; text-align: center;
  border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card);
}
.vct-detail-item img { width: 58px; height: 58px; object-fit: contain; }
.vct-detail-item > span { min-width: 0; width: 100%; }
.vct-detail-item b {
  display: -webkit-box; overflow: hidden; margin-top: 3px;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10.5px; line-height: 1.2;
}
.vct-detail-item em {
  display: block; margin-top: 4px; color: #ffca69; font-size: 8.5px; font-style: normal; line-height: 1.2;
}
.vct-buy-note {
  display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
  border-radius: 14px; background: color-mix(in srgb, var(--green) 7%, var(--card));
}
.vct-buy-note .ic { color: var(--green); }
.vct-buy-note span { display: flex; min-width: 0; flex-direction: column; }
.vct-buy-note b { color: #b9f6d2; font-size: 12px; }
.vct-buy-note small { margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.3; }

@media (hover: hover) and (pointer: fine) {
  .vct-capsule-card:hover {
    transform: translateY(-3px); border-color: rgba(255, 198, 90, .38);
    box-shadow: 0 18px 38px rgba(0,0,0,.3);
  }
}

@media (max-width: 370px) {
  .vct-capsule-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vct-card-copy { min-height: 60px; }
  .vct-hero { padding: 16px; }
}

.icon-btn.spin .ic { animation: spin 0.7s linear infinite; }

/* іконка валюти VP біля ціни */
.vp-ic {
  display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px;
  background: var(--muted);
  -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat;
}
.timer {
  font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 10px; border-radius: 10px;
}
.sub-timer-row {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin-bottom: 12px; font-size: 13px; color: var(--muted);
}
/* підпис до таймера: без нього самотній «13:35:01» не пояснював, що це */
.timer-block { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.timer-label { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
/* зірочка на час запиту — щоб не встигали натиснути двічі */
.star-btn.busy { opacity: .55; pointer-events: none; }

/* ---------- картки скінів ---------- */
.skin-card {
  position: relative;
  background: var(--surface-raised);
  background:
    radial-gradient(90% 120% at 92% -25%, color-mix(in srgb, var(--tier, var(--accent)) 16%, transparent), transparent 64%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 94%, white), var(--bg2));
  border: 1px solid var(--line-soft); border-radius: 22px;
  padding: 16px; margin-bottom: 12px; overflow: hidden;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.045);
  animation: card-in .42s var(--ease-out) both;
  transition: transform .24s var(--ease-out), border-color .24s, box-shadow .24s;
}
.skin-card:nth-of-type(2) { animation-delay: 45ms; }
.skin-card:nth-of-type(3) { animation-delay: 90ms; }
.skin-card:nth-of-type(4) { animation-delay: 135ms; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.skin-card.match {
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0,0,0,.3), 0 0 0 1px var(--accent-soft), 0 0 28px color-mix(in srgb, var(--accent) 17%, transparent);
}
.skin-card.match::after {
  content: ""; position: absolute; inset: -60% -35%; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, color-mix(in srgb, var(--accent) 18%, white) 50%, transparent 58%);
  transform: translateX(-52%); animation: wish-sheen 4.8s ease-in-out infinite;
}
@keyframes wish-sheen { 0%, 68%, 100% { transform: translateX(-52%); } 82% { transform: translateX(52%); } }
.skin-card.owned { opacity: 1; }
.skin-card.owned .skin-art,
.skin-card.owned .skin-name-row,
.skin-card.owned .skin-cost { opacity: .48; filter: saturate(.5); }
.owned-badge {
  background: rgba(21, 111, 62, .72); color: #c9f9dc; display: inline-flex; align-items: center; padding: 3px 6px;
  border: 1px solid rgba(94,235,157,.28); box-shadow: 0 0 16px rgba(61,220,132,.12);
}
.owned-badge .ic { width: 11px; height: 11px; }
/* значок "уже придбано" — прив'язаний до зображення предмета, не до тексту назви */
.owned-corner {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: #1fae5a; color: #fff; border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.owned-corner .ic { width: 13px; height: 13px; }
.owned-corner-sm { top: -4px; right: -4px; width: 16px; height: 16px; }
.owned-corner-sm .ic { width: 9px; height: 9px; }
.skin-card > :not(.tierbar):not(.owned-corner):not(.nm-discount) { position: relative; z-index: 1; }

/* відео-прев'ю скіна (офіційний mp4 Riot) */
.skin-art {
  position: relative; margin: -3px -2px 10px; padding: 5px 7px; border-radius: 16px;
  background: radial-gradient(75% 110% at 50% 45%, color-mix(in srgb, var(--tier, var(--accent)) 11%, transparent), transparent 72%);
}
.skin-art .skin-img { margin-bottom: 0; }
.skin-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.skin-video-btn {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.24); border-radius: 50%;
  color: var(--accent); background: var(--accent-soft); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .18s var(--ease-out), background .18s, border-color .18s;
}
.skin-video-btn .ic { width: 17px; height: 17px; margin-left: 2px; fill: currentColor; }
.skin-video-btn:active { transform: scale(.92); background: var(--accent); border-color: var(--accent); }
.wl-item.has-video { cursor: pointer; }
.video-inline { color: var(--muted); }
.video-inline-ic { width: 10px; height: 10px; fill: currentColor; vertical-align: baseline; }
.skin-video {
  width: 100%; max-height: 60vh; border-radius: 14px; display: block;
  background: #000;
}
.skin-card .tierbar { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 4px; box-shadow: 2px 0 16px var(--tier); }
.skin-img { width: 100%; height: 84px; object-fit: contain; margin-bottom: 10px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.skin-ph { display: flex; align-items: center; justify-content: center; filter: none; }
.skin-ph .ph-ic { width: 46px; height: 46px; opacity: 0.28; }
.skin-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.skin-info { flex: 1; min-width: 0; }
/* Назва — до 2 рядків у зоні фіксованої висоти (ревю дизайнера 2026-07-27).
   Раніше тут було nowrap+ellipsis: у двоколонковій сітці на назву лишалось
   ~116px, тож «Radiant Entertainment…» фізично не міг поміститись, а картка
   не відкриває деталей — повну назву не було де прочитати. */
.skin-name-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; min-height: 40px; }
.skin-name {
  font-weight: 700; font-size: 14px; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* символ рідкості вирівняний по першому рядку і вужчий — у вузькій картці
   кожні 20px ширини йдуть назві */
.skin-name-row .tier-ic { width: 18px; height: 18px; margin-top: 1px; }
/* ціна — головна інформація картки: світліша, більша, щільніша */
.skin-cost { color: var(--text); font-size: 14px; font-weight: 700; white-space: nowrap; margin-top: 6px; }
.match-tag {
  display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700;
  color: var(--accent);
}

.star-btn {
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--muted); transition: transform 0.15s, color 0.15s;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.star-btn .ic { width: 24px; height: 24px; }
.star-btn.on { color: var(--accent); }
.star-btn.on {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%; background: var(--accent-soft);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 21%, transparent), inset 0 1px 0 rgba(255,255,255,.08);
}   /* зірка вішліста в кольорі теми (фідбек власника) */
.star-btn.on .ic { fill: currentColor; }
.star-btn:active { transform: scale(1.25); }

/* ---------- преміум-акценти (2026-07-19) ---------- */
/* м'яке сяйво кольору рідкості під артом скіна (тільки img — не плейсхолдери) */
.store-grid .skin-card img.skin-img,
.night-market-offer img.skin-img {
  filter: drop-shadow(0 10px 22px color-mix(in srgb, var(--tier, transparent) 38%, transparent));
}
@media (prefers-reduced-motion: no-preference) {
  /* поп зірки вішліста при додаванні */
  .star-btn.on .ic { animation: star-pop .5s var(--ease-out); }
  @keyframes star-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.45) rotate(8deg); }
    100% { transform: scale(1); }
  }
  /* повільний кінематографічний zoom wide-банера профілю */
  .pf-banner img {
    animation: pf-banner-fade .8s ease-out both, pf-banner-zoom 16s var(--ease-out) both;
  }
  @keyframes pf-banner-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pf-banner-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
}

/* щоденний магазин — сітка 2×2 компактних карток (варіант «Б») */
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
/* flex-колонка + margin-top:auto на .skin-foot — ціна і кнопки завжди притиснуті
   до низу картки, незалежно від того, назва в один рядок чи в два */
.store-grid .skin-card { margin-bottom: 0; padding: 12px; display: flex; flex-direction: column; }
.store-grid .skin-foot { margin-top: auto; }
.store-grid .skin-img { height: 88px; }
/* розмір задає базове правило .skin-name (14px/1.15 у 2 рядки) — окремий
   менший кегль тут лише прискорював обрізання довгих назв */
.skin-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.skin-foot .skin-cost { margin-top: 0; }
.store-grid .skin-actions { gap: 2px; }
.store-grid .skin-video-btn, .store-grid .star-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.store-grid .star-btn .ic { width: 20px; height: 20px; }
.store-grid .skin-video-btn .ic { width: 15px; height: 15px; }

/* ---------- картки/кнопки ---------- */
.card {
  background: var(--surface-raised);
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 96%, white), var(--bg2));
  border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 17px; margin-bottom: 14px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.04);
}
.card-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.row { display: flex; align-items: center; gap: 12px; }

.btn-primary {
  width: 100%; padding: 15px; margin-top: 12px;
  background: var(--accent); color: #fff; border: 1px solid color-mix(in srgb, var(--accent) 68%, white); border-radius: 15px;
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 28%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:active { background: var(--accent-dim); transform: translateY(1px); }

.btn-outline {
  width: 100%; padding: 13px; margin-top: 10px;
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--line-soft); border-radius: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-outline.accent { border-color: var(--accent); color: var(--accent); }
.btn-outline { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-ghost {
  width: 100%; padding: 12px; margin-top: 8px; background: none;
  color: var(--muted); border: none; font-size: 13px; cursor: pointer;
}
.btn-danger {
  width: 100%; padding: 13px; margin-top: 10px;
  background: rgba(255, 70, 85, 0.12); color: #ff6b78;
  border: 1px solid rgba(255, 70, 85, 0.5); border-radius: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-danger:active { background: rgba(255, 70, 85, 0.22); }

/* ---------- список Riot-акаунтів ---------- */
.acc-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
}
.acc-row.on { border-color: var(--accent); background: var(--accent-soft); }
.acc-main { flex: 1; min-width: 0; }
.acc-controls { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.acc-name { font-weight: 700; font-size: 15px; }
.acc-name .muted { font-weight: 400; }
.acc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.acc-badge {
  font-size: 11px; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); border-radius: 8px; padding: 4px 8px; white-space: nowrap;
}
.acc-switch {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  min-height: 44px; border-radius: 10px; padding: 7px 12px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.acc-switch:active { border-color: var(--accent); }
.acc-del {
  background: none; border: none; color: var(--muted); cursor: pointer;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 4px;
}

/* ---------- арсенал ---------- */
.ars-row { cursor: pointer; }
.ars-row img { width: 96px; height: 40px; object-fit: contain; order: -1; }
.ars-info { flex: 1; min-width: 0; }
.ars-wname { font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--muted); }
.ars-sname { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700;
  min-width: 0; }
.ars-sname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.skins-list { max-height: 62vh; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.picker-search { margin: 0 0 12px; }
.picker-search .input { margin-top: 0; }
.picker-search .input:disabled { opacity: 0.6; }
.skin-pick { cursor: pointer; }
.skin-pick.on { border-color: var(--accent); background: var(--accent-soft); }
.skin-pick:active { background: var(--card2); }
.skin-pick.busy { opacity: 0.5; pointer-events: none; }
.skin-preview-btn { flex: 0 0 44px; color: var(--accent); background: var(--accent-soft); }
.wd-video { margin-bottom: 8px; color: var(--accent); }

/* ---------- сети (пресети) ---------- */
.preset-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 16px; margin-bottom: 12px;
}
.preset-top { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.preset-copy { min-width: 0; flex: 1; }
.preset-name { font-weight: 800; font-size: 16px; }
.preset-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.preset-actions .icon-btn { width: 44px; height: 44px; }
.preset-actions .preset-del { color: #ff6b78; }
.preset-apply { margin-top: 12px; }

/* Затиснути й перенести: mobile-first reorder без видимих стрілок. */
.reorder-item {
  position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform .18s var(--ease-out), border-color .18s, box-shadow .18s, opacity .18s;
}
.drag-grip {
  width: 16px; height: 28px; flex: 0 0 16px; opacity: .32; align-self: center;
  background-image: radial-gradient(circle, currentColor 1.4px, transparent 1.7px);
  background-size: 7px 7px; background-position: 1px 1px;
  color: var(--muted); pointer-events: none;
}
.preset-top > .drag-grip { margin-top: 7px; }
.reorder-item.dragging {
  z-index: 50; transform: translate3d(0, var(--drag-y, 0), 0) scale(1.025); opacity: .97;
  border-color: color-mix(in srgb, var(--accent) 72%, white);
  box-shadow: 0 22px 52px rgba(0,0,0,.42), 0 0 0 3px var(--accent-soft);
  will-change: transform;
}
body.reorder-active { overflow: hidden; touch-action: none; }

@media (max-width: 420px) {
  .acc-row { align-items: flex-start; flex-wrap: wrap; }
  .acc-main { min-width: 120px; }
  .acc-controls { margin-left: auto; }
  .preset-actions { gap: 4px; }
}

/* ---------- адмін-панель ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.stat-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 8px; text-align: center;
}
.stat-num { font-size: 22px; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.allow-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.allow-row code, .au-meta code { background: var(--bg2); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.admin-user {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.au-info { flex: 1; min-width: 0; }
.au-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.au-meta { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* nowrap: «Match MVP» переносився між словами й пілюля розривалась навпіл —
   половина лишалась у рядку з мапою, половина падала нижче. Тепер бейдж або
   вміщується, або цілим переходить на наступний рядок. */
.badge-sm {
  font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px;
  white-space: nowrap; display: inline-block;
}
.badge-sm.gold { background: var(--gold); color: #1a1a1a; }
.badge-sm.green { background: #1f6f43; color: #d6ffe6; }
.badge-sm.red { background: #7a2130; color: #ffd6db; }
.admin-user { cursor: pointer; }
.admin-user.blocked { opacity: .6; border-color: #ff6b78; }
.au-chev { color: var(--muted); font-size: 22px; line-height: 1; flex-shrink: 0; }

/* онлайн-індикатор */
.online-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); flex-shrink: 0;
}
.online-dot.on { background: #35d07f; box-shadow: 0 0 6px #35d07f88; }

/* стан сервісів */
.admin-health { display: flex; flex-direction: column; gap: 6px; }
.health-row { font-size: 14px; font-weight: 600; }

/* детальна сторінка користувача */
.detail-list { display: flex; flex-direction: column; gap: 2px; }
.detail-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.detail-row .dk { color: var(--muted); flex-shrink: 0; }
.detail-row .dv { text-align: right; overflow-wrap: anywhere; }
.detail-row .dv code { background: var(--bg2); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.au-accs { display: flex; flex-direction: column; gap: 6px; }
.au-acc {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; font-size: 13px;
}
.pro-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.pro-grid .btn-mini { flex: 0 0 auto; }

/* друзі (FEATURE-004) — той самий рядок-стиль, що й адмін-юзери */
.friend-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.friend-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.friend-actions .icon-btn { width: 44px; height: 44px; color: #ff6b78; }
.btn-mini.danger { color: #ff6b78; border-color: #ff6b78; }
#admin-bc-text { width: 100%; resize: vertical; font-family: inherit; }

/* ---------- матчі (FEATURE-010) ---------- */
.match-filters {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px;
  scrollbar-width: none;
}
.match-filters::-webkit-scrollbar { display: none; }
.match-filters .subnav-btn { flex: 0 0 auto; }

.match-card {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.match-card.victory { border-left-color: #35d07f; }
.match-card.defeat { border-left-color: #ff6b78; }
.mc-agent { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg2); }
.mc-mid { flex: 1; min-width: 0; }
.mc-top { font-size: 14px; }
.mc-sub { font-size: 11px; margin-top: 1px; }
.mc-kda { font-size: 12px; margin-top: 3px; font-weight: 600; }
.mc-right { text-align: right; flex-shrink: 0; }
.mc-result { font-weight: 900; font-size: 13px; text-transform: uppercase; }
.mc-result.victory { color: #35d07f; }
.mc-result.defeat { color: #ff6b78; }
.mc-result.draw { color: var(--muted); }
.mc-score { font-size: 16px; font-weight: 800; margin-top: 1px; }
.mc-rr { font-size: 11px; font-weight: 700; }
.mc-rr.up { color: #35d07f; }
.mc-rr.down { color: #ff6b78; }

/* деталі матчу */
.md-head {
  text-align: center; border-radius: 12px; padding: 14px 10px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--border);
}
.md-head.victory { border-color: #35d07f55; }
.md-head.defeat { border-color: #ff6b7855; }
.md-result { font-size: 20px; font-weight: 900; text-transform: uppercase; }
.md-head.victory .md-result { color: #35d07f; }
.md-head.defeat .md-result { color: #ff6b78; }
.md-score { font-size: 26px; font-weight: 900; margin: 2px 0; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 8px; }
.ms-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 6px; text-align: center;
}
.ms-num { font-size: 18px; font-weight: 900; color: var(--accent); }
.ms-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* по-раундовий таймлайн */
.round-timeline {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; margin-bottom: 12px; overflow: hidden;
}
.round-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
}
.round-section-head strong { font-size: 14px; }
.round-section-head span {
  color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase;
}
.round-player-strip {
  display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-inline: contain;
  scrollbar-width: none; margin: 0 -12px 11px; padding: 1px 12px 4px;
}
.round-player-strip::-webkit-scrollbar { display: none; }
.round-player-chip {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto; max-width: 126px;
  min-height: 36px; padding: 4px 9px 4px 4px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg2); color: var(--muted);
  cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.round-player-chip img { width: 27px; height: 27px; border-radius: 7px; object-fit: cover; }
.round-player-chip span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 750;
}
.round-player-chip.active {
  color: var(--text); border-color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
}
.round-group + .round-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.round-group-label {
  color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; margin-bottom: 6px;
}
.round-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.round-dot {
  position: relative; width: 27px; height: 27px; padding: 0; border: 1px solid transparent;
  border-radius: 7px; color: #fff; font-size: 11px; font-weight: 850; cursor: pointer;
  transition: transform .15s var(--ease-out), box-shadow .15s, border-color .15s;
}
.round-dot.win { background: #248958; border-color: #35d07f88; }
.round-dot.loss { background: #963b4a; border-color: #ff6b7888; }
.round-dot.active { transform: translateY(-2px); border-color: #fff; box-shadow: 0 0 0 2px var(--accent-soft); }
.round-dot i {
  position: absolute; right: -4px; bottom: -4px; width: 12px; height: 12px;
  display: grid; place-items: center; border-radius: 50%; background: var(--bg2);
  color: var(--text); font-size: 6px; font-style: normal; border: 1px solid var(--border);
}
.round-detail {
  margin-top: 12px; padding: 11px; border-radius: 11px; color: var(--text);
  border: 1px solid var(--border); border-left-width: 3px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg2) 92%, var(--accent)), var(--bg2));
}
.round-detail.win { border-left-color: #35d07f; }
.round-detail.loss { border-left-color: #ff6b78; }
.rd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rd-player { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rd-player img { width: 35px; height: 35px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.rd-player > div { min-width: 0; }
.rd-player strong {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px;
}
.rd-eyebrow { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.rd-result {
  flex: 0 0 auto; padding: 4px 7px; border-radius: 7px; font-size: 11px;
  font-weight: 900; letter-spacing: .4px; text-transform: uppercase;
}
.rd-result.win { color: #35d07f; background: #35d07f18; }
.rd-result.loss { color: #ff6b78; background: #ff6b7818; }
.rd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }
.rd-stats > div {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  padding: 7px 4px; border-radius: 8px; background: color-mix(in srgb, var(--card) 72%, transparent);
  border: 1px solid var(--border);
}
.rd-stats b { color: var(--accent); font-size: 16px; }
.rd-stats span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.rd-events { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.rd-event {
  padding: 4px 7px; border-radius: 999px; background: var(--card); border: 1px solid var(--border);
  font-size: 11px; font-weight: 700;
}
.rd-event.highlight { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

/* скорборд */
.sb-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 4px;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.sb-row.me { background: var(--accent-soft); border-radius: 8px; }
.sb-row.round-selected { box-shadow: inset 3px 0 0 var(--accent); }
.sb-head-row { border-bottom: none; font-size: 11px; padding-bottom: 2px; }
.sb-agent { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.sb-tier { width: 18px; height: 18px; flex-shrink: 0; }
.sb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sb-stat { width: 52px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* Live Match (FEATURE-010, Фаза 2) */
#matches-live.has-active-match {
  display: flex;
  flex-direction: column;
}
#matches-live.has-active-match #live-body { order: -3; }
#matches-live.has-active-match #instalock-panel { order: -2; }
#matches-live.has-active-match #friends-now { order: -1; }
.live-head {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); min-height: 150px; margin-bottom: 4px;
}
.live-head.pregame { border-color: var(--accent); }
.live-head.coregame { border-color: #35d07f88; }
.live-map-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .35;
}
.live-head-ov { position: relative; padding: 14px 16px; }
.live-phase {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #35d07f;
  animation: live-pulse 1.2s ease-in-out infinite;
}
@keyframes live-pulse { 50% { opacity: .3; } }
.live-map-name { font-size: 26px; font-weight: 900; margin-top: 4px; }
.live-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.live-timer {
  font-size: 30px; font-weight: 900; color: var(--accent);
  font-variant-numeric: tabular-nums; margin-top: 6px;
}
.live-picking { color: var(--accent); font-size: 12px; font-weight: 700; animation: live-pulse 1.2s infinite; }
.live-picking-icon { display: inline-block; background: var(--bg2); border-radius: 6px; animation: live-pulse 1.2s infinite; }
.sb-agent.sel { opacity: .55; }   /* агент обраний, але ще не залочений */
.lt-slot img { width: 18px; height: 18px; display: block; }
.sb-row.clickable { cursor: pointer; }

/* Персональна Agent Select-порада: лише cache-only статистика, без ігрових дій */
.as-card {
  position: relative; overflow: hidden; padding: 12px; margin: 10px 0 8px;
  border-color: color-mix(in srgb, var(--gold) 38%, var(--border));
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--gold) 5%, var(--card)),
    color-mix(in srgb, var(--accent) 4%, var(--card)));
}
.as-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
}
.as-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 9px; padding-left: 3px;
}
.as-head > div { min-width: 0; }
.as-head h3 {
  margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 900;
}
.as-head p { margin: 2px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.as-cache {
  flex: 0 0 auto; padding: 3px 6px; border: 1px solid var(--border);
  border-radius: 999px; color: var(--muted); font-size: 11px;
  font-weight: 850; letter-spacing: .04em; text-transform: uppercase;
}
.as-candidates { display: flex; flex-direction: column; }
.as-candidate {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center; gap: 9px; min-height: 58px; padding: 7px 3px;
}
.as-candidate + .as-candidate { border-top: 1px solid var(--line-soft); }
.as-candidate.occupied { opacity: .68; }
.as-portrait {
  display: grid; place-items: center; width: 40px; height: 40px;
  overflow: hidden; border: 1px solid var(--border); border-radius: 11px;
  background: var(--bg2); color: var(--muted); font-weight: 900;
}
.as-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; }
.as-candidate-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.as-candidate-copy b {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 900;
}
.as-candidate-copy small {
  color: var(--muted); font-size: 11px; font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.as-occupancy.locked { color: #ff9aa3; }
.as-occupancy.selected { color: var(--gold); }
.as-occupancy.own { color: var(--accent); }
.as-evidence {
  max-width: 90px; padding: 4px 6px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 11px; font-weight: 850;
  line-height: 1.2; text-align: center;
}
.as-evidence.best { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); }
.as-evidence.reliable { color: var(--green); border-color: color-mix(in srgb, var(--green) 38%, var(--border)); }
.as-own-state {
  display: flex; flex-direction: column; gap: 2px; margin-bottom: 7px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: color-mix(in srgb, var(--card2) 78%, transparent);
}
.as-own-state b, .as-collecting b { font-size: 13px; font-weight: 850; }
.as-own-state small, .as-collecting small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.as-own-state.selected { border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); }
.as-own-state.locked { margin-bottom: 0; border-color: color-mix(in srgb, var(--green) 36%, var(--border)); }
.as-collecting {
  display: flex; flex-direction: column; gap: 3px; padding: 9px 10px;
  border: 1px dashed color-mix(in srgb, var(--gold) 36%, var(--border));
  border-radius: 10px;
}
.as-more, .as-retry {
  width: 100%; min-height: 44px; margin: 3px 0 0; border: 0;
  border-radius: 10px; background: transparent; color: var(--accent);
  font-size: 12px; font-weight: 850; cursor: pointer;
}
.as-more:active { background: var(--accent-soft); }
.as-progress-note, .as-disclaimer {
  margin: 6px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.35;
}
.as-progress-note { color: color-mix(in srgb, var(--gold) 68%, var(--text)); }
.as-loading { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px 3px; }
.as-sk-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; }
.as-sk-copy { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.as-sk-copy i { display: block; height: 10px; border-radius: 6px; }
.as-sk-copy i:first-child { width: 42%; }
.as-sk-copy i:last-child { width: 76%; }
.as-error {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--muted); font-size: 12px;
}
.as-error .as-retry {
  width: auto; min-width: 112px; margin: 0; padding-inline: 12px;
  border: 1px solid var(--border);
}
@media (max-width: 360px) {
  .as-candidate { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 7px; }
  .as-portrait { width: 36px; height: 36px; border-radius: 10px; }
  .as-evidence { max-width: 82px; padding-inline: 4px; font-size: 11px; }
  .as-candidate-copy small { font-size: 11px; }
}

/* профіль гравця */
.pp-rank {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 12px;
}
.pp-rank img { width: 34px; height: 34px; }
.pp-rank .rr-pts { margin-left: auto; color: var(--accent); font-size: 14px; }
.pp-ranks { margin-bottom: 12px; }
.pp-ranks .pp-rank { margin-bottom: 0; }
.pp-peak {
  display: flex; align-items: center; gap: 8px; margin: -1px 10px 0;
  padding: 7px 10px; border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 10px 10px; background: var(--bg2); font-size: 12px;
}
.pp-peak img { width: 23px; height: 23px; }
.pp-peak-label { color: var(--muted); margin-right: auto; }
.pp-matches .match-card { cursor: default; }
.badge-sm.silver { background: #9aa4b2; color: #1a1a1a; }
.queue-select-btn {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; cursor: pointer; text-align: left;
}
.queue-chev { color: var(--muted); font-size: 20px; line-height: 1; }

/* список опцій у модалці (напр. фільтр режиму матчів) */
.option-list { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; }
.option-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 10px 14px; border-radius: 12px;
  background: var(--card2); border: 1px solid transparent; color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer; text-align: left;
}
.option-row.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.option-row:active { border-color: var(--accent); }

/* прев'ю сету: рядки з кінцевим предметом (target-only + колір хроми) */
#preset-preview-body { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; }
.pd-row { background: var(--card2); border-radius: 12px; padding: 10px 12px; }
.pd-cat { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .02em; margin-bottom: 6px; }
.pd-target { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; }
.pd-target > img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.pd-name { min-width: 0; overflow: hidden; }
.pd-chroma { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px;
  color: var(--muted); font-weight: 600; }
.pd-swatch { width: 14px; height: 14px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border); vertical-align: middle; }
.pd-removed { color: var(--muted); font-style: italic; }
.pd-weapon-final { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pd-weapon-art { position: relative; width: 136px; height: 64px; flex: 0 0 136px; }
.pd-weapon-img { width: 132px; height: 58px; object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.45)); }
.pd-weapon-buddy { position: absolute; width: 34px; height: 34px; right: 18px; top: 32px;
  object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.65)); }
.pd-weapon-info { display: flex; flex-direction: column; gap: 5px; min-width: 0;
  font-size: 13px; font-weight: 600; }
.pd-weapon-line { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.pd-kind { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
#my-rank .pp-rank { margin-bottom: 10px; }

/* ---------- Friends Now (хто з друзів у грі) ---------- */
.fn-card { padding: 12px 14px; margin-bottom: 12px; }
.fn-title { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; }
.fn-empty { font-size: 12.5px; color: var(--muted); }
.fn-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; min-height: 44px; }
.fn-row + .fn-row { border-top: 1px solid var(--line-soft); }
.fn-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.fn-dot.pregame { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.fn-dot.coregame { background: var(--green); box-shadow: 0 0 8px var(--green); }
.fn-dot.unknown { background: var(--border); }
.fn-agent { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; flex-shrink: 0;
  background: var(--bg2); }
.fn-agent-ph { display: inline-block; }
.fn-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fn-copy b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-copy small { font-size: 11.5px; color: var(--muted); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-row.live .fn-copy small { color: var(--text); }
.fn-since { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums;
  flex-shrink: 0; }

/* ---------- Post-match recap (режим сесії) ---------- */
.recap-card { padding: 12px 14px; margin-bottom: 12px; }
.recap-card.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.recap-head { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; }
.recap-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.recap-copy b { font-size: 14px; font-weight: 800; }
.recap-copy small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.recap-card.on .recap-copy small { color: var(--accent); }

/* ---------- Session Dashboard (підсумок сьогоднішньої гри) ---------- */
.session-card { padding: 14px; margin-bottom: 12px; }
.ses-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ses-title { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ses-rr { font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ses-rr.up { color: var(--green); }
.ses-rr.down { color: #ff6b78; }
.ses-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.ses-record { font-size: 26px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ses-record .win { color: var(--green); }
.ses-record .loss { color: #ff6b78; }
.ses-record .draw { color: var(--muted); }
.ses-record .sep { color: var(--muted); margin: 0 3px; font-weight: 700; }
.ses-streak { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.ses-streak.win { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.ses-streak.loss { color: #ff6b78; background: color-mix(in srgb, #ff6b78 14%, transparent); }
.ses-rank { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.ses-rank-side { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); min-width: 0; }
.ses-rank-side.to { color: var(--text); }
.ses-rank img { width: 22px; height: 22px; }
.ses-arrow { color: var(--muted); flex-shrink: 0; }
.ses-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin-top: 12px; }
.ses-tile {
  background: var(--bg2); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 8px 6px; text-align: center; min-width: 0;
}
.ses-tile b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ses-tile span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); font-weight: 700; }
.ses-best {
  width: 100%; margin-top: 10px; padding: 9px 10px; min-height: 44px;
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  color: var(--text); background: var(--bg2); border: 1px solid var(--line-soft); border-radius: 14px;
  transition: border-color .2s, transform .2s var(--ease-out);
}
.ses-best:active { transform: scale(.99); }
.ses-best img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--card); }
.ses-best-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ses-best-copy small { font-size: 11px; color: var(--muted); font-weight: 700; }
.ses-best-copy b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Weekly Story ---------- */
#weekly-story-card { position: relative; transition: opacity .18s; }
#weekly-story-card.is-refreshing { opacity: .68; }
.weekly-story-teaser {
  width: 100%; min-height: 122px; margin-bottom: 12px; padding: 14px;
  color: var(--text); text-align: left; font: inherit;
}
button.weekly-story-teaser {
  appearance: none; cursor: pointer;
  transition: transform .18s var(--ease-out), border-color .18s, box-shadow .18s;
}
button.weekly-story-teaser:active { transform: scale(.992); }
button.weekly-story-teaser:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.weekly-teaser-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.weekly-teaser-head > span:first-child,
.weekly-teaser-head > div:first-child {
  min-width: 0; display: flex; flex-direction: column; gap: 2px;
}
.weekly-teaser-head b {
  font-size: 12px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase;
}
.weekly-teaser-head small {
  color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.35;
}
.weekly-status-chip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px;
  border: 1px solid var(--line-soft); border-radius: 999px;
  color: var(--muted); background: var(--bg2);
  font-size: 11px; line-height: 1; font-weight: 850; white-space: nowrap;
}
.weekly-status-chip.complete {
  color: var(--green); border-color: color-mix(in srgb, var(--green) 38%, var(--border));
}
.weekly-status-chip.live {
  color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, var(--border));
}
.weekly-teaser-main {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 11px; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.weekly-teaser-main strong { color: var(--accent); font-size: 22px; font-weight: 900; }
.weekly-teaser-main > b { flex: 0 0 auto; font-size: 17px; font-weight: 900; }
.weekly-teaser-agent {
  display: block; margin-top: 4px; overflow: hidden; color: var(--muted);
  font-size: 11.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap;
}
.weekly-open-row {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 30px; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line-soft);
  color: var(--accent); font-size: 11.5px; font-weight: 850;
}
.weekly-empty p {
  margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4;
}
.weekly-error {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 76px; margin-bottom: 12px; padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #ff6b78 42%, var(--border));
  border-radius: 16px; background: color-mix(in srgb, #ff6b78 7%, var(--surface-raised));
}
.weekly-error > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.weekly-error b { font-size: 13px; }
.weekly-error small { overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.weekly-retry { width: auto; min-width: 106px; min-height: 44px; margin: 0; flex: 0 0 auto; }
.weekly-sk-chip { width: 72px; height: 24px; border-radius: 999px; }
.weekly-sk-metrics { display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 8px; margin-top: 14px; }
.weekly-sk-metrics .sk-block { height: 28px; border-radius: 9px; }

.weekly-modal { padding-bottom: 18px; }
.weekly-hero {
  padding: 15px; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 18px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 10%, var(--card)), var(--card));
}
.weekly-hero-head,
.weekly-section-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.weekly-hero-head > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.weekly-period { font-size: 13px; font-weight: 850; }
.weekly-hero-head small { color: var(--muted); font-size: 11px; font-weight: 700; }
.weekly-scoreline {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 17px; font-variant-numeric: tabular-nums;
}
.weekly-scoreline b { font-size: 25px; font-weight: 950; letter-spacing: -.02em; }
.weekly-scoreline span { color: var(--green); font-size: 20px; font-weight: 900; }
.weekly-current-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.weekly-metrics {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin: 10px 0 0;
}
.weekly-metrics > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  min-height: 52px; padding: 9px 11px; border: 1px solid var(--line-soft);
  border-radius: 13px; background: var(--bg2);
}
.weekly-metrics dt { color: var(--muted); font-size: 11px; font-weight: 750; }
.weekly-metrics dd { margin: 0; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.weekly-partial {
  margin: 9px 1px 0; padding: 8px 10px; border-radius: 11px;
  color: var(--muted); background: color-mix(in srgb, var(--gold) 8%, transparent);
  font-size: 11px; line-height: 1.4;
}
.weekly-section {
  margin-top: 10px; padding: 12px; border: 1px solid var(--line-soft);
  border-radius: 16px; background: var(--card);
}
.weekly-section h4 { margin: 0; font-size: 12px; font-weight: 850; }
.weekly-highlights { display: flex; flex-direction: column; gap: 8px; }
.weekly-highlight {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px;
  min-height: 52px;
}
.weekly-highlight + .weekly-highlight { padding-top: 8px; border-top: 1px solid var(--line-soft); }
.weekly-highlight-art,
.weekly-best-art {
  display: grid; place-items: center; overflow: hidden; border-radius: 11px;
  color: var(--accent); background: var(--bg2); font-weight: 900;
}
.weekly-highlight-art { width: 42px; height: 42px; }
.weekly-highlight-art img,
.weekly-best-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.weekly-highlight-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.weekly-highlight-copy small { color: var(--muted); font-size: 11px; font-weight: 700; }
.weekly-highlight-copy b { overflow: hidden; font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.weekly-highlight-copy span { color: var(--muted); font-size: 11px; font-weight: 650; }
.weekly-streak { margin: 9px 0 0; color: var(--gold); font-size: 12px; font-weight: 800; }
.weekly-best-match {
  width: 100%; min-height: 76px; margin-top: 10px; padding: 10px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px;
  color: var(--text); text-align: left; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border));
  border-radius: 16px; background: var(--card);
}
.weekly-best-art { width: 48px; height: 48px; }
.weekly-best-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.weekly-best-copy small { color: var(--gold); font-size: 11px; font-weight: 800; }
.weekly-best-copy b { overflow: hidden; font-size: 13px; font-weight: 850;
  text-overflow: ellipsis; white-space: nowrap; }
.weekly-best-copy span { color: var(--muted); font-size: 11px; font-weight: 650;
  line-height: 1.3; white-space: normal; }
.weekly-best-open {
  grid-column: 1 / -1; min-height: 24px; padding-top: 6px; border-top: 1px solid var(--line-soft);
  color: var(--accent); font-size: 11px; font-weight: 800;
}
.weekly-comparison p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.weekly-trend {
  min-height: 23px; padding: 3px 7px; border: 1px solid var(--line-soft);
  border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 800;
}
.weekly-trend.improving { color: var(--green); }
.weekly-trend.declining { color: #ff8490; }
.weekly-compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 11px 0 0; }
.weekly-compare-grid > div { padding: 8px; border-radius: 11px; background: var(--bg2); }
.weekly-compare-grid dt { color: var(--muted); font-size: 11px; font-weight: 750; }
.weekly-compare-grid dd { margin: 3px 0 0; font-size: 15px; font-weight: 900; }
.weekly-cache-note { margin: 10px 2px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.weekly-share { min-height: 46px; margin: 0; }
.weekly-share-result {
  min-height: 18px; margin-top: 7px; color: var(--muted); text-align: center;
  font-size: 11px; font-weight: 700;
}
.weekly-share-result[aria-hidden="true"] { visibility: hidden; }

@media (max-width: 360px) {
  .weekly-teaser-head, .weekly-hero-head { flex-wrap: wrap; }
  .weekly-status-chip { flex: 0 0 auto; }
  .weekly-error { align-items: stretch; flex-direction: column; }
  .weekly-retry { width: 100%; }
  .weekly-scoreline { flex-wrap: wrap; }
  .weekly-scoreline b { font-size: 22px; }
  .weekly-scoreline span { font-size: 18px; white-space: nowrap; }
}

/* ---------- Duo stats з друзями ---------- */
.duo-card { padding: 14px; margin-bottom: 12px; }
.duo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 6px; }
.duo-title { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); }
.duo-sample { margin-top: 3px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.duo-wr { padding-top: 1px; font-size: 11px; font-weight: 900; letter-spacing: .06em; color: var(--muted); }
.duo-row { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 7px 0; }
.duo-row + .duo-row { border-top: 1px solid var(--line-soft); }
.duo-avatar { flex: 0 0 36px; width: 36px; height: 36px; }
.duo-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.duo-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 800; }
.duo-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.duo-score { flex: 0 0 auto; display: flex; align-items: flex-end; flex-direction: column; gap: 2px;
  font-variant-numeric: tabular-nums; }
.duo-score > b { font-size: 16px; font-weight: 900; }
.duo-delta { font-size: 11px; font-weight: 800; }
.duo-delta.up { color: var(--green); }
.duo-delta.down { color: #ff6b78; }
.duo-empty { padding: 9px 0 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* ---------- Competitive Analytics ---------- */
.matches-subnav .subnav-btn {
  min-width: 0; padding-inline: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#analytics-body {
  position: relative; transition: opacity .18s;
}
#analytics-body.is-refreshing { opacity: .68; }
.analytics-summary-card, .analytics-section-card { padding: 14px; margin-bottom: 12px; }
.analytics-summary-head, .analytics-section-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.analytics-summary-head > div, .analytics-section-head > div { min-width: 0; }
.analytics-summary-head h3, .analytics-section-head h3 {
  margin: 0; font-size: 14px; line-height: 1.25; font-weight: 850;
}
.analytics-summary-head p, .analytics-section-head p {
  margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35;
}
.analytics-cache-chip {
  flex: 0 0 auto; padding: 4px 7px; border: 1px solid var(--line-soft); border-radius: 999px;
  color: var(--muted); background: var(--bg2); font-size: 11px; font-weight: 850;
  letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.analytics-caveat {
  margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.4;
}
.analytics-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 11px;
}
.analytics-metric {
  min-width: 0; padding: 9px 5px; text-align: center; border: 1px solid var(--line-soft);
  border-radius: 11px; background: var(--bg2); font-variant-numeric: tabular-nums;
}
.analytics-metric b { display: block; overflow: hidden; font-size: 18px; font-weight: 900; text-overflow: ellipsis; }
.analytics-metric span {
  display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 800;
}
.analytics-view-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  margin-bottom: 12px; padding: 4px; border: 1px solid var(--line-soft);
  border-radius: 16px; background: var(--surface-raised);
}
.analytics-view-tabs button {
  min-width: 0; min-height: 44px; padding: 8px 5px; overflow: hidden;
  border: 1px solid transparent; border-radius: 12px; background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 800; text-overflow: ellipsis;
  white-space: nowrap; cursor: pointer; touch-action: manipulation;
}
.analytics-view-tabs button.active {
  color: color-mix(in srgb, var(--accent) 76%, white);
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  background: var(--accent-soft);
}
.analytics-status-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  max-width: 46%; padding: 4px 7px; border: 1px solid var(--line-soft); border-radius: 999px;
  color: var(--muted); background: var(--bg2); font-size: 11px; line-height: 1.2;
  font-weight: 850; text-align: right;
}
.analytics-status-chip.improving { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }
.analytics-status-chip.declining { color: #ff8490; border-color: color-mix(in srgb, #ff6b78 45%, var(--border)); }
.analytics-status-chip.mixed { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
.analytics-trend-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 12px;
}
.analytics-trend-metric {
  min-width: 0; padding: 9px 5px; text-align: center; border: 1px solid var(--line-soft);
  border-radius: 11px; background: var(--bg2); font-variant-numeric: tabular-nums;
}
.analytics-trend-metric > span:first-child {
  display: block; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .04em;
}
.analytics-trend-metric > b { display: block; margin: 2px 0; font-size: 17px; font-weight: 900; }
.analytics-delta {
  display: block; overflow: hidden; font-size: 11px; line-height: 1.25; font-weight: 850;
  text-overflow: ellipsis; white-space: nowrap;
}
.analytics-delta.up { color: var(--green); }
.analytics-delta.down { color: #ff8490; }
.analytics-delta.neutral { color: var(--muted); }
.analytics-results {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px;
  margin: 12px 0 0; padding: 0; list-style: none;
}
.analytics-result {
  min-width: 0; min-height: 24px; display: grid; place-items: center;
  border: 1px solid var(--line-soft); border-radius: 7px; color: var(--text);
  background: var(--bg2); font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums;
}
.analytics-result.victory { color: #d8ffe9; border-color: #35d07f88; background: #248958; }
.analytics-result.defeat { color: #fff0f2; border-color: #ff6b7888; background: #963b4a; }
.analytics-result.draw { color: var(--text); border-color: var(--muted); background: #444857; }
.analytics-trend-note {
  margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.35; text-align: center;
}
.analytics-empty-copy {
  margin: 12px 0 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45;
}
.analytics-progress-copy {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 12px;
  color: var(--muted); font-size: 12px; line-height: 1.35; font-variant-numeric: tabular-nums;
}
.analytics-progress-copy span { min-width: 0; }
.analytics-progress-copy b { flex: 0 0 auto; color: var(--text); }
.analytics-progress {
  height: 7px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: var(--bg2);
}
.analytics-progress > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}
.analytics-list { display: flex; flex-direction: column; }
.analytics-row {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center;
  gap: 10px; min-height: 58px; padding: 8px 0;
}
.analytics-row + .analytics-row { border-top: 1px solid var(--line-soft); }
.analytics-art {
  width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto;
  border: 1px solid var(--line-soft); border-radius: 11px; background: var(--bg2);
  color: var(--muted); font-size: 14px; font-weight: 900;
}
.analytics-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.analytics-art.map img { object-position: center; }
.analytics-row-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.analytics-row-copy > b {
  overflow: hidden; font-size: 13.5px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap;
}
.analytics-row-copy > small {
  color: var(--muted); font-size: 11px; line-height: 1.3; font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.analytics-wr-bar {
  display: block; width: min(132px, 100%); height: 3px; margin-top: 3px;
  overflow: hidden; border-radius: 999px; background: var(--line-soft);
}
.analytics-wr-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.analytics-row-score {
  min-width: 58px; display: flex; align-items: flex-end; flex-direction: column;
  gap: 0; text-align: right; font-variant-numeric: tabular-nums;
}
.analytics-row-score > b { font-size: 15px; font-weight: 900; }
.analytics-row-score > small { color: var(--muted); font-size: 11px; font-weight: 850; }
.analytics-row-chip {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; padding: 3px 5px;
  border: 1px solid var(--line-soft); border-radius: 999px; color: var(--muted);
  background: var(--bg2); font-size: 11px; line-height: 1.15; font-weight: 850; white-space: nowrap;
}
.analytics-row-chip.best { color: var(--green); border-color: color-mix(in srgb, var(--green) 38%, var(--border)); }
.analytics-row-chip.weakest { color: #ff9aa3; border-color: color-mix(in srgb, #ff6b78 38%, var(--border)); }
.analytics-show-all {
  width: 100%; min-height: 44px; margin-top: 5px; border: 0; border-top: 1px solid var(--line-soft);
  color: var(--accent); background: transparent; font-size: 12px; font-weight: 850; cursor: pointer;
}
.analytics-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.analytics-empty-action { width: auto; min-width: 180px; margin: 0; }
.analytics-error {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, #ff6b78 48%, var(--border));
  border-radius: 14px; background: color-mix(in srgb, #ff6b78 8%, var(--surface-raised));
}
.analytics-error > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.analytics-error b { font-size: 13px; }
.analytics-error small {
  overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap;
}
.analytics-retry { width: auto; min-width: 96px; min-height: 44px; margin: 0; flex: 0 0 auto; }
.analytics-sk-metric { min-height: 60px; border-radius: 11px; }
.analytics-sk-tabs { min-height: 52px; margin: 0 0 12px; border-radius: 16px; }
.analytics-skeleton .sk-list { margin-top: 11px; }

@media (max-width: 360px) {
  .analytics-summary-head, .analytics-section-head { gap: 7px; }
  .analytics-cache-chip { padding-inline: 5px; font-size: 11px; }
  .analytics-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .analytics-art { width: 36px; height: 36px; border-radius: 9px; }
  .analytics-row-copy > small { font-size: 11px; }
  .analytics-row-chip { font-size: 11px; padding-inline: 3px; }
  .analytics-error { align-items: stretch; flex-direction: column; }
  .analytics-retry { width: 100%; }
}

/* банер Free-ліміту вішліста */
.wl-free {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px;
}
.wl-free b { color: var(--accent); }
.wl-free .btn-mini { flex-shrink: 0; background: var(--accent); color: #fff; border: none; font-weight: 700; }

/* пресети ігрових налаштувань (у Профілі) */
.gp-head { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.gp-hint { font-size: 12px; margin: 6px 0 12px; line-height: 1.4; }
.gp-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 16px; margin-bottom: 12px;
}
.gp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gp-info { min-width: 0; }
.gp-name { font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-meta { font-size: 12px; margin-top: 2px; }
.gp-actions { display: flex; gap: 4px; flex-shrink: 0; }
.gp-actions .icon-btn { width: 44px; height: 44px; }
.gp-actions .gp-del { color: #ff6b78; }
.gp-apply { margin-top: 12px; }

/* ---------- профіль: картка + спреї ---------- */
.pcard { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); }
.pcard img { width: 100%; display: block; aspect-ratio: 452 / 128; object-fit: cover; }
.pcard-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.pcard:active { border-color: var(--accent); }

.ptitle {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 14px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.ptitle.muted { font-weight: 500; }
.ptitle:active { border-color: var(--accent); }

.pick-row { display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; margin-bottom: 8px;
  cursor: pointer; }
.pick-row:active { background: var(--card2); }
.pick-row.busy, .wl-item.busy { opacity: 0.5; pointer-events: none; }
.pick-card-img { width: 120px; aspect-ratio: 452 / 128; object-fit: cover; border-radius: 8px; }
.pick-card-ph { background: var(--card2); flex-shrink: 0; }

/* брелок у рядку арсеналу */
.ars-buddy { width: 34px !important; height: 34px !important; object-fit: contain;
  order: 2; opacity: 0.9; }

/* детальна картка зброї */
.wd-skin { text-align: center; margin-bottom: 8px; }
.wd-skin img { width: 100%; max-height: 100px; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.wd-skin-name { font-weight: 800; font-size: 16px; margin-top: 6px; }
.wd-chromas { display: flex; gap: 10px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.chroma { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; cursor: pointer;
  border: 2px solid var(--border); background: var(--card2); padding: 0;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.chroma img { width: 100%; height: 100%; object-fit: cover; }
.chroma.on { border-color: var(--accent); }
.chroma.locked { cursor: default; }
.chroma.locked img { filter: grayscale(1); opacity: 0.5; }
.chroma-lock { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
.wd-sep { height: 1px; background: var(--border); margin: 16px 0; }
.wd-buddy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wd-buddy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wd-buddy img { width: 44px; height: 44px; object-fit: contain; }
.wd-buddy span { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.wd-buddy-btns { display: flex; gap: 6px; flex-shrink: 0; }
.btn-mini { background: var(--card2); color: var(--text); border: 1px solid var(--border);
  min-height: 44px; border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-mini.danger { color: #ff6b78; border-color: rgba(255,70,85,.5); padding: 8px 12px; }

/* колесо спреїв — одне SVG-коло з 4 секторами, як у грі */
.spray-wheel-svg { display: block; width: 260px; max-width: 78vw; margin: 8px auto 4px; }
.spray-sector { cursor: pointer; }
.spray-sector path { fill: var(--card); stroke: var(--border); stroke-width: 1.5;
  transition: fill 0.15s, stroke 0.15s; }
.spray-sector:hover path, .spray-sector:active path { fill: var(--accent-soft); stroke: var(--accent); }
.spray-sector image { pointer-events: none; }
.spray-plus { fill: var(--muted); font-size: 26px; font-weight: 700;
  text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.wheel-hub { fill: var(--bg2); stroke: var(--border); stroke-width: 1.5; }
.buddy-pick img { width: 48px; height: 36px; }
.buddy-pick.locked { opacity: 0.45; pointer-events: none; }

.input {
  width: 100%; min-height: 44px; padding: 14px; margin-top: 10px;
  background: var(--surface-raised); border: 1px solid var(--line-soft); border-radius: 15px;
  color: var(--text); font-size: 14px; outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 20px rgba(0,0,0,.12);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), inset 0 1px 0 rgba(255,255,255,.045); }

/* поле пошуку з іконкою */
.search-wrap { position: relative; margin-bottom: 14px; }
.search-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search-input { padding-left: 42px; }

/* роздільник «або» */
.or-line {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 4px; color: var(--muted); font-size: 12px;
}
.or-line::before, .or-line::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* час сповіщення */
.hour-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 12px; margin-top: 14px; font-size: 14px;
}
.hour-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.25; }
.timezone-label { font-size: 11px; overflow-wrap: anywhere; }
.time-input {
  width: auto; min-width: 112px; min-height: 44px; margin-top: 0; padding: 10px 12px;
  font-variant-numeric: tabular-nums; color-scheme: dark;
}
#st-notify-wl-row {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}
#st-notify-wl-row > span:first-child { min-width: 0; line-height: 1.3; }

@media (max-width: 360px) {
  .hour-row { grid-template-columns: 1fr; gap: 8px; }
  .time-input { width: 100%; }
}

/* ---------- профіль ---------- */
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7b2d8b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 36px; height: 36px; font-size: 15px; }
.pf-name { font-weight: 800; font-size: 16px; }
.badge {
  margin-left: auto; padding: 5px 12px; border-radius: 10px;
  font-size: 12px; font-weight: 800;
}
.badge.pro { background: linear-gradient(135deg, var(--gold), var(--accent)); color: #fff; }
.badge.free { background: var(--card2); color: var(--muted); }
.profile-hero {
  position: relative; overflow: hidden; padding: 20px;
  background:
    radial-gradient(90% 180% at 100% 0, color-mix(in srgb, var(--accent) 21%, transparent), transparent 65%),
    linear-gradient(145deg, color-mix(in srgb, var(--card) 96%, white), var(--bg2));
}
/* Wide-арт картки гравця як банер hero. Альфа-маска замість градієнта-заглушки:
   низ арту розчиняється в рідний фон hero — жодних швів у будь-якій темі. */
.pf-banner {
  position: absolute; inset: 0 0 auto 0; height: 128px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 42%, transparent);
  mask-image: linear-gradient(180deg, #000 42%, transparent);
}
.pf-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.profile-hero.has-banner { padding-top: 118px; }
.profile-hero.has-banner .row { position: relative; }
.profile-hero::after {
  content: ""; position: absolute; width: 110px; height: 110px; right: -42px; bottom: -58px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: 50%;
  box-shadow: 0 0 46px color-mix(in srgb, var(--accent) 11%, transparent);
}
.profile-hero .avatar { width: 56px; height: 56px; box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px rgba(0,0,0,.35); }
.riot-card { border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.admin-entry {
  width: 100%; min-height: 68px; margin: 2px 0 18px; padding: 11px 12px;
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border)); border-radius: 18px;
  background: linear-gradient(105deg, var(--accent-soft), color-mix(in srgb, var(--card) 92%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: transform .2s var(--ease-out), border-color .2s;
}
.admin-entry:active { transform: scale(.985); }
.admin-entry-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--accent); background: var(--accent-soft); }
.admin-entry-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.admin-entry-copy strong { font-size: 15px; }
.admin-entry-copy small { color: var(--muted); font-size: 12px; }
.admin-entry-chev { color: var(--muted); }

/* Контур арту скіна в списках.
   Темні скіни (Ayakashi, Blackthorn) зливалися з темною карткою — силует
   читався лише по відблисках. Тінь по краю альфи проявляється САМЕ там, де арт
   темний: у світлих скінів вона губиться на їхніх же пікселях, тож тло й темна
   естетика лишаються недоторканими.

   РАДІУС МАЛИЙ НАВМИСНО. Перша версія (5px x3, alpha .85) читалась найкраще за
   метрикою, але власник відкинув її як «німб» — і замір це підтверджує:
   розтікання світла в кільці 3–8px від арту було 34.4 проти 0.8 тут (у 42 рази
   менше). Якщо колись збільшувати радіус — спершу дивитись на розтікання, бо
   саме воно перетворює контур на сяйво. Тест на це є.

   Замір на 50 скінах каталогу: найгірший скін 68.7% -> 43.8% нечитабельних
   пікселів контуру, p90 45.5% -> 38%. */
.skin-art-lift {
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, .6))
    drop-shadow(0 0 2px rgba(255, 255, 255, .6));
}

/* ---------- вішліст ---------- */
.wl-title { margin: 18px 0 10px; font-size: 16px; }
.wl-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 14px; margin-bottom: 8px;
}
.wl-item img { width: 72px; height: 36px; object-fit: contain; }
.wl-item .name { flex: 1; font-size: 14px; font-weight: 600; }
.wl-item.owned { opacity: 1; }
.wl-item.owned > img,
.wl-item.owned > .name { opacity: .48; filter: saturate(.5); }
.wl-item .rm {
  width: 44px; height: 44px; background: none; border: none; color: var(--muted);
  font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- каталог зброї ---------- */
.weapon-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
}
.weapon-row:active { background: var(--card2); }
.weapon-row .name { flex: 1; font-size: 15px; font-weight: 700; }
.weapon-row .count {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--card2); border-radius: 8px; padding: 3px 8px;
}
.weapon-row img { width: 88px; height: 30px; object-fit: contain; }
.weapon-row .chev { color: var(--muted); display: inline-flex; }

.weapon-head { margin: 4px 0 12px; gap: 10px; }
.weapon-head h3 { flex: 1; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card2); border: 1px solid var(--border); color: var(--text);
  min-height: 44px; border-radius: 10px; padding: 7px 12px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.chip:active { border-color: var(--accent); }

/* перемикач акаунтів друга в модалці магазину (FEATURE-004) */
.friend-acc-picker { margin: 10px 0; }
.friend-acc-select { width: 100%; cursor: pointer; }
/* Riot ID друга, коли акаунт один: підпис під заголовком, а не ще один контрол */
.friend-acc-single {
  font-size: 13px; font-weight: 700; letter-spacing: .2px;
  margin-top: -4px;
}

.tier-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tier-name { font-size: 11px; font-weight: 700; margin-top: 2px; }

/* символ рідкості (біла PNG-іконка, перефарбована в колір тіру через mask) */
.tier-ic {
  width: 22px; height: 22px; flex-shrink: 0;
  -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat;
}
.tier-ic-sm { width: 18px; height: 18px; }

/* кольорова крапка статусу (замість емодзі 🟢🟠) */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px;
  vertical-align: middle; }
.dot.g { background: var(--green); }
.dot.o { background: #ffab3d; }

/* вибір кольору теми */
.theme-row { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 2px solid transparent; position: relative;
}
.swatch.on { border-color: var(--text); }
.swatch.on::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.25);
}

.lang-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-btn {
  min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.lang-btn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.lock-card { text-align: center; padding: 34px 22px; background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; }
.lock-icon { font-size: 44px; margin-bottom: 10px; }
.lock-card h3 { margin-bottom: 8px; }

.empty {
  text-align: center; color: var(--muted); font-size: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: var(--radius-md); padding: 28px 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 3%, var(--surface-raised)), transparent);
}

/* ---------- Instalock (FEATURE-009, лише власник) ---------- */
.il-card {
  background: var(--card); border: 1px solid var(--accent-soft);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 12px;
}
.il-head { min-height: auto; margin-bottom: 4px; cursor: pointer; }
.il-title { font-weight: 700; font-size: 15px; }
.il-status { color: var(--muted); font-size: 12px; margin: 4px 0 10px; min-height: 15px; }
.il-warn { color: var(--muted); font-size: 11px; margin-top: 10px; }
.il-agents {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px;
}
.il-agent {
  position: relative; aspect-ratio: 1; padding: 0; overflow: hidden;
  border-radius: 10px; border: 2px solid transparent; background: var(--card2); cursor: pointer;
}
.il-agent img { width: 100%; height: 100%; object-fit: cover; display: block; }
.il-agent.sel { border-color: var(--accent); }
.il-agent.locked { cursor: default; }
.il-agent.locked img { filter: grayscale(1); opacity: 0.4; }
.il-lock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text); opacity: 0.85; pointer-events: none;
}

/* ---------- налаштування ---------- */
.settings-head { margin-bottom: 14px; }
.settings-head h2 { margin: 0; }

.switch-row { display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; gap: 10px; font-size: 14px; cursor: pointer; }
.switch-row input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.switch {
  width: 46px; height: 27px; background: var(--card2); border-radius: 20px;
  position: relative; transition: background 0.2s; flex-shrink: 0;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; background: var(--muted); border-radius: 50%;
  transition: all 0.2s;
}
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { left: 22px; background: #fff; }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 5px var(--accent-soft); }
.switch-row input:disabled + .switch { opacity: .48; cursor: default; }
.xmpp-warning {
  margin: 4px 0 10px; padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  border-radius: 10px; background: color-mix(in srgb, var(--gold) 7%, transparent);
  color: color-mix(in srgb, var(--gold) 78%, var(--text));
  font-size: 12px; line-height: 1.45;
}

/* ---------- модалка ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 4, 8, .78); backdrop-filter: blur(7px) saturate(120%);
  display: flex; justify-content: center; padding: 18px;
  overflow-y: auto; /* коли клавіатура зʼїдає екран — модалку можна прокрутити */
}
.modal {
  width: 100%; max-width: 420px;
  margin: auto; /* центр, але з можливістю скролу при малому вʼюпорті */
  background: var(--surface-raised); border: 1px solid var(--line-soft);
  border-radius: 28px; padding: 20px;
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255,255,255,.065), 0 0 0 1px rgba(0,0,0,.22);
  animation: pop 0.25s var(--ease-out);
}
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }
body:has(#modal-skins:not(.hidden)) #modal-weapon:not(.hidden) { visibility: hidden; pointer-events: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.steps { padding-left: 20px; margin-bottom: 6px; }
.steps li { margin-bottom: 6px; }
.error { color: var(--accent); font-size: 13px; margin-top: 10px; }

/* ---------- нижня навігація ---------- */
.bottomnav {
  position: fixed; bottom: max(8px, env(safe-area-inset-bottom)); left: 50%; z-index: 20; transform: translateX(-50%);
  width: min(calc(100% - 20px), 540px);
  display: flex; justify-content: space-around;
  background: rgba(15, 17, 24, .9); backdrop-filter: blur(22px) saturate(145%);
  border: 1px solid var(--line-soft); border-radius: 24px;
  padding: 6px;
  box-shadow: 0 20px 54px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.055);
}
.nav-btn {
  background: none; border: none; color: var(--muted);
  font-size: 11px; font-weight: 700; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  /* flex:1 — рівні комірки, щоб і 4, і 5 вкладок (з Адміном) влазили на вузькому екрані */
  position: relative; flex: 1 1 0; min-width: 0; min-height: 52px; padding: 6px 4px; border-radius: 18px;
  transition: color .22s, background .22s, transform .22s var(--ease-out), box-shadow .22s;
}
.nav-btn > span {
  display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-btn .ic { width: 23px; height: 23px; transition: transform .25s var(--ease-out); }
.nav-btn.active {
  color: color-mix(in srgb, var(--accent) 78%, white); background: var(--accent-soft); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 30%, transparent), 0 8px 20px color-mix(in srgb, var(--accent) 11%, transparent);
}
.nav-btn.active::before {
  content: ""; position: absolute; top: 3px; left: 50%; width: 18px; height: 2px; transform: translateX(-50%);
  border-radius: 99px; background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.nav-btn.active .ic { transform: scale(1.09); }
.nav-btn.active .ic[data-fillable] { fill: currentColor; }

@media (hover: hover) and (pointer: fine) {
  .skin-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tier, var(--accent)) 46%, var(--border)); box-shadow: 0 20px 44px rgba(0,0,0,.3); }
  .night-market-entry:hover { transform: translateY(-2px); border-color: #e7bcff; }
  .subnav-btn:hover:not(.active) { border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); color: var(--text); }
  .admin-entry:hover { transform: translateY(-2px); border-color: var(--accent); }
}

/* Єдиний breakpoint із Night Market (було 350 проти 370): на 351–370px звичайний
   магазин лишався двоколонковим і став найвужчим саме там, де NM уже переходив
   в одну колонку (ревю дизайнера). */
@media (max-width: 370px) {
  .store-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .store-grid .skin-card { padding: 14px; }
  .store-grid .skin-img { height: 96px; }
  .store-grid .skin-name { font-size: 15px; }
  .store-grid .skin-name-row { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Співгравці (FEATURE-021) ---------- */
.pf-friends-hint { font-size: 11px; line-height: 1.35; }
.tm-hint { font-size: 11px; color: var(--muted); line-height: 1.35; margin-bottom: 8px; }
.tm-row {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 8px 12px; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 12px; margin-bottom: 6px;
}
.tm-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tm-copy b { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-copy small { font-size: 11px; color: var(--muted); font-weight: 600; }
.tm-badge {
  flex-shrink: 0; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; white-space: nowrap;
}
.tm-badge.here { color: var(--accent); background: var(--accent-soft); }
.tm-badge.friend { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }

/* ---------- Social hub / власний Riot roster ---------- */
.social-head { margin-bottom: 8px; }
.social-subnav {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 10px;
  border: 1px solid var(--line-soft); border-radius: 16px;
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
}
.social-subnav .subnav-btn {
  min-width: 0; min-height: 42px; padding-inline: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.social-panel { min-height: 120px; }
.social-hint { margin: 0 0 10px; font-size: 11.5px; line-height: 1.4; }
.social-search {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 12px; margin-bottom: 9px; border-radius: 13px;
  border: 1px solid var(--line-soft); background: var(--surface-raised);
  color: var(--muted);
}
.social-search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 68%, white);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.social-search input {
  min-width: 0; width: 100%; min-height: 42px; padding: 0;
  border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 14px;
}
.social-search input::placeholder { color: var(--muted); }
.social-state { margin-bottom: 8px; }
.social-callout {
  display: flex; flex-direction: column; gap: 5px; padding: 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line-soft));
  border-radius: 14px; background: var(--accent-soft);
}
.social-callout.warning {
  border-color: rgba(255, 190, 80, .42); background: rgba(255, 190, 80, .08);
}
.social-callout b { font-size: 14px; }
.social-callout span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.social-callout .btn-outline { margin-top: 5px; background: var(--surface-raised); }
.social-sync {
  display: flex; align-items: center; gap: 7px; min-height: 30px;
  color: var(--muted); font-size: 11.5px; line-height: 1.35;
}
.social-sync.warning { color: #eebc65; }
.riot-friends-list { display: flex; flex-direction: column; gap: 6px; }
.riot-friend-row {
  display: grid; grid-template-columns: 10px auto minmax(0, 1fr);
  align-items: center; gap: 10px; min-height: 54px; padding: 9px 12px;
  border: 1px solid var(--line-soft); border-radius: 13px;
  background: var(--surface-raised);
}
.riot-friend-row.no-map {
  grid-template-columns: 10px minmax(0, 1fr);
}
.riot-friend-map {
  width: 36px; height: 36px; border-radius: 9px; object-fit: cover;
  background: var(--bg2);
}
.riot-friend-copy {
  display: flex; min-width: 0; flex-direction: column; gap: 2px;
}
.riot-friend-copy b {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13.5px; font-weight: 820;
}
.riot-friend-copy small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted); font-size: 11px; font-weight: 600;
}
.riot-friend-copy .riot-friend-last-seen {
  white-space: normal; line-height: 1.35;
}
.presence-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: #6c7180; box-shadow: 0 0 0 3px rgba(108, 113, 128, .12);
}
.presence-dot.ingame, .presence-dot.online, .presence-dot.menus {
  background: #35d07f; box-shadow: 0 0 8px rgba(53, 208, 127, .48);
}
.presence-dot.pregame {
  background: #f6c85f; box-shadow: 0 0 8px rgba(246, 200, 95, .45);
}
.presence-dot.queue, .presence-dot.lobby {
  background: #59b9ff; box-shadow: 0 0 8px rgba(89, 185, 255, .42);
}
.presence-dot.party {
  background: #b787ff; box-shadow: 0 0 8px rgba(183, 135, 255, .42);
}
.presence-dot.offline { background: #505563; box-shadow: none; opacity: .7; }
.presence-dot.unknown { background: #7a7f8c; box-shadow: none; }

@media (max-width: 370px) {
  .social-subnav .subnav-btn { padding-inline: 5px; font-size: 12px; }
  .riot-friend-row { padding-inline: 10px; gap: 8px; }
}

/* ---------- прев'ю розфарбів і предметів бандла (FEATURE-024) ---------- */
.wd-chroma-videos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chroma-video {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px;
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-size: 11px; font-weight: 800;
}
.chroma-video:active { transform: scale(.97); }
.chroma-video .ic { width: 12px; height: 12px; fill: currentColor; }
/* у рядку бандла кнопка компактніша за магазинну */
.bundle-video-btn { width: 34px; height: 34px; min-width: 34px; min-height: 34px; flex-shrink: 0; }
.bundle-video-btn .ic { width: 13px; height: 13px; }

/* ---------- картка скіна: перегляд до покупки (FEATURE-024) ---------- */
.sd-hero { display: flex; align-items: center; justify-content: center; min-height: 132px; margin-bottom: 12px; }
.sd-hero img { max-width: 100%; max-height: 150px; object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)); }
.sd-hero-ph { width: 100%; height: 132px; border-radius: 14px; background: var(--bg2); }
.sd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sd-swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.sd-swatch {
  width: 44px; height: 44px; padding: 0; overflow: hidden; cursor: pointer;
  border-radius: 11px; border: 2px solid var(--line-soft); background: var(--bg2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
  transition: border-color .18s, transform .18s var(--ease-out);
}
.sd-swatch img { width: 100%; height: 100%; object-fit: cover; }
.sd-swatch.on { border-color: var(--accent); transform: scale(1.05); }
.sd-preview {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  padding: 10px 16px; border-radius: 12px; cursor: pointer; flex-shrink: 0;
  color: var(--text); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  font-size: 13px; font-weight: 800;
}
.sd-preview .ic { fill: currentColor; color: var(--accent); }
.sd-preview:active { transform: scale(.98); }
.sd-preview.small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.sd-chroma-name { margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.sd-levels { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.sd-level {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 8px 12px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--line-soft);
  font-size: 13px; font-weight: 700;
}
.sd-novideo { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ---------- згортання деталей налаштувань (2026-07-30) ---------- */
.st-more {
  display: flex; align-items: center; gap: 6px; min-height: 44px; width: 100%;
  margin-top: 6px; padding: 8px 0; cursor: pointer;
  background: none; border: none; color: var(--accent);
  font-size: 13px; font-weight: 800; text-align: left;
}
.st-more-chev { transition: transform .2s var(--ease-out); }
.st-more.open .st-more-chev { transform: rotate(90deg); }
.st-details { margin-top: 4px; }
/* причина, чому тумблер недоступний — замість мовчазного сірого */
.st-blocked {
  margin-top: 6px; padding: 9px 11px; border-radius: 10px;
  font-size: 11px; line-height: 1.35; font-weight: 600;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}
