/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   REVERSE // HUB
   Telegram Mini App skin вЂ” graphite base + amber accent (designer set).
   Dark by default, full light variant. Loads AFTER style.css.
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */

:root,
html[data-theme="dark"] {
  --bg:           #0B0C0E;
  --bg-app:       #101215;
  --bg-card:      #171A1E;
  --bg-card-2:    #1E2227;
  --bg-hover:     #262B31;
  --accent:       #E9A23B;
  --accent-hi:    #F5C070;
  --accent-deep:  #B97A1E;
  --accent-soft:  rgba(233, 162, 59, 0.14);
  --accent-dim:   rgba(233, 162, 59, 0.07);
  --teal:         #2FD3A7;
  --blue:         #4C9AFF;
  --rose:         #FF6B81;
  --text:         #F2F4F7;
  --text-sub:     #9AA3AE;
  --text-mute:    #6B747F;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hot:   rgba(233, 162, 59, 0.4);
  --shadow:       0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-deep:  0 20px 50px rgba(0, 0, 0, 0.65);
  --glow:         0 0 24px rgba(233, 162, 59, 0.3);
  --nav-bg:       rgba(20, 23, 27, 0.94);
  --grad-cta:     linear-gradient(135deg, #F0B454 0%, #E9A23B 50%, #C9821F 100%);
  --tile-warm:    linear-gradient(150deg, rgba(233,162,59,.16), rgba(233,162,59,.03));
  --tile-teal:    linear-gradient(150deg, rgba(47,211,167,.16), rgba(47,211,167,.03));
  --tile-blue:    linear-gradient(150deg, rgba(76,154,255,.16), rgba(76,154,255,.03));

  --rank-common:  #8D97A3;
  --rank-rare:    #4C9AFF;
  --rank-epic:    #B47CFF;
  --rank-legend:  #E9A23B;
  --rank-mythic:  #FF6B81;

  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', 'Outfit', system-ui, sans-serif;
  --radius-card:  16px;
  --radius-pill:  999px;
  --radius-chip:  12px;
}

html[data-theme="light"] {
  --bg:           #F0F1F3;
  --bg-app:       #E8EAED;
  --bg-card:      #FFFFFF;
  --bg-card-2:    #F4F5F7;
  --bg-hover:     #E4E6EA;
  --accent:       #C97F16;
  --accent-hi:    #A9660B;
  --accent-deep:  #8A5209;
  --accent-soft:  rgba(201, 127, 22, 0.12);
  --accent-dim:   rgba(201, 127, 22, 0.06);
  --teal:         #0E9E7A;
  --blue:         #2A6FD6;
  --rose:         #D64157;
  --text:         #16181C;
  --text-sub:     #5C6570;
  --text-mute:    #8B939D;
  --border:       rgba(20, 24, 30, 0.1);
  --border-hot:   rgba(201, 127, 22, 0.38);
  --shadow:       0 8px 22px rgba(30, 25, 15, 0.08);
  --shadow-deep:  0 16px 40px rgba(30, 25, 15, 0.14);
  --glow:         0 0 20px rgba(201, 127, 22, 0.18);
  --nav-bg:       rgba(255, 255, 255, 0.95);
  --grad-cta:     linear-gradient(135deg, #E9A23B 0%, #C97F16 60%, #A9660B 100%);
  --tile-warm:    linear-gradient(150deg, rgba(201,127,22,.12), rgba(201,127,22,.02));
  --tile-teal:    linear-gradient(150deg, rgba(14,158,122,.12), rgba(14,158,122,.02));
  --tile-blue:    linear-gradient(150deg, rgba(42,111,214,.12), rgba(42,111,214,.02));

  --rank-common:  #6F7783;
  --rank-rare:    #2A6FD6;
  --rank-epic:    #7C43D3;
  --rank-legend:  #B0700F;
  --rank-mythic:  #C7304A;
}

html, body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.01em;
}
.header-brand,
.hub-name,
.hub-f-title,
.hub-tile-name,
.section-heading,
.arena-league-title,
.shop-hero-title {
  font-family: var(--font-display);
}
::selection { background: var(--accent); color: #16181C; }

/* Atmosphere: subtle, not neon */
body {
  background: var(--bg) !important;
  background-attachment: fixed;
}
body::before, body::after { display: none !important; }
#app { position: relative; z-index: 1; }
#app::before { display: none !important; }
#app-container {
  background: var(--bg-app) !important;
  box-shadow: none !important;
}

/* в”Ђв”Ђ Header в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.app-header {
  background: var(--bg-app) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
  padding: 10px 14px !important;
  gap: 8px;
}
.app-header::after { display: none !important; }
.header-brand {
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  font-style: normal !important;
  font-family: var(--font-display) !important;
  color: var(--text) !important;
  background: none !important;
  -webkit-text-fill-color: var(--text) !important;
  filter: none !important;
}
.header-badges { display: flex; align-items: center; gap: 6px; }
.badge {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  color: var(--text-sub) !important;
  box-shadow: none !important;
  padding: 6px 11px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.badge.badge-accent {
  color: var(--accent-hi) !important;
  border-color: var(--border-hot) !important;
  background: var(--accent-dim) !important;
  box-shadow: none !important;
}
.theme-toggle {
  width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent-hi);
  cursor: pointer;
  transition: transform .15s;
}
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 17px; height: 17px; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
html[data-theme="light"] .theme-toggle .ico-moon { display: none; }

.app-main { padding: 14px 14px 104px !important; overflow-x: hidden; }
.tab { gap: 14px !important; max-width: 100%; overflow-x: clip; }
#tab-profile { overflow-x: clip; }

/* в”Ђв”Ђ Base surfaces в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.bento-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-card) !important;
  clip-path: none !important;
  box-shadow: none !important;
  padding: 16px !important;
}
.bento-card::after { display: none !important; }
.clan-panel {
  background: transparent !important;
  border: 0 !important; border-radius: 0 !important;
  clip-path: none !important; box-shadow: none !important;
}
.empty-state { color: var(--text-mute) !important; font-weight: 600; }

.section-heading {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--text-mute) !important;
  padding-left: 0 !important;
  margin-bottom: 2px !important;
}
.section-heading::before { display: none !important; }

.action-pill, .filter-pill, .page-btn {
  border-radius: 999px !important;
  clip-path: none !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-card) !important;
  color: var(--text) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: transform .14s, border-color .2s, background .2s !important;
}
.action-pill:active, .filter-pill:active, .page-btn:active { transform: scale(.97) !important; }
.filter-pill.active {
  background: var(--accent-soft) !important;
  border-color: var(--border-hot) !important;
  color: var(--accent-hi) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.action-pill.accent-btn {
  background: var(--grad-cta) !important;
  color: #16130C !important;
  border-color: transparent !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.action-btn-large {
  border-radius: 14px !important;
  clip-path: none !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 700 !important;
}
.action-btn-large::before, .action-btn-large::after { display: none !important; }
.task-claim {
  border-radius: 999px !important;
  clip-path: none !important;
  background: var(--grad-cta) !important;
  color: #16130C !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
}
.stat-tile {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  clip-path: none !important;
  padding: 12px !important;
  text-align: left !important;
}
.stat-tile::before, .stat-tile::after { display: none !important; }
.stat-tile:hover { transform: none !important; box-shadow: none !important; }
.accent-tile { background: var(--tile-warm) !important; border-color: var(--border-hot) !important; }
.stat-label {
  color: var(--text-mute) !important;
  font-size: 10px !important; letter-spacing: .06em !important;
  font-weight: 600 !important; margin-bottom: 6px !important;
}
.stat-value { font-size: 20px !important; font-weight: 800 !important; color: var(--text) !important; }
.accent-text { color: var(--accent-hi) !important; text-shadow: none !important; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   HUB (profile home) вЂ” designer layout
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
.hub-id {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px;
  align-items: center; justify-items: stretch;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg); border: 1px solid var(--border);
  transition: min-height .2s ease, padding .2s ease;
}
/* Light mode (no custom theme media): match UI card surfaces */
html[data-theme="light"] .hub-id:not(.has-theme) {
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
/* РЎ С‚РµРјРѕР№ вЂ” РєСЂСѓРїРЅР°СЏ РїР»Р°С€РєР°, СЂСЏРґ РЅР° РІСЃСЋ С€РёСЂРёРЅСѓ, РІСЃС‘ РїРѕ РІРµСЂС‚РёРєР°Р»СЊРЅРѕРјСѓ С†РµРЅС‚СЂСѓ */
.hub-id.has-theme {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  box-shadow: none;
  min-height: 148px;
  padding: 20px 16px;
  border-radius: 18px;
}
.hub-id.has-theme::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.42) 50%, rgba(0,0,0,.64) 100%),
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.14) 55%, rgba(0,0,0,.32) 100%);
}
.hub-id-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
/* РќРµР»СЊР·СЏ РёСЃРїРѕР»СЊР·РѕРІР°С‚СЊ :empty { background-image:none !important } вЂ”
   С„РѕРЅ С‚РµРјС‹ СЃС‚Р°РІРёС‚СЃСЏ С‡РµСЂРµР· style РЅР° РїСѓСЃС‚РѕР№ div Рё РёРЅР°С‡Рµ РІСЃРµРіРґР° СЃР±СЂР°СЃС‹РІР°РµС‚СЃСЏ. */
.hub-id-theme-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  display: block;
  border: 0;
}
.hub-id-theme-media:-moz-broken,
.hub-id-bg img.hub-id-theme-media[src=""],
.hub-id-bg img.hub-id-theme-media:not([src]) {
  display: none !important;
}
.hub-id > *:not(.hub-id-bg) {
  position: relative; z-index: 1;
  align-self: center;
}
.hub-av {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: var(--bg-hover);
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--accent-hi); font-weight: 800;
  flex-shrink: 0;
}
.hub-av #av-fallback {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  line-height: 1;
  margin: 0; padding: 0;
  font-size: 18px;
}
.hub-id.has-theme .hub-av {
  width: 58px; height: 58px;
}
.hub-id.has-theme .hub-av #av-fallback { font-size: 20px; }
.hub-id-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
}
.hub-id.has-theme .hub-id-main {
  gap: 4px;
  justify-content: center;
}
.hub-id-top {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.hub-name {
  font-size: 16px !important; font-weight: 800 !important;
  letter-spacing: -.01em !important; text-transform: none !important;
  color: var(--text) !important; margin: 0 !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px;
  line-height: 1.15 !important;
}
.hub-pts {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--accent-hi);
  background: var(--accent-dim); border: 1px solid var(--border-hot);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
  line-height: 1;
}
.hub-verse {
  font-size: 11px !important; color: var(--text-mute) !important;
  font-weight: 500 !important; margin-top: 0 !important;
  text-transform: none !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.2 !important;
  max-width: 100%;
}
.hub-xp {
  margin-top: 4px; height: 4px; border-radius: 99px;
  background: var(--bg-hover); overflow: hidden;
  width: 100%;
  max-width: 160px;
}
.hub-id.has-theme .hub-xp {
  margin-top: 2px;
  max-width: 148px;
}
.hub-xp > i { display: block; height: 100%; width: 45%; background: var(--grad-cta); }
.hub-league {
  max-width: 96px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  text-align: center;
  border: 1px solid var(--border-hot); color: var(--accent-hi);
  font-size: 10px; font-weight: 700; padding: 8px 12px; line-height: 1.2;
  background: var(--accent-dim);
  text-transform: none !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hub-id.has-theme .hub-league {
  padding: 10px 14px;
  margin: 0;
}
/* Custom theme media: force light text/pills over dark overlay (both themes) */
.hub-id.has-theme .hub-name { color: #F2F4F7 !important; }
.hub-id.has-theme .hub-verse { color: #9AA3AE !important; }
.hub-id.has-theme .hub-pts,
.hub-id.has-theme .hub-league {
  color: #F5C070;
  background: rgba(233, 162, 59, 0.14);
  border-color: rgba(233, 162, 59, 0.4);
}
.hub-id.has-theme .hub-av {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #F5C070;
}
.hub-id.has-theme .hub-xp { background: rgba(255, 255, 255, 0.12); }

.hub-feature, .hub-tile, .hub-mini-btn, .hub-banner, .hub-chip, .theme-toggle {
  font-family: inherit;
  color: var(--text);
  -webkit-appearance: none;
}

.hub-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.hub-chip {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 9px 10px; border-radius: 13px;
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: transform .14s, border-color .2s;
}
.hub-chip:active { transform: scale(.96); }
.hub-chip i {
  font-style: normal; font-size: 12px; line-height: 1;
}
.hub-chip b { font-size: 14px; font-weight: 800; color: var(--text); }
.hub-chip span { font-size: 10px; color: var(--text-mute); font-weight: 600; letter-spacing: .02em; }
.hub-chip.c-coin i { color: var(--accent); }
.hub-chip.c-star i { color: var(--blue); }
.hub-chip.c-spin i { color: var(--teal); }
.hub-chip.c-card i { color: var(--rose); }

/* Solo feature + 2-up split (replaces carousel rail) */
.hub-feature-solo {
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 148px;
  scroll-snap-align: none;
}
.hub-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.hub-feature-half {
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 118px;
  padding: 14px !important;
  scroll-snap-align: none;
}
.hub-feature-half .hub-f-title { font-size: 16px; }
.hub-feature-half .hub-f-sub { font-size: 11px; }

.hub-rail {
  display: flex; gap: 10px;
  width: 100%; max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 2px;
  margin: 0;
}
.hub-rail::-webkit-scrollbar { display: none; }
.hub-feature {
  position: relative; overflow: hidden;
  flex: 0 0 calc(100% - 28px);
  max-width: calc(100% - 28px);
  scroll-snap-align: start;
  border-radius: 18px; padding: 16px; min-height: 132px;
  border: 1px solid var(--border); background: var(--bg-card);
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; text-align: left; transition: transform .16s, border-color .2s, background .2s;
  color: var(--text);
  isolation: isolate;
  box-sizing: border-box;
  contain: paint;
}
.hub-feature .hub-f-art {
  border-radius: inherit;
  overflow: hidden;
  clip-path: inset(0 round 18px);
}
.hub-feature:active { transform: scale(.985); }
.hub-feature.f-warm { background: transparent; border-color: var(--border-hot); }
.hub-feature.f-teal,
.hub-feature.f-blue { background: transparent; }
html[data-theme="light"] .hub-feature {
  box-shadow: none;
}
html[data-theme="light"] .hub-feature.f-teal,
html[data-theme="light"] .hub-feature.f-blue,
html[data-theme="light"] .hub-feature.f-warm {
  background: transparent;
}

/* Arena card вЂ” custom art + dark scrim for readable type */
.hub-feature.f-warm .hub-f-art,
#hub-art-arena {
  background-image: url('assets/hub/arena.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  overflow: hidden;
  clip-path: inset(0 round 18px);
}
.hub-feature.f-warm .hub-f-art::after,
#hub-art-arena::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(8, 10, 14, 0.22) 0%, rgba(8, 10, 14, 0.45) 55%, rgba(8, 10, 14, 0.62) 100%);
  pointer-events: none;
}
.hub-feature.f-warm .hub-f-art img,
#hub-art-arena img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 1; mask-image: none; -webkit-mask-image: none;
  display: block; border-radius: inherit;
}
.hub-feature.f-warm {
  color: #F2F4F7;
  border-color: rgba(255, 255, 255, 0.14);
}
.hub-feature.f-warm .hub-f-badge {
  color: rgba(242, 244, 247, 0.88);
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
}
.hub-feature.f-warm .hub-f-meta { color: rgba(242, 244, 247, 0.7); }
.hub-feature.f-warm .hub-f-meta b { color: #F5C070; }
.hub-feature.f-warm .hub-f-title { color: #F2F4F7; }
.hub-feature.f-warm .hub-f-sub,
.hub-feature.f-warm .hub-f-arrow { color: rgba(242, 244, 247, 0.72); }
html[data-theme="light"] .hub-feature.f-warm {
  background: transparent;
  border-color: rgba(20, 24, 30, 0.12);
  color: #F2F4F7;
}
html[data-theme="light"] .hub-feature.f-warm .hub-f-badge {
  background: rgba(0, 0, 0, 0.32);
  color: rgba(242, 244, 247, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Cards hub tile вЂ” custom art + scrim */
.hub-feature.f-blue .hub-f-art,
#hub-art-cards {
  background-image: url('assets/hub/cards.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  overflow: hidden;
  clip-path: inset(0 round 18px);
}
.hub-feature.f-blue .hub-f-art::after,
#hub-art-cards::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(8, 10, 14, 0.38) 0%, rgba(8, 10, 14, 0.58) 55%, rgba(8, 10, 14, 0.76) 100%);
  pointer-events: none;
}
.hub-feature.f-blue {
  color: #F2F4F7;
  border-color: rgba(255, 255, 255, 0.12);
}
.hub-feature.f-blue .hub-f-badge {
  color: rgba(242, 244, 247, 0.88);
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
}
.hub-feature.f-blue .hub-f-title { color: #F2F4F7; }
.hub-feature.f-blue .hub-f-sub,
.hub-feature.f-blue .hub-f-arrow { color: rgba(242, 244, 247, 0.72); }
html[data-theme="light"] .hub-feature.f-blue {
  background: var(--bg-card);
  border-color: rgba(20, 24, 30, 0.12);
  color: #F2F4F7;
}
html[data-theme="light"] .hub-feature.f-blue .hub-f-badge {
  background: rgba(0, 0, 0, 0.32);
  color: rgba(242, 244, 247, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Clan hub tile вЂ” custom art + scrim */
.hub-feature.f-teal .hub-f-art,
#hub-art-clan {
  background-image: url('assets/hub/clan.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  overflow: hidden;
  clip-path: inset(0 round 18px);
}
.hub-feature.f-teal .hub-f-art::after,
#hub-art-clan::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(8, 10, 14, 0.38) 0%, rgba(8, 10, 14, 0.58) 55%, rgba(8, 10, 14, 0.76) 100%);
  pointer-events: none;
}
.hub-feature.f-teal {
  color: #F2F4F7;
  border-color: rgba(255, 255, 255, 0.12);
}
.hub-feature.f-teal .hub-f-badge {
  color: rgba(242, 244, 247, 0.88);
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
}
.hub-feature.f-teal .hub-f-title { color: #F2F4F7; }
.hub-feature.f-teal .hub-f-sub,
.hub-feature.f-teal .hub-f-arrow { color: rgba(242, 244, 247, 0.72); }
html[data-theme="light"] .hub-feature.f-teal {
  background: var(--bg-card);
  border-color: rgba(20, 24, 30, 0.12);
  color: #F2F4F7;
}
html[data-theme="light"] .hub-feature.f-teal .hub-f-badge {
  background: rgba(0, 0, 0, 0.32);
  color: rgba(242, 244, 247, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
}

/* в”Ђв”Ђ Cosmos photo layers в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.cosmos-photo, .hub-f-art img, .hub-tile-art img,
.hub-banner-art img, .tasks-hero-art img, .shop-hero-art img,
.arena-hero-art img, .arena-hero-art video {
  object-fit: cover;
  display: block;
}
.cosmos-cover {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hub-collage {
  position: relative; height: 152px; margin: 0 0 10px;
  overflow: hidden; border-radius: 16px;
  background: #0a0a0c; border: 1px solid var(--border);
}
.hub-collage-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
  display: block; pointer-events: none;
}

.hub-f-art {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.hub-f-art img, .hub-f-art.cosmos-user-bg {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .55;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, transparent 78%);
}
.hub-f-top, .hub-f-title, .hub-f-sub { position: relative; z-index: 1; }
.hub-f-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hub-f-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: var(--text-sub); background: rgba(0,0,0,.25);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 9px;
}
html[data-theme="light"] .hub-f-badge { background: rgba(20,24,30,.05); }
.hub-f-meta { font-size: 10px; color: var(--text-mute); font-weight: 700; text-align: right; }
.hub-f-meta b { display: block; font-size: 12px; color: var(--accent-hi); }
.hub-f-title {
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.hub-f-sub { font-size: 11px; color: var(--text-mute); font-weight: 500; margin-top: 3px; }
.hub-f-arrow { margin-left: auto; color: var(--text-mute); font-size: 18px; }

.hub-banner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 14px; border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--tile-blue), var(--bg-card);
  cursor: pointer; text-align: left;
}
.hub-banner-art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 42%;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.hub-banner-art img {
  width: 100%; height: 100%; object-fit: cover; opacity: .72;
  mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.85) 35%);
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.85) 35%);
}
.hub-banner > *:not(.hub-banner-art) { position: relative; z-index: 1; }
.hub-banner-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(76,154,255,.16); color: var(--blue); font-size: 16px;
}
.hub-banner > span { min-width: 0; }
.hub-banner-title { display: block; font-size: 14px; font-weight: 700; }
.hub-banner-sub {
  display: block; margin-top: 3px;
  font-size: 11px; font-weight: 500; color: var(--text-mute);
}
.hub-banner.hub-banner-visual .hub-banner-sub { color: rgba(242, 244, 247, 0.72); }
.hub-banner-tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.hub-tag {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(0,0,0,.22); color: var(--text-sub); border: 1px solid var(--border);
}
html[data-theme="light"] .hub-tag { background: rgba(20,24,30,.05); }

/* Tasks banner вЂ” full-bleed custom art */
.hub-banner.hub-banner-visual {
  background-color: #0a0c0e;
  background-image: url('assets/hub/tasks.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: rgba(255, 255, 255, 0.12);
  color: #F2F4F7;
}
.hub-banner.hub-banner-visual::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.78) 0%, rgba(8, 10, 14, 0.42) 48%, rgba(8, 10, 14, 0.28) 100%);
  pointer-events: none;
}
.hub-banner.hub-banner-visual .hub-banner-art,
#hub-art-tasks {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; left: 0; right: 0;
  background-image: url('assets/hub/tasks.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hub-banner.hub-banner-visual .hub-banner-art::after,
#hub-art-tasks::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.72) 0%, rgba(8, 10, 14, 0.35) 50%, rgba(8, 10, 14, 0.15) 100%);
  pointer-events: none;
}
.hub-banner.hub-banner-visual .hub-banner-art img,
#hub-art-tasks img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 1; mask-image: none; -webkit-mask-image: none;
  display: block;
}
.hub-banner.hub-banner-visual .hub-banner-ico {
  background: rgba(0, 0, 0, 0.35);
  color: #7eb6ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hub-banner.hub-banner-visual .hub-banner-title { color: #F2F4F7; }
.hub-banner.hub-banner-visual .hub-tag {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(242, 244, 247, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}
.hub-banner.hub-banner-visual .hub-f-arrow { color: rgba(242, 244, 247, 0.72); }
html[data-theme="light"] .hub-banner.hub-banner-visual {
  background: transparent;
  border-color: rgba(20, 24, 30, 0.12);
}

.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hub-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hub-grid-3 .hub-tile {
  min-height: 108px;
  padding: 12px;
}
.hub-grid-3 .hub-tile-name { font-size: 12px; }
.hub-grid-3 .hub-tile-sub { font-size: 10px; }
.hub-grid-3 .hub-tile-ico { font-size: 16px; margin-bottom: 8px; }
.hub-tile {
  position: relative; overflow: hidden; text-align: left;
  padding: 14px; border-radius: 16px; min-height: 92px;
  border: 1px solid var(--border); background: var(--bg-card);
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; transition: transform .16s, border-color .2s;
}
.hub-tile-art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 46%;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.hub-tile-art img {
  width: 100%; height: 100%; object-fit: cover; opacity: .62;
  mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.8) 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.8) 30%);
}
.hub-tile-art.has-user img { opacity: .75; }
.hub-tile-ico, .hub-tile-name, .hub-tile-sub { position: relative; z-index: 1; }
.hub-tile:active { transform: scale(.97); }
.hub-tile.t-warm { background: transparent; border-color: var(--border-hot); }

/* Open card tile вЂ” custom art */
.hub-tile.t-warm .hub-tile-art,
#hub-art-spin {
  width: 100%; left: 0;
  background-image: url('assets/hub/spin.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hub-tile.t-warm .hub-tile-art::after,
#hub-art-spin::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.82) 0%, rgba(8, 10, 14, 0.35) 52%, rgba(8, 10, 14, 0.18) 100%);
  pointer-events: none;
}
.hub-tile.t-warm .hub-tile-art img,
#hub-art-spin img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 1; mask-image: none; -webkit-mask-image: none;
}
.hub-tile.t-warm .hub-tile-ico { color: var(--accent-hi); }
.hub-tile.t-warm .hub-tile-name { color: #F2F4F7; }
.hub-tile.t-warm .hub-tile-sub { color: rgba(242, 244, 247, 0.72); }
html[data-theme="light"] .hub-tile.t-warm {
  background: transparent;
  border-color: rgba(20, 24, 30, 0.12);
}
html[data-theme="light"] .hub-tile.t-warm .hub-tile-name { color: #F2F4F7; }
html[data-theme="light"] .hub-tile.t-warm .hub-tile-sub { color: rgba(242, 244, 247, 0.78); }

.hub-tile.t-teal { background: transparent; border-color: rgba(255, 255, 255, 0.12); }

/* Team tile вЂ” custom art */
.hub-tile.t-teal .hub-tile-art,
#hub-art-team {
  width: 100%; left: 0;
  background-image: url('assets/hub/team.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hub-tile.t-teal .hub-tile-art::after,
#hub-art-team::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.82) 0%, rgba(8, 10, 14, 0.35) 52%, rgba(8, 10, 14, 0.18) 100%);
  pointer-events: none;
}
.hub-tile.t-teal .hub-tile-art img,
#hub-art-team img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  opacity: 1; mask-image: none; -webkit-mask-image: none;
}
.hub-tile.t-teal .hub-tile-ico { color: var(--teal); }
.hub-tile.t-teal .hub-tile-name { color: #F2F4F7; }
.hub-tile.t-teal .hub-tile-sub { color: rgba(242, 244, 247, 0.72); }
html[data-theme="light"] .hub-tile.t-teal {
  background: transparent;
  border-color: rgba(20, 24, 30, 0.12);
}
html[data-theme="light"] .hub-tile.t-teal .hub-tile-name { color: #F2F4F7; }
html[data-theme="light"] .hub-tile.t-teal .hub-tile-sub { color: rgba(242, 244, 247, 0.78); }

/* CreatHub tile вЂ” custom art */
.hub-tile.t-blue { background: transparent; border-color: rgba(255, 255, 255, 0.12); }
.hub-tile.t-blue .hub-tile-art,
#hub-art-themes {
  width: 100%; left: 0;
  background-image: url('assets/hub/shop.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hub-tile.t-blue .hub-tile-art::after,
#hub-art-themes::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.82) 0%, rgba(8, 10, 14, 0.35) 52%, rgba(8, 10, 14, 0.18) 100%);
  pointer-events: none;
}
.hub-tile.t-blue .hub-tile-art img,
#hub-art-themes img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  opacity: 1; mask-image: none; -webkit-mask-image: none;
}
.hub-tile.t-blue .hub-tile-ico { color: var(--accent-hi); }
.hub-tile.t-blue .hub-tile-name { color: #F2F4F7; }
.hub-tile.t-blue .hub-tile-sub { color: rgba(242, 244, 247, 0.72); }
html[data-theme="light"] .hub-tile.t-blue {
  background: transparent;
  border-color: rgba(20, 24, 30, 0.12);
}
html[data-theme="light"] .hub-tile.t-blue .hub-tile-name { color: #F2F4F7; }
html[data-theme="light"] .hub-tile.t-blue .hub-tile-sub { color: rgba(242, 244, 247, 0.78); }

.hub-tile-ico { font-size: 18px; margin-bottom: 10px; }
.hub-tile.t-warm .hub-tile-ico { color: var(--accent); }
.hub-tile.t-teal .hub-tile-ico { color: var(--teal); }
.hub-tile-name { font-size: 13px; font-weight: 700; color: var(--text); }
.hub-tile-sub { font-size: 10px; color: var(--text-mute); font-weight: 500; margin-top: 2px; }

.hub-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hub-mini-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 6px; border-radius: 13px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 10px; font-weight: 600; color: var(--text-sub);
  transition: transform .14s;
}
.hub-mini-btn:active { transform: scale(.94); }
.hub-mini-btn i { font-style: normal; font-size: 15px; color: var(--accent); }

/* Activity feed вЂ” richer cards */
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
  min-height: 72px;
}
.recent-item.has-bg {
  background-size: cover !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
}
.recent-item.has-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg-card) 38%, rgba(23,26,30,.78) 70%, rgba(23,26,30,.42) 100%);
}
.recent-icon-wrap {
  width: 46px !important; height: 58px !important; border-radius: 10px !important;
  overflow: hidden; background: var(--bg-hover) !important; flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
  position: relative; z-index: 1;
}
.recent-info { position: relative; z-index: 1; flex: 1; min-width: 0; }
.recent-name { font-size: 13px; font-weight: 700; }
.recent-rank { font-size: 10px; font-weight: 700; margin-top: 2px; }
.recent-pts {
  position: relative; z-index: 1;
  color: var(--accent-hi) !important; font-weight: 800; font-size: 12px;
  background: var(--accent-dim); border: 1px solid var(--border-hot);
  border-radius: 999px; padding: 4px 9px;
}

.cards-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 2px;
}
.cards-count {
  font-size: 11px; font-weight: 700; color: var(--text-mute);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.card-img-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 800; color: rgba(255,255,255,.35);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 45%),
    linear-gradient(160deg, var(--bg-hover), var(--bg-card-2));
}
.card-item.rank-rare .card-img-placeholder { background: linear-gradient(160deg, rgba(76,154,255,.25), var(--bg-card-2)); }
.card-item.rank-epic .card-img-placeholder { background: linear-gradient(160deg, rgba(180,124,255,.25), var(--bg-card-2)); }
.card-item.rank-legend .card-img-placeholder { background: linear-gradient(160deg, rgba(233,162,59,.28), var(--bg-card-2)); }
.card-item.rank-mythic .card-img-placeholder { background: linear-gradient(160deg, rgba(255,107,129,.28), var(--bg-card-2)); }

/* Cards spotlight hero */
.cards-spotlight {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--border-hot); margin-bottom: 4px;
  min-height: 210px; cursor: pointer;
  background: var(--bg-card);
  transition: transform .18s;
}
.cards-spotlight:active { transform: scale(.985); }
.cards-spotlight-art {
  position: absolute; inset: 0; background-size: cover; background-position: center top;
}
.cards-spotlight-art-default {
  background-position: center right;
}
.cards-spotlight-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,.08) 0%, rgba(8,9,11,.72) 58%, rgba(8,9,11,.95) 100%);
}
.cards-spotlight-body {
  position: relative; z-index: 2; padding: 14px 14px 16px;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px;
}
.cards-spotlight-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-hi); margin-bottom: 4px;
}
.cards-spotlight-title {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  margin-bottom: 6px;
}
.cards-spotlight-meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 11px; color: var(--text-sub); font-weight: 600;
}
.cards-spotlight-stat {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 4px 9px; color: #fff; font-size: 10px; font-weight: 700;
}
.cards-spotlight-stars {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(0,0,0,.55); border-radius: 999px; padding: 4px 8px;
  color: var(--accent-hi); font-size: 10px; letter-spacing: 1px;
}

/* Team hero collage */
.team-hero {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  margin-bottom: 4px; min-height: 74px;
}
.team-hero-slot {
  aspect-ratio: 3/4; border-radius: 10px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-mute); font-size: 11px; font-weight: 700;
  background-size: cover; background-position: center;
}
.team-hero-slot.filled { border-color: var(--border-hot); box-shadow: 0 6px 14px rgba(0,0,0,.22); }

/* Tasks hero */
.tasks-hero {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--border); background: var(--tile-warm), var(--bg-card);
  padding: 16px; margin-bottom: 4px; min-height: 96px;
}
.tasks-hero-art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 38%;
  pointer-events: none; overflow: hidden;
}
.tasks-hero-art img {
  width: 100%; height: 100%; object-fit: cover; opacity: .68;
  mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.85) 28%);
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.85) 28%);
}
.tasks-hero-copy { position: relative; z-index: 1; max-width: 72%; }
.tasks-hero-kicker { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); }
.tasks-hero-title { font-size: 18px; font-weight: 800; margin-top: 3px; }
.tasks-hero-sub { font-size: 11px; color: var(--text-mute); margin-top: 4px; line-height: 1.35; }

.task-item { position: relative; overflow: hidden; }
.task-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-cta); border-radius: 99px;
}
.task-icon {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px;
  background: var(--accent-dim); border: 1px solid var(--border-hot);
}
.task-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }

/* Shop hero art */
.shop-hero { position: relative; overflow: hidden !important; }
.shop-hero-art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  pointer-events: none; overflow: hidden;
}
.shop-hero-art img {
  width: 100%; height: 100%; object-fit: cover; opacity: .7;
  mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.88) 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.88) 30%);
}
.shop-hero-kicker, .shop-hero-title, .shop-hero-sub { position: relative; z-index: 1; max-width: 68%; }
.shop-item { position: relative; overflow: hidden; }
.shop-item::after {
  content: ''; position: absolute; inset: auto -20px -20px auto; width: 80px; height: 80px;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

/* Arena hero art */
.arena-hero-banner { position: relative; overflow: hidden !important; }
.arena-hero-art {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.arena-hero-art img,
.arena-hero-art video,
.arena-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  display: block;
  border: 0;
}
.arena-hero-art.has-user img { opacity: .46; }
.arena-hero-content { position: relative; z-index: 2; }
.arena-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(11,12,14,.82) 0%, rgba(11,12,14,.48) 52%, rgba(11,12,14,.36) 100%),
    rgba(0, 0, 0, 0.22);
}

/* Ambient orbs вЂ” subtle, not purple */
#app-container {
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(233,162,59,.07), transparent 55%),
    radial-gradient(ellipse 90% 60% at -10% 20%, rgba(47,211,167,.05), transparent 50%),
    var(--bg-app) !important;
}
html[data-theme="light"] #app-container {
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(201,127,22,.08), transparent 55%),
    radial-gradient(ellipse 90% 60% at -10% 20%, rgba(14,158,122,.06), transparent 50%),
    var(--bg-app) !important;
}

/* Empty states with illustration */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 28px 16px !important;
}
.empty-state::before { display: none; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   CARDS вЂ” anime collection tiles
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
.cards-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
.card-item {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-card) !important;
  padding: 0 !important;
  transition: transform .16s, border-color .2s !important;
  box-shadow: none !important;
}
.card-item:active { transform: scale(.97) !important; }
.card-item .card-img-wrap { border-radius: 0 !important; }
.card-item .card-img-wrap::after {
  background: linear-gradient(to top, rgba(6,7,9,.92) 0%, rgba(6,7,9,.45) 34%, transparent 62%) !important;
}
.card-img-placeholder { font-size: 26px; color: rgba(255,255,255,.35) !important; }
.card-rank-bar { height: 3px !important; }
.card-item .card-info { padding: 10px 11px 11px !important; gap: 5px !important; }
.card-item .font-black {
  font-size: 13px !important; font-weight: 700 !important;
  font-style: normal !important; text-transform: none !important;
  letter-spacing: -.01em !important; color: #fff !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.85) !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-item .text-\[9px\] {
  font-size: 9px !important; font-weight: 700 !important;
  letter-spacing: .06em !important; text-transform: uppercase !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.8) !important;
}
.card-item .flex.gap-1 span.card-stat {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(0,0,0,.55) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  padding: 3px 7px !important;
  font-size: 10px !important; font-weight: 700 !important;
}
.card-item .flex.gap-1 span.card-stat.atk { color: var(--accent-hi) !important; }
.card-item .flex.gap-1 span.card-stat.hp { color: #FF8FA0 !important; }
.card-stars {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: flex; gap: 1px; padding: 3px 6px; border-radius: 999px;
  background: rgba(0,0,0,.55); font-size: 9px; color: var(--accent-hi);
  letter-spacing: 1px;
}
.card-item.rank-rare { border-color: color-mix(in srgb, var(--rank-rare) 40%, transparent) !important; }
.card-item.rank-epic { border-color: color-mix(in srgb, var(--rank-epic) 45%, transparent) !important; }
.card-item.rank-legend { border-color: color-mix(in srgb, var(--rank-legend) 50%, transparent) !important; }
.card-item.rank-mythic { border-color: color-mix(in srgb, var(--rank-mythic) 55%, transparent) !important; }
.card-item.rank-legend .card-img-wrap::after,
.card-item.rank-mythic .card-img-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 62%);
  background-size: 220% 100%;
  animation: cardHolo 3.6s linear infinite;
}
@keyframes cardHolo {
  0% { background-position: 130% 0; }
  100% { background-position: -90% 0; }
}
.bg-РћР±С‹С‡РЅС‹Р№ { background: var(--rank-common) !important; box-shadow: none !important; }
.bg-Р РµРґРєРёР№ { background: var(--rank-rare) !important; box-shadow: none !important; }
.bg-Р­РїРёС‡РµСЃРєРёР№ { background: var(--rank-epic) !important; box-shadow: none !important; }
.bg-Р›РµРіРµРЅРґР°СЂРЅС‹Р№ { background: var(--rank-legend) !important; box-shadow: none !important; }
.bg-РњРёС„РёС‡РµСЃРєРёР№ { background: linear-gradient(90deg, var(--rank-mythic), var(--accent)) !important; box-shadow: none !important; }
.r-РћР±С‹С‡РЅС‹Р№ { color: var(--rank-common) !important; }
.r-Р РµРґРєРёР№ { color: var(--rank-rare) !important; }
.r-Р­РїРёС‡РµСЃРєРёР№ { color: var(--rank-epic) !important; }
.r-Р›РµРіРµРЅРґР°СЂРЅС‹Р№ { color: var(--rank-legend) !important; }
.r-РњРёС„РёС‡РµСЃРєРёР№ { color: var(--rank-mythic) !important; }

.filter-row {
  display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px;
  mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
}
.filter-row::-webkit-scrollbar { display: none; }
.pagination-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.page-info { color: var(--text-sub) !important; letter-spacing: 0 !important; font-size: 13px !important; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   ARENA
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
.arena-hero-banner {
  position: relative; overflow: hidden;
  border-radius: 18px !important; padding: 16px !important;
  border: 1px solid var(--border-hot) !important;
  background: #101215 !important;
  margin-bottom: 12px;
}
.arena-hero-bg-glow { display: none; }
.arena-hero-content { display: flex; gap: 14px; align-items: center; }
.arena-tier-badge {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--border-hot);
  color: var(--accent-hi); font-size: 20px;
}
.arena-hero-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 3px;
}
.arena-tier-details { min-width: 0; flex: 1; }
.arena-league-title {
  font-size: 18px !important; font-weight: 800 !important;
  letter-spacing: -.01em !important; text-transform: none !important;
  color: var(--text) !important; margin: 0 !important;
}
.arena-trophy-display { font-size: 12px; color: var(--text-sub); font-weight: 600; margin-top: 3px; }
.mmr-tag { color: var(--text-mute); font-size: 11px; }
.arena-prog-bar-wrap {
  height: 5px; border-radius: 99px; overflow: hidden;
  background: var(--bg-hover); margin: 9px 0 5px;
}
.arena-prog-bar-fill { height: 100%; background: var(--grad-cta) !important; border-radius: inherit; transition: width .4s ease; }
.arena-prog-text { font-size: 10px; color: var(--text-mute); font-weight: 600; }
.arena-active-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; margin-bottom: 12px; border-radius: 14px;
  background: var(--accent-dim); border: 1px solid var(--border-hot); cursor: pointer;
}
.active-banner-text { flex: 1; font-size: 12px; }
.active-banner-text strong { display: block; font-size: 13px; }
.resume-btn {
  background: var(--grad-cta); color: #16130C; border: 0;
  border-radius: 999px; padding: 8px 14px; font: 700 12px inherit; cursor: pointer;
}
.team-preview-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; color: var(--text-sub); margin-bottom: 10px;
}
.link-btn { background: none; border: 0; color: var(--accent-hi); font: 700 12px inherit; cursor: pointer; }
.team-preview-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mini-slot {
  aspect-ratio: 3/4; border-radius: 10px; overflow: hidden;
  background: var(--bg-hover); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 11px; color: var(--text-mute); font-weight: 700;
}
.mini-slot.filled { border-color: var(--border-hot); }
.mini-slot-img { width: 100%; height: 100%; object-fit: cover; }
#btn-arena-fight, .pulse-glow-btn {
  background: var(--grad-cta) !important;
  color: #16130C !important; border: 0 !important;
  border-radius: 14px !important; box-shadow: none !important;
  font-weight: 800 !important; min-height: 54px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lb-row {
  position: relative; overflow: hidden; margin-bottom: 8px;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
}
.lb-row-fg { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 11px 12px; }
.lb-rank { font-weight: 800; font-size: 13px; color: var(--text-mute); width: 22px; text-align: center; flex-shrink: 0; }
.lb-name { flex: 1; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none !important; letter-spacing: 0 !important; }
.lb-trophy { font-weight: 800; font-size: 13px; color: var(--accent-hi) !important; text-shadow: none !important; }

/* Podium */
.lb-podium {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px;
  align-items: end; margin-bottom: 12px;
}
.lb-pod {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 12px 8px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
}
.lb-pod-fg { position: relative; z-index: 2; }
.lb-pod.p1 { background: var(--tile-warm), var(--bg-card); border-color: var(--border-hot); padding-top: 16px; }

/* Player theme art — custom row/podium backdrop pulled from the profile-theme shop */
.lb-row-bg, .lb-pod-bg, .cm-bg, .lb-me-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.lb-row.has-theme::after, .lb-me-card.has-theme::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,12,14,.88) 0%, rgba(11,12,14,.58) 45%, rgba(11,12,14,.22) 100%);
}
.lb-pod.has-theme::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,12,14,.08) 0%, rgba(11,12,14,.42) 62%, rgba(11,12,14,.82) 100%);
}
.lb-row.has-theme .lb-name, .lb-row.has-theme .lb-trophy, .lb-row.has-theme .lb-rank,
.lb-pod.has-theme .lb-pod-name, .lb-pod.has-theme .lb-pod-score {
  color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
.lb-row.has-theme { border-color: rgba(255,255,255,.14) !important; }
.lb-me-card.has-theme { border-color: rgba(255,255,255,.16); }
.lb-me-card.has-theme .lb-me-name, .lb-me-card.has-theme .lb-me-rank-num { color: #fff; }
.lb-me-card.has-theme .lb-me-kicker, .lb-me-card.has-theme .lb-me-rank-score { color: rgba(255,255,255,.65); }
.lb-pod-place {
  width: 22px; height: 22px; border-radius: 50%; margin: 0 auto 8px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--bg-hover); color: var(--text-sub);
}
.lb-pod.p1 .lb-pod-place { background: var(--grad-cta); color: #16130C; }
.lb-pod-av {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px;
  overflow: hidden; background: var(--bg-hover); display: grid; place-items: center;
  border: 1px solid var(--border);
}
.lb-pod.p1 .lb-pod-av { width: 54px; height: 54px; border-color: var(--border-hot); }
.lb-pod-av img,
.lb-avatar img,
.cm-avatar img,
.war-f-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.lb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-hover); flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--border);
}
.cm-avatar {
  overflow: hidden !important;
  padding: 0 !important;
}
.cm-avatar .av-fallback,
.lb-pod-av .av-fallback,
.lb-avatar .av-fallback,
.war-f-avatar .av-fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  color: inherit;
}
.war-f-avatar {
  overflow: hidden;
  padding: 0 !important;
}
.lb-pod-name {
  font-size: 11px; font-weight: 700; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-pod-score { font-size: 11px; font-weight: 800; color: var(--accent-hi); }

/* Crown — replaces the plain rank pill on the #1 podium spot */
.lb-pod-crown {
  width: 22px; height: 22px; margin: 0 auto 8px;
  display: grid; place-items: center; color: var(--accent-hi);
}
.lb-pod-crown svg { width: 18px; height: 18px; }

/* Clickable leaderboard / clan rows — open the player's public profile */
.lb-pod[data-profile-uid], .lb-row[data-profile-uid], .lb-me-card[data-profile-uid], .clan-member[onclick] { cursor: pointer; }
.lb-pod[data-profile-uid]:active, .lb-row[data-profile-uid]:active, .lb-me-card[data-profile-uid]:active, .clan-member[onclick]:active {
  transform: scale(0.98);
}
.lb-pod, .lb-row, .clan-member { transition: transform .15s ease; }

/* "Ваш ранг" — own-rank summary card above the leaderboard */
.lb-me-card {
  position: relative; overflow: hidden;
  margin-bottom: 14px;
  background: var(--tile-warm), var(--bg-card);
  border: 1px solid var(--border-hot);
  border-radius: var(--radius-card);
}
.lb-me-fg {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.lb-me-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: var(--bg-hover);
  display: grid; place-items: center;
  border: 1px solid var(--border-hot);
}
.lb-me-avatar img,
.lb-me-avatar .av-fallback {
  width: 100%; height: 100%; object-fit: cover;
  display: grid; place-items: center;
}
.lb-me-body { flex: 1; min-width: 0; }
.lb-me-kicker {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-mute); margin-bottom: 2px;
}
.lb-me-name {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-me-rank { text-align: right; flex-shrink: 0; }
.lb-me-rank-num {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: var(--accent-hi); line-height: 1.1;
}
.lb-me-rank-score { font-size: 11px; font-weight: 700; color: var(--text-sub); }

.battle-boss-bar, .battle-tactical-panel, .battle-log-drawer {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
}
.boss-hp-fill.team-a { background: var(--grad-cta) !important; }
.boss-hp-fill.team-b { background: linear-gradient(90deg, var(--rose), #C7304A) !important; }
.round-badge, .turn-status-pill {
  background: var(--bg-hover) !important; color: var(--text-sub) !important;
  border: 1px solid var(--border) !important; border-radius: 999px !important;
}
#btn-arena-attack {
  background: var(--grad-cta) !important; color: #16130C !important;
  border: 0 !important; border-radius: 14px !important;
}
.current-turn-glow { box-shadow: 0 0 0 2px var(--accent), 0 0 14px rgba(233,162,59,.35) !important; }
.arena-slash-projectile { background: linear-gradient(90deg, transparent, var(--accent-hi), var(--accent)) !important; }
.arena-result-box {
  text-align: center; padding: 26px 18px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.arena-result-glow { display: none; }
.arena-result-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.arena-result-icon { font-size: 44px; margin-bottom: 8px; }

/* Team / tasks */
.team-slot {
  background: var(--bg-card) !important; border: 1px solid var(--border) !important;
  border-radius: 14px !important;
}
.slot-num { background: var(--bg-hover) !important; color: var(--text-sub) !important; border-color: var(--border) !important; box-shadow: none !important; }
.team-slot:has(.filled) .slot-num,
.slot-btn.filled {
  background: var(--accent-soft) !important; color: var(--accent-hi) !important;
  border-color: var(--border-hot) !important; box-shadow: none !important;
}
.task-item {
  background: var(--bg-card) !important; border: 1px solid var(--border) !important;
  border-radius: 16px !important;
}
.task-progress { background: var(--bg-hover) !important; }
.task-bar { background: var(--grad-cta) !important; box-shadow: none !important; }
.task-progress-text { color: var(--accent-hi) !important; }
.task-reward { background: var(--bg-hover) !important; color: var(--text) !important; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   BOTTOM NAV
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
.bottom-nav, .bottom-nav.five-tab-nav {
  background: var(--nav-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 22px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: var(--shadow) !important;
  padding: 7px 8px !important;
  min-height: 62px !important;
  bottom: 12px !important;
}
.bottom-nav.five-tab-nav .nav-btn {
  border-radius: 15px !important;
  color: var(--text-mute) !important;
  height: 48px !important;
  transition: color .2s, background .2s, transform .15s !important;
}
.bottom-nav.five-tab-nav .nav-btn:active { transform: scale(.93) !important; }
.bottom-nav.five-tab-nav .nav-btn.active {
  background: var(--bg-hover) !important;
  color: var(--accent-hi) !important;
}
.bottom-nav.five-tab-nav .nav-btn.active::after { display: none !important; }
.nav-ico {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
}
.nav-ico svg {
  width: 20px !important; height: 20px !important;
  display: block !important;
  shape-rendering: geometricPrecision;
  transform: translateZ(0);
}
.bottom-nav.five-tab-nav .nav-label {
  font-size: 9px !important; font-weight: 600 !important;
  letter-spacing: 0 !important; opacity: .75 !important;
}
.bottom-nav.five-tab-nav .nav-btn.active .nav-label {
  opacity: 1 !important; color: var(--accent-hi) !important;
}
.arena-center-btn { transform: translateY(-10px) !important; }
.arena-center-ring {
  width: 46px !important; height: 46px !important;
  background: var(--grad-cta) !important;
  box-shadow: 0 8px 18px rgba(233,162,59,.35) !important;
  animation: none !important;
}
.arena-center-ring svg { stroke: #16130C !important; }
.arena-center-btn.active .arena-center-ring {
  box-shadow: 0 10px 22px rgba(233,162,59,.5) !important;
}
.arena-label {
  color: var(--accent-hi) !important; text-shadow: none !important;
  font-size: 9px !important; font-weight: 700 !important; letter-spacing: 0 !important;
}

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   SHOP (remake)
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
.shop-hero {
  padding: 18px 16px !important;
  background: var(--tile-warm), var(--bg-card) !important;
  border: 1px solid var(--border-hot) !important;
}
.shop-hero-kicker { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 5px; }
.shop-hero-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.shop-hero-sub { font-size: 12px; color: var(--text-mute); font-weight: 500; }

.shop-wallet-row {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  background: rgba(0,0,0,.22); border: 1px solid var(--border-hot);
  border-radius: 14px; padding: 4px;
}
html[data-theme="light"] .shop-wallet-row { background: rgba(255,255,255,.55); }
.shop-wallet-chip {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 9px 6px;
}
.shop-wallet-val {
  font-family: var(--font-display); font-size: 17px; font-weight: 800;
  letter-spacing: -.01em; color: var(--text);
}
.shop-wallet-lbl {
  font-size: 10px; font-weight: 600; color: var(--text-mute);
  letter-spacing: .02em;
}
.shop-wallet-sep { width: 1px; height: 26px; background: var(--border-hot); }

.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-grid-buy { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
.shop-item {
  position: relative;
  background: var(--bg-card) !important; border: 1px solid var(--border) !important;
  border-radius: 16px !important; text-align: center; padding: 18px 12px !important;
  box-shadow: none !important; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .16s, border-color .2s;
}
.shop-item:active { transform: scale(.97); }
.shop-item.featured {
  border-color: var(--border-hot) !important;
  background: var(--tile-warm), var(--bg-card) !important;
  box-shadow: none !important;
}
.featured-badge {
  position: absolute; top: 0; right: 0;
  background: var(--grad-cta) !important; color: #16130C !important;
  font-size: 9px !important; font-weight: 800 !important; letter-spacing: .06em;
  border-radius: 0 16px 0 10px !important; padding: 4px 9px !important;
}
.shop-icon {
  font-size: 20px; margin-bottom: 8px; color: var(--accent);
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-dim);
}
.shop-item.featured .shop-icon { background: var(--accent-soft); font-size: 22px; }
.shop-name { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.shop-price { font-size: 11px; color: var(--text-mute); font-weight: 600; }

.exchange-row {
  display: flex; justify-content: flex-start; align-items: center; gap: 12px;
  background: var(--bg-card) !important; border: 1px solid var(--border) !important;
  border-radius: 14px !important; padding: 14px 15px !important;
  cursor: pointer; margin-top: 10px; transition: transform .16s, border-color .2s;
}
.exchange-row:active { transform: scale(.98); }
.exchange-icon {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px;
  background: var(--accent-dim); border: 1px solid var(--border-hot); color: var(--accent-hi);
}
.exchange-copy { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.exchange-title { font-size: 13px; font-weight: 700; color: var(--text); }
.exchange-sub { font-size: 11px; color: var(--text-mute); font-weight: 500; }
.exchange-arrow { font-size: 18px; flex-shrink: 0; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   CLAN вЂ” bridge tokens onto amber system
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
#tab-clan.clan-shell {
  --clan-ink: var(--bg);
  --clan-panel: var(--bg-card);
  --clan-line: var(--border);
  --clan-gold: var(--accent-hi);
  --clan-gold-deep: var(--accent-deep);
  --clan-blood: var(--rose);
  --clan-mint: var(--teal);
  --clan-fog: var(--accent-dim);
}
#tab-clan.clan-shell::before { display: none !important; }
.clan-subnav { background: var(--bg-card) !important; border-color: var(--border) !important; }
.clan-tab-btn { color: var(--text-mute) !important; }
.clan-tab-btn.active {
  background: var(--bg-hover) !important; color: var(--text) !important;
  box-shadow: none !important;
}
.clan-tab-btn.active i { color: var(--accent-hi) !important; }
.clan-home-hero {
  background: var(--tile-warm), var(--bg-card) !important;
  border-color: var(--border-hot) !important;
}
.clan-home-emblem, .clan-empty-mark, .cm-avatar {
  background: var(--grad-cta) !important; color: #16130C !important; box-shadow: none !important;
}
.clan-home-emblem {
  overflow: hidden;
  padding: 0 !important;
}
.clan-home-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.cm-avatar.leader { background: linear-gradient(145deg, #FF8FA0, var(--rose)) !important; color: #fff !important; }
.cm-avatar.vice { background: linear-gradient(145deg, #7FBBFF, var(--blue)) !important; color: #fff !important; }
.clan-home-level, .clan-cta:not(.ghost), .war-primary-btn, .war-roster-modal .cc-btn.confirm {
  background: var(--grad-cta) !important; color: #16130C !important; box-shadow: none !important;
}
.clan-cta.ghost { background: var(--bg-card) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
.clan-hero-xp-fill, .war-progress-fill { background: var(--grad-cta) !important; animation: none !important; }
.clan-kpi { background: var(--bg-card) !important; border-color: var(--border) !important; }
.clan-kpi-val { color: var(--text) !important; }
.clan-member { display: block !important; position: relative; overflow: hidden; background: var(--bg-card) !important; border-color: var(--border) !important; }
.clan-member:hover { border-color: var(--border-hot) !important; background: var(--bg-card) !important; }
.cm-fg {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 28px 38px 1fr auto; gap: 10px; align-items: center;
}
.clan-member.has-theme::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,12,14,.94) 0%, rgba(11,12,14,.82) 45%, rgba(11,12,14,.55) 100%);
}
.clan-member.has-theme { border-color: rgba(255,255,255,.14) !important; }
.clan-member.has-theme .cm-name, .clan-member.has-theme .cm-pts, .clan-member.has-theme .cm-rank { color: #fff !important; }
.clan-member.has-theme .cm-role { color: rgba(255,255,255,.68) !important; }
.clan-admin-row {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}
.clan-admin-main .cm-name { color: var(--text) !important; }
.clan-admin-main .cm-role { color: var(--muted, #9aa0ae) !important; }
.cm-act {
  background: var(--bg-hover, rgba(255,255,255,.06)) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.cm-act.promote { background: rgba(80,180,100,.18) !important; border-color: rgba(80,180,100,.35) !important; color: #b6f0c0 !important; }
.cm-act.demote { background: rgba(220,160,60,.16) !important; border-color: rgba(220,160,60,.35) !important; color: #f0d59a !important; }
.cm-act.kick { background: rgba(220,70,70,.18) !important; border-color: rgba(220,70,70,.4) !important; color: #ffb0b0 !important; }
.cm-pts, .clan-home-kicker, .clan-empty-kicker, .war-idle-kicker, .treasury-kicker { color: var(--accent-hi) !important; }
.clan-activity, .clan-more-card, .war-idle, .war-stage, .clan-chat-wrap, .clan-treasury-hero, .clan-empty-stage {
  background: var(--bg-card) !important; border-color: var(--border) !important;
}
.clan-treasury-hero, .clan-war-banner { background: var(--tile-warm), var(--bg-card) !important; }
.war-banner-icon { background: var(--accent-dim) !important; color: var(--accent-hi) !important; border-color: var(--border-hot) !important; }
.war-banner-kicker, .war-stage-live { color: var(--accent-hi) !important; }
.war-stage-live span { background: var(--accent) !important; }
.war-list-col.mine { border-color: var(--border-hot) !important; }
.war-list-col.enemy { border-color: color-mix(in srgb, var(--rose) 35%, transparent) !important; background: var(--bg-card) !important; }
.war-list-col.mine .war-list-title { color: var(--accent-hi) !important; }
.war-list-col.enemy .war-list-title { color: var(--rose) !important; }
.war-f-avatar { background: var(--accent-dim) !important; color: var(--accent-hi) !important; }
.war-list-col.enemy .war-f-avatar { background: rgba(255,107,129,.16) !important; color: var(--rose) !important; }
.war-fighter { background: var(--bg-card-2) !important; }
.war-fighter.enemy.selected { border-color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent-soft) !important; }
.war-f-hp > i { background: var(--grad-cta) !important; }
.clan-chat-send, .msg-me .msg-bubble { background: var(--grad-cta) !important; color: #16130C !important; }
.msg-me .msg-text { color: #16130C !important; }
.msg-me .msg-time { color: rgba(22,19,12,.6) !important; }
.msg-other .msg-bubble { background: var(--bg-hover) !important; border-color: var(--border) !important; }
.clan-more-ico { background: var(--accent-dim) !important; color: var(--accent-hi) !important; border-color: var(--border) !important; }
.clan-sec-title { color: var(--text) !important; }
.clan-sec-line { background: linear-gradient(90deg, var(--border), transparent) !important; }
.stats-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-tile { animation: none !important; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   LOADER / MODAL / TOAST / LOGIN
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
#loader { background: var(--bg) !important; }
#loader::after { content: 'REVERSE'; letter-spacing: .3em; color: var(--text-mute); font-size: 10px; }
.loader-spinner { border-color: var(--bg-hover) !important; border-top-color: var(--accent) !important; box-shadow: none !important; }
.loader-text { color: var(--text-mute) !important; }
.modal-overlay { background: rgba(0,0,0,.7) !important; backdrop-filter: blur(8px); }
.modal-sheet, .custom-confirm-modal {
  background: var(--bg-card) !important; border: 1px solid var(--border) !important;
  border-radius: 22px !important; clip-path: none !important;
  box-shadow: var(--shadow-deep) !important;
}

/* Universe gate — блокирует хаб до выбора верса */
.universe-gate {
  z-index: 4000 !important;
  background: rgba(5,6,8,.92) !important;
}
.universe-gate:not(.open) { display: none !important; }
.universe-gate.open { display: flex !important; align-items: center; justify-content: center; }
.universe-gate-sheet {
  width: min(92vw, 380px);
  max-height: 82vh;
  overflow: auto;
  padding: 22px 18px 18px !important;
  border-radius: 22px !important;
  border: 1px solid var(--border-hot) !important;
  background: var(--tile-warm), var(--bg-card) !important;
}
.universe-gate-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-hi);
}
.universe-gate-title {
  margin: 8px 0 6px;
  font: 800 22px/1.1 var(--font-display);
  letter-spacing: -.03em;
  color: var(--text);
}
.universe-gate-sub {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-mute);
}
.universe-gate-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.universe-gate-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.universe-gate-btn:active { transform: scale(.97); }
.universe-gate-btn:disabled { opacity: .55; }
.universe-gate-emoji { font-size: 20px; line-height: 1; }
.universe-gate-name {
  font: 800 12px/1.2 var(--font-body);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.universe-gate-retry {
  margin-top: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-hot);
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-hi);
  font: 800 11px var(--font-body);
}

/* в”Ђв”Ђ Public player profile modal в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.profile-modal-sheet { padding: 0; }

/* Cover — the player's active profile-theme art, bled edge-to-edge under the close button */
.pp-cover {
  position: relative; width: 100%; height: 168px; overflow: hidden;
  background: #0a0a0e;
}
.pp-cover-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pp-cover-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,.05) 0%, rgba(11,12,14,.28) 58%, var(--bg-card) 100%);
}
.pp-cover:not(.has-media) .pp-cover-shade {
  background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
}
.pp-cover-rank {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 11px; font-weight: 800; color: #fff;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 5px 11px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.pp-content { position: relative; z-index: 1; padding: 12px 10px 28px; margin-top: 0; text-align: left; }
.pp-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px;
  overflow: hidden; background: var(--bg-hover);
  display: grid; place-items: center;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--border-hot), var(--shadow);
}
.pp-avatar img, .pp-avatar .av-fallback { width: 100%; height: 100%; object-fit: cover; }
.pp-avatar .av-fallback {
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 800; font-size: 30px; color: var(--accent-hi);
}
.pp-name {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: -0.01em; margin-bottom: 2px;
}
.pp-vip {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  color: #16130C; background: var(--grad-cta); border-radius: 999px;
  padding: 2px 7px; vertical-align: middle; margin-left: 2px;
}
.pp-league { font-size: 12px; font-weight: 700; color: var(--text-sub); margin-bottom: 10px; }
.pp-clan-chip {
  font-size: 11px; font-weight: 700; color: var(--text);
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 11px; margin: 0 auto 4px;
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
}
.pp-clan-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.pp-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 18px 0 12px;
}
.pp-stat {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-chip); padding: 10px 6px; text-align: center;
}
.pp-stat-val { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text); }
.pp-stat-lbl { font-size: 10px; font-weight: 700; color: var(--text-mute); margin-top: 2px; }

.pp-battle-row {
  display: flex; gap: 16px; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-sub);
  margin-bottom: 6px;
}
.pp-battle-item { display: flex; align-items: center; gap: 6px; }
.pp-battle-item b { color: var(--text); }
.pp-battle-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pp-battle-dot.win { background: var(--teal); }
.pp-battle-dot.loss { background: var(--rose); }

.pp-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.pp-card-tile {
  position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden;
  background: var(--bg-hover); border: 1px solid var(--border);
}
.pp-card-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-card-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 4px 6px; font-size: 10px; font-weight: 700; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Profile — meta line, favorite, sets, achievements */
.pp-meta-line {
  font-size: 11px; font-weight: 600; color: var(--text-mute);
  margin: 6px 0 4px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.pp-meta-sep { opacity: .5; }
.pp-section { margin-top: 20px; }

.pp-fav-row {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 12px;
}
.pp-fav-card {
  position: relative; width: 88px; aspect-ratio: 3/4; flex-shrink: 0;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border-hot);
  background: var(--bg-hover);
}
.pp-fav-card .pp-card-media { width: 100%; height: 100%; object-fit: cover; }
.pp-fav-info { min-width: 0; }
.pp-fav-rank { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.pp-fav-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }

.pp-sets-list { display: flex; flex-direction: column; gap: 10px; }
.pp-set-row {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-chip); padding: 12px 14px;
}
.pp-set-row.done { border-color: var(--border-hot); }
.pp-set-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.pp-set-name { font-size: 12px; font-weight: 800; }
.pp-set-count { font-size: 12px; font-weight: 800; color: var(--text-sub); }
.pp-set-track { height: 6px; border-radius: 999px; background: var(--bg-hover); overflow: hidden; }
.pp-set-fill { height: 100%; border-radius: 999px; }

.pp-ach-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.pp-ach {
  position: relative; aspect-ratio: 1; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--bg-card-2); border: 1px solid var(--border);
  padding: 8px 6px; text-align: center;
}
.pp-ach.unlocked { border-color: var(--border-hot); background: var(--tile-warm), var(--bg-card-2); }
.pp-ach.locked { opacity: .55; }
.pp-ach-icon { font-size: 22px; line-height: 1; }
.pp-ach-label { font-size: 9px; font-weight: 700; color: var(--text-sub); line-height: 1.2; }
.pp-ach.unlocked .pp-ach-label { color: var(--text); }
.pp-ach-done {
  position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: #16130C; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
}
.pp-ach-prog { font-size: 9px; font-weight: 800; color: var(--text-mute); }

/* ══════════════════════════════════════════════════════════════════
   PROFILE V2 — premium anime-card identity surface
   Gold remains the system accent. Violet/pink only come from rank art
   and user themes, so the screen stays branded instead of neon-noisy.
══════════════════════════════════════════════════════════════════ */
#profile-modal {
  padding: 8px;
  align-items: center;
}
.profile-modal-sheet {
  width: 100% !important;
  max-width: none !important;
  max-height: calc(100dvh - 16px);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 26px !important;
  border-color: rgba(245, 200, 66, .18) !important;
  background:
    radial-gradient(circle at 80% 4%, rgba(123, 78, 255, .09), transparent 30%),
    #111118 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 28px 80px rgba(0,0,0,.72) !important;
  overscroll-behavior: contain;
}
.profile-modal-sheet::-webkit-scrollbar { width: 0; }
.profile-modal-sheet > .modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  z-index: 12;
  color: #fff;
  background: rgba(8,8,12,.5);
  border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.pp-cover {
  height: 198px;
  border-radius: 25px 25px 0 0;
  background: #0a0a0e;
}
.pp-cover.has-media {
  background: #0a0a0e;
}
.pp-cover-media {
  object-position: center 28%;
  transform: scale(1.015);
}
.pp-cover-shade {
  background:
    linear-gradient(180deg, rgba(8,8,12,.08) 0%, rgba(8,8,12,.1) 42%, rgba(8,8,12,.74) 82%, #111118 100%),
    linear-gradient(90deg, rgba(8,8,12,.3), transparent 60%);
}
.pp-cover:not(.has-media) .pp-cover-shade {
  background: linear-gradient(180deg, rgba(10,10,14,.15) 0%, #111118 100%);
}
.pp-hero-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  background: #0a0a0e;
}
.pp-cover-rank {
  top: 14px;
  left: 14px;
  min-height: 38px;
  padding: 7px 13px;
  gap: 7px;
  display: inline-flex;
  align-items: center;
  background: rgba(8,8,12,.54);
  border-color: rgba(245,200,66,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.pp-cover-rank b {
  color: var(--accent-hi);
  font-family: var(--font-display);
  font-size: 14px;
}
.pp-cover-rank span { color: rgba(255,255,255,.72); }
.pp-cover-actions {
  position: absolute;
  top: 15px;
  right: 58px;
  z-index: 10;
  display: flex;
  gap: 7px;
}
.pp-cover-actions button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  background: rgba(8,8,12,.5);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  font: 700 18px/1 var(--font-body);
}
.pp-cover-actions .pp-action-friend {
  width: auto;
  padding: 0 12px 0 9px;
  border-radius: 999px;
  color: #f4f1e8;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.pp-cover-actions .pp-action-friend.active {
  color: #17120a;
  border-color: rgba(245,200,66,.8);
  background: var(--accent);
}
.pp-cover-actions .pp-action-friend.active span { color: #17120a; }
.pp-action-friend span {
  color: var(--accent-hi);
  font-size: 16px;
  line-height: 1;
}
.pp-cover-actions button:active { transform: scale(.94); }

.pp-identity {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 86px minmax(0,1fr);
  align-items: end;
  gap: 14px;
  margin: -49px 18px 0;
  text-align: left;
}
.pp-avatar {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0;
  border-width: 3px;
  background: #171720;
}
.pp-avatar.pp-rank-platinum {
  box-shadow:
    0 0 0 2px #e8f0ff,
    0 0 22px rgba(90,224,255,.35),
    var(--shadow);
}
.pp-avatar.pp-rank-gold {
  box-shadow:
    0 0 0 2px #f5c842,
    0 0 22px rgba(245,200,66,.28),
    var(--shadow);
}
.pp-avatar.pp-rank-bronze {
  box-shadow:
    0 0 0 2px #cd7f32,
    0 0 20px rgba(205,127,50,.25),
    var(--shadow);
}
.pp-avatar-crown {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #111118;
  background: var(--grad-cta);
  color: #17120a;
  font-size: 13px;
}
.pp-identity-copy { min-width: 0; padding-bottom: 4px; }
.pp-name {
  margin: 0 0 5px;
  font-size: clamp(20px, 5.5vw, 26px);
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pp-league,
.pp-clan-chip {
  min-height: 24px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245,200,66,.18);
  background: rgba(245,200,66,.08);
  color: #e9d695;
  font-size: 10px;
  line-height: 1.1;
}
.pp-clan-chip {
  max-width: 100%;
  color: var(--text-sub);
  border-color: rgba(130,96,255,.22);
  background: rgba(130,96,255,.09);
}
.pp-meta-line {
  justify-content: flex-start;
  column-gap: 9px;
  row-gap: 3px;
  margin: 7px 0 0;
  font-size: 10px;
}
.pp-content {
  margin: 0;
  padding: 16px 18px 24px;
  text-align: left;
}

.pp-stats-grid {
  grid-template-columns: .86fr 1.28fr .86fr .92fr;
  gap: 7px;
  margin: 4px 0 10px;
}
.pp-stat {
  position: relative;
  min-width: 0;
  min-height: 76px;
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 14px;
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.pp-stat-primary {
  border-color: rgba(245,200,66,.34);
  background:
    radial-gradient(circle at 50% 0, rgba(245,200,66,.17), transparent 50%),
    linear-gradient(160deg, rgba(245,200,66,.08), rgba(255,255,255,.015));
}
.pp-stat-symbol {
  position: absolute;
  top: 7px;
  left: 8px;
  color: var(--text-mute);
  font-size: 10px;
}
.pp-stat-primary .pp-stat-symbol { color: var(--accent); }
.pp-stat-val {
  width: 100%;
  overflow: hidden;
  color: #f6f5fa;
  font-size: clamp(12px, 3.9vw, 17px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-stat-primary .pp-stat-val {
  color: var(--accent-hi);
  font-size: clamp(13px, 4.2vw, 18px);
}
.pp-stat-lbl { margin-top: 5px; font-size: 9px; }
.pp-battle-row {
  min-height: 38px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.02);
}

.pp-profile-tabs {
  position: sticky;
  top: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 14px -18px 0;
  padding: 8px 18px;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(17,17,24,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.pp-profile-tabs button {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text-mute);
  background: transparent;
  font: 750 11px var(--font-body);
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.pp-profile-tabs button.active {
  color: #17120a;
  border-color: rgba(245,200,66,.72);
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}
.pp-profile-tabs button:active { transform: scale(.97); }
.pp-tab-panel[hidden] { display: none; }
.pp-tab-panel.active {
  animation: ppPanelIn .24s cubic-bezier(.2,.8,.2,1) both;
}

section.pp-section { margin-top: 22px; }
.pp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.pp-section-head h2 {
  margin: 0;
  color: #f6f5fa;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.pp-section-head span {
  color: var(--text-mute);
  font-size: 10px;
  font-weight: 700;
}
.pp-showcase {
  display: grid;
  grid-template-columns: .95fr 1.9fr;
  gap: 8px;
}
.pp-showcase.is-solo {
  display: block;
  max-width: 176px;
}
.pp-top-grid,
.pp-favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 6px;
}
.pp-card-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--card-rank, var(--border-hot)) 62%, transparent);
  border-radius: 12px;
  background:
    radial-gradient(circle at 60% 20%, rgba(130,96,255,.16), transparent 36%),
    #191922;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 8px 20px rgba(0,0,0,.26);
  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pp-card-shell:active {
  transform: scale(.97);
  border-color: var(--card-rank, var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 18px color-mix(in srgb, var(--card-rank, var(--accent)) 25%, transparent);
}
.pp-featured-card { min-height: 238px; }
.pp-top-card,
.pp-favorite-card { aspect-ratio: 3/4; }
.pp-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pp-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,8,.04) 45%, rgba(5,5,8,.88) 100%);
}
.pp-card-stars {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 5px;
  display: flex;
  gap: 0;
  font-size: 7px;
  text-shadow: 0 1px 3px #000;
}
.pp-card-stars i {
  color: rgba(255,255,255,.25);
  font-style: normal;
}
.pp-card-stars i.on { color: var(--accent); }
.pp-favorite-toggle {
  position: absolute;
  z-index: 4;
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(5,5,8,.72);
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.pp-favorite-toggle.active {
  color: #17120a;
  border-color: var(--accent);
  background: var(--accent);
}
.pp-featured-toggle {
  position: absolute;
  z-index: 4;
  top: 33px;
  right: 5px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: rgba(255,255,255,.62);
  background: rgba(5,5,8,.55);
  font-size: 11px;
}
.pp-featured-toggle.active {
  color: #17120a;
  border-color: var(--accent-hi);
  background: var(--accent-hi);
}
.pp-featured-toggle:disabled { opacity: 1; }
.pp-card-caption {
  position: absolute;
  z-index: 2;
  left: 7px;
  right: 7px;
  bottom: 7px;
  min-width: 0;
}
.pp-card-caption b,
.pp-card-caption span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-card-caption b {
  color: #fff;
  font-size: 9px;
  line-height: 1.15;
  text-shadow: 0 1px 4px #000;
}
.pp-featured-card .pp-card-caption b { font-size: 11px; }
.pp-card-caption span {
  margin-top: 2px;
  color: rgba(255,255,255,.6);
  font-size: 7px;
}
.pp-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background:
    radial-gradient(circle at 50% 40%, rgba(245,200,66,.12), transparent 30%),
    linear-gradient(125deg, #171720 25%, #22222d 45%, #171720 65%);
  background-size: 100% 100%, 240% 100%;
  color: rgba(245,200,66,.45);
}
.pp-card-placeholder span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}
.pp-card-placeholder small {
  color: rgba(255,255,255,.32);
  font-size: 7px;
}
.pp-card-shell.is-placeholder { border-color: rgba(255,255,255,.06); }
.pp-card-shell.is-placeholder .pp-card-placeholder {
  animation: ppPlaceholder 2.8s ease-in-out infinite;
}

.pp-sets-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 136px;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scroll-snap-type: x mandatory;
}
.pp-sets-list::-webkit-scrollbar,
.pp-trade-rail::-webkit-scrollbar { display: none; }
.pp-set-row {
  position: relative;
  height: 132px;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-color: color-mix(in srgb, var(--set-color) 35%, transparent);
}
.pp-set-art {
  position: absolute;
  inset: 0;
}
.pp-set-cover { width: 100%; height: 100%; object-fit: cover; }
.pp-set-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.16);
  font: 800 30px var(--font-display);
}
.pp-set-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,9,.1), rgba(6,6,9,.92));
}
.pp-set-head {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 17px;
  margin: 0;
}
.pp-set-name { color: #fff; font-size: 10px; }
.pp-set-count { color: rgba(255,255,255,.68); font-size: 9px; }
.pp-set-track {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 4px;
  background: rgba(255,255,255,.13);
}

.pp-ach-grid {
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 90px);
  grid-auto-columns: 92px;
  grid-template-columns: none;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scroll-snap-type: x mandatory;
}
.pp-ach-grid::-webkit-scrollbar { display: none; }
.pp-ach {
  aspect-ratio: auto;
  scroll-snap-align: start;
}
.pp-ach.unlocked {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 18px rgba(245,200,66,.06);
}

.pp-trades {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
  overflow: hidden;
}
.pp-trade-summary {
  min-height: 50px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.pp-trade-summary div { display: flex; align-items: baseline; gap: 7px; }
.pp-trade-summary b {
  color: var(--accent-hi);
  font-family: var(--font-display);
  font-size: 18px;
}
.pp-trade-summary span { color: var(--text-sub); font-size: 10px; }
.pp-trade-summary button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(245,200,66,.25);
  border-radius: 999px;
  color: var(--accent-hi);
  background: rgba(245,200,66,.07);
  font: 700 10px var(--font-body);
}
.pp-trade-rail {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.pp-trade-item {
  min-width: 188px;
  display: grid;
  grid-template-columns: 68px 18px 68px;
  align-items: center;
  gap: 5px;
  scroll-snap-align: start;
}
.pp-trade-card { width: 68px; aspect-ratio: 3/4; }
.pp-trade-arrow { color: var(--text-mute); text-align: center; }
.pp-trade-coins {
  width: 68px;
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(245,200,66,.2);
  border-radius: 12px;
  color: var(--accent-hi);
  background: rgba(245,200,66,.06);
  font: 800 11px var(--font-display);
}
.pp-trade-coins small {
  margin-top: 3px;
  color: var(--text-mute);
  font: 600 7px var(--font-body);
}
.pp-empty-premium {
  min-height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0, rgba(245,200,66,.08), transparent 50%),
    rgba(255,255,255,.015);
}
.pp-empty-premium > span { color: var(--accent); font-size: 24px; }
.pp-empty-premium b { color: var(--text-sub); font-size: 11px; }
.pp-empty-premium small { color: var(--text-mute); font-size: 9px; }
.pp-favorites-empty { min-height: 126px; }

@keyframes ppPlaceholder {
  0%, 100% { background-position: 0 0, 0 0; opacity: .75; }
  50% { background-position: 0 0, 100% 0; opacity: 1; }
}
@keyframes ppPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Full player page: edge-to-edge destination, not a narrow sheet. */
.bottom-nav[hidden] { display: none !important; }
#app-container.profile-view-open {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
#app-container.profile-view-open #app {
  width: 100% !important;
  max-width: none !important;
}
.profile-view-open .app-header { display: none !important; }
.profile-view-open .app-main {
  padding: 0 0 24px !important;
  max-width: none !important;
  width: 100% !important;
}
.player-profile-screen {
  gap: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100%;
  background: var(--bg-app);
}
.player-profile-screen::after { height: 20px !important; }
.profile-screen-body {
  width: 100%;
  max-width: none;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.profile-screen-loading {
  min-height: 70dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.profile-screen-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: ppLoading 1s ease-in-out infinite;
}
.profile-screen-loading span:nth-child(2) { animation-delay: .12s; }
.profile-screen-loading span:nth-child(3) { animation-delay: .24s; }
.pp-screen-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  box-sizing: border-box;
  min-height: 58px;
  padding: 8px 8px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(11,12,14,.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.pp-screen-back,
.pp-screen-actions button {
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  background: rgba(255,255,255,.045);
  font: 750 12px var(--font-body);
}
.pp-screen-back {
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  font-size: 28px;
  line-height: 1;
}
.pp-screen-owner {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pp-screen-owner b {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-screen-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-hot);
  background: var(--bg-card-2);
}
.pp-screen-avatar > * { width: 100%; height: 100%; object-fit: cover; }
.pp-screen-actions { display: flex; gap: 6px; }
.pp-screen-actions button { padding: 0 11px; }
.pp-screen-actions .pp-screen-friend {
  color: var(--accent-hi);
  border-color: var(--border-hot);
  white-space: nowrap;
}
.pp-summary-card {
  margin: 0;
  padding-bottom: 10px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: #111118;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  flex-shrink: 0;
}
.pp-summary-card .pp-cover {
  height: 118px;
  border-radius: 0;
  background: #0a0a0e;
}
.pp-summary-card .pp-cover:not(.has-media) {
  background:
    linear-gradient(180deg, #0c0c10 0%, #0a0a0e 55%, #111118 100%);
}
.pp-summary-card .pp-identity {
  margin: -36px 12px 0;
  padding-right: 8px;
}
.pp-summary-card .pp-avatar {
  width: 72px;
  height: 72px;
}
.pp-summary-card .pp-name { font-size: 18px; margin-bottom: 0; }
.pp-summary-card .pp-avatar-crown { display: none; }

/* Arcanum-style chin: only 2 big numbers so PTS never clips */
.pp-chin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 10px 10px 0;
}
.pp-chin-cell {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.pp-chin-cell.accent {
  border-color: rgba(233,162,59,.35);
  background: linear-gradient(160deg, rgba(233,162,59,.14), rgba(255,255,255,.02));
}
.pp-chin-ico {
  color: var(--text-mute);
  font-size: 13px;
}
.pp-chin-cell.accent .pp-chin-ico { color: var(--accent); }
.pp-chin-num {
  color: #f6f5fa;
  font: 800 clamp(15px, 4.6vw, 20px)/1 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.pp-chin-cell.accent .pp-chin-num { color: var(--accent-hi); }
.pp-chin-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 8px 10px 0;
  color: var(--text-mute);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.player-profile-screen .pp-profile-tabs {
  position: sticky;
  top: 58px;
  z-index: 20;
  margin: 8px 0 0 !important;
  padding: 6px 8px;
  width: 100%;
  box-sizing: border-box;
  border-top: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(11,12,14,.94);
  flex-shrink: 0;
}
.player-profile-screen .pp-profile-tabs button {
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text-sub);
}
.player-profile-screen .pp-profile-tabs button.active {
  color: #17120a;
  background: var(--accent);
  border-color: transparent;
}

/* Waifu + Favorites duo (Arcanum Basics layout) — must paint in first viewport */
.pp-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 8px;
  align-items: start;
  min-height: 200px;
}
.pp-duo-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: #f3f1f7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
.pp-duo-label span { color: var(--accent); }
.pp-waifu-wrap {
  position: relative;
  min-height: 200px;
}
.pp-waifu-glow {
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: var(--glow, var(--accent));
  opacity: .26;
  filter: blur(10px);
  pointer-events: none;
}
.pp-duo .pp-featured-card {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 200px;
  max-height: 260px;
  border-radius: 12px;
  border-width: 2px;
}
.pp-duo .pp-favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 5px;
}
.pp-duo .pp-favorite-card {
  aspect-ratio: 3/4;
  min-height: 0;
  border-radius: 9px;
}
.pp-fav-manage {
  margin-left: auto;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(233,162,59,.35);
  border-radius: 999px;
  color: var(--accent-hi);
  background: rgba(233,162,59,.1);
  font: 750 10px var(--font-body);
}
.pp-fav-add {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-style: dashed !important;
  border-color: rgba(233,162,59,.45) !important;
  background: rgba(233,162,59,.07) !important;
  color: var(--accent-hi);
  cursor: pointer;
}
.pp-fav-add-ico {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}
.pp-fav-add small {
  display: block !important;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.pp-card-shell {
  position: relative;
  overflow: hidden;
  background: #16161f;
  border: 1.5px solid rgba(255,255,255,.1);
}
.pp-card-shell.is-placeholder {
  border-style: dashed;
  border-color: rgba(255,255,255,.14);
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.pp-card-shell.is-placeholder .pp-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: transparent;
  animation: none;
}
.pp-card-shell.is-placeholder .pp-card-placeholder span,
.pp-card-shell.is-placeholder .pp-card-placeholder small { display: none; }
.pp-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-fav-btn {
  width: calc(100% - 40px);
  min-height: 44px;
  margin: 14px 20px 4px;
  border: 1px solid rgba(233,162,59,.4);
  border-radius: 14px;
  color: var(--accent-hi);
  background: rgba(233,162,59,.1);
  font: 800 13px var(--font-body);
}
.modal-fav-btn.active {
  color: #17120a;
  border-color: transparent;
  background: var(--accent);
}

.fav-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fav-picker-overlay.open { display: flex; }
.fav-picker-sheet {
  width: min(100vw, 480px);
  max-height: min(78dvh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: 0;
  background: #121218;
  box-shadow: 0 -18px 50px rgba(0,0,0,.45);
}
.fav-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.fav-picker-head b {
  display: block;
  color: #f6f5fa;
  font: 800 16px var(--font-display);
}
.fav-picker-head span {
  display: block;
  margin-top: 3px;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 600;
}
.fav-picker-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  background: rgba(255,255,255,.05);
  font-size: 14px;
}
.fav-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 12px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.fav-picker-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: #16161f;
}
.fav-picker-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(233,162,59,.35), 0 0 16px rgba(233,162,59,.18);
}
.fav-picker-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fav-picker-scrim {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
  pointer-events: none;
}
.fav-picker-star {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 13px;
}
.fav-picker-card.active .fav-picker-star {
  color: #17120a;
  background: var(--accent);
}
.fav-picker-cap {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 1;
  text-align: left;
}
.fav-picker-cap b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fav-picker-cap span {
  color: rgba(255,255,255,.7);
  font-size: 9px;
  font-weight: 600;
}

.pp-trade-lists {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.03);
  font: 700 13px var(--font-body);
}
.pp-trade-lists-ico { color: var(--accent); font-size: 16px; }
.pp-trade-lists-label { flex: 1; text-align: left; }
.pp-trade-lists-count {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text-sub);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.pp-trade-lists-chev { color: var(--text-mute); font-size: 18px; }
.pp-open-clan-trade {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid rgba(233,162,59,.3);
  border-radius: 999px;
  color: var(--accent-hi);
  background: rgba(233,162,59,.08);
  font: 700 12px var(--font-body);
}
.pp-sets-preview { margin-top: 14px; }
.player-profile-screen .pp-content {
  padding: 10px 8px 32px;
  margin-top: 0 !important;
  flex: 1 1 auto;
  min-height: 220px;
  width: 100%;
  box-sizing: border-box;
}
.player-profile-screen .pp-tab-panel.active {
  display: block !important;
  min-height: 200px;
}
.player-profile-screen section.pp-section {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.018);
}
.player-profile-screen .pp-section-head { margin-bottom: 11px; }
.player-profile-screen .pp-empty-premium {
  border: 0;
  background: rgba(255,255,255,.018);
}
.pp-tab-panel[hidden] { display: none !important; }
.pp-tab-panel.active { display: block; }

.player-profile-screen .pp-summary-stats,
.player-profile-screen .pp-stats-grid,
.player-profile-screen .pp-battle-row { display: none !important; }

@keyframes ppLoading {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* Shop V3: image-led storefront with clear purchase hierarchy. */
#tab-shop {
  gap: 14px;
  padding-top: 2px;
}
#tab-shop .shop-hero {
  min-height: 164px;
  padding: 18px !important;
  justify-content: space-between;
  border-radius: 22px !important;
  border-color: rgba(233,162,59,.28) !important;
  background: #111318 !important;
}
#tab-shop .shop-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,.58) 52%, rgba(8,9,12,.14) 100%),
    linear-gradient(180deg, transparent 45%, rgba(8,9,12,.5) 100%);
}
#tab-shop .shop-hero-art img { opacity: .78; mask-image: none; -webkit-mask-image: none; }
#tab-shop .shop-hero-copy,
#tab-shop .shop-wallet-row { z-index: 2; }
#tab-shop .shop-hero-kicker {
  color: var(--accent-hi);
  letter-spacing: .18em;
}
#tab-shop .shop-hero-title {
  font-size: 30px;
  color: #f5f4ef;
}
#tab-shop .shop-hero-sub {
  max-width: 230px;
  color: rgba(255,255,255,.66);
}
#tab-shop .shop-wallet-row {
  align-self: flex-start;
  min-width: 230px;
  border-color: rgba(255,255,255,.12);
  background: rgba(8,9,12,.58);
  backdrop-filter: blur(12px);
}
#tab-shop .shop-wallet-chip {
  align-items: flex-start;
  padding: 8px 12px;
}
#tab-shop .shop-wallet-lbl { color: rgba(255,255,255,.48); }
#tab-shop .shop-wallet-val { color: #f7f3e8; }
#tab-shop .shop-wallet-val.accent-text { color: var(--accent-hi) !important; }
#tab-shop .elite-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(233,162,59,.13), transparent 38%),
    var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
#tab-shop .elite-stage::before {
  content: 'R';
  position: absolute;
  right: -4px;
  top: -24px;
  z-index: -1;
  color: rgba(233,162,59,.045);
  font: 800 150px/1 var(--font-display);
}
#tab-shop .elite-title { font-size: 19px; }
#tab-shop .elite-cost-chip {
  background: rgba(8,9,12,.48);
  border-color: rgba(233,162,59,.28);
}
#tab-shop .elite-pity-block {
  padding: 11px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
}
#tab-shop .elite-rates {
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
#tab-shop .elite-rates::-webkit-scrollbar { display: none; }
#tab-shop .elite-rates span { flex: 0 0 auto; background: rgba(0,0,0,.18); }
#tab-shop .elite-btn {
  border-radius: 14px;
  background: var(--bg-card-2);
}
#tab-shop .elite-btn-pack {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 22px rgba(233,162,59,.12);
}
.shop-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
}
.shop-section-head .section-heading { margin: 0 0 3px; }
.shop-section-head .tab-lede { margin: 0; }
.shop-bonus-note {
  max-width: 128px;
  padding: 6px 9px;
  border: 1px solid var(--border-hot);
  border-radius: 999px;
  color: var(--accent-hi);
  background: var(--accent-dim);
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}
#tab-shop .shop-grid-buy { grid-template-columns: 1.35fr 1fr !important; }
#tab-shop .shop-pack {
  min-height: 116px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255,255,255,.055), transparent 34%),
    var(--bg-card);
}
#tab-shop .shop-pack::after {
  content: '✦';
  position: absolute;
  right: 13px;
  bottom: 7px;
  color: rgba(233,162,59,.14);
  font-size: 42px;
}
#tab-shop .shop-pack.featured {
  background:
    radial-gradient(circle at 92% 12%, rgba(233,162,59,.17), transparent 38%),
    var(--bg-card);
}
#tab-shop .exchange-row {
  min-height: 58px;
  padding: 10px 14px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.018) !important;
}
#tab-shop .exchange-row:active,
#tab-shop .shop-pack:active { transform: scale(.98); }
#tab-shop .shop-themes-head { margin-top: 8px; }
#tab-shop .shop-theme-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: var(--bg-card);
}
#tab-shop .shop-theme-tabs .filter-pill {
  min-height: 36px;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}
#tab-shop .shop-theme-tabs .filter-pill.active {
  color: #17120a !important;
  background: var(--accent) !important;
}

.clan-rank-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.clan-top-podium {
  min-height: 224px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr);
  align-items: end;
  gap: 8px;
  margin: 30px 0 18px;
}
.clan-podium-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 9px 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), transparent 48%),
    var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.clan-podium-card::after {
  content: '';
  position: absolute;
  inset: auto 14% 0;
  z-index: -1;
  height: 42%;
  background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%);
  pointer-events: none;
}
.clan-podium-card.podium-1 {
  grid-column: 2;
  min-height: 208px;
  padding-top: 38px;
  transform: translateY(-16px);
  border-color: color-mix(in srgb, var(--accent) 72%, rgba(255,255,255,.12));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 54%),
    var(--bg-card);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 16px 36px color-mix(in srgb, var(--accent) 12%, transparent);
}
.clan-podium-card.podium-2 { grid-column: 1; }
.clan-podium-card.podium-3 { grid-column: 3; }
.clan-podium-card.is-me { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.clan-podium-place {
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.podium-1 .clan-podium-place {
  color: var(--accent-hi);
  font-size: 16px;
}
.clan-podium-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 17px;
  background: var(--bg-card-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.podium-1 .clan-podium-avatar {
  width: 78px;
  height: 78px;
  border-color: color-mix(in srgb, var(--accent) 68%, rgba(255,255,255,.16));
}
.clan-podium-avatar > * { width: 100%; height: 100%; object-fit: cover; }
.clan-podium-name {
  width: 100%;
  margin-top: 10px;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-1 .clan-podium-name { font-size: 13px; }
.clan-podium-mine {
  margin-top: 4px;
  color: var(--accent-hi);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.clan-podium-score {
  margin-top: auto;
  padding-top: 9px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.podium-1 .clan-podium-score { color: var(--accent-hi); font-size: 20px; }
.clan-podium-score-label { color: var(--text-mute); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.clan-podium-meta {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--text-mute);
  font-size: 8px;
  white-space: nowrap;
}
.clan-podium-meta span + span { padding-left: 6px; border-left: 1px solid rgba(255,255,255,.1); }
.clan-top-rest-label {
  margin: 6px 0 10px;
  color: var(--text-mute);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
  .clan-podium-card { animation: clanPodiumIn .42s cubic-bezier(.2,.8,.2,1) both; }
  .clan-podium-card.podium-1 { animation-delay: .05s; }
  .clan-podium-card.podium-3 { animation-delay: .1s; }
}
@keyframes clanPodiumIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .clan-podium-card.podium-1 { animation-name: clanPodiumWinnerIn; }
}
@keyframes clanPodiumWinnerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(-16px); }
}
@media (max-width: 360px) {
  .clan-top-podium { gap: 6px; }
  .clan-podium-card { padding-inline: 6px; }
  .clan-podium-avatar { width: 54px; height: 54px; border-radius: 15px; }
  .podium-1 .clan-podium-avatar { width: 68px; height: 68px; }
  .clan-podium-meta { gap: 4px; font-size: 7px; }
}
.clan-rank-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.clan-rank-row.top-1 { border-color: rgba(233,162,59,.72); }
.clan-rank-row.top-2 { border-color: rgba(196,208,225,.48); }
.clan-rank-row.top-3 { border-color: rgba(205,127,50,.58); }
.clan-rank-row.is-me {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--bg-card));
}
.clan-rank-place {
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.clan-rank-row.top-1 .clan-rank-place { color: var(--accent-hi); font-size: 18px; }
.clan-rank-avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: var(--bg-card-2);
}
.clan-rank-avatar > * { width: 100%; height: 100%; object-fit: cover; }
.clan-rank-copy { min-width: 0; }
.clan-rank-copy b,
.clan-rank-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clan-rank-copy b { color: var(--text); font-size: 13px; }
.clan-rank-copy span { margin-top: 3px; color: var(--text-mute); font-size: 9px; }
.clan-rank-score {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.clan-rank-score::before { content: '✦ '; color: var(--accent); }
.clan-top-me {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-card));
}
.clan-top-me span { color: var(--text-mute); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.clan-top-me b { color: var(--accent-hi); font-size: 20px; }
.clan-top-me strong { color: var(--text); font-size: 12px; }

/* Leaderboard V2 */
.arena-lb-wrap .filter-row {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 7px 0 5px;
  background: color-mix(in srgb, var(--bg-app) 92%, transparent);
  backdrop-filter: blur(14px);
}
.lb-filter {
  position: relative;
  min-height: 38px;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.lb-filter::after {
  content: '';
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
}
.lb-filter.active {
  color: var(--accent-hi) !important;
  background: rgba(245,200,66,.06) !important;
}
.lb-filter.active::after {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(245,200,66,.58);
}
.lb-me-card {
  min-height: 72px;
  border-color: rgba(245,200,66,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 30px rgba(0,0,0,.2);
}
.lb-me-rank-num { font-size: 24px; }
.leaderboard .lb-podium {
  position: sticky;
  top: 52px;
  z-index: 6;
  min-height: 172px;
  padding: 9px 0 12px;
  background: linear-gradient(180deg, var(--bg-app) 78%, transparent);
  backdrop-filter: blur(10px);
}
.lb-pod {
  min-height: 150px;
  padding: 14px 8px 12px;
  display: flex;
  align-items: flex-end;
  border-color: rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 10px 24px rgba(0,0,0,.28);
}
.lb-pod.p1 {
  min-height: 168px;
  border-color: rgba(245,200,66,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 0 24px rgba(245,200,66,.12),
    0 12px 28px rgba(0,0,0,.35);
}
.lb-pod.p2 { border-color: rgba(232,240,255,.32); }
.lb-pod.p3 { border-color: rgba(205,127,50,.4); }
.lb-pod-fg { width: 100%; }
.lb-pod-av {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255,255,255,.34);
  box-shadow: 0 0 0 3px rgba(255,255,255,.045), 0 8px 20px rgba(0,0,0,.35);
}
.lb-pod.p1 .lb-pod-av {
  width: 66px;
  height: 66px;
  border-color: #f5c842;
  box-shadow: 0 0 0 3px rgba(245,200,66,.12), 0 0 22px rgba(245,200,66,.26);
}
.lb-pod.p2 .lb-pod-av { border-color: #e8f0ff; }
.lb-pod.p3 .lb-pod-av { border-color: #cd7f32; }
.lb-pod-place {
  position: absolute;
  top: 9px;
  left: 9px;
  margin: 0;
}
.lb-pod.p2 .lb-pod-place { background: #e8f0ff; color: #15151d; }
.lb-pod.p3 .lb-pod-place { background: #cd7f32; color: #17100a; }
.lb-pod-crown {
  position: absolute;
  top: 8px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  animation: lbCrownPulse 2.4s ease-in-out infinite;
}
.lb-pod-crown svg { width: 23px; height: 23px; }
.lb-pod-name { margin-top: 7px; font-size: 12px; }
.lb-pod-score::before,
.lb-trophy::before { content: '✦ '; color: var(--accent); }
.lb-row {
  min-height: 62px;
  border-color: rgba(255,255,255,.09) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 6px 16px rgba(0,0,0,.16);
}
.lb-row-fg { min-height: 60px; padding: 9px 13px; }
.lb-avatar {
  width: 40px;
  height: 40px;
  border-color: rgba(245,200,66,.28);
  box-shadow: 0 0 0 2px rgba(245,200,66,.055);
}
.lb-rank { font-family: var(--font-display); font-size: 14px; }
.lb-name { font-size: 14px; }
.lb-trophy { font-variant-numeric: tabular-nums; }
@keyframes lbCrownPulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(245,200,66,.25)); transform: translateX(-50%) scale(1); }
  50% { filter: drop-shadow(0 0 10px rgba(245,200,66,.7)); transform: translateX(-50%) scale(1.07); }
}

@media (max-width: 360px) {
  .profile-modal-sheet { width: calc(100vw - 8px) !important; }
  .pp-content { padding-inline: 12px; }
  .pp-profile-tabs { margin-inline: -12px; padding-inline: 12px; }
  .pp-identity { margin-inline: 13px; grid-template-columns: 78px minmax(0,1fr); }
  .pp-avatar { width: 78px; height: 78px; }
  .pp-showcase { grid-template-columns: .9fr 1.85fr; }
  .pp-top-grid, .pp-favorites-grid { gap: 4px; }
  .pp-stats-grid { gap: 4px; }
  .pp-stat { min-height: 72px; }
  .pp-stat-val { font-size: 12px; }
  .leaderboard .lb-podium { gap: 5px; }
  .pp-screen-actions .pp-screen-friend { max-width: 86px; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-card-shell.is-placeholder .pp-card-placeholder,
  .pp-tab-panel.active,
  .profile-screen-loading span,
  .lb-pod-crown { animation: none !important; }
}
#toast {
  background: var(--bg-card) !important; border: 1px solid var(--border-hot) !important;
  border-radius: 999px !important; clip-path: none !important;
  color: var(--text) !important; text-transform: none !important;
  letter-spacing: 0 !important; box-shadow: var(--shadow) !important;
  font-weight: 600 !important;
}
#login-screen {
  background: var(--bg) !important;
}
#login-screen::before, #login-screen::after { display: none !important; }
.login-box {
  background: var(--bg-card) !important; border: 1px solid var(--border) !important;
  border-radius: 22px !important; clip-path: none !important;
  box-shadow: var(--shadow-deep) !important; padding: 32px 24px !important;
}
.login-box::before, .login-box::after { display: none !important; }
.login-title {
  letter-spacing: -.02em !important; text-transform: none !important;
  color: var(--text) !important; background: none !important;
  -webkit-text-fill-color: var(--text) !important; font-size: 26px !important;
}
.login-title::before { content: none !important; }
.login-sub { letter-spacing: .06em !important; color: var(--text-mute) !important; }
.login-sub::before, .login-sub::after { content: none !important; }
.login-input {
  border-radius: 12px !important; clip-path: none !important;
  background: var(--bg-hover) !important; border: 1px solid var(--border) !important;
  color: var(--text) !important; letter-spacing: 0 !important;
}
.login-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-dim) !important; }
.login-btn { border-radius: 999px !important; clip-path: none !important; text-transform: none !important; letter-spacing: 0 !important; }
.login-btn.primary { background: var(--grad-cta) !important; color: #16130C !important; box-shadow: none !important; }
.login-btn.primary::before { display: none !important; }
.login-btn.secondary { background: var(--bg-card) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   TOKENIZE HARDCODED WHITES (light theme readability)
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
.clan-empty-title, .clan-empty-step b, .clan-home-name, .clan-kpi-val,
.treasury-balance, .war-banner-title, .war-score-side .war-score,
.war-setup-steps b, .war-roster-row, .msg-text,
.active-banner-text, .boss-name, .turn-status-pill, .drawer-header,
.skill-btn, .card-battle-tile, .arena-league-title, .stat-value,
#arena-lobby .action-pill:not(.accent-btn) {
  color: var(--text) !important;
}
.msg-me .msg-text { color: #16130C !important; }
.arena-result-title {
  background: none !important;
  -webkit-text-fill-color: var(--text) !important;
  text-shadow: none !important;
}
.arena-prog-text, .war-banner-sub, .msg-time, .bj-section-label {
  color: var(--text-mute) !important;
}
.skill-btn { background: var(--bg-hover) !important; border-color: var(--border) !important; }
.card-battle-tile { box-shadow: none !important; }
.pulse-dot { color: var(--rose); }

/* Motion */
@keyframes hubRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.tab.active { animation: hubRise .3s ease both; }
.tab.active > * { animation: hubRise .34s ease both; }
.tab.active > *:nth-child(2) { animation-delay: .04s; }
.tab.active > *:nth-child(3) { animation-delay: .08s; }
.tab.active > *:nth-child(4) { animation-delay: .12s; }
.tab.active > *:nth-child(n+5) { animation-delay: .16s; }

*::-webkit-scrollbar { width: 3px; height: 3px; }
*::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 99px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   THEME SHOP / CREATOR HUB
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
.shop-theme-tabs { margin-bottom: 4px; }
.shop-theme-panel { display: none; flex-direction: column; gap: 12px; }
.shop-theme-panel.active { display: flex; }

.theme-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 2px;
}
.theme-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1px 0;
}
.theme-filter-row::-webkit-scrollbar { display: none; }
.theme-filter-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text-sub);
  border-radius: 999px;
  padding: 6px 11px;
  font: 700 11px var(--font-body);
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .14s, color .14s, border-color .14s;
}
.theme-filter-chip:active { transform: scale(.97); }
.theme-filter-chip.active {
  background: var(--accent);
  border-color: transparent;
  color: #17120a;
}
.theme-sales-hint {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-mute);
  white-space: nowrap;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.theme-grid-owned { margin-bottom: 8px; }

.theme-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: default;
}
.theme-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.theme-card-bg-video {
  background: linear-gradient(155deg, #1c1914 0%, #2e2820 55%, #181510 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-card-bg-video::after {
  content: '▶';
  font-size: 22px;
  color: rgba(242,237,228,.45);
}
.theme-card video.theme-card-video,
.theme-sub-thumb video.theme-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #161410;
}
.theme-sub-thumb {
  position: relative;
  overflow: hidden;
}
.theme-sub-thumb video {
  position: absolute;
  inset: 0;
}
.theme-card-bg video,
.theme-card video.theme-card-bg,
.theme-card img.theme-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,.08) 0%, rgba(8,9,11,.55) 45%, rgba(8,9,11,.92) 100%);
  pointer-events: none;
}
.theme-card-body {
  position: relative;
  z-index: 2;
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-card-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: var(--text-sub);
  font-weight: 600;
}
.theme-card-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.theme-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--border-hot);
  color: var(--accent-hi);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.theme-card-actions { display: flex; gap: 6px; }
.theme-card-btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  font: 700 11px inherit;
  cursor: pointer;
  transition: transform .14s;
}
.theme-card-btn:active { transform: scale(.96); }
.theme-card-btn.buy {
  background: var(--grad-cta);
  color: #16130C;
}
.theme-card-btn.apply {
  background: var(--accent-dim);
  border: 1px solid var(--border-hot);
  color: var(--accent-hi);
}
.theme-card-btn.owned {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-mute);
  cursor: default;
}
.theme-card.active-theme {
  border-color: var(--border-hot);
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.theme-card.active-theme::before {
  /* checkmark + Aktivna via CSS unicode escapes */
  content: '\2713\00A0\0410\043A\0442\0438\0432\043D\0430';
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--grad-cta);
  color: #16130C;
  border-radius: 999px;
  padding: 3px 7px;
}
.theme-card.active-theme .theme-price-badge {
  visibility: hidden;
}
.theme-card-bg.is-loading {
  background: linear-gradient(145deg, #1a1712 0%, #2a241c 50%, #14110e 100%);
}
.theme-card-bg.is-broken {
  background: #1a1712;
}

.theme-sub-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 2px 0;
}
.theme-owned-wrap { display: flex; flex-direction: column; gap: 8px; }
.theme-reset-btn { width: 100%; text-align: center; margin-top: 2px; }

.theme-upload-card {
  background: var(--tile-warm), var(--bg-card) !important;
  border-color: var(--border-hot) !important;
}
.theme-upload-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 4px;
}
.theme-upload-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
}
.theme-upload-form { display: flex; flex-direction: column; gap: 6px; }
.theme-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
  margin-top: 4px;
}

/* Shared form fields вЂ” kill browser-default white surfaces */
.treasury-input,
.theme-input,
.treasury-input.theme-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.treasury-input::placeholder,
.theme-input::placeholder {
  color: var(--text-mute);
  font-weight: 500;
}
.treasury-input:focus,
.theme-input:focus,
.treasury-input.theme-input:focus {
  border-color: var(--border-hot) !important;
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: var(--bg-card-2) !important;
}
html[data-theme="light"] .treasury-input,
html[data-theme="light"] .theme-input,
html[data-theme="light"] .treasury-input.theme-input {
  color-scheme: light;
  background: var(--bg-card-2) !important;
}
html[data-theme="light"] .treasury-input:focus,
html[data-theme="light"] .theme-input:focus {
  background: var(--bg-card) !important;
}

/* Custom dark file picker вЂ” hide native white "Choose File" */
.theme-file-wrap { position: relative; width: 100%; }
.theme-file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.theme-file-picker:hover {
  border-color: var(--border-hot);
  background: var(--bg-card-2);
}
.theme-file-picker:focus-within {
  border-color: var(--border-hot);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.theme-file-btn {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-hot);
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
}
.theme-file-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-file-name.has-file { color: var(--text); }
.theme-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Fallback if native control is ever shown */
.theme-file-input::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-hot);
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
html[data-theme="light"] .theme-file-picker {
  background: var(--bg-card-2);
}

.theme-upload-btn { margin-top: 8px; background: var(--grad-cta) !important; color: #16130C !important; border-color: transparent !important; }
.theme-stats-row { margin-top: 0; }

.theme-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.theme-sub-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-hover);
  background-size: cover;
  background-position: center;
}
.theme-sub-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-sub-info { flex: 1; min-width: 0; }
.theme-sub-title {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-sub-meta {
  font-size: 10px;
  color: var(--text-mute);
  font-weight: 600;
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.theme-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.theme-status.pending { background: rgba(76,154,255,.16); color: var(--blue); border: 1px solid rgba(76,154,255,.35); }
.theme-status.approved { background: var(--accent-dim); color: var(--accent-hi); border: 1px solid var(--border-hot); }
.theme-status.rejected { background: rgba(255,107,129,.14); color: var(--rose); border: 1px solid rgba(255,107,129,.35); }

body.has-custom-theme {
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
}
body.has-custom-theme::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11,12,14,.72) 0%, rgba(11,12,14,.88) 100%);
}
body.has-custom-theme #app-container { position: relative; z-index: 1; }
#app-container[data-custom-theme] {
  background-image: var(--theme-bg);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}
#app-container[data-custom-theme]::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11,12,14,.55) 0%, rgba(11,12,14,.82) 100%);
}
#app-container[data-custom-theme] > #app { position: relative; z-index: 1; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   SHARED TAB LANGUAGE (full menu remake)
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
.tab-head { display: flex; flex-direction: column; gap: 2px; }
.tab-lede {
  margin: 2px 0 0;
  font-size: 12px; font-weight: 500; color: var(--text-mute); line-height: 1.35;
}
.tab-hint {
  margin: 10px 0 0;
  font-size: 11px; color: var(--text-mute); line-height: 1.4; font-weight: 500;
}
.tab-cta {
  width: 100% !important;
  min-height: 52px !important;
  margin-top: 8px !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
}
.action-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 12px;
}
.action-row .action-pill { width: 100%; justify-content: center; }
.bento-row { gap: 8px !important; }
.mini-stat {
  padding: 14px 12px !important;
  text-align: center;
  border-radius: 14px !important;
}
.mini-stat .stat-label {
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: .06em !important; text-transform: uppercase !important;
  color: var(--text-mute) !important; margin-bottom: 4px;
}
.mini-stat .stat-value {
  font-size: 20px !important; font-weight: 800 !important;
  font-family: var(--font-display) !important; letter-spacing: -.02em;
}
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.stat-tile {
  background: var(--bg-card-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 14px 12px !important;
  box-shadow: none !important;
}
.stat-tile::before { display: none !important; }
.stat-tile.accent-tile {
  background: var(--tile-warm), var(--bg-card-2) !important;
  border-color: var(--border-hot) !important;
}
.stat-label {
  font-size: 10px !important; font-weight: 700 !important;
  color: var(--text-mute) !important; letter-spacing: .04em;
  text-transform: uppercase !important;
}
.stat-value {
  font-size: 18px !important; font-weight: 800 !important;
  font-family: var(--font-display) !important;
  color: var(--text) !important; margin-top: 4px;
}

/* Stats hero вЂ” arena stats ring (winrate) + KPI rows */
.stats-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 18px !important;
}
.stats-ring {
  position: relative;
  width: 92px; height: 92px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--bg-hover) 0);
}
.stats-ring::before {
  content: '';
  position: absolute; inset: 7px;
  border-radius: 50%;
  background: var(--bg-card);
}
.stats-ring-val {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 19px; font-weight: 800;
  color: var(--text); letter-spacing: -.01em;
}
.stats-ring-lbl {
  position: relative; z-index: 1;
  font-size: 9px; font-weight: 700; color: var(--text-mute);
  letter-spacing: .04em; text-transform: uppercase;
  margin-top: 1px;
}
.stats-hero-rows { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.stats-hero-row { display: flex; align-items: center; gap: 8px; }
.stats-hero-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.stats-hero-dot.win { background: var(--accent); }
.stats-hero-dot.loss { background: var(--rose); }
.stats-hero-dot.total { background: var(--text-mute); }
.stats-hero-name { flex: 1; font-size: 12px; font-weight: 600; color: var(--text-sub); }
.stats-hero-num { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--text); }
.filter-pill.active, .action-pill.accent-btn, .accent-btn {
  background: var(--grad-cta) !important;
  color: #16130C !important;
  border-color: transparent !important;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--rose);
  box-shadow: 0 0 0 0 rgba(255,107,129,.55);
  animation: pulseDot 1.4s ease infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255,107,129,.5); }
  70% { box-shadow: 0 0 0 8px rgba(255,107,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,129,0); }
}
.team-preview-card { margin-bottom: 4px !important; }
.arena-replays { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.arena-lb-wrap { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.arena-result-mmr, .arena-result-coins {
  font-size: 13px; font-weight: 600; color: var(--text-sub); margin-top: 6px;
}
.arena-result-icon {
  font-size: 36px; font-weight: 800; color: var(--accent-hi);
  font-family: var(--font-display); margin-bottom: 6px;
}
#btn-arena-attack {
  width: 100% !important; min-height: 52px !important; font-size: 14px !important;
  font-weight: 800 !important; text-transform: none !important; letter-spacing: 0 !important;
}
.battle-sub-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sub-act-btn {
  background: var(--bg-hover) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-sub) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font: 700 12px var(--font-body) !important;
  cursor: pointer;
}
.skip-act-btn { color: var(--accent-hi) !important; border-color: var(--border-hot) !important; }

/* Games shell в†’ graphite + amber */
#tab-games {
  --gold: var(--accent);
  --gold-light: var(--accent-hi);
  --gold-dark: var(--accent-deep);
  --gold-border: var(--border-hot);
}
.games-hero {
  text-align: left !important;
  padding: 4px 0 8px !important;
}
.games-hero-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 4px;
}
#tab-games .casino-lobby-title {
  justify-content: flex-start !important;
  font-family: var(--font-display) !important;
  font-size: 22px !important; font-weight: 800 !important;
  letter-spacing: -.02em !important; text-transform: none !important;
  background: none !important;
  -webkit-text-fill-color: var(--text) !important;
  color: var(--text) !important;
  margin-bottom: 12px !important;
}
#tab-games .casino-bal-row {
  margin: 0 !important; width: 100% !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
#tab-games .casino-bal-chip { flex: 1; justify-content: center; }
#tab-games .cbc-icon { color: var(--accent) !important; }
#tab-games .cbc-spin { color: var(--blue) !important; }
#tab-games .cbc-val {
  font-family: var(--font-display) !important;
  font-weight: 800 !important; color: var(--text) !important;
}
#tab-games .cbc-lbl {
  font-size: 9px !important; letter-spacing: .04em !important;
  text-transform: uppercase !important; color: var(--text-mute) !important;
}
#tab-games .vip-games-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
#tab-games .vip-game-card.vgc-wide,
#tab-games #game-pick-guess {
  grid-column: 1 / -1 !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  min-height: 78px !important;
  padding: 14px 18px !important;
  text-align: left !important;
}
#tab-games .vip-game-card.vgc-wide .vgc-art {
  margin: 0 !important;
  flex-shrink: 0;
}
#tab-games .vip-game-card.vgc-wide .vgc-wide-text {
  flex: 1;
  min-width: 0;
  z-index: 1;
}
#tab-games .vip-game-card.vgc-wide .vgc-line {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
}
#tab-games .vip-game-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: var(--text) !important;
}
#tab-games .vip-game-card.game-pick-active {
  border-color: var(--border-hot) !important;
  background: var(--tile-warm), var(--bg-card) !important;
  box-shadow: none !important;
}
#tab-games .vip-game-card.game-pick-active .vgc-art,
#tab-games .vip-game-card.game-pick-active .vgc-sub,
#tab-games .vip-game-card.game-pick-active .vgc-name {
  color: var(--accent-hi) !important;
}
#tab-games .vgc-name {
  font-family: var(--font-display) !important;
  font-size: 14px !important; font-weight: 800 !important;
  letter-spacing: -.01em !important; text-transform: none !important;
}
#tab-games .vgc-sub {
  font-size: 11px !important; font-weight: 600 !important;
  color: var(--text-mute) !important; letter-spacing: 0 !important;
}
#tab-games .vgc-glow { opacity: .35 !important; background: radial-gradient(circle, var(--accent-soft), transparent 70%) !important; }
#tab-games .vgc-line { background: var(--accent) !important; }

.accent-text { color: var(--accent-hi) !important; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   ANIME-EDITORIAL REMODEL
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */

/* Focus + a11y */
:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}
.badge-ico { margin-right: 4px; opacity: .85; }

/* Soften boxed chrome вЂ” keep form cards readable */
.bento-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  border-radius: 16px !important;
}
.team-preview-card.bento-card,
.shop-hero.bento-card {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.team-kpi-row .mini-stat {
  box-shadow: none !important;
}

/* Keep Discord hub art; only drop old clip-path that fights hub-mode layout */
#hub-art-arena,
#hub-art-cards,
#hub-art-clan,
#hub-art-spin,
#hub-art-team,
#hub-art-tasks,
#hub-art-themes {
  clip-path: none !important;
}

/* в”Ђв”Ђ Hub wallet в”Ђв”Ђ */
.hub-wallet {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.hub-wallet-cell {
  display: flex; flex-direction: column; gap: 2px;
  align-items: flex-start; text-align: left;
  padding: 10px 10px 9px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer; color: inherit;
  transition: transform .14s, border-color .2s;
}
.hub-wallet-cell:active { transform: scale(.97); }
.hub-wallet-cell b {
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  letter-spacing: -.02em; color: var(--text);
}
.hub-wallet-cell span {
  font-size: 10px; font-weight: 600; color: var(--text-mute);
}
.hub-wallet-cell.c-coin b { color: var(--accent-hi); }
.hub-wallet-cell.c-star b { color: var(--blue); }
.hub-wallet-cell.c-spin { border-color: var(--border-hot); }
.hub-wallet-cell.c-spin b { color: var(--accent-hi); }

/* в”Ђв”Ђ Hub cover (arena) в”Ђв”Ђ */
.hub-cover {
  position: relative; overflow: hidden;
  display: block; width: 100%;
  min-height: 210px; border-radius: 20px;
  border: 1px solid var(--border-hot);
  cursor: pointer; text-align: left; color: #F2F4F7;
  isolation: isolate; padding: 0;
  transition: transform .18s;
}
.hub-cover:active { transform: scale(.985); }
.hub-cover .hub-f-art,
#hub-art-arena {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  border-radius: inherit;
}
.hub-cover .hub-f-art img,
#hub-art-arena img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hub-cover .hub-f-art::after,
#hub-art-arena::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,14,.15) 0%, rgba(8,10,14,.55) 48%, rgba(8,10,14,.92) 100%);
  pointer-events: none;
}
.hub-cover-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 210px; padding: 18px 16px;
  gap: 4px;
}
.hub-cover-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-hi);
}
.hub-cover-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.05;
}
.hub-cover-meta {
  font-size: 12px; font-weight: 600; color: rgba(242,244,247,.72); margin-top: 2px;
}
.hub-cover-meta b { color: #fff; font-weight: 800; }

/* в”Ђв”Ђ Hub modes grid в”Ђв”Ђ */
.hub-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hub-mode {
  position: relative; overflow: hidden;
  min-height: 96px; border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start; gap: 2px;
  padding: 12px; text-align: left; color: #F2F4F7;
  cursor: pointer; isolation: isolate;
  transition: transform .16s, border-color .2s;
}
.hub-mode:active { transform: scale(.97); }
.hub-mode-wide { grid-column: 1 / -1; min-height: 78px; flex-direction: row; align-items: flex-end; gap: 10px; }
.hub-mode-art {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background-size: cover; background-position: center;
}
.hub-mode-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hub-mode-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(8,10,14,.2) 0%, rgba(8,10,14,.78) 100%);
}
.hub-mode-art-games,
.hub-mode-art-shop {
  background-size: cover;
  background-position: center;
}
#hub-art-games {
  background-image: url('assets/hub/games.jpg');
}
#hub-art-shop {
  background-image: url('assets/hub/shop.jpg');
}
#hub-art-games img,
#hub-art-shop img,
.hub-mode-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
#hub-art-clan:empty {
  background-image: url('assets/hub/clan.jpg');
  background-size: cover; background-position: center;
}
.hub-mode-name,
.hub-mode-sub { position: relative; z-index: 1; }
.hub-mode-name {
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  letter-spacing: -.01em;
}
.hub-mode-sub { font-size: 11px; font-weight: 500; color: rgba(242,244,247,.68); }
.hub-mode-wide .hub-mode-name { font-size: 16px; }

/* Referral hub art — full-width under Games */
.hub-mode-art-ref {
  display: block;
  background: #0a0a0e;
}
#hub-art-ref {
  background-image: url('assets/hub/ref.jpg');
  background-size: cover;
  background-position: center 22%;
}
#hub-art-ref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  filter: brightness(1.08) contrast(1.05) saturate(1.08);
}
#hub-art-ref span { display: none; }
/* Keep art bright on the left; darken only the text side */
#hub-art-ref::after {
  background:
    linear-gradient(90deg,
      rgba(8,10,14,.08) 0%,
      rgba(8,10,14,.18) 42%,
      rgba(8,10,14,.72) 68%,
      rgba(8,10,14,.92) 100%),
    linear-gradient(180deg, transparent 35%, rgba(8,10,14,.55) 100%);
}
.hub-mode-ref {
  min-height: 104px;
  padding: 14px 16px;
  justify-content: flex-end;
  align-items: flex-end;
}
.hub-mode-ref .hub-mode-name,
.hub-mode-ref .hub-mode-sub {
  text-shadow:
    0 1px 2px rgba(0,0,0,.95),
    0 0 12px rgba(0,0,0,.75);
}
.hub-mode-ref .hub-mode-name {
  color: #fff;
  font-size: 18px;
}
.hub-mode-ref .hub-mode-sub {
  color: rgba(255,255,255,.9);
  font-weight: 650;
}

/* ── Referral screen ─────────────────────────────── */
.ref-hero {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--border); background: var(--tile-warm), var(--bg-card);
  padding: 16px; margin-bottom: 4px; min-height: 96px;
}
.ref-hero-art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 46%;
  overflow: hidden;
  pointer-events: none;
}
.ref-hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  display: block;
}
.ref-hero-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-card) 0%, rgba(17,17,24,.2) 40%, rgba(17,17,24,.55) 100%);
}
.ref-hero-kicker { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); }
.ref-hero-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  letter-spacing: -.02em; margin-top: 3px;
}
.ref-hero-sub { font-size: 11px; color: var(--text-mute); margin-top: 4px; line-height: 1.35; }

.ref-link-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.ref-link-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mute);
}
.ref-link-row { display: flex; align-items: center; gap: 8px; }
.ref-link-text {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--accent-hi);
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.ref-copy-btn {
  flex-shrink: 0; border: 1px solid var(--border-hot, var(--border));
  background: var(--bg-card-2); color: var(--text-main, #f2f4f7);
  font-size: 12px; font-weight: 700; border-radius: 10px; padding: 10px 14px;
  cursor: pointer; transition: transform .12s ease;
}
.ref-copy-btn:active { transform: scale(.95); }
.ref-share-btn { margin-top: 2px; }

.ref-invited-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
}
.ref-invited-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.ref-invited-num {
  margin-top: 6px;
  color: #f6f5fa;
  font: 800 clamp(28px, 8vw, 36px)/1 var(--font-display);
  letter-spacing: -.03em;
}
.ref-invited-num small {
  margin-left: 4px;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
}
.ref-invited-sub {
  margin-top: 8px;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 600;
}

.ref-terms-card {
  padding: 16px;
  border: 1px solid rgba(233,162,59,.34);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: inset 3px 0 0 var(--accent-hi);
}
.ref-terms-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.ref-terms-kicker {
  color: var(--accent-hi);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ref-terms-title {
  max-width: 230px;
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
}
.ref-terms-percent {
  flex: 0 0 auto;
  color: var(--accent-hi);
  font: 900 30px/1 var(--font-display);
  letter-spacing: -.04em;
}
.ref-terms-example {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-card-2);
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.4;
}
.ref-terms-example b { color: var(--text); }
.ref-terms-example span { color: var(--accent-hi); font-weight: 900; }
.ref-terms-note {
  margin-top: 9px;
  color: var(--text-mute);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.ref-block { display: flex; flex-direction: column; gap: 8px; }
.ref-rewards-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
}
.ref-reward-row {
  display: grid;
  grid-template-columns: 52px 1fr 22px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
}
.ref-reward-row.done { opacity: .55; }
.ref-reward-row.current {
  background: rgba(233,162,59,.1);
  box-shadow: inset 0 0 0 1px rgba(233,162,59,.28);
}
.ref-reward-row.endless {
  grid-template-columns: 52px 1fr;
  color: var(--text-sub);
}
.ref-reward-step {
  color: var(--accent-hi);
  font: 800 13px var(--font-display);
  font-variant-numeric: tabular-nums;
}
.ref-reward-label {
  font-size: 13px;
  font-weight: 650;
}
.ref-reward-mark {
  color: var(--accent-hi);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.ref-claimed-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ref-claimed-item {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.ref-claimed-empty {
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 600;
}

.ref-next-card {
  background:
    radial-gradient(circle at 100% 0, rgba(233,162,59,.14), transparent 42%),
    var(--bg-card);
  border: 1px solid rgba(233,162,59,.28);
  border-radius: 18px;
  padding: 16px;
}
.ref-next-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.ref-next-value {
  margin-top: 8px;
  color: #f6f5fa;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}
.ref-next-value b {
  color: var(--accent-hi);
  font: 800 22px/1.1 var(--font-display);
}
.ref-progress {
  height: 8px; border-radius: 99px; background: var(--bg-card-2);
  overflow: hidden; margin-top: 12px;
}
.ref-progress-bar {
  height: 100%; border-radius: 99px; background: var(--grad-cta);
  transition: width .5s cubic-bezier(.16,1,.3,1);
}
.ref-progress-hint { font-size: 11px; color: var(--text-mute); margin-top: 8px; font-weight: 600; }

/* Hub identity polish */
.hub-pts {
  font-size: 11px !important; font-weight: 700 !important;
  color: var(--accent-hi) !important; letter-spacing: .02em;
}
#av-fallback {
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  color: #16130C;
}

/* в”Ђв”Ђ Shop editorial в”Ђв”Ђ */
.shop-hero {
  position: relative; overflow: hidden !important;
  border-radius: 20px !important;
  border: 1px solid var(--border-hot) !important;
  background: var(--tile-warm), var(--bg-card) !important;
  padding: 18px 16px !important;
  min-height: 132px;
  display: flex; flex-direction: column; gap: 14px;
}
.shop-hero-art {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.shop-hero-art img {
  width: 100%; height: 100%; object-fit: cover; opacity: .42;
  mask-image: linear-gradient(90deg, transparent 20%, rgba(0,0,0,.9) 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, rgba(0,0,0,.9) 70%);
}
.shop-hero-copy { position: relative; z-index: 1; max-width: 70%; }
.shop-hero-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 4px;
}
.shop-hero-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 4px; line-height: 1.05;
}
.shop-hero-sub { font-size: 12px; color: var(--text-mute); font-weight: 500; }
.shop-wallet-row { position: relative; z-index: 1; }

.elite-stage {
  display: flex; flex-direction: column; gap: 14px;
  padding: 4px 0 2px;
}
.elite-stage-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.elite-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  letter-spacing: -.02em; color: var(--text); margin: 0;
}
.elite-sub {
  margin: 4px 0 0; font-size: 12px; color: var(--text-mute); font-weight: 500;
}
.elite-cost-chip {
  flex-shrink: 0; font-size: 11px; font-weight: 800;
  padding: 6px 10px; border-radius: 999px;
  background: var(--accent-dim); border: 1px solid var(--border-hot);
  color: var(--accent-hi); white-space: nowrap;
}
.elite-pity-block { display: flex; flex-direction: column; gap: 10px; }
.elite-pity-row {
  display: grid; grid-template-columns: 70px 1fr 44px;
  align-items: center; gap: 8px;
}
.elite-pity-lbl { font-size: 11px; font-weight: 700; color: var(--text-sub); }
.elite-pity-track {
  height: 7px; border-radius: 99px; overflow: hidden;
  background: var(--bg-hover);
}
.elite-pity-track i {
  display: block; height: 100%; width: 0%;
  background: var(--grad-cta); border-radius: inherit;
  transition: width .45s cubic-bezier(.16,1,.3,1);
}
.elite-pity-track.myth i {
  background: linear-gradient(90deg, var(--rose), var(--accent));
}
.elite-pity-num {
  font-size: 11px; font-weight: 700; color: var(--text-mute); text-align: right;
  font-variant-numeric: tabular-nums;
}
.elite-rates { display: flex; flex-wrap: wrap; gap: 6px; }
.elite-rates span {
  font-size: 10px; font-weight: 700;
  border-radius: 999px; padding: 4px 9px;
  border: 1px solid var(--border); background: var(--bg-card);
}
.er-common { color: var(--rank-common); }
.er-rare { color: var(--rank-rare); }
.er-epic { color: var(--rank-epic); }
.er-legend { color: var(--rank-legend); border-color: var(--border-hot) !important; }
.er-myth { color: var(--rank-mythic); }

.elite-actions {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px;
}
.elite-btn {
  min-height: 52px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text);
  font: 800 14px var(--font-body); cursor: pointer;
  transition: transform .14s, border-color .2s, opacity .14s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
/* Не используем :active transform — на iOS TG «залипает» pressed-состояние */
.elite-btn.is-pressed { transform: scale(.97); }
.elite-btn:disabled { opacity: .45; pointer-events: none; }
.elite-btn-pack {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  background: var(--grad-cta) !important; color: #16130C !important;
  border-color: transparent !important;
}
.elite-save {
  position: static;
  font-size: 10px; font-weight: 700; opacity: .8;
  background: none; border: 0; padding: 0; color: inherit;
}
.elite-result {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.elite-drop {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.elite-drop.rank-legend { border-color: color-mix(in srgb, var(--rank-legend) 55%, transparent); }
.elite-drop.rank-myth { border-color: color-mix(in srgb, var(--rank-mythic) 55%, transparent); }
.elite-drop-art {
  width: 48px; height: 64px; border-radius: 10px; overflow: hidden;
  background: var(--bg-hover); flex-shrink: 0;
}
.elite-drop-art img { width: 100%; height: 100%; object-fit: cover; }
.elite-drop-body { flex: 1; min-width: 0; }
.elite-drop-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.elite-drop-meta { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* Shop packs */
.shop-grid-buy { grid-template-columns: 1.3fr 1fr !important; gap: 8px !important; }
.shop-pack {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 16px 14px; border-radius: 16px; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  transition: transform .14s, border-color .2s;
}
.shop-pack:active { transform: scale(.97); }
.shop-pack.featured {
  border-color: var(--border-hot);
  background: var(--tile-warm), var(--bg-card);
}
.shop-pack-amt {
  font-family: var(--font-display); font-size: 32px; font-weight: 800;
  letter-spacing: -.04em; line-height: 1; color: var(--accent-hi);
}
.shop-pack-name { font-size: 14px; font-weight: 700; }
.shop-pack-price { font-size: 11px; color: var(--text-mute); font-weight: 600; margin-top: 4px; }
.featured-badge {
  position: absolute; top: 0; right: 0;
  background: var(--grad-cta) !important; color: #16130C !important;
  font-size: 9px !important; font-weight: 800 !important; letter-spacing: .06em;
  border-radius: 0 16px 0 10px !important; padding: 4px 9px !important;
}

.exchange-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 14px 4px 6px !important;
  background: transparent !important; border: 0 !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 !important; cursor: pointer; text-align: left;
  color: inherit;
}
.exchange-copy { display: flex; flex-direction: column; gap: 2px; }
.exchange-title { font-size: 14px; font-weight: 700; }
.exchange-sub { font-size: 11px; color: var(--text-mute); font-weight: 500; }
.exchange-arrow { font-size: 20px; color: var(--accent-hi); }

/* Cards editorial вЂ” image-led tiles */
.cards-spotlight {
  border-radius: 20px !important;
  min-height: 230px !important;
  border-color: transparent !important;
}
.cards-spotlight-title {
  font-family: var(--font-display) !important;
  font-size: 26px !important;
  letter-spacing: -.03em !important;
}
.cards-head { align-items: flex-end; }
.cards-count {
  font-size: 12px !important; font-weight: 700 !important;
  color: var(--text-mute) !important;
  background: transparent !important; border: 0 !important; padding: 0 !important;
}
#card-filters.filter-row {
  gap: 6px; overflow-x: auto; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
#card-filters .filter-pill {
  flex: 0 0 auto;
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text-sub) !important;
  font-weight: 700 !important;
}
#card-filters .filter-pill.active {
  background: var(--accent-soft) !important;
  border-color: var(--border-hot) !important;
  color: var(--accent-hi) !important;
}
.card-item {
  border-radius: 16px !important;
  background: var(--bg-card) !important;
}
.card-item .card-img-wrap { border-radius: 16px 16px 0 0 !important; }
.card-item .card-name {
  font-family: var(--font-display);
  font-size: 13px !important; font-weight: 800 !important;
  font-style: normal !important; text-transform: none !important;
  letter-spacing: -.01em !important; color: #fff !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.85) !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-item .card-rank-lbl {
  font-size: 9px !important; font-weight: 700 !important;
  letter-spacing: .06em !important; text-transform: uppercase !important;
}
.card-item .card-stats {
  display: flex; gap: 6px;
}
.card-item .card-stat {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(0,0,0,.55) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  padding: 3px 7px !important;
  font-size: 10px !important; font-weight: 700 !important;
  color: #fff;
}
.card-item .card-stat.atk { color: var(--accent-hi) !important; }
.card-item .card-stat.hp { color: #FF8FA0 !important; }

/* Arena editorial */
.arena-hero-banner {
  border-radius: 20px !important;
  min-height: 148px;
  border: 1px solid var(--border-hot) !important;
  overflow: hidden;
}
.arena-hero-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-hi); margin-bottom: 2px;
}
.arena-league-title {
  font-family: var(--font-display) !important;
  font-size: 22px !important; letter-spacing: -.02em !important;
}
.team-preview-card {
  background: transparent !important;
  border: 0 !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
}
.team-preview-header {
  font-size: 12px; font-weight: 700; color: var(--text-sub);
}
#btn-arena-fight, .pulse-glow-btn {
  border-radius: 16px !important;
  min-height: 56px !important;
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  letter-spacing: -.01em !important;
}
.arena-result-box {
  border-radius: 20px !important;
  border: 1px solid var(--border-hot) !important;
}
.arena-result-title {
  font-family: var(--font-display) !important;
  font-size: 28px !important; letter-spacing: -.03em !important;
}
.stats-hero {
  border-radius: 18px !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

/* Team editorial */
.team-hero {
  gap: 5px !important;
  margin-bottom: 8px !important;
}
.team-hero-slot {
  border-radius: 12px !important;
}
.tab-head { margin-bottom: 4px; }
.tab-lede {
  margin: 4px 0 0; font-size: 12px; font-weight: 500; color: var(--text-mute);
}

/* Clan subnav text pills */
.clan-subnav {
  display: flex !important; gap: 6px !important;
  padding: 4px !important; overflow-x: auto;
  background: transparent !important; border: 0 !important;
  box-shadow: none !important;
  scrollbar-width: none;
}
.clan-subnav::-webkit-scrollbar { display: none; }
.clan-tab-btn {
  flex: 1; min-width: 0;
  padding: 10px 8px !important;
  border-radius: 999px !important;
  font-size: 12px !important; font-weight: 700 !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-sub) !important;
}
.clan-tab-btn i { display: none !important; }
.clan-tab-btn.active {
  background: var(--accent-soft) !important;
  border-color: var(--border-hot) !important;
  color: var(--accent-hi) !important;
}
.clan-home-hero {
  border-radius: 20px !important;
}
.clan-empty-title {
  font-family: var(--font-display) !important;
  font-size: 28px !important; letter-spacing: -.03em !important;
}
.clan-kpi {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

/* Tasks hero */
.tasks-hero {
  border-radius: 20px !important;
  min-height: 110px;
  border-color: var(--border-hot) !important;
}
.tasks-hero-title {
  font-family: var(--font-display); font-size: 22px !important;
  letter-spacing: -.02em !important;
}
.tasks-list .task-item,
.task-card {
  border-radius: 14px !important;
  box-shadow: none !important;
}

/* Bottom nav вЂ” amber dock, no red casino ring */
.bottom-nav.five-tab-nav {
  border-radius: 24px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--border) !important;
  background: var(--nav-bg) !important;
}
.arena-center-ring {
  background: var(--grad-cta) !important;
  box-shadow: 0 8px 20px rgba(233,162,59,.32) !important;
  animation: none !important;
  display: grid !important;
  place-items: center !important;
}
.arena-center-btn {
  transform: translateY(-8px) !important;
}
.arena-center-ring .nav-ico svg {
  width: 24px !important;
  height: 24px !important;
  stroke: #16130C !important;
  display: block !important;
}
.nav-btn .nav-label {
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: .01em;
}
.nav-btn.active { color: var(--accent-hi) !important; }

/* Games вЂ” shared dark-amber language */
#tab-games .games-hero {
  padding: 4px 0 14px !important;
  background: transparent !important;
  border: 0 !important;
}
#tab-games .games-hero-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 4px;
}
#tab-games .casino-lobby-title {
  font-family: var(--font-display) !important;
  font-size: 28px !important; letter-spacing: -.03em !important;
  color: var(--text) !important;
}
#tab-games .casino-bal-row {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 4px !important;
}
#tab-games .cbc-icon {
  font-size: 12px; opacity: .85; color: var(--accent-hi);
}
#tab-games .vip-game-card {
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-card) !important;
  box-shadow: none !important;
}
#tab-games .vip-game-card.game-pick-active {
  border-color: var(--border-hot) !important;
  background: var(--tile-warm), var(--bg-card) !important;
}
#tab-games .vgc-name {
  font-family: var(--font-display); font-weight: 800;
}
#tab-games .vgc-glow { opacity: .35 !important; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   LIGHT THEME FIX + NUMERIC TYPE
в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
html[data-theme="light"] {
  color-scheme: light;
}
html[data-theme="light"] body,
html[data-theme="light"] #app-container,
html[data-theme="light"] .app-main {
  background: var(--bg-app) !important;
  color: var(--text) !important;
}
html[data-theme="light"] .app-header {
  background: rgba(255,255,255,.92) !important;
  border-bottom-color: var(--border) !important;
}
html[data-theme="light"] .header-brand { color: var(--text) !important; }
html[data-theme="light"] .badge {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
html[data-theme="light"] .badge-accent {
  border-color: var(--border-hot) !important;
  color: var(--accent-hi) !important;
}

/* Telegram WebView layout lock: keep the whole app on the visual centerline. */
body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
#app-container {
  width: min(100%, 480px) !important;
  min-width: 0;
  margin-inline: auto !important;
  justify-self: center;
}
#app,
.app-header,
.app-main,
.tab,
#tab-arena,
#arena-lobby,
#arena-loading,
#arena-battle,
#arena-result,
#arena-stats-screen,
#arena-lb-wrap {
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}
#tab-arena > *,
#arena-lobby > * {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.team-preview-header,
.team-preview-card .tab-hint {
  padding-inline: 16px;
}
.team-preview-slots {
  justify-items: center;
}
.team-preview-slots .mini-slot {
  width: min(100%, 72px) !important;
  height: auto !important;
  min-width: 0;
  aspect-ratio: 3 / 4;
  justify-self: center;
}
@media (max-width: 380px) {
  .team-preview-header,
  .team-preview-card .tab-hint {
    padding-inline: 10px;
  }
}
html[data-theme="light"] .section-heading,
html[data-theme="light"] .tab-lede,
html[data-theme="light"] .elite-title,
html[data-theme="light"] .elite-sub,
html[data-theme="light"] .exchange-title,
html[data-theme="light"] .shop-pack-name,
html[data-theme="light"] .shop-pack-price,
html[data-theme="light"] .hub-name,
html[data-theme="light"] .hub-verse,
html[data-theme="light"] .nav-btn {
  color: var(--text) !important;
}
html[data-theme="light"] .tab-lede,
html[data-theme="light"] .elite-sub,
html[data-theme="light"] .exchange-sub,
html[data-theme="light"] .hub-verse,
html[data-theme="light"] .nav-btn {
  color: var(--text-sub) !important;
}
html[data-theme="light"] .nav-btn.active {
  color: var(--accent-hi) !important;
}
html[data-theme="light"] .bottom-nav.five-tab-nav {
  background: rgba(255,255,255,.96) !important;
  border-color: var(--border) !important;
}
html[data-theme="light"] .hub-wallet-cell {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
html[data-theme="light"] .hub-wallet-cell span { color: var(--text-mute) !important; }
html[data-theme="light"] .bento-card,
html[data-theme="light"] .shop-pack,
html[data-theme="light"] .elite-btn:not(.elite-btn-pack),
html[data-theme="light"] .filter-pill,
html[data-theme="light"] .action-pill,
html[data-theme="light"] .clan-tab-btn,
html[data-theme="light"] .clan-member,
html[data-theme="light"] .lb-pod,
html[data-theme="light"] .lb-row {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
html[data-theme="light"] .shop-hero {
  background: var(--tile-warm), var(--bg-card) !important;
}
html[data-theme="light"] .shop-hero-title,
html[data-theme="light"] .shop-hero-kicker,
html[data-theme="light"] .shop-hero-sub,
html[data-theme="light"] .shop-wallet-val,
html[data-theme="light"] .shop-wallet-lbl {
  color: var(--text) !important;
}
html[data-theme="light"] .shop-hero-kicker,
html[data-theme="light"] .shop-hero-sub,
html[data-theme="light"] .shop-wallet-lbl {
  color: var(--text-mute) !important;
}
html[data-theme="light"] .empty-state { color: var(--text-mute) !important; }
html[data-theme="light"] .hub-cover-body,
html[data-theme="light"] .hub-mode {
  color: #F2F4F7 !important;
}
html[data-theme="light"] .hub-mode-sub {
  color: rgba(242,244,247,.72) !important;
}

/* Numbers: Outfit tabular, not Syne display */
.hub-wallet-cell b,
.shop-wallet-val,
.badge span:not(.badge-ico),
.stat-value,
.shop-pack-amt,
.elite-pity-num,
.cm-pts,
.lb-pod-score,
.lb-trophy,
.cards-count,
#h-spins, #h-coins, #p-pts, #p-coins, #p-stars, #p-spins, #p-cards, #p-trophy,
#s-coins, #s-stars, #team-dmg, #team-hp,
#ar-trophy, #games-balance, #games-spins {
  font-family: var(--font-body) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
  font-style: normal !important;
}
.shop-pack-amt {
  font-size: 28px !important;
  font-weight: 800 !important;
}

/* Header compact editorial shell */
.app-header {
  position: sticky; top: 0; z-index: 40;
}
.header-brand {
  font-size: 15px !important; letter-spacing: .08em !important;
}
.badge {
  min-height: 32px;
  border-radius: 999px !important;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 360px) {
  .hub-cover-title { font-size: 24px; }
  .hub-modes { gap: 6px; }
  .elite-actions { grid-template-columns: 1fr; }
  .shop-grid-buy { grid-template-columns: 1fr !important; }
  .hub-wallet { gap: 5px; }
  .hub-wallet-cell { padding: 8px 7px; }
  .hub-wallet-cell b { font-size: 13px; }
}
