/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #D4A017;
  --gold-light: #F0C040;
  --gold-dim: #8B6914;
  --gold-glow: rgba(212, 160, 23, 0.3);
  --bg: #0A0A0C;
  --bg2: #111115;
  --bg3: #181820;
  --bg4: #1E1E28;
  --surface: #16161F;
  --surface2: #1C1C28;
  --border: rgba(212, 160, 23, 0.15);
  --border-strong: rgba(212, 160, 23, 0.35);
  --text: #E8E0D0;
  --text-dim: #8A8070;
  --text-muted: #5A5548;
  --str: #E04040;
  --agi: #40C040;
  --int: #4080E0;
  --win: #3ECF7A;
  --loss: #E05050;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.6);
  --motion-fast: 0.18s;
  --motion-mid: 0.3s;
  --motion-slow: 0.46s;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  font-family: 'Exo 2', sans-serif;
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(212, 160, 23, 0.1), transparent 58%),
    radial-gradient(820px 520px at 88% 10%, rgba(64, 128, 224, 0.08), transparent 54%),
    radial-gradient(900px 620px at 50% 118%, rgba(224, 64, 64, 0.06), transparent 60%),
    linear-gradient(180deg, #09090b 0%, #0c0c10 38%, #101017 100%);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  opacity: 0.85;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.014) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.014) 100%),
    radial-gradient(circle at 20% 18%, rgba(255, 244, 214, 0.045) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 78% 32%, rgba(255, 244, 214, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(rgba(212, 160, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.03) 1px, transparent 1px);
  background-size:
    auto,
    240px 240px,
    320px 320px,
    72px 72px,
    72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34) 58%, rgba(0, 0, 0, 0.12));
}

/* ===== COMMUNITY SURVEY ===== */
.survey-header {
  margin-bottom: 24px;
}

.survey-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.survey-side {
  display: grid;
  gap: 14px;
}

.survey-reward-card,
.survey-note-card,
.survey-form {
  border: 1px solid var(--border-strong);
  background: rgba(14, 14, 20, 0.96);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.survey-reward-card,
.survey-note-card {
  padding: 14px;
}

.survey-reward-kicker {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.survey-reward-value {
  margin-top: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.survey-reward-card p,
.survey-note-card p {
  margin-top: 10px;
  color: var(--text-dim);
  line-height: 1.5;
}

.survey-note-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
}

.survey-status {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(64, 128, 224, 0.28);
  background: rgba(64, 128, 224, 0.08);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.survey-status.is-ok {
  border-color: rgba(62, 207, 122, 0.34);
  background: rgba(62, 207, 122, 0.08);
}

.survey-status.is-error {
  border-color: rgba(224, 80, 80, 0.36);
  background: rgba(224, 80, 80, 0.08);
}

.survey-login-btn {
  width: 100%;
  margin-top: 12px;
}

.survey-form {
  padding: 14px;
}

.survey-form-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.survey-form-head h3 {
  margin: 0 0 6px;
  color: var(--gold-light);
  font-size: 20px;
}

.survey-form-head p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.45;
}

.survey-progress-pill {
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  background: rgba(212, 160, 23, 0.08);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--gold-light);
  font-weight: 800;
}

.survey-question {
  content-visibility: auto;
  contain-intrinsic-size: auto 190px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  border: 1px solid rgba(212, 160, 23, 0.14);
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}

.survey-question legend {
  grid-column: 1 / -1;
  padding: 0 8px;
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
}

.survey-question legend span {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
}

.survey-question label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 28px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.survey-question label:hover {
  background: rgba(212, 160, 23, 0.055);
}

.survey-question label:has(input:checked) {
  border-color: rgba(212, 160, 23, 0.42);
  background: rgba(212, 160, 23, 0.105);
  color: var(--text);
}

.survey-question input[type="radio"],
.survey-question input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 2px;
  width: 14px;
  height: 14px;
  appearance: none;
  border: 2px solid rgba(215, 222, 235, 0.52);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.38);
}

.survey-question input[type="radio"] {
  border-radius: 50%;
}

.survey-question input[type="checkbox"] {
  border-radius: 4px;
}

.survey-question input[type="radio"]:checked,
.survey-question input[type="checkbox"]:checked {
  border-color: var(--gold-light);
  background: var(--gold);
  box-shadow: inset 0 0 0 3px rgba(16, 14, 10, 0.94), 0 0 0 1px rgba(255, 224, 122, 0.28);
}

.survey-question input[type="checkbox"]:checked {
  box-shadow: inset 0 0 0 2px rgba(16, 14, 10, 0.94), 0 0 0 1px rgba(255, 224, 122, 0.28);
}

.survey-question input:disabled {
  opacity: 1;
}

.survey-question textarea,
.survey-text-input {
  width: 100%;
  border: 1px solid rgba(212, 160, 23, 0.22);
  background: rgba(5, 5, 8, 0.56);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  outline: none;
}

.survey-text-input {
  grid-column: 1 / -1;
  margin-top: 10px;
  min-height: 42px;
  padding: 10px 12px;
}

.survey-question textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 120px;
  padding: 12px;
  line-height: 1.45;
}

.survey-question textarea:focus,
.survey-text-input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.survey-actions {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.survey-actions .btn-primary {
  min-height: 48px;
}

.survey-submit-note {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.4;
}

.survey-form.is-busy {
  opacity: 0.68;
  pointer-events: none;
}

.survey-form.is-submitted .survey-question label,
.survey-form.is-submitted textarea,
.survey-form.is-submitted .survey-text-input {
  opacity: 0.62;
}

.survey-form.is-submitted .survey-question label:has(input:checked) {
  opacity: 1;
  border-color: rgba(255, 213, 74, 0.62);
  background: rgba(212, 160, 23, 0.16);
}

.survey-form.is-submitted .survey-question input:checked {
  opacity: 1;
}

.survey-form.is-submitted .survey-question label {
  cursor: default;
}

.survey-open-question,
.survey-score-question {
  grid-template-columns: 1fr;
}

.survey-open-question legend,
.survey-score-question legend {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .survey-layout {
    grid-template-columns: 1fr;
  }

  .survey-side {
    position: static;
  }

  .survey-question {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .survey-form,
  .survey-reward-card,
  .survey-note-card,
  .survey-question {
    padding: 14px;
  }

  .survey-form-head {
    display: grid;
  }

  .survey-progress-pill {
    width: max-content;
  }
}

body::after {
  z-index: -1;
  opacity: 0.72;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(212, 160, 23, 0.09), transparent 70%),
    radial-gradient(380px 220px at 8% 72%, rgba(64, 192, 64, 0.055), transparent 72%),
    radial-gradient(420px 260px at 92% 82%, rgba(64, 128, 224, 0.05), transparent 72%);
  filter: blur(10px);
}

a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  overflow: visible;
  animation: header-fade-in 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 160, 23, 0.58) 22%,
    rgba(212, 160, 23, 0.72) 50%,
    rgba(212, 160, 23, 0.58) 78%,
    transparent 100%
  );
  pointer-events: none;
}

.header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(360px 92px at 18% -44%, rgba(212, 160, 23, 0.16), transparent 72%);
  pointer-events: none;
}

@keyframes header-fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 24%, rgba(212, 160, 23, 0.18), rgba(12, 14, 20, 0.96));
  border: none;
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.06),
    0 0 14px rgba(212, 160, 23, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: -140%;
  left: -90%;
  width: 74%;
  height: 260%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 239, 184, 0.3) 46%,
    transparent 100%
  );
  transform: rotate(16deg) translateX(-120%);
  opacity: 0;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  pointer-events: none;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.logo:hover .logo-icon {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.12),
    0 0 22px rgba(212, 160, 23, 0.34);
}

.logo:hover .logo-icon::before {
  transform: rotate(16deg) translateX(220%);
  opacity: 1;
}

.logo.logo-tap-anim .logo-icon {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.12),
    0 0 22px rgba(212, 160, 23, 0.34);
}

.logo.logo-tap-anim .logo-icon::before {
  transform: rotate(16deg) translateX(220%);
  opacity: 1;
}

.logo.logo-tap-anim .logo-title {
  letter-spacing: 2.4px;
  text-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
}

.logo.logo-tap-anim .logo-sub {
  color: #b8ae9d;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
  transition: letter-spacing 0.22s ease, text-shadow 0.22s ease;
}

.logo-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-dim);
  transition: color 0.22s ease;
}

.logo:hover .logo-title {
  letter-spacing: 2.4px;
  text-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
}

.logo:hover .logo-sub {
  color: #b8ae9d;
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0);
  will-change: transform, color, background-color, border-color;
  transition:
    color var(--motion-fast),
    background-color var(--motion-mid),
    border-color var(--motion-mid),
    transform var(--motion-fast);
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: -48% -56%;
  background: linear-gradient(
    120deg,
    transparent 22%,
    rgba(255, 239, 184, 0.3) 50%,
    transparent 78%
  );
  transform: translateX(-54%) rotate(10deg);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition:
    transform var(--motion-slow) var(--motion-ease),
    opacity var(--motion-mid) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.68), rgba(240, 192, 64, 0.95));
  transform: scaleX(0.2);
  opacity: 0;
  transform-origin: center;
  transition:
    transform var(--motion-mid) var(--motion-ease),
    opacity var(--motion-fast) ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  background: rgba(212, 160, 23, 0.1);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: translateX(52%) rotate(10deg);
  opacity: 0.86;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-link:active {
  transform: translateY(0) scale(0.98);
}

.nav-link.active {
  border-radius: 6px;
  animation: nav-link-active-glow 3s ease-in-out infinite;
}

.nav-link-admin {
  border: 1px solid rgba(212, 160, 23, 0.36);
  background: rgba(212, 160, 23, 0.11);
}

@keyframes nav-link-active-glow {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(212, 160, 23, 0.14),
      0 0 0 rgba(212, 160, 23, 0);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(212, 160, 23, 0.26),
      0 0 14px rgba(212, 160, 23, 0.18);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-plus-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.12), rgba(212, 160, 23, 0.05)),
    rgba(16, 15, 19, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 210, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.18);
  color: #f3dfaa;
  white-space: nowrap;
}

.header-plus-pill[hidden] {
  display: none !important;
}

.header-plus-pill-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 160, 23, 0.28));
}

.header-plus-pill-icon[hidden] {
  display: none !important;
}

.header-plus-pill-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.45px;
  color: #f7e9bf;
}

.header-jc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  min-width: 0;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(255, 211, 95, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 221, 105, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(18, 26, 38, 0.92), rgba(8, 12, 18, 0.92));
  color: #f7e9bf;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 210, 0.07),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.header-jc-pill[hidden] {
  display: none !important;
}

.header-jc-pill:hover,
.header-jc-pill:focus-visible {
  border-color: rgba(255, 224, 139, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 210, 0.1),
    0 0 16px rgba(255, 211, 95, 0.12);
}

.header-jc-pill-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 211, 95, 0.26));
}

.header-jc-pill-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: #fff4c8;
}

.header-jc-pill-code {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9fd8ff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 228, 160, 0.08), rgba(255, 228, 160, 0.01)),
    rgba(18, 18, 26, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 243, 210, 0.06);
  position: relative;
  isolation: isolate;
  --lang-pill-x: 0px;
  --lang-pill-w: 0px;
}

.lang-switch::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  height: calc(100% - 4px);
  width: var(--lang-pill-w);
  transform: translateX(var(--lang-pill-x));
  border-radius: 7px;
  border: 1px solid rgba(212, 160, 23, 0.52);
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.34), rgba(212, 160, 23, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(212, 160, 23, 0.16);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease;
}

.lang-switch::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: var(--lang-pill-w);
  transform: translateX(var(--lang-pill-x));
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(212, 160, 23, 0.3), transparent 70%);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}

.lang-switch.lang-switch-animated::before {
  opacity: 1;
}

.lang-switch.lang-switch-animated::after {
  opacity: 0.92;
}

.lang-switch-btn {
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  transition:
    color var(--motion-fast),
    border-color var(--motion-fast),
    background-color var(--motion-fast),
    box-shadow var(--motion-fast),
    transform var(--motion-fast);
}

.lang-switch-btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  z-index: -1;
  transition:
    opacity var(--motion-fast) ease,
    transform var(--motion-mid) var(--motion-ease);
}

.lang-switch-btn:hover {
  color: var(--gold-light);
  border-color: rgba(212, 160, 23, 0.26);
  background: rgba(212, 160, 23, 0.08);
  transform: translateY(-1px);
}

.lang-switch-btn.active {
  color: #fff1cc;
  text-shadow: 0 0 10px rgba(212, 160, 23, 0.28);
}

.lang-switch-btn.active::after {
  opacity: 1;
  transform: translateY(0);
}

.lang-switch-btn.active:hover {
  color: #fff1cc;
  border-color: transparent;
  background: transparent;
  transform: translateY(0);
}

.lang-switch-btn:active {
  transform: translateY(1px);
}

.lang-switch-btn.active:active {
  transform: translateY(0);
}

.search-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.search-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.18), rgba(212, 160, 23, 0.02));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.search-btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.22s ease;
}

.search-btn:hover {
  color: var(--gold);
  border-color: var(--border-strong);
  background: var(--surface);
  transform: translateY(-1px);
}

.search-btn:hover::before {
  opacity: 1;
}

.search-btn:hover svg {
  transform: rotate(8deg) scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.hamburger:hover {
  border-color: var(--border-strong);
  background: rgba(212, 160, 23, 0.06);
  transform: translateY(-1px);
}

.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.24s ease, opacity 0.2s ease, background 0.2s ease;
}

.hamburger.open span {
  background: var(--gold-light);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.35);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(10, 10, 12, 0.98);
  backdrop-filter: blur(20px);
  padding: 20px 24px;
  z-index: 1200;
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 0.28s ease, opacity 0.22s ease;
}

.search-overlay.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.search-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-dim);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.2s;
}
.search-box button:hover { color: var(--gold); }

.search-results {
  max-width: 600px;
  margin: 12px auto 0;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(17, 17, 21, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 998;
  transform: translateY(-16px);
  opacity: 0;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition:
    background var(--motion-fast),
    color var(--motion-fast),
    transform var(--motion-mid) var(--motion-ease),
    opacity var(--motion-mid) var(--motion-ease);
  position: relative;
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-nav.open .mobile-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav.open .mobile-link:nth-child(1) { transition-delay: 0.02s; }
.mobile-nav.open .mobile-link:nth-child(2) { transition-delay: 0.04s; }
.mobile-nav.open .mobile-link:nth-child(3) { transition-delay: 0.06s; }
.mobile-nav.open .mobile-link:nth-child(4) { transition-delay: 0.08s; }
.mobile-nav.open .mobile-link:nth-child(5) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-link:nth-child(6) { transition-delay: 0.12s; }
.mobile-nav.open .mobile-link:nth-child(7) { transition-delay: 0.14s; }
.mobile-nav.open .mobile-link:nth-child(8) { transition-delay: 0.16s; }

.mobile-nav:not(.open) .mobile-link {
  transition-delay: 0s !important;
}

.mobile-link:hover, .mobile-link.active {
  background: var(--surface);
  color: var(--gold);
  transform: translateX(2px);
}

@media (hover: none), (pointer: coarse) {
  .logo:hover {
    transform: none;
  }

  .logo:hover .logo-icon {
    transform: none;
    box-shadow:
      0 0 0 1px rgba(212, 160, 23, 0.06),
      0 0 14px rgba(212, 160, 23, 0.24);
  }

  .logo:hover .logo-icon::before {
    transform: rotate(16deg) translateX(-120%);
    opacity: 0;
  }

  .logo:hover .logo-title {
    letter-spacing: 2px;
    text-shadow: none;
  }

  .logo:hover .logo-sub {
    color: var(--text-dim);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header::before,
  .logo,
  .logo-icon,
  .logo-icon::before,
  .logo-title,
  .logo-sub,
  .nav-link,
  .nav-link::before,
  .nav-link::after,
  .search-btn,
  .search-btn::before,
  .search-btn svg,
  .hamburger,
  .hamburger span,
  .hero-filter-nav-btn,
  .hero-filter-current,
  .mobile-nav,
  .mobile-nav.open .mobile-link,
  .mobile-link {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .mobile-link {
    opacity: 1 !important;
  }
}

/* ===== MAIN ===== */
.main {
  margin-top: 60px;
  flex: 1 1 auto;
  min-height: 0;
}

.page { display: none; }
.page.active {
  display: block;
  animation: page-enter var(--motion-slow) var(--motion-ease);
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 4px;
}

/* ===== HOME PAGE ===== */
.hero-section {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212, 160, 23, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(212, 160, 23, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(212,160,23,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold-light);
  background: rgba(212, 160, 23, 0.06);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(52px, 10vw, 90px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 4px;
  margin-bottom: 20px;
  color: #fff;
}

.hero-title span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  max-width: 480px;
  margin: 0 auto 24px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.2s;
}

.social-btn svg { width: 18px; height: 18px; }

.social-btn:hover {
  background: var(--surface2);
  border-color: var(--gold-dim);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-survey-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 620px);
  margin-top: 22px;
  padding: 13px 14px 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(126, 203, 255, 0.28);
  background:
    radial-gradient(320px 110px at 16% -60%, rgba(126, 203, 255, 0.2), transparent 66%),
    linear-gradient(135deg, rgba(18, 26, 41, 0.86), rgba(15, 18, 28, 0.9));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.26);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-survey-card:hover,
.hero-survey-card:focus-visible {
  border-color: rgba(255, 214, 74, 0.64);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 38px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(255, 214, 74, 0.12);
}

.hero-survey-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hero-survey-kicker {
  color: #8fd5ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-survey-copy strong {
  color: #fff2b8;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-survey-copy span:last-child {
  color: #b9c7dc;
  font-size: 12px;
  line-height: 1.35;
}

.hero-survey-action {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 214, 74, 0.16);
  border: 1px solid rgba(255, 214, 74, 0.34);
  color: #ffe89a;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.btn-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg);
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 10px 24px;
  background: transparent;
  color: var(--gold);
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(212, 160, 23, 0.08);
  border-color: var(--gold);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--border-strong); }

.stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.stat-card-live .stat-num {
  color: #7ce2ad;
}

.stat-card-live.stat-card-stale .stat-num {
  color: var(--gold-light);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.section-card:hover {
  border-color: var(--border-strong);
  background: var(--surface2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.section-card:hover::before { opacity: 1; }

.section-card-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.section-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.section-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.section-card-arrow {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--gold-dim);
  font-size: 18px;
  transition: transform 0.2s;
}

.section-card:hover .section-card-arrow {
  transform: translateX(4px);
  color: var(--gold);
}

.section-card-admin {
  border-color: rgba(212, 160, 23, 0.38);
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.1), rgba(17, 20, 28, 0.75));
}

.section-card-admin .section-card-icon {
  color: #f1d07b;
}

.section-card-donate {
  border-color: rgba(93, 170, 245, 0.42);
  background: linear-gradient(180deg, rgba(58, 121, 183, 0.18), rgba(17, 20, 28, 0.8));
}

.section-card-donate .section-card-icon {
  color: #7ecbff;
}

.section-card-play {
  border-color: rgba(235, 187, 65, 0.34);
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.09), transparent 48%),
    var(--surface);
}

.section-card-play-icon {
  width: 26px;
  height: 26px;
  color: var(--gold-light);
}

.section-card-play-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== HOW TO PLAY ===== */
.play-guide-page {
  padding-top: 56px;
  padding-bottom: 72px;
}

.play-guide-header {
  margin-bottom: 28px;
}

.play-guide-header .page-sub {
  max-width: 720px;
}

.play-guide-kicker,
.play-guide-method-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.play-guide-kicker {
  margin-bottom: 10px;
}

.play-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  border: 1px solid var(--border);
  background: rgba(13, 16, 22, 0.88);
  box-shadow: var(--shadow);
}

.play-guide-primary,
.play-guide-side {
  padding: clamp(26px, 3.2vw, 46px);
}

.play-guide-primary {
  border-right: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.055), transparent 46%),
    repeating-linear-gradient(90deg, transparent 0, transparent 95px, rgba(255, 255, 255, 0.018) 96px);
}

.play-guide-side {
  background: linear-gradient(180deg, rgba(39, 47, 62, 0.42), rgba(15, 18, 24, 0.82));
}

.play-guide-method-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.play-guide-method-num {
  color: rgba(239, 195, 79, 0.42);
  font-family: 'Rajdhani', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.play-guide-method-head h3 {
  margin-top: 4px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
}

.play-guide-steps {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
}

.play-guide-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(212, 160, 23, 0.13);
}

.play-guide-steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.play-guide-step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(212, 160, 23, 0.48);
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

.play-guide-steps li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.play-guide-steps strong {
  color: var(--text);
  font-size: 14px;
}

.play-guide-steps li div span,
.play-guide-side-text,
.play-guide-note span {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
}

.play-guide-side-text {
  margin: 26px 0 22px;
}

.play-guide-steam-button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(126, 203, 255, 0.42);
  background: rgba(55, 118, 164, 0.13);
  color: #a8ddff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}

.play-guide-steam-button:hover {
  border-color: rgba(126, 203, 255, 0.72);
  background: rgba(55, 118, 164, 0.23);
  color: #d5efff;
  transform: translateY(-1px);
}

.play-guide-steam-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.play-guide-button-arrow {
  margin-left: auto;
  font-size: 16px;
}

.play-guide-note {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 22px;
  padding: 17px 18px;
  border-left: 2px solid var(--gold-dim);
  background: rgba(212, 160, 23, 0.055);
}

.play-guide-note strong {
  color: var(--gold-light);
  font-size: 12px;
}

.play-guide-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 0 0;
}

.play-guide-footer > span {
  margin-right: auto;
  color: var(--text-dim);
  font-size: 13px;
}

@media (max-width: 820px) {
  .play-guide-page {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .play-guide-layout {
    grid-template-columns: 1fr;
  }

  .play-guide-primary {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .play-guide-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .play-guide-footer > span {
    margin-right: 0;
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .play-guide-primary,
  .play-guide-side {
    padding: 23px 18px;
  }

  .play-guide-method-head {
    gap: 12px;
  }

  .play-guide-footer .btn-primary,
  .play-guide-footer .btn-secondary {
    width: 100%;
  }
}

/* ===== WIKI ===== */
.wiki-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  isolation: isolate;
  --wiki-tab-pill-x: 0px;
  --wiki-tab-pill-w: 0px;
}

.wiki-tabs::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: var(--wiki-tab-pill-w);
  transform: translateX(var(--wiki-tab-pill-x));
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 23, 0.52);
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.26), rgba(212, 160, 23, 0.11));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(212, 160, 23, 0.16);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease;
}

.wiki-tabs::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  height: calc(100% - 14px);
  width: var(--wiki-tab-pill-w);
  transform: translateX(var(--wiki-tab-pill-x));
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(212, 160, 23, 0.34), transparent 70%);
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}

.wiki-tabs.wiki-tabs-animated::before {
  opacity: 1;
}

.wiki-tabs.wiki-tabs-animated::after {
  opacity: 0.95;
}

.wiki-tab {
  min-width: 116px;
  padding: 9px 18px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}

.wiki-tab::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  z-index: -1;
  transition:
    opacity var(--motion-fast) ease,
    transform var(--motion-mid) var(--motion-ease);
}

.wiki-tab:hover {
  color: var(--text);
  border-color: rgba(212, 160, 23, 0.25);
  background: rgba(212, 160, 23, 0.07);
  transform: translateY(-1px);
}

.wiki-tab:hover::after,
.wiki-tab.active::after {
  opacity: 1;
  transform: translateY(0);
}

.wiki-tab.active {
  color: var(--gold-light);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 10px rgba(212, 160, 23, 0.2);
}

.wiki-tab:active {
  transform: translateY(0) scale(0.985);
}

.wiki-tab:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 2px;
}

.wiki-section { display: none; }
.wiki-section.active {
  display: block;
  animation: wiki-section-enter 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Wiki: mechanics handbook */
.mechanics-root {
  --mechanics-line: rgba(215, 174, 62, .22);
  --mechanics-panel: #0d1015;
  padding-bottom: 64px;
}

.mechanics-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  min-height: 260px;
  padding: 44px 48px;
  overflow: hidden;
  border: 1px solid var(--mechanics-line);
  background:
    linear-gradient(115deg, rgba(215, 174, 62, .08), transparent 42%),
    linear-gradient(135deg, #10131a, #0a0c10 72%);
}

.mechanics-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 54%);
}

.mechanics-intro-copy { position: relative; z-index: 1; max-width: 760px; }
.mechanics-eyebrow {
  display: block;
  margin-bottom: 15px;
  color: var(--gold);
  font: 700 11px/1.2 var(--body);
  letter-spacing: .18em;
}
.mechanics-intro h2 {
  margin: 0;
  color: #f4f2ed;
  font: 700 clamp(34px, 4vw, 58px)/.96 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.mechanics-intro-copy > p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #aeb5c1;
  font-size: 15px;
  line-height: 1.75;
}
.mechanics-intro-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  justify-self: end;
  border: 1px solid rgba(215, 174, 62, .38);
  transform: rotate(45deg);
  color: var(--gold);
  background: rgba(4, 5, 7, .62);
}
.mechanics-intro-mark span,
.mechanics-intro-mark small { transform: rotate(-45deg); }
.mechanics-intro-mark span { font: 400 50px/1 serif; }
.mechanics-intro-mark small { position: absolute; right: 14px; bottom: 12px; font: 700 8px/1 var(--body); letter-spacing: .18em; }

.mechanics-toc {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b0e13;
}
.mechanics-toc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.mechanics-toc-head strong { color: #e7e3d9; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.mechanics-toc-head span { color: #727a88; font-size: 11px; }
.mechanics-toc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mechanics-toc-link {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(215, 174, 62, .17);
  color: #d9dce2;
  text-align: left;
  background: #101319;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.mechanics-toc-link span { display: block; font-weight: 700; font-size: 13px; }
.mechanics-toc-link small { display: block; margin-top: 6px; overflow: hidden; color: #737b89; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.mechanics-toc-link:hover { border-color: rgba(240, 196, 73, .55); background: #151821; transform: translateY(-2px); }

.mechanics-groups { margin-top: 34px; }
.mechanics-group { scroll-margin-top: 110px; padding-top: 12px; }
.mechanics-group + .mechanics-group { margin-top: 38px; }
.mechanics-group-head {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  align-items: end;
  gap: 36px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--mechanics-line);
}
.mechanics-group-head > div { display: flex; align-items: baseline; gap: 14px; }
.mechanics-group-head span { color: #7d6840; font: 700 10px/1 var(--mono); letter-spacing: .08em; }
.mechanics-group-head h3 { margin: 0; color: var(--gold); font: 700 21px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.mechanics-group-head p { margin: 0; color: #7f8794; font-size: 12px; line-height: 1.55; text-align: right; }
.mechanics-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; align-items: start; }

.mechanics-card {
  scroll-margin-top: 110px;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--mechanics-panel);
  transition: border-color .2s ease, background-color .2s ease;
}
.mechanics-card:hover,
.mechanics-card[open] { border-color: rgba(215, 174, 62, .38); background: #101319; }
.mechanics-card summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: start;
  min-height: 112px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}
.mechanics-card summary::-webkit-details-marker { display: none; }
.mechanics-card-index { padding-top: 3px; color: #7b6640; font: 700 11px/1 var(--mono); }
.mechanics-card-heading strong { display: block; color: #f0eee8; font: 700 17px/1.15 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.mechanics-card-heading > span { display: block; margin-top: 10px; color: #8d96a4; font-size: 12px; line-height: 1.55; }
.mechanics-card-toggle { position: relative; width: 22px; height: 22px; margin-top: -2px; }
.mechanics-card-toggle::before,
.mechanics-card-toggle::after { content: ''; position: absolute; left: 5px; top: 10px; width: 12px; height: 1px; background: var(--gold); transition: transform .2s ease; }
.mechanics-card-toggle::after { transform: rotate(90deg); }
.mechanics-card[open] .mechanics-card-toggle::after { transform: rotate(0); }
.mechanics-card-body { margin: 0 20px 20px 76px; padding-top: 17px; border-top: 1px solid rgba(215, 174, 62, .16); }
.mechanics-card-body > p { margin: 0; color: #b5bbc5; font-size: 13px; line-height: 1.72; }
.mechanics-card-body > p + p { margin-top: 12px; }
.mechanics-tip { margin-top: 17px; padding: 13px 15px; border-left: 2px solid var(--gold); background: rgba(215,174,62,.06); }
.mechanics-tip span { display: block; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.mechanics-tip p { margin: 5px 0 0; color: #c6c8cc; font-size: 12px; line-height: 1.55; }
.mechanics-related-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.mechanics-related-link { display: inline-flex; align-items: center; gap: 14px; padding: 9px 12px; border: 1px solid rgba(215,174,62,.27); color: var(--gold); background: transparent; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mechanics-related-link:hover { border-color: var(--gold); background: rgba(215,174,62,.07); }

@media (max-width: 900px) {
  .mechanics-intro { grid-template-columns: 1fr 110px; padding: 34px 30px; }
  .mechanics-intro-mark { width: 88px; height: 88px; }
  .mechanics-intro-mark span { font-size: 36px; }
  .mechanics-toc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mechanics-group-head { grid-template-columns: 1fr; gap: 8px; }
  .mechanics-group-head p { text-align: left; }
  .mechanics-cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .mechanics-root { padding-bottom: 36px; }
  .mechanics-intro { display: block; min-height: 0; padding: 28px 22px; }
  .mechanics-intro-mark { display: none; }
  .mechanics-intro h2 { font-size: 32px; }
  .mechanics-intro-copy > p { margin-top: 16px; font-size: 13px; line-height: 1.62; }
  .mechanics-toc { padding: 14px; }
  .mechanics-toc-head { display: block; }
  .mechanics-toc-head span { display: block; margin-top: 5px; }
  .mechanics-toc-grid { grid-template-columns: 1fr; }
  .mechanics-card summary { grid-template-columns: 30px minmax(0,1fr) 20px; gap: 9px; min-height: 0; padding: 17px 14px; }
  .mechanics-card-body { margin: 0 14px 16px 53px; }
}

@keyframes wiki-section-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
    filter: saturate(0.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiki-tabs::before,
  .wiki-tabs::after,
  .wiki-tab::after,
  .wiki-tab {
    transition: none;
  }

  .wiki-section.active {
    animation: none;
  }

  .hero-attribute-section-enter-next,
  .hero-attribute-section-enter-prev,
  .hero-attribute-section-enter-stagger {
    animation: none !important;
  }
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-filter-nav {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 26, 36, 0.95), rgba(17, 17, 25, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-filter-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.22);
  background: rgba(212, 160, 23, 0.06);
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color var(--motion-fast),
    border-color var(--motion-fast),
    background-color var(--motion-fast),
    transform var(--motion-fast),
    box-shadow var(--motion-mid);
}

.hero-filter-nav-btn:hover,
.hero-filter-nav-btn:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold-dim);
  background: rgba(212, 160, 23, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.hero-filter-nav-btn:active {
  transform: translateY(0) scale(0.96);
}

.hero-filter-nav-btn:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 1px;
}

.hero-filter-current {
  min-width: 128px;
  padding: 0 4px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    color var(--motion-fast),
    border-color var(--motion-fast),
    background-color var(--motion-fast),
    transform var(--motion-fast),
    box-shadow var(--motion-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: -36% -44%;
  background: linear-gradient(120deg, transparent 24%, rgba(255, 239, 184, 0.2) 50%, transparent 76%);
  transform: translateX(-58%) rotate(10deg);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition:
    transform var(--motion-slow) var(--motion-ease),
    opacity var(--motion-mid) ease;
}

.filter-btn.active, .filter-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.filter-btn.active::before, .filter-btn:hover::before {
  transform: translateX(56%) rotate(10deg);
  opacity: 0.9;
}

.filter-btn:active {
  transform: translateY(0) scale(0.985);
}

.attr-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Hero sections */
.hero-attribute-section { margin-bottom: 36px; }

.hero-attribute-section-enter-next,
.hero-attribute-section-enter-prev,
.hero-attribute-section-enter-stagger {
  will-change: transform, opacity, filter;
}

.hero-attribute-section-enter-next {
  animation: hero-attribute-enter-next var(--motion-slow) var(--motion-ease);
}

.hero-attribute-section-enter-prev {
  animation: hero-attribute-enter-prev var(--motion-slow) var(--motion-ease);
}

.hero-attribute-section-enter-stagger {
  animation: hero-attribute-enter-stagger 0.4s var(--motion-ease);
  animation-delay: var(--hero-attr-delay, 0ms);
}

@keyframes hero-attribute-enter-next {
  from {
    opacity: 0;
    transform: translateX(26px) scale(0.99);
    filter: saturate(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes hero-attribute-enter-prev {
  from {
    opacity: 0;
    transform: translateX(-26px) scale(0.99);
    filter: saturate(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes hero-attribute-enter-stagger {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.attr-header { margin-bottom: 14px; }

.attr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.attr-badge.str {
  background: rgba(224, 64, 64, 0.12);
  border: 1px solid rgba(224, 64, 64, 0.3);
  color: var(--str);
}

.attr-badge.agi {
  background: rgba(64, 192, 64, 0.12);
  border: 1px solid rgba(64, 192, 64, 0.3);
  color: var(--agi);
}

.attr-badge.int {
  background: rgba(64, 128, 224, 0.12);
  border: 1px solid rgba(64, 128, 224, 0.3);
  color: var(--int);
}

.attr-badge.uni {
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.3);
  color: var(--gold);
}

.uni-solid {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.uni-solid-r { color: var(--str); }
.uni-solid-g { color: var(--agi); }
.uni-solid-b { color: var(--int); }

/* Hero icon images */
.hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-card-img .emoji-fallback {
  font-size: 28px;
}

.heroes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  aspect-ratio: 3/4;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.hero-card-img {
  width: 100%;
  flex: 1;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  overflow: hidden;
}

.hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-name {
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--surface);
}

.hero-card:hover .hero-card-name { color: var(--gold-light); }

.hero-card-jplus {
  border-color: rgba(218, 181, 85, 0.38);
}

.hero-jplus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5d878;
  border: 1px solid rgba(226, 191, 93, 0.38);
  background: rgba(23, 19, 11, 0.9);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero-jplus-badge img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.hero-jplus-badge-card {
  position: absolute;
  z-index: 3;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  justify-content: center;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.hero-jplus-badge-card span {
  display: none;
}

.hero-jplus-badge-modal {
  margin-top: 5px;
  width: fit-content;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
}

.hero-disabled {
  opacity: 0.45;
  cursor: default !important;
  pointer-events: none;
}

.hero-disabled:hover {
  border-color: var(--border) !important;
  transform: none !important;
}

.wip-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-dim);
  padding: 1px 4px;
}

/* в”Ђв”Ђ Hero card shuffle animation в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */

@keyframes heroShuffleIn {
  0% {
    opacity: 0;
    transform:
      translate(var(--hero-shuffle-x, 0px), var(--hero-shuffle-y, 14px))
      rotate(var(--hero-shuffle-rot, 0deg))
      scale(var(--hero-shuffle-scale, 0.92));
    filter: blur(2px);
  }
  40% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translate(0px, 0px) rotate(0deg) scale(1);
    filter: blur(0px);
  }
}

.hero-card-shuffle-in {
  animation: heroShuffleIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--hero-shuffle-delay, 0ms);
  will-change: transform, opacity;
}

/* Wiki quick typing filter */
#page-wiki .hero-card,
#page-wiki .creep-card,
#page-wiki .item-card-ability {
  transition:
    opacity 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

#page-wiki .wiki-quick-dim {
  opacity: 0.2 !important;
  filter: saturate(0.25) brightness(0.78);
}

#page-wiki .wiki-quick-match {
  opacity: 1 !important;
  filter: none;
  border-color: var(--gold-dim);
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.38);
}

#page-wiki .hero-attribute-section.wiki-quick-group-dim .attr-header,
#page-wiki .creep-camp.wiki-quick-group-dim .creep-camp-head,
#page-wiki .item-category.wiki-quick-group-dim .item-category-header {
  opacity: 0.42;
  transition: opacity 0.18s ease;
}

.wiki-quick-typing-hud {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 1800;
  pointer-events: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  max-width: min(70vw, 580px);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.2);
  background: rgba(11, 11, 16, 0.58);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.wiki-quick-typing-hud.open {
  opacity: 0.86;
  transform: translate(-50%, -50%) scale(1);
}

.wiki-quick-typing-hud-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.wiki-quick-typing-hud-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(14px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  text-shadow: 0 1px 10px rgba(212, 160, 23, 0.25);
  max-width: 52vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== CREEPS ===== */
.creeps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.creep-camp {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(28, 28, 40, 0.45), rgba(16, 16, 24, 0.45));
  padding: 12px;
}

.creep-camp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.creep-camp-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gold-light);
}

.creep-camp-count {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.creep-camp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.creep-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: visible;
  transition: border-color 0.2s, transform 0.2s;
}

.creep-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.creep-portrait-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid var(--border);
  overflow: hidden;
}

.creep-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.creep-portrait-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 25px;
  font-weight: 700;
  color: var(--gold-light);
}

.creep-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.creep-card-head {
  margin-bottom: 10px;
}

.creep-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.4px;
}

.creep-id {
  margin-top: 3px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  word-break: break-all;
}

.creep-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.creep-stat-card {
  background: rgba(17, 17, 23, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 9px;
}

.creep-stat-key {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.creep-stat-val {
  margin-top: 3px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
}

.creep-abilities-title {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.creep-abilities {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.creep-ability {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(22, 22, 31, 0.8);
}

.creep-ability-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.creep-ability-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creep-ability-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
}

.creep-ability-name {
  min-width: 0;
  font-size: 11px;
  color: var(--text);
  line-height: 1.25;
}

.creep-ability-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  width: 280px;
  max-width: 72vw;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--surface2), var(--bg2));
  box-shadow: 0 8px 24px rgba(0,0,0,0.65);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  transition: opacity 0.15s, transform 0.15s;
}

.creep-ability:hover .creep-ability-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.creep-ability-tip-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
}

.creep-ability-tip-desc {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
  white-space: pre-wrap;
}

.creep-ability-empty {
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(22, 22, 31, 0.8);
}

/* ===== ITEMS ===== */
.items-categories {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.item-category {
  position: relative;
  z-index: 1;
}

.item-category:hover {
  z-index: 40;
}

.item-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.item-category-header h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.items-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.item-card-ability {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 29, 40, 0.95), rgba(18, 20, 28, 0.95));
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: visible;
}

.item-card-ability:hover {
  z-index: 120;
  border-color: var(--gold-dim);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.item-card-icon-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.item-card-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-card-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  background: linear-gradient(135deg, rgba(38, 43, 59, 0.96), rgba(21, 23, 32, 0.96));
}

.item-card-cost {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px 2px 4px;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #101214;
  background: linear-gradient(180deg, #ffd56f, #d9a837);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.item-card-cost-icon {
  width: 11px;
  height: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.item-card-cost-val {
  line-height: 1;
}

.item-card-name {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.25;
  color: var(--text-muted);
  text-align: center;
  min-height: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-ability-tip {
  width: min(420px, 90vw);
  top: calc(100% + 8px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 220;
}

.item-card-ability:hover .item-ability-tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.item-ability-tip.item-ability-tip-dota {
  width: min(420px, 90vw);
  max-width: 90vw;
  padding: 0;
  border-radius: 10px;
  border-color: var(--border-strong);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 160, 23, 0.13), transparent 46%),
    linear-gradient(180deg, var(--surface2) 0%, var(--bg2) 56%, #0d0d13 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.item-dota-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.08), rgba(17, 17, 24, 0.12));
}

.item-dota-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gold-light);
  line-height: 1.05;
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-dota-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.item-dota-price-icon {
  width: 16px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.item-dota-meta {
  padding: 9px 14px 8px;
  border-bottom: 1px solid var(--border);
}

.item-dota-meta-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 6px;
  margin-bottom: 2px;
}

.item-dota-meta-row:last-child {
  margin-bottom: 0;
}

.item-dota-meta-k {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.item-dota-meta-v {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}

.item-dota-meta-v.damage-physical {
  color: #e55f55;
}

.item-dota-meta-v.damage-magical {
  color: #51a8ff;
}

.item-dota-meta-v.damage-pure {
  color: #f2dd9a;
}

.item-dota-stats {
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-dota-stat-line {
  font-size: 13px;
  line-height: 1.25;
  color: var(--text);
  font-weight: 600;
}

.item-dota-resource-row {
  padding: 8px 14px 0;
}

.item-dota-sections {
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-dota-detail-stats {
  margin: 0 14px;
  padding: 8px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.item-dota-detail-line {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.3;
}

.item-dota-detail-k {
  color: var(--text-dim);
  text-transform: uppercase;
}

.item-dota-detail-v {
  color: var(--gold-light);
  font-weight: 700;
}

.item-dota-section {
  background: rgba(22, 22, 31, 0.78);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.item-dota-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.15), rgba(212, 160, 23, 0.05));
}

.item-dota-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.item-dota-section-body {
  padding: 8px 9px 9px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
}

.item-dota-section-costs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.item-dota-resource-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.item-dota-resource-chip-range {
  color: var(--text-dim);
}

.item-dota-resource-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.item-dota-lore {
  margin: 0 14px 12px;
  border-top: 1px solid var(--border);
  padding: 8px 2px 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-dim);
  font-style: italic;
  white-space: pre-wrap;
}

.item-tip-costs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.item-tip-cost {
  justify-content: flex-start;
}

.item-tip-cost-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.item-tip-gold-icon {
  width: 13px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.item-tip-cost-k {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.item-tip-lore {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-dim);
  white-space: pre-wrap;
}

/* ===== UPDATES ===== */
.updates-toolbar {
  position: sticky;
  top: 72px;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) auto;
  gap: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.updates-search {
  position: relative;
  display: flex;
  align-items: center;
}

.updates-search-icon {
  position: absolute;
  left: 13px;
  color: var(--text-dim);
  font-size: 20px;
  pointer-events: none;
}

.updates-search input,
.updates-type-filter {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg3);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.updates-search input {
  padding: 0 14px 0 40px;
}

.updates-type-filter {
  padding: 0 34px 0 12px;
  cursor: pointer;
}

.updates-search input:focus,
.updates-type-filter:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.updates-reset-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.updates-reset-btn:hover {
  color: var(--gold-light);
  border-color: var(--gold-dim);
  background: rgba(212, 160, 23, 0.08);
}

.updates-filter-status {
  min-height: 24px;
  margin: 0 2px 10px;
  color: var(--text-dim);
  font-size: 12px;
}

.updates-list { display: flex; flex-direction: column; gap: 20px; }

.update-card.update-filter-hidden { display: none; }

.update-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.update-card:hover { border-color: var(--border-strong); }

.update-header {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}

.update-version {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  min-width: 60px;
}

.update-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}

.update-meta,
.update-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.update-meta { gap: 8px 12px; }
.update-tags { gap: 6px; }
.update-tags .update-tag { margin-bottom: 0; }

.update-date {
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-dim);
}

.update-toggle {
  color: var(--text-dim);
  font-size: 18px;
  transition: transform 0.3s;
}

.update-card.open .update-toggle { transform: rotate(180deg); }

@media (max-width: 640px) {
  .updates-list { gap: 12px; }

  .update-header {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 15px 14px;
  }

  .update-version {
    min-width: 48px;
    font-size: 17px;
  }

  .update-title { font-size: 14px; }
  .update-heading { gap: 7px; }
  .update-meta { gap: 7px 10px; }
  .update-tag { letter-spacing: 0.7px; }
}

.update-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.update-card.open .update-body { max-height: 20000px; }

.update-body-inner { padding: 0 20px 20px; }

.update-overview {
  display: grid;
  gap: 9px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.09), rgba(212, 160, 23, 0.025)),
    var(--bg3);
}

.update-overview-title,
.update-toc-title {
  font-family: 'Rajdhani', sans-serif;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.update-overview-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.update-overview-fact {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.36);
  color: var(--text-dim);
  font-size: 12px;
}

.update-overview-fact strong {
  color: var(--text);
  font-size: 13px;
}

.update-toc {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 6, 10, 0.26);
}

.update-toc-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.update-toc-link {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg3);
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.update-toc-link-hero {
  padding: 4px 9px 4px 5px;
}

.update-toc-hero-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
}

.update-toc-link:hover {
  color: var(--gold-light);
  border-color: var(--gold-dim);
  background: rgba(212, 160, 23, 0.08);
}

.update-toc-link-teaser {
  position: relative;
  overflow: hidden;
  color: #f3d879;
  border-color: rgba(214, 171, 55, 0.58);
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.13), rgba(125, 72, 196, 0.12));
  box-shadow: 0 0 0 rgba(212, 160, 23, 0);
  animation: update-teaser-breathe 2.8s ease-in-out infinite;
}

.update-toc-link-teaser::after {
  content: '';
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: -55%;
  width: 38%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 238, 170, 0.5), transparent);
  animation: update-teaser-sheen 3.8s ease-in-out infinite;
  pointer-events: none;
}

.update-toc-link-teaser:hover {
  color: #fff2b2;
  border-color: #e4bd4e;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.2), rgba(125, 72, 196, 0.18));
}

@keyframes update-teaser-breathe {
  0%, 100% {
    box-shadow: 0 0 0 rgba(212, 160, 23, 0), 0 0 8px rgba(135, 78, 200, 0.08);
    filter: brightness(0.96);
  }
  50% {
    box-shadow: 0 0 13px rgba(224, 181, 61, 0.34), 0 0 20px rgba(135, 78, 200, 0.18);
    filter: brightness(1.15);
  }
}

@keyframes update-teaser-sheen {
  0%, 58% { left: -55%; opacity: 0; }
  65% { opacity: 0.85; }
  84% { left: 125%; opacity: 0; }
  100% { left: 125%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .update-toc-link-teaser,
  .update-toc-link-teaser::after {
    animation: none;
  }
}

.update-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.update-tag.buff { background: rgba(62, 207, 122, 0.15); color: var(--win); }
.update-tag.nerf { background: rgba(224, 80, 80, 0.15); color: var(--loss); }
.update-tag.new { background: rgba(212, 160, 23, 0.15); color: var(--gold); }
.update-tag.rework { background: rgba(180, 130, 255, 0.15); color: #B482FF; }
.update-tag.fix { background: rgba(100, 150, 255, 0.15); color: #6496FF; }

.update-section { margin-bottom: 16px; }

.update-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.update-section-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.update-anchor-section {
  scroll-margin-top: 138px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.update-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.update-section-action {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(5, 6, 10, 0.34);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.update-section-action:hover,
.update-section-action.copied {
  color: var(--gold-light);
  border-color: var(--gold-dim);
  background: rgba(212, 160, 23, 0.09);
}

.update-section-action.update-section-discuss {
  width: auto;
  min-width: 28px;
  padding: 0 8px;
  font: 700 9px/1 'Manrope', sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.update-section-discuss[hidden] { display: none !important; }

.update-section-focus {
  border-color: rgba(212, 160, 23, 0.55) !important;
  background: rgba(212, 160, 23, 0.045);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.16), 0 0 24px rgba(212, 160, 23, 0.1);
}

.update-item {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

.update-item:last-child { border-bottom: none; }

.update-item-hero {
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}

.update-dota-section {
  margin-bottom: 16px;
}

.update-dota-lines {
  margin: 0;
  padding-left: 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-dota-line {
  position: relative;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.update-dota-line::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 0.775em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
  transform: translateY(-50%);
}

.update-dota-line:has(.update-dota-line-icon-btn)::before {
  top: 14px;
}

.update-dota-line-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.update-dota-line-text {
  min-width: 0;
}

.update-line-metric-icons {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.update-line-metric-icons img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
}

.update-dota-line-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--bg3);
  overflow: hidden;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.update-dota-line-icon-btn.update-dota-line-icon-static {
  cursor: default;
}

.update-dota-line-icon-btn.update-dota-line-icon-innate {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.update-dota-line-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.update-dota-line-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(28, 31, 45, 0.95), rgba(16, 18, 26, 0.95));
}

.update-dota-line.update-dota-line-sub {
  margin-left: 14px;
  color: var(--text);
}

.update-ability-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-ability-group {
  min-width: 0;
}

.update-ability-group + .update-ability-group {
  padding-top: 14px;
  border-top: 1px solid rgba(232, 194, 91, 0.1);
}

.update-ability-group-header {
  min-height: 28px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-ability-group-header .update-dota-line-icon-btn {
  width: 32px;
  height: 32px;
}

.update-ability-group-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  flex: 0 0 32px;
}

.update-ability-group-innate .update-dota-line-icon-btn,
.update-ability-group-talents .update-dota-line-icon-btn {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.update-innate-badge {
  position: absolute;
  left: 50%;
  bottom: -6px;
  z-index: 2;
  width: 16px;
  height: 16px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.update-ability-group-title {
  min-width: 0;
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.update-ability-rework-label {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(232, 194, 91, 0.2);
  border-radius: 999px;
  color: rgba(232, 194, 91, 0.76);
  font: 700 9px/1.2 'Rajdhani', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.update-ability-change-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-ability-change {
  position: relative;
  padding-left: 13px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.update-ability-change-attribute,
.update-ability-change-with-icons {
  min-height: 18px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.update-change-attribute-icon,
.update-change-ui-icons img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex: 0 0 17px;
}

.update-change-ui-icons {
  min-width: 17px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.update-change-ui-icons img {
  display: block;
}

.modal-stat-ui-icon {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  object-fit: contain;
  vertical-align: -3px;
}

.update-inline-value-icon {
  width: 15px;
  height: 15px;
  margin-right: 3px;
  object-fit: contain;
  display: inline-block;
  vertical-align: -2px;
}

.update-ability-change::before {
  content: '';
  position: absolute;
  top: 0.775em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
  transform: translateY(-50%);
}

.update-ability-change-sub {
  margin-left: 12px;
}

.update-value-old {
  color: rgba(185, 188, 199, 0.58);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(185, 188, 199, 0.3);
}

.update-value-arrow {
  margin: 0 6px;
  color: rgba(232, 194, 91, 0.72);
  font-weight: 700;
}

.update-value-new {
  color: #fff;
  font-weight: 650;
}

.update-rework-details {
  margin-top: 8px;
}

.update-rework-details > summary {
  width: fit-content;
  color: rgba(232, 194, 91, 0.78);
  cursor: pointer;
  user-select: none;
  font: 700 11px/1.4 'Rajdhani', sans-serif;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.update-rework-details > summary:hover {
  color: var(--gold-light);
}

.update-rework-details[open] > summary {
  margin-bottom: 8px;
}

.update-dota-entity {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.update-dota-entity:first-of-type {
  border-top: none;
}

.update-dota-entity-icon {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg3);
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.update-dota-entity-icon:hover {
  border-color: var(--gold-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.42);
}

.update-dota-entity-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.update-dota-entity-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(29, 31, 43, 0.95), rgba(16, 18, 27, 0.95));
}

.update-dota-entity-main {
  min-width: 0;
}

.update-dota-entity-title {
  padding: 0;
  margin: 1px 0 6px;
  background: none;
  border: none;
  font-family: var(--body, 'Manrope', sans-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.update-dota-entity-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 1px 0 6px;
}

.update-dota-entity-title-row .update-dota-entity-title {
  margin: 0;
}

.update-inline-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.update-inline-tag {
  margin-bottom: 0;
}

.update-dota-entity-title:hover {
  color: var(--gold-light);
}

.update-dota-entity-new-hero {
  position: relative;
  margin: 8px 0 18px;
  padding: 20px;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid rgba(232, 194, 91, 0.24);
  background:
    linear-gradient(135deg, rgba(232, 194, 91, 0.075), transparent 38%),
    rgba(13, 15, 21, 0.72);
  overflow: hidden;
}

.update-dota-entity-new-hero::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(232, 194, 91, 0.08) 62%, transparent);
  pointer-events: none;
}

.update-dota-entity-new-hero > .update-dota-entity-icon {
  width: 88px;
  height: 88px;
  border-color: rgba(232, 194, 91, 0.48);
}

.update-new-hero-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.update-new-hero-description {
  max-width: 900px;
  margin: 3px 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.update-new-hero-abilities-title {
  margin-bottom: 9px;
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.update-new-hero-abilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.update-new-hero-ability {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(5, 7, 11, 0.38);
}

.update-new-hero-ability-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
}

.update-new-hero-ability-icon .update-dota-line-icon-btn {
  width: 44px;
  height: 44px;
}

.update-new-hero-ability-name {
  margin: 1px 0 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.update-new-hero-ability-desc {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.update-dota-entity-major-rework {
  position: relative;
  margin: 18px 0 26px;
  padding: 22px;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid rgba(205, 47, 56, 0.34);
  background:
    radial-gradient(circle at 5% 0%, rgba(202, 38, 49, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(42, 8, 12, 0.5), rgba(9, 11, 16, 0.88) 56%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.update-dota-entity-major-rework::before,
.update-dota-entity-major-rework::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.update-dota-entity-major-rework::before {
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #ef3948, #7a111b 48%, transparent 88%);
}

.update-dota-entity-major-rework::after {
  width: 180px;
  height: 180px;
  right: -80px;
  top: -95px;
  border: 1px solid rgba(239, 57, 72, 0.12);
  transform: rotate(34deg);
}

.update-dota-entity-major-rework > .update-dota-entity-icon {
  width: 100px;
  height: 100px;
  border-color: rgba(239, 57, 72, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 22px rgba(195, 25, 38, 0.12);
}

.update-major-rework-kicker,
.update-major-rework-label {
  color: #ef7b84;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.55px;
  text-transform: uppercase;
}

.update-major-rework-kicker {
  margin: 0 0 4px;
}

.update-major-rework-showcase {
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid rgba(239, 57, 72, 0.14);
  background: rgba(3, 5, 9, 0.32);
}

.update-major-rework-label {
  margin-bottom: 9px;
  color: rgba(239, 123, 132, 0.82);
}

.update-major-rework-abilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.update-major-rework-ability {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(5, 7, 11, 0.46);
}

.update-major-rework-ability-icon,
.update-major-rework-ability-icon .update-dota-line-icon-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.update-major-rework-ability-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.update-major-rework-ability-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-major-rework-ability-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-major-rework-ability-title {
  min-width: 0;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.update-major-rework-ability-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 2px 5px;
  border: 1px solid rgba(239, 123, 132, 0.22);
  color: rgba(255, 174, 180, 0.88);
  background: rgba(159, 24, 37, 0.16);
  font-family: 'Rajdhani', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.65px;
  line-height: 1;
  text-transform: uppercase;
}

.update-major-rework-ability-new .update-major-rework-ability-status {
  border-color: rgba(242, 188, 80, 0.28);
  color: #f3c66d;
  background: rgba(157, 105, 16, 0.16);
}

.update-major-rework-ability-upgrade {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: rgba(224, 229, 239, 0.68);
  font-size: 9px;
  line-height: 1.35;
}

.update-major-rework-ability-upgrade img {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  object-fit: contain;
}

.update-ability-change-list .update-ability-change-upgrade {
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: rgba(218, 224, 235, 0.76);
  font-size: 0.94em;
}

.update-ability-change-list .update-ability-change-upgrade::marker {
  color: rgba(212, 160, 23, 0.72);
}

.update-dota-entity-major-rework-gojo {
  border-color: rgba(47, 137, 225, 0.4);
  background:
    radial-gradient(circle at 5% 0%, rgba(31, 125, 220, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(5, 30, 57, 0.66), rgba(8, 12, 20, 0.9) 58%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 32px rgba(28, 111, 196, 0.08);
}

.update-dota-entity-major-rework-gojo::before {
  background: linear-gradient(90deg, #3fa8ff, #174d8c 48%, transparent 88%);
}

.update-dota-entity-major-rework-gojo::after {
  border-color: rgba(68, 164, 255, 0.16);
}

.update-dota-entity-major-rework-gojo > .update-dota-entity-icon {
  border-color: rgba(72, 165, 255, 0.58);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 24px rgba(37, 137, 231, 0.18);
}

.update-dota-entity-major-rework-gojo .update-major-rework-kicker,
.update-dota-entity-major-rework-gojo .update-major-rework-label {
  color: #74bfff;
}

.update-dota-entity-major-rework-gojo .update-major-rework-showcase {
  border-color: rgba(70, 160, 245, 0.18);
}

.update-dota-entity-major-rework-gojo .update-major-rework-ability-status {
  border-color: rgba(72, 166, 255, 0.26);
  color: rgba(151, 207, 255, 0.92);
  background: rgba(24, 101, 174, 0.16);
}

.update-dota-entity-major-rework-gojo .update-major-rework-ability-new .update-major-rework-ability-status {
  border-color: rgba(130, 219, 255, 0.32);
  color: #9ae2ff;
  background: rgba(31, 133, 177, 0.18);
}

@media (max-width: 640px) {
  .updates-toolbar {
    top: 62px;
    grid-template-columns: minmax(0, 1fr) 128px;
    padding: 9px;
  }

  .updates-reset-btn {
    grid-column: 1 / -1;
    min-height: 36px;
  }

  .updates-search input,
  .updates-type-filter {
    min-height: 40px;
    font-size: 12px;
  }

  .update-body-inner {
    padding: 0 12px 14px;
  }

  .update-dota-entity-major-rework {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .update-dota-entity-major-rework > .update-dota-entity-icon {
    width: 60px;
    height: 60px;
  }

  .update-major-rework-ability {
    width: 100%;
  }

  .update-major-rework-abilities {
    grid-template-columns: 1fr;
  }

  .update-overview,
  .update-toc {
    padding: 11px;
  }

  .update-overview-facts {
    gap: 5px;
  }

  .update-overview-fact {
    padding: 4px 7px;
    font-size: 11px;
  }

  .update-section-actions {
    gap: 4px;
  }

  .update-section-action {
    width: 26px;
    height: 26px;
  }

}

#page-wiki .update-anchor-focus {
  border-color: var(--gold-dim) !important;
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.42),
    0 0 22px rgba(212, 160, 23, 0.33);
}

#page-wiki .item-card-ability.update-anchor-focus .item-ability-tip {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* ===== LADDER ===== */
.ladder-controls { display: flex; gap: 12px; }

.select-styled {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-styled:hover, .select-styled:focus { border-color: var(--gold-dim); }

.ladder-table-wrap, .stats-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}

.ladder-table, .stats-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.ladder-table th, .stats-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.ladder-table td, .stats-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 13px;
}

.stats-empty-cell {
  text-align: center;
  color: var(--text-dim);
  padding: 18px 16px;
}

.ladder-table tr:last-child td, .stats-table tr:last-child td { border-bottom: none; }

.ladder-table tr:hover td, .stats-table tr:hover td {
  background: rgba(212, 160, 23, 0.03);
}

@keyframes table-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.table-loading-body {
  pointer-events: none;
}

.table-loading-body .table-skeleton-row td,
.table-loading-body .table-skeleton-row:hover td {
  background: transparent !important;
}

.table-skeleton-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-skeleton-stack {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.table-skeleton-avatar,
.table-skeleton-bar,
.table-skeleton-badge,
.table-skeleton-progress {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.05) 80%);
  background-size: 220% 100%;
  animation: table-skeleton-shimmer 1.2s ease-in-out infinite;
}

.table-skeleton-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.table-skeleton-avatar.hero {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.table-skeleton-bar {
  display: block;
  height: 10px;
  border-radius: 999px;
}

.table-skeleton-bar.rank { width: 24px; }
.table-skeleton-bar.name { width: min(170px, 75%); }
.table-skeleton-bar.sub { width: min(120px, 55%); height: 8px; opacity: 0.85; }
.table-skeleton-bar.hero-name { width: min(120px, 70%); }
.table-skeleton-bar.points { width: 64px; }
.table-skeleton-bar.num { width: 44px; }
.table-skeleton-bar.win { width: 58px; }
.table-skeleton-bar.pick-text { width: 48px; }

.table-skeleton-badge {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.table-skeleton-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.table-skeleton-progress {
  display: block;
  width: 84px;
  height: 4px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .table-skeleton-avatar,
  .table-skeleton-bar,
  .table-skeleton-badge,
  .table-skeleton-progress {
    animation: none;
  }
}

.rank-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dim);
}

.rank-num.top1 { color: #FFD700; }
.rank-num.top2 { color: #C0C0C0; }
.rank-num.top3 { color: #CD7F32; }

.ladder-place {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 48px;
}

.ladder-prize {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #FFD700;
  background: rgba(255, 215, 0, 0.10);
  border: 1px solid rgba(255, 215, 0, 0.22);
  cursor: help;
  flex: 0 0 auto;
}

.ladder-prize-2 {
  color: #D8DEE9;
  background: rgba(216, 222, 233, 0.10);
  border-color: rgba(216, 222, 233, 0.22);
}

.ladder-prize-3 {
  color: #CD7F32;
  background: rgba(205, 127, 50, 0.10);
  border-color: rgba(205, 127, 50, 0.24);
}

.ladder-prize-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.ladder-prize-floating-tip {
  position: fixed;
  z-index: 10000;
  width: 260px;
  max-width: calc(100vw - 20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 12px 11px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(26, 29, 42, 0.98), rgba(10, 13, 20, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.22);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: opacity 0.16s ease, transform 0.16s ease;
  transform: translateY(-3px);
}

.ladder-prize-floating-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ladder-prize-tip-kicker {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.ladder-prize-tip-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.ladder-prize-tip-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 5px;
}

.ladder-prize-tip-list li {
  position: relative;
  padding-left: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.ladder-prize-tip-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.player-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.player-avatar-sm {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  overflow: visible;
}

.site-player-avatar {
  --profile-frame-glow: rgba(67, 192, 255, 0.72);
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.site-player-avatar-image,
.site-player-avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.site-player-avatar-image { object-fit: cover; }

.site-player-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-player-avatar.has-profile-frame .site-player-avatar-image,
.site-player-avatar.has-profile-frame .site-player-avatar-fallback {
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-player-avatar-frame {
  position: absolute;
  inset: -12%;
  width: 124% !important;
  height: 124% !important;
  max-width: none;
  object-fit: contain !important;
  pointer-events: none;
  z-index: 2;
  filter:
    drop-shadow(0 0 2px var(--profile-frame-glow))
    drop-shadow(0 0 5px var(--profile-frame-glow));
}

[data-profile-frame="profile_frame_cursed_energy_blue"] {
  --profile-frame-glow: rgba(34, 196, 255, 0.76);
}

[data-profile-frame="profile_frame_cursed_energy_yuta"] {
  --profile-frame-glow: rgba(255, 42, 156, 0.72);
}

[data-profile-frame="profile_frame_cursed_energy_sukuna"] {
  --profile-frame-glow: rgba(255, 35, 35, 0.76);
}

[data-profile-frame="profile_frame_cursed_energy_curses"] {
  --profile-frame-glow: rgba(151, 48, 255, 0.74);
}

[data-profile-frame="profile_frame_black_flash"] {
  --profile-frame-glow: rgba(255, 18, 18, 0.82);
}

[data-profile-frame="profile_frame_jujutsu_plus"] {
  --profile-frame-glow: rgba(242, 190, 48, 0.54);
}

.player-name-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.player-name {
  font-weight: 600;
  font-size: 13px;
  min-width: 0;
}

.player-name.player-name-plus {
  color: #ffdd88;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

.player-plus-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.38));
}

.player-rank-label {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 1px;
}

.player-avatar-link {
  display: block;
  line-height: 0;
  border-radius: 6px;
  flex-shrink: 0;
}

.player-profile-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.player-profile-local {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-profile-local-btn {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.player-profile-local-btn:hover,
.player-profile-local-btn:focus-visible {
  color: var(--gold-light);
}

.player-profile-local-btn:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 2px;
  border-radius: 4px;
}

.player-profile-link:hover .player-name,
.player-profile-link:focus-visible .player-name {
  color: var(--gold-light);
}

.player-profile-link:hover .player-rank-label,
.player-profile-link:focus-visible .player-rank-label {
  color: var(--text);
}

.player-avatar-link:focus-visible,
.player-profile-link:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 2px;
}

.player-links-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.player-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 22, 30, 0.88);
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

button.player-action-btn {
  cursor: pointer;
}

.player-action-site {
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.11);
  color: #f1d07b;
}

.player-action-steam {
  border-color: rgba(124, 186, 255, 0.52);
  background: rgba(38, 95, 168, 0.22);
  color: #bcdfff;
}

.player-action-btn:hover,
.player-action-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold-light);
  color: #fff5d3;
}

.player-action-btn:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 1px;
}

.hero-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.hero-cell-btn {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.hero-cell-btn:hover,
.hero-cell-btn:focus-visible {
  color: var(--gold-light);
}

.hero-cell-btn:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 2px;
  border-radius: 6px;
}

.hero-icon-sm {
  width: 28px; height: 28px;
  background: var(--bg3);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.win-rate { font-weight: 700; }
.win-rate.high { color: var(--win); }
.win-rate.mid { color: var(--gold); }
.win-rate.low { color: var(--loss); }
.win-rate-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.win-rate-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}
.win-rate-trend-up { color: var(--win); }
.win-rate-trend-down { color: var(--loss); }
.win-rate-trend-arrow {
  font-size: 10px;
  line-height: 1;
}
.win-rate-trend-delta {
  opacity: 0.9;
}

.rank-badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
}

.rank-badge-sm-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== STATS TABLE ===== */
.stats-table td:nth-child(3) { font-weight: 700; }

.hero-stat-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pick-bar-wrap {
  background: var(--bg3);
  border-radius: 3px;
  height: 4px;
  width: 80px;
  overflow: hidden;
}

.pick-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
}

/* ===== PROFILE ===== */
#page-profile .container {
  max-width: 1480px;
  padding-top: 24px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-left,
.profile-right {
  min-width: 0;
}

.profile-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
  align-content: start;
}

.profile-right > .profile-section-card {
  margin-bottom: 0;
}

.profile-right > .profile-section-card:first-child {
  grid-column: 1 / -1;
}

.profile-right > .profile-match-history-card {
  grid-column: 1 / -1;
}

.profile-right > #profileInventoryPanel {
  grid-column: 1 / -1;
}

.profile-right > #profileSeasonCard {
  grid-column: 1 / -1;
}

.profile-auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(25, 28, 37, 0.94), rgba(18, 20, 28, 0.94));
}

.profile-auth-text {
  font-size: 13px;
  color: var(--text);
}

.profile-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  white-space: nowrap;
}

.profile-auth-btn.is-active {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.28);
}

.profile-mortal-preview-btn.is-active {
  border-color: rgba(224, 80, 80, 0.6);
  color: #ff9b9b;
  box-shadow: inset 0 0 0 1px rgba(224, 80, 80, 0.22);
}

.profile-steam-link-btn {
  text-decoration: none;
}

/* ===== ADMIN ===== */
.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-action-btn {
  min-height: 36px;
  white-space: nowrap;
}

.admin-page-sub {
  margin-bottom: 14px;
}

.admin-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24, 29, 41, 0.9), rgba(14, 17, 26, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-native-root {
  width: 100%;
  min-height: 1240px;
  background: transparent;
}

.admin-denied {
  margin-top: 12px;
  border: 1px solid rgba(208, 74, 74, 0.45);
  border-radius: var(--radius);
  background: rgba(208, 74, 74, 0.12);
  padding: 14px;
}

.admin-denied-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-denied-text {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 13px;
}

.admin-native-root {
  width: 100%;
  min-height: 420px;
  background: transparent;
}

.admin-native-app {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.admin-native-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.admin-native-tab {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(32, 38, 52, 0.9), rgba(18, 22, 33, 0.92));
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
}

.admin-native-tab:hover {
  border-color: var(--gold-dim);
  transform: translateY(-1px);
}

.admin-native-tab.active {
  border-color: rgba(212, 160, 23, 0.68);
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.24), rgba(212, 160, 23, 0.12));
  color: var(--gold-light);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.24) inset;
}

.admin-native-topbar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: linear-gradient(180deg, rgba(19, 23, 34, 0.92), rgba(14, 17, 24, 0.94));
  display: grid;
  gap: 8px;
}

.admin-native-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-native-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.admin-native-page {
  display: none;
}

.admin-native-page.active {
  display: block;
  animation: adminFadeIn 0.2s ease;
}

@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-native-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(320px, 0.9fr);
  gap: 12px;
}

.admin-native-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 28, 38, 0.93), rgba(16, 19, 28, 0.94));
  box-shadow: var(--shadow);
  padding: 12px;
}

.admin-native-card h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.admin-native-card .hint {
  margin-top: 6px;
}

.admin-native-card input,
.admin-native-card select,
.admin-native-card textarea {
  width: 100%;
}

.admin-native-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-native-actions button {
  min-height: 36px;
}

.admin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.admin-chip:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}

.admin-inline-status {
  font-size: 11px;
  color: var(--text-dim);
  min-height: 16px;
}

.admin-inline-status.ok {
  color: var(--green);
}

.admin-inline-status.bad {
  color: var(--red);
}

.admin-native-app .status {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(9, 12, 20, 0.78);
  color: #9fb0ca;
  font-size: 12px;
  white-space: pre-wrap;
}

.admin-native-app .status.ok {
  border-color: rgba(76, 217, 100, 0.36);
  color: #8af2a9;
  background: rgba(76, 217, 100, 0.12);
}

.admin-native-app .status.bad {
  border-color: rgba(255, 95, 95, 0.44);
  color: #ffb0b0;
  background: rgba(255, 95, 95, 0.13);
}

.admin-native-app .status.log {
  max-height: 220px;
  overflow: auto;
}

.admin-native-table-wrap {
  overflow: auto;
  max-height: 580px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.admin-native-table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-native-table-wrap th,
.admin-native-table-wrap td {
  font-size: 12px;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.12);
  text-align: left;
  vertical-align: middle;
}

.admin-native-table-wrap th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background: rgba(20, 24, 33, 0.96);
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-native-table-wrap tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-native-table-wrap tr:hover td {
  background: rgba(212, 160, 23, 0.08);
}

.admin-native-kv {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px 10px;
}

.admin-native-kv .k {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}

.admin-native-kv .v {
  font-size: 13px;
  word-break: break-word;
}

.admin-native-divider {
  height: 1px;
  background: rgba(212, 160, 23, 0.18);
  margin: 10px 0;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--gold-dim);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}

.profile-avatar.profile-avatar-guest {
  border-color: rgba(212, 160, 23, 0.95);
  background: radial-gradient(circle at 35% 25%, rgba(255, 213, 111, 0.22), rgba(18, 20, 28, 0.98));
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar.has-profile-frame {
  overflow: visible;
  border-color: transparent;
  border-radius: 2px;
  background: transparent;
}

.profile-avatar.has-profile-frame > img:not(.profile-avatar-frame) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile-avatar .profile-avatar-frame {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
  filter:
    drop-shadow(0 0 3px var(--profile-frame-glow))
    drop-shadow(0 0 8px var(--profile-frame-glow));
}

.avatar-fallback {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  position: absolute;
  line-height: 1;
  user-select: none;
}

.profile-avatar.profile-avatar-guest .avatar-fallback {
  color: var(--gold-light);
  font-size: 38px;
}

.profile-rank-badge {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 26px; height: 26px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg);
}

.profile-rank-badge-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.profile-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-name-text {
  display: inline-block;
  min-width: 0;
}

.profile-name.profile-name-plus .profile-name-text {
  color: #ffd974;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.55), 0 0 18px rgba(250, 204, 21, 0.35);
}

.profile-plus-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.45));
}

.profile-fav-hero {
  font-size: 12px;
  color: var(--text-dim);
}

.profile-fav-hero span { color: var(--gold); }

.profile-milestones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-dim);
}

.profile-milestones[hidden],
.profile-milestone[hidden] {
  display: none;
}

.profile-milestone::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.profile-milestone.is-plus {
  color: #e6c65b;
}

.profile-milestone.is-plus::before {
  background: var(--gold);
  box-shadow: 0 0 7px rgba(240, 201, 76, 0.55);
}

.profile-right > .profile-achievements-card {
  position: relative;
  z-index: 10;
  grid-column: 1 / -1;
  overflow: visible;
  padding-bottom: 14px;
}

.profile-right > .profile-achievements-card:has(.profile-achievement:hover),
.profile-right > .profile-achievements-card:focus-within {
  z-index: 60;
}

.profile-achievements-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-achievement-group {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  overflow: visible;
}

.profile-achievement-group-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.profile-achievement-copy {
  min-width: 0;
}

.profile-achievement-copy strong {
  display: block;
  overflow: hidden;
  color: var(--gold-light);
  font: 700 14px/1.2 'Rajdhani', sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-achievement {
  position: relative;
  z-index: 1;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.16);
  outline: none;
}

.profile-achievement:hover,
.profile-achievement:focus {
  z-index: 50;
}

.profile-achievement.is-earned {
  border-color: rgba(216, 180, 95, 0.34);
  background: radial-gradient(circle at 50% 42%, rgba(216, 180, 95, 0.11), rgba(255, 255, 255, 0.018) 67%);
}

.profile-achievement:focus-visible {
  border-color: rgba(216, 180, 95, 0.8);
  box-shadow: 0 0 0 2px rgba(216, 180, 95, 0.14);
}

.profile-achievement-icon-wrap {
  position: absolute;
  inset: 2px;
  display: grid;
  place-items: center;
}

.profile-achievement-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.42));
  transform: translate(var(--achievement-icon-x, 0), var(--achievement-icon-y, 0));
  transition: opacity 140ms ease, filter 140ms ease, transform 140ms ease;
}

.profile-achievement.is-locked .profile-achievement-icon-wrap img {
  opacity: 0.22;
  filter: grayscale(1) brightness(0.68);
}

.profile-achievement:hover .profile-achievement-icon-wrap img,
.profile-achievement:focus .profile-achievement-icon-wrap img {
  transform: translate(var(--achievement-icon-x, 0), calc(var(--achievement-icon-y, 0) - 1px));
}

.profile-achievement-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  z-index: 100;
  display: grid;
  width: 228px;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid rgba(216, 180, 95, 0.38);
  border-radius: 5px;
  background: #0b1018;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -5px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  pointer-events: none;
}

.profile-achievement-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -5px;
  width: 8px;
  height: 8px;
  border-left: 1px solid rgba(216, 180, 95, 0.38);
  border-top: 1px solid rgba(216, 180, 95, 0.38);
  background: #0b1018;
  transform: translateX(-50%) rotate(45deg);
}

.profile-achievement:hover .profile-achievement-tooltip,
.profile-achievement:focus .profile-achievement-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.profile-achievement-tooltip strong {
  color: var(--gold-light);
  font: 700 14px/1.15 'Rajdhani', sans-serif;
}

.profile-achievement-tooltip > span:not(.profile-achievement-progress) {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}

.profile-achievement-tooltip em {
  color: var(--gold-light);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}

.profile-achievement-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.profile-achievement-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9b741d, #e6c65b);
  box-shadow: 0 0 7px rgba(230, 198, 91, 0.34);
}

@media (max-width: 700px) {
  .profile-achievements-groups { grid-template-columns: 1fr; gap: 8px; }
  .profile-achievement-group { min-height: 70px; padding: 8px 10px; }
  .profile-achievement { flex-basis: 52px; width: 52px; height: 52px; }
  .profile-achievement-tooltip { width: min(200px, 72vw); }
  .profile-achievement-tooltip { left: 0; transform: translate(0, -5px); }
  .profile-achievement:hover .profile-achievement-tooltip,
  .profile-achievement:focus .profile-achievement-tooltip { transform: translate(0, 0); }
  .profile-achievement-tooltip::after { left: 28px; }
}

.profile-stats-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pstat-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.pstat-val.gold { color: var(--gold-light); }

.pstat-key {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.profile-inventory-panel {
  margin-bottom: 18px;
  padding: 22px 24px;
}

.profile-inventory-panel-count {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
}

.profile-inventory-panel-subline {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.profile-inventory-panel-subline.is-plus {
  color: #ffd873;
}

.profile-inventory-panel-state {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-muted);
  background: rgba(11, 14, 24, 0.82);
}

.profile-inventory-grid,
.profile-inventory-panel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.profile-inventory-shell {
  display: grid;
  gap: 14px;
}

.profile-inventory-toolbar {
  display: flex;
  align-items: center;
}

.profile-inventory-search-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  font-size: 15px;
  color: var(--text-dim);
}

.profile-inventory-search {
  flex: 1;
  min-height: 44px;
  background: rgba(12, 15, 24, 0.94);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
}

.profile-inventory-body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 14px;
}

.profile-inventory-grid-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 13, 22, 0.86);
  padding: 14px;
  max-height: 680px;
  overflow: auto;
}

.profile-inventory-detail {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 24, 36, 0.96), rgba(12, 16, 28, 0.98));
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 0;
}

.profile-inventory-detail-preview {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(8, 10, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-inventory-detail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-inventory-detail-preview img.is-contain {
  object-fit: contain;
  padding: 8%;
}

.profile-inventory-detail-empty {
  color: var(--text-dim);
  font-size: 13px;
}

.profile-inventory-detail-copy {
  padding: 20px 0 18px;
  border-bottom: 1px solid rgba(216, 180, 95, 0.24);
}

.profile-inventory-detail-name {
  font-size: 30px;
  line-height: 1.12;
  color: #e4eef9;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-wrap: balance;
}

.profile-inventory-detail-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.55;
  color: #91a6bf;
}

.profile-inventory-detail-tags {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 16px;
}

.profile-inventory-detail-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-inventory-detail-tag {
  font-size: 12px;
  border: 1px solid rgba(126, 203, 255, 0.3);
  border-radius: 999px;
  padding: 5px 11px;
  color: #cae4ff;
  background: rgba(18, 31, 52, 0.45);
}

.profile-inventory-detail-tag.is-rarity {
  font-weight: 700;
}

.profile-inventory-detail-tag.is-rarity-arcana {
  border-color: #ef4444aa;
  background: #3a1217cc;
  color: #fecaca;
}

.profile-inventory-detail-tag.is-rarity-persona {
  border-color: #22c55eaa;
  background: #13311fcc;
  color: #bbf7d0;
}

.profile-inventory-detail-tag.is-rarity-epic {
  border-color: #a855f7aa;
  background: #2a153acc;
  color: #e9d5ff;
}

.profile-inventory-detail-tag.is-rarity-rare {
  border-color: #38bdf8aa;
  background: #112b3ecc;
  color: #bae6fd;
}

.profile-inventory-detail-tag.is-rarity-legendary {
  border-color: #facc15aa;
  background: #3b3112cc;
  color: #fde68a;
}

.profile-inventory-detail-tag.is-rarity-common {
  border-color: #94a3b8aa;
  background: #1f2937cc;
  color: #d7dee8;
}

.profile-inventory-detail-tag.is-rarity-seasonal {
  border-color: #14b8a6aa;
  background: #11302ccc;
  color: #99f6e4;
}

.profile-inventory-detail-tag.is-rarity-subscription {
  border-color: #facc15aa;
  background: #3b3112cc;
  color: #fde68a;
}

.profile-inventory-detail-facts {
  display: grid;
  gap: 10px;
}

.profile-inventory-detail-fact {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 24, 0.6);
  border-radius: 10px;
  padding: 9px 10px;
}

.profile-inventory-detail-fact-title {
  font-size: 11px;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #aebed2;
  margin-bottom: 7px;
}

.profile-inventory-detail-fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-inventory-detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e4ecf7;
  background: rgba(255, 255, 255, 0.04);
}

.profile-inventory-detail-empty-note {
  font-size: 12px;
  color: #889cb4;
}

.profile-inventory-detail-status {
  font-size: 13px;
  color: #ffd873;
  margin-top: 2px;
}

.profile-plus-section {
  position: relative;
}

.psec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.psec-header span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mode-tabs-small { display: flex; gap: 4px; }

.mtab {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition:
    color var(--motion-fast),
    border-color var(--motion-fast),
    background-color var(--motion-fast),
    transform var(--motion-fast),
    box-shadow var(--motion-mid);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.mtab::before {
  content: '';
  position: absolute;
  inset: -38% -50%;
  background: linear-gradient(120deg, transparent 22%, rgba(255, 239, 184, 0.24) 50%, transparent 78%);
  transform: translateX(-56%) rotate(10deg);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition:
    transform var(--motion-slow) var(--motion-ease),
    opacity var(--motion-mid) ease;
}

.mtab.active, .mtab:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(212, 160, 23, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.mtab.active::before, .mtab:hover::before {
  transform: translateX(56%) rotate(10deg);
  opacity: 0.85;
}

.mtab:active {
  transform: translateY(0) scale(0.985);
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.rating-rank-badge {
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.rating-rank-badge-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rating-points {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.rating-rank-name {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.rating-kda-line {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.progress-bar-wrap {
  background: var(--bg3);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 4px;
  transition: width 1s ease;
}

.progress-label {
  font-size: 11px;
  color: var(--text-dim);
}

.rating-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.rating-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(17, 20, 29, 0.62));
}

.rating-meta-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.rating-meta-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.rating-meta-select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 34px 8px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  background-position: right 12px center;
}

.rating-meta-select:disabled {
  opacity: 0.9;
  cursor: default;
}

.updated-at {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
}

.hero-stats-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 64px;
  gap: 10px;
  padding: 0 10px 7px;
  margin-top: -2px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.hero-stats-head span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-stats-head-games,
.hero-stats-head-wr {
  text-align: right;
}

.hero-stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 64px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  font-size: 12px;
}

.hero-stat-row:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.hero-stat-row.is-top {
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.08), var(--surface2));
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.12);
}

.hero-stat-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.hero-stat-row .icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg3);
}

.hero-stat-row .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-stat-row .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}

.hero-stat-num {
  text-align: right;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
}

.hero-stat-games { color: var(--text); }
.hero-stat-wr.is-high { color: var(--win); }
.hero-stat-wr.is-mid { color: var(--gold); }
.hero-stat-wr.is-low { color: var(--loss); }

.hero-stat-empty {
  border-radius: var(--radius);
  padding: 11px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface2);
  border: 1px dashed var(--border);
}

.top-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.16);
  color: var(--gold);
  border: 1px solid rgba(212, 160, 23, 0.22);
}

/* Favorite hero */
.fav-hero-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fav-hero-img {
  width: 48px; height: 48px;
  background: var(--bg3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}

.fav-hero-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
}

/* Extra stats */
.extra-stats { display: flex; flex-direction: column; gap: 2px; }

.extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 12px;
  gap: 12px;
}

.extra-row:last-child { border-bottom: none; }

.extra-row > span:first-child {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.match-history { display: flex; gap: 4px; }

.mh {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--bg3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.mh.win {
  background: rgba(62, 207, 122, 0.15);
  color: var(--win);
  border-color: rgba(62, 207, 122, 0.2);
}

.mh.loss {
  background: rgba(224, 80, 80, 0.15);
  color: var(--loss);
  border-color: rgba(224, 80, 80, 0.2);
}

.gold { color: var(--gold-light); }
.red { color: var(--loss); }

.profile-match-history-card {
  margin: 0;
}

.profile-match-history-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.profile-match-history-expand {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(212, 160, 23, .34);
  border-radius: 2px;
  background: rgba(212, 160, 23, .06);
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.profile-match-history-expand:hover {
  border-color: rgba(212, 160, 23, .72);
  background: rgba(212, 160, 23, .12);
  color: #fff0b7;
}

body.profile-match-history-expanded {
  overflow: hidden;
}

.profile-match-history-card.is-expanded {
  position: fixed;
  inset: max(78px, 6vh) max(28px, 4vw) max(24px, 4vh);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  width: auto;
  margin: 0;
  padding: 20px;
  background: #0d0f13;
  border-color: rgba(212, 160, 23, .5);
  box-shadow: 0 0 0 100vmax rgba(3, 4, 7, .82), 0 28px 90px rgba(0, 0, 0, .72);
}

.profile-match-history-card.is-expanded .profile-match-history-wrap {
  flex: 1 1 auto;
  max-height: none;
}

.profile-match-history-card.is-expanded .profile-match-history-table {
  min-width: 1120px;
}

@media (max-width: 760px) {
  .profile-match-history-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .profile-match-history-card.is-expanded {
    inset: 70px 8px 8px;
    padding: 13px 10px;
  }
}

.profile-match-history-meta {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.profile-match-history-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  max-height: min(68vh, 760px);
  background: rgba(17, 20, 29, 0.76);
}

.profile-match-history-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

.profile-match-history-table th,
.profile-match-history-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  white-space: nowrap;
}

.profile-match-history-table th:nth-child(1),
.profile-match-history-table td:nth-child(1) { min-width: 138px; }
.profile-match-history-table th:nth-child(2),
.profile-match-history-table td:nth-child(2) { min-width: 56px; text-align: center; }
.profile-match-history-table th:nth-child(3),
.profile-match-history-table td:nth-child(3) { min-width: 170px; }
.profile-match-history-table th:nth-child(4),
.profile-match-history-table td:nth-child(4) { min-width: 100px; text-align: center; }
.profile-match-history-table th:nth-child(5),
.profile-match-history-table td:nth-child(5) { min-width: 78px; text-align: center; }
.profile-match-history-table th:nth-child(6),
.profile-match-history-table td:nth-child(6),
.profile-match-history-table th:nth-child(8),
.profile-match-history-table td:nth-child(8) { min-width: 80px; text-align: right; }
.profile-match-history-table th:nth-child(7),
.profile-match-history-table td:nth-child(7) { min-width: 74px; text-align: right; }
.profile-match-history-table th:nth-child(9),
.profile-match-history-table td:nth-child(9) { min-width: 64px; text-align: center; }

.profile-match-history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: linear-gradient(180deg, rgba(24, 30, 41, 0.98), rgba(18, 22, 32, 0.98));
}

.profile-match-history-table tbody tr:hover {
  background: rgba(212, 160, 23, 0.08);
}

.profile-match-row.is-expandable {
  cursor: pointer;
  outline: none;
  transition: background .14s ease, box-shadow .14s ease;
}
.profile-match-row.is-expandable:hover,
.profile-match-row.is-expandable:focus {
  background: rgba(212, 160, 23, .09);
  box-shadow: inset 2px 0 0 rgba(240, 192, 64, .68);
}
.profile-match-row.is-expandable td:last-child { position: relative; padding-right: 24px; }
.profile-match-row.is-expandable td:last-child::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .16s ease;
}
.profile-match-modal-open { overflow: hidden; }
.profile-match-modal[hidden] { display: none !important; }
.profile-match-modal {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 5, 8, .82);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.profile-match-modal.is-open { opacity: 1; pointer-events: auto; }
.profile-match-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, 100%);
  max-height: min(900px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid rgba(216, 180, 95, .36);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 20, 27, .99), rgba(9, 11, 16, .995));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255,255,255,.04);
  transform: translateY(10px) scale(.985);
  transition: transform .18s ease;
}
.profile-match-modal.is-open .profile-match-modal-panel { transform: translateY(0) scale(1); }
.profile-match-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 14px 18px 13px;
  border-bottom: 1px solid rgba(216, 180, 95, .2);
  background: radial-gradient(600px 100px at 0 0, rgba(216, 180, 95, .09), transparent 70%);
}
.profile-match-modal-header span { color: var(--gold); font: 700 9px/1 'Rajdhani', sans-serif; letter-spacing: 1.2px; text-transform: uppercase; }
.profile-match-modal-header h2 { margin: 5px 0 0; color: var(--text); font: 700 21px/1 'Rajdhani', sans-serif; letter-spacing: .4px; }
.profile-match-modal-actions { display: flex; align-items: center; gap: 9px; }
.profile-match-modal-fill-bots {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(216, 180, 95, .3);
  border-radius: 7px;
  background: rgba(216, 180, 95, .07);
  color: var(--gold-light);
  font: 700 10px/1 'Rajdhani', sans-serif;
  letter-spacing: .35px;
  text-transform: uppercase;
}
.profile-match-modal-fill-bots:hover,
.profile-match-modal-fill-bots:focus { border-color: rgba(216, 180, 95, .58); background: rgba(216, 180, 95, .12); outline: none; }
.profile-match-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
}
.profile-match-modal-close:hover,
.profile-match-modal-close:focus { border-color: rgba(216, 180, 95, .42); color: var(--gold-light); outline: none; }
.profile-match-modal-body { min-height: 260px; overflow: auto; overscroll-behavior: contain; }
.profile-match-details-row[hidden] { display: none !important; }
.profile-match-history-table tbody .profile-match-details-row,
.profile-match-history-table tbody .profile-match-details-row:hover { background: rgba(8, 10, 15, .96); }
.profile-match-details-row > td { padding: 0 !important; white-space: normal !important; text-align: left !important; }
.profile-match-details-host { border-bottom: 1px solid rgba(216, 180, 95, .2); }
.profile-match-details-state { display: grid; min-height: 112px; place-items: center; color: var(--text-dim); font-size: 12px; }
.profile-match-details-state.is-error { color: var(--loss); }
.profile-match-modal .profile-match-details { padding: 18px 20px 22px; }
.profile-match-details-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 140px 100px;
  gap: 18px;
  align-items: center;
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.profile-match-details-summary > div { display: flex; flex-direction: column; gap: 3px; }
.profile-match-details-summary > div:first-child strong { color: var(--gold-light); font-size: 15px; }
.profile-match-details-summary span { color: var(--text-dim); font-size: 10px; }
.profile-match-details-summary strong { color: var(--text); font: 700 16px/1.1 'Rajdhani', sans-serif; }
.profile-match-details-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.profile-match-details-group { border: 1px solid rgba(255,255,255,.065); border-radius: 7px; overflow: hidden; background: rgba(255,255,255,.012); }
.profile-match-details-group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.055); color: var(--gold); font: 700 11px/1 'Rajdhani', sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.profile-match-details-group-title em { color: var(--text-dim); font-size: 9px; font-style: normal; }
.profile-match-details-players { display: grid; }
.profile-match-details-leavers {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(224, 80, 80, .25);
  border-radius: 8px;
  background: rgba(224, 48, 48, .025);
}
.profile-match-details-leavers-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(224, 80, 80, .18);
  color: #ff7777;
  font: 700 11px/1 'Rajdhani', sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.profile-match-details-leavers-title strong { margin-left: auto; color: var(--loss); }
.profile-match-details-leaver-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-match-details-leaver-list .profile-match-details-player:nth-child(2n) { border-left: 1px solid rgba(224, 80, 80, .12); }
.profile-match-details-player {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 34px 88px 142px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.profile-match-details-player:last-child { border-bottom: 0; }
.profile-match-details-player.is-owner { background: rgba(216, 180, 95, .055); }
.profile-match-details-player.is-leaver { box-shadow: inset 2px 0 0 rgba(224, 80, 80, .75); background: rgba(224, 80, 80, .035); }
.profile-match-details-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.profile-match-details-person > img,
.profile-match-details-avatar { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 5px; background: var(--surface2); object-fit: cover; }
.profile-match-details-person > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-match-details-person strong { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-match-details-person span { overflow: hidden; color: var(--text-dim); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.profile-match-details-hero { width: 32px; height: 32px; border-radius: 5px; object-fit: cover; object-position: center top; }
.profile-match-details-kda { color: var(--text); font: 700 12px/1 'Rajdhani', sans-serif; text-align: center; }
.profile-match-details-rating { color: var(--text-dim); font: 700 12px/1 'Rajdhani', sans-serif; text-align: right; }
.profile-match-details-rating b { display: block; color: var(--text-muted); font: inherit; }
.profile-match-details-rating em { display: block; min-height: 12px; margin-top: 3px; color: var(--text-dim); font-style: normal; }
.profile-match-details-rating em.is-pos { color: var(--win); }
.profile-match-details-rating em.is-neg { color: var(--loss); }
.profile-match-details-performance {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 7px;
  padding: 7px 0 2px 39px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.profile-match-details-performance > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.profile-match-details-performance small { color: var(--text-dim); font-size: 8px; letter-spacing: .35px; text-transform: uppercase; }
.profile-match-details-performance b { color: var(--text); font: 700 11px/1 'Rajdhani', sans-serif; }
.profile-match-details-inventory { grid-column: 1 / -1; }
.profile-match-details-inventory em { display: flex; min-height: 26px; flex-wrap: wrap; gap: 3px; color: var(--text-dim); font-style: normal; }
.profile-match-details-item { position: relative; display: grid; width: 36px; height: 26px; place-items: center; overflow: hidden; border: 1px solid rgba(216,180,95,.2); border-radius: 3px; background: rgba(0,0,0,.35); }
.profile-match-details-item img { width: 100%; height: 100%; object-fit: cover; }
.profile-match-details-item i { width: 100%; height: 100%; place-items: center; color: var(--gold); font-style: normal; }
.profile-match-details-item > b { position: absolute; right: 1px; bottom: 0; padding: 1px 2px; border-radius: 2px; background: rgba(0,0,0,.8); color: #fff; font-size: 8px; }
.profile-match-result-wrap { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.profile-disconnect-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 18px;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(255, 50, 50, .22));
}
.profile-disconnect-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.profile-disconnect-badge.is-player { width: 27px; height: 18px; }
.profile-disconnect-badge.is-history { width: 23px; height: 16px; }
.profile-disconnect-badge.is-section { width: 25px; height: 16px; }
.profile-match-details-result { display: inline-flex; width: max-content; margin-bottom: 5px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); font: 700 9px/1 'Rajdhani', sans-serif; text-transform: uppercase; }
.profile-match-details-result.is-win { border-color: rgba(62,207,122,.32); background: rgba(62,207,122,.08); color: var(--win); }
.profile-match-details-result.is-loss { border-color: rgba(224,80,80,.32); background: rgba(224,80,80,.08); color: var(--loss); }

@media (max-width: 760px) {
  .profile-match-modal { padding: 0; place-items: stretch; }
  .profile-match-modal-panel { width: 100%; max-height: 100dvh; border-radius: 0; border-left: 0; border-right: 0; }
  .profile-match-modal-header { min-height: 62px; padding: 11px 14px; }
  .profile-match-modal .profile-match-details { padding: 14px 12px 18px; }
  .profile-match-details-summary { grid-template-columns: 1fr 92px 68px; gap: 10px; }
  .profile-match-details-groups { grid-template-columns: 1fr; }
  .profile-match-details-leaver-list { grid-template-columns: 1fr; }
  .profile-match-details-leaver-list .profile-match-details-player:nth-child(2n) { border-left: 0; }
  .profile-match-details-player { grid-template-columns: minmax(130px, 1fr) 32px 76px 118px; gap: 8px; padding: 7px 8px; }
  .profile-match-details-performance { grid-template-columns: repeat(4, minmax(64px, 1fr)); padding-left: 0; }
  .profile-match-details-inventory { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .profile-match-details-player {
    grid-template-columns: minmax(120px, 1fr) 32px 76px;
    grid-template-areas: "person hero kda" "person rating rating";
  }
  .profile-match-details-person { grid-area: person; }
  .profile-match-details-hero { grid-area: hero; }
  .profile-match-details-kda { grid-area: kda; }
  .profile-match-details-rating { grid-area: rating; display: flex; justify-content: flex-end; gap: 8px; }
  .profile-match-details-rating em { margin-top: 0; }
  .profile-match-details-performance { grid-area: auto; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.profile-match-history-table tbody tr:nth-child(2n) {
  background: rgba(255, 255, 255, 0.012);
}

.profile-match-history-table tbody tr:last-child td {
  border-bottom: none;
}

.profile-match-row-locked td {
  color: rgba(173, 181, 197, 0.62);
}

.profile-match-row-locked .profile-match-locked-text,
.profile-match-row-locked .profile-match-result {
  filter: blur(4px);
  opacity: 0.82;
  user-select: none;
}

.profile-match-row-locked .profile-match-result {
  border-color: rgba(173, 181, 197, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.profile-match-row-locked:hover {
  background: rgba(255, 255, 255, 0.018);
}

.profile-match-history-hide-match-id #profileMatchHistoryHeadMatch,
.profile-match-history-hide-match-id .profile-match-history-table td.profile-match-id {
  display: none;
}

.profile-match-history-hide-match-id .profile-match-history-table {
  min-width: 920px;
}

.profile-match-history-hide-match-id .profile-match-history-table th:nth-child(1),
.profile-match-history-hide-match-id .profile-match-history-table td:nth-child(1) { min-width: 122px; }
.profile-match-history-hide-match-id .profile-match-history-table th:nth-child(2),
.profile-match-history-hide-match-id .profile-match-history-table td:nth-child(2) { min-width: 52px; }
.profile-match-history-hide-match-id .profile-match-history-table th:nth-child(3),
.profile-match-history-hide-match-id .profile-match-history-table td:nth-child(3) { min-width: 144px; }
.profile-match-history-hide-match-id .profile-match-history-table th:nth-child(4),
.profile-match-history-hide-match-id .profile-match-history-table td:nth-child(4) { min-width: 88px; }
.profile-match-history-hide-match-id .profile-match-history-table th:nth-child(5),
.profile-match-history-hide-match-id .profile-match-history-table td:nth-child(5) { min-width: 64px; }
.profile-match-history-hide-match-id .profile-match-history-table th:nth-child(6),
.profile-match-history-hide-match-id .profile-match-history-table td:nth-child(6),
.profile-match-history-hide-match-id .profile-match-history-table th:nth-child(8),
.profile-match-history-hide-match-id .profile-match-history-table td:nth-child(8) { min-width: 72px; }
.profile-match-history-hide-match-id .profile-match-history-table th:nth-child(7),
.profile-match-history-hide-match-id .profile-match-history-table td:nth-child(7) { min-width: 64px; }
.profile-match-history-hide-match-id .profile-match-history-table th:nth-child(9),
.profile-match-history-hide-match-id .profile-match-history-table td:nth-child(9) { min-width: 56px; }

.profile-season-select {
  min-width: 180px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 12px;
}

.profile-season-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-season-empty {
  border-radius: var(--radius);
  padding: 13px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface2);
  border: 1px dashed var(--border);
}

.profile-season-row {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.06), transparent 48%),
    rgba(17, 20, 29, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.profile-season-row:hover {
  border-color: var(--border-strong);
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.09), transparent 52%),
    rgba(18, 22, 32, 0.86);
}

.profile-season-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-season-row-main {
  min-width: 0;
}

.profile-season-row-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.profile-season-row-subtitle {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.profile-season-row-code {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.2);
  background: rgba(212, 160, 23, 0.12);
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-season-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-season-stat {
  min-width: 0;
  padding: 10px 11px;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-season-stat-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.profile-season-stat-value {
  display: block;
  margin-top: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
}

.profile-match-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 210px;
}

.profile-match-hero-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
  background: var(--bg3);
  flex-shrink: 0;
}

.profile-match-hero-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-match-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.profile-match-result.is-win {
  color: var(--win);
  border-color: rgba(62, 207, 122, 0.38);
  background: rgba(62, 207, 122, 0.11);
}

.profile-match-result.is-loss {
  color: var(--loss);
  border-color: rgba(224, 80, 80, 0.4);
  background: rgba(224, 80, 80, 0.11);
}

.profile-match-result.is-unknown {
  color: var(--text-muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.profile-match-delta {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

.profile-match-delta.is-pos {
  color: var(--win);
}

.profile-match-delta.is-neg {
  color: var(--loss);
}

.profile-match-rating {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

.profile-match-kda {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--text);
}

.profile-match-id,
.profile-match-date,
.profile-match-mode,
.profile-match-place {
  color: var(--text-muted);
  font-size: 11px;
}

.profile-match-id {
  font-family: 'JetBrains Mono', monospace;
}

.profile-match-history-empty {
  margin-top: 10px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
  padding: 11px 10px;
}

.profile-analytics {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.profile-right > #profileAnalyticsCard { grid-column: 1 / -1; }
#profileExtraCard[hidden],
#profileSummaryCard[hidden] { display: none !important; }

.profile-analytics-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 20px 13px;
  border-bottom: 1px solid var(--border);
}

.profile-analytics-kicker {
  margin-bottom: 3px;
  color: var(--gold);
  font: 700 10px/1 'Rajdhani', sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.profile-analytics-head .psec-header { margin: 0; }

.profile-analytics-tabs,
.profile-analytics-periods {
  display: flex;
  align-items: center;
  gap: 3px;
}

.profile-analytics-tab,
.profile-analytics-periods button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font: 600 11px/1 'Rajdhani', sans-serif;
  letter-spacing: .4px;
  padding: 8px 10px;
  transition: color .16s ease, background .16s ease;
}

.profile-analytics-tab:hover,
.profile-analytics-periods button:hover { color: var(--text); }

.profile-analytics-tab.is-active {
  background: rgba(216, 180, 95, .12);
  color: var(--gold-light);
}

.profile-analytics-periods {
  padding: 11px 20px 0;
}

.profile-analytics-periods[hidden] { display: none; }

.profile-analytics-periods button {
  padding: 6px 9px;
  font-size: 10px;
}

.profile-analytics-periods button.is-active {
  background: var(--surface2);
  color: var(--text);
}

.profile-analytics-body { padding: 14px 20px 18px; }

.profile-analytics-progress {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(150px, .65fr);
  gap: 18px;
  min-height: 180px;
}

.profile-analytics-chart-wrap {
  position: relative;
  min-width: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}

.profile-analytics-chart {
  display: block;
  width: 100%;
  height: 178px;
  overflow: visible;
}

.profile-analytics-gridline { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.profile-analytics-line { fill: none; stroke: var(--gold-light); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.profile-analytics-point { cursor: crosshair; outline: none; }
.profile-analytics-point-hit { fill: transparent; pointer-events: all; }
.profile-analytics-point-dot {
  fill: #17140e;
  stroke: rgba(240, 192, 64, .72);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: .36;
  transition: opacity .14s ease, fill .14s ease, stroke-width .14s ease;
}
.profile-analytics-point:hover .profile-analytics-point-dot,
.profile-analytics-point:focus .profile-analytics-point-dot,
.profile-analytics-point.is-active .profile-analytics-point-dot {
  fill: var(--gold-light);
  stroke: #fff0b7;
  stroke-width: 2.2;
  opacity: 1;
}

.profile-analytics-tooltip {
  --profile-tooltip-shift: -50%;
  position: absolute;
  z-index: 4;
  width: max-content;
  min-width: 156px;
  max-width: 220px;
  padding: 10px 11px;
  border: 1px solid rgba(216, 180, 95, .34);
  border-radius: 7px;
  background: rgba(10, 11, 15, .97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  pointer-events: none;
  transform: translate(var(--profile-tooltip-shift), calc(-100% - 9px));
}
.profile-analytics-tooltip[hidden] { display: none; }
.profile-analytics-tooltip-date { margin-bottom: 6px; color: var(--text-dim); font-size: 10px; white-space: nowrap; }
.profile-analytics-tooltip-match-date { margin: -2px 0 7px; color: rgba(216, 180, 95, 0.72); font-size: 9px; white-space: nowrap; }
.profile-analytics-tooltip-rating { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.profile-analytics-tooltip-rating strong { color: var(--text); font: 700 20px/1 'Rajdhani', sans-serif; }
.profile-analytics-tooltip-rating span { color: var(--text-muted); font: 700 13px/1 'Rajdhani', sans-serif; }
.profile-analytics-tooltip-rating .is-positive { color: var(--win); }
.profile-analytics-tooltip-rating .is-negative { color: var(--loss); }
.profile-analytics-tooltip-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.07); color: var(--text-muted); font-size: 10px; }
.profile-analytics-tooltip-meta span:last-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-analytics-metrics {
  display: grid;
  align-content: stretch;
  border-left: 1px solid var(--border);
}

.profile-analytics-metrics > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 10px;
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.profile-analytics-metrics > div:last-child { border-bottom: 0; }
.profile-analytics-metrics span { color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.profile-analytics-metrics strong { color: var(--text); font: 700 22px/1 'Rajdhani', sans-serif; }
.profile-analytics-metrics small { grid-column: 1 / -1; color: var(--text-dim); font-size: 10px; }
.profile-analytics-metrics .is-positive { color: var(--win); }
.profile-analytics-metrics .is-negative { color: var(--loss); }
.profile-analytics-metrics .is-neutral { color: var(--text); }

.profile-analytics-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.profile-analytics-insights p {
  margin: 0;
  border-left: 2px solid rgba(216, 180, 95, .55);
  background: rgba(216, 180, 95, .045);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  padding: 9px 11px;
}

.profile-analytics-list { display: grid; }
.profile-analytics-hero-table { overflow: hidden; }
.profile-analytics-hero-head,
.profile-analytics-list-row.is-hero-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) 62px 78px 78px 74px minmax(130px, .9fr);
  align-items: center;
  gap: 10px;
}
.profile-analytics-hero-head {
  min-height: 32px;
  border-bottom: 1px solid rgba(216, 180, 95, .2);
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: .55px;
  text-transform: uppercase;
}
.profile-analytics-hero-list {
  max-height: 440px;
  overflow: auto;
  scrollbar-gutter: stable;
}
.profile-analytics-list-row.is-hero-row { min-height: 52px; }
.profile-analytics-record { display: flex; align-items: baseline; gap: 4px; }
.profile-analytics-record b { color: var(--win); font-style: normal; }
.profile-analytics-record i { color: var(--text-dim); font-style: normal; }
.profile-analytics-record em { color: var(--loss); font-style: normal; }
.profile-analytics-list-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 90px 70px 95px;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  color: var(--text-muted);
  font-size: 11px;
}
.profile-analytics-list-row:last-child { border-bottom: 0; }
.profile-analytics-list-row strong { color: var(--gold-light); font: 700 15px/1 'Rajdhani', sans-serif; }
.profile-analytics-entity { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-weight: 600; }
.profile-analytics-entity img { width: 30px; height: 30px; border-radius: 5px; object-fit: cover; object-position: center top; }
.profile-analytics-entity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-analytics-mode-name { color: var(--text); font: 700 15px/1 'Rajdhani', sans-serif; }
.profile-analytics-empty { display: grid; min-height: 150px; place-items: center; color: var(--text-dim); font-size: 12px; text-align: center; }

@media (max-width: 760px) {
  .profile-analytics-head { align-items: flex-start; flex-direction: column; }
  .profile-analytics-tabs { width: 100%; }
  .profile-analytics-tab { flex: 1; }
  .profile-analytics-periods { overflow-x: auto; }
  .profile-analytics-progress { grid-template-columns: 1fr; }
  .profile-analytics-metrics { grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--border); }
  .profile-analytics-metrics > div { padding: 12px 8px 4px; border-bottom: 0; }
  .profile-analytics-insights { grid-template-columns: 1fr; }
  .profile-analytics-list-row { grid-template-columns: minmax(120px, 1fr) 64px 58px; }
  .profile-analytics-list-row > span:last-child { display: none; }
  .profile-analytics-hero-table { overflow-x: auto; }
  .profile-analytics-hero-head,
  .profile-analytics-list-row.is-hero-row { grid-template-columns: minmax(150px, 1.2fr) 52px 68px 68px 64px 126px; min-width: 620px; }
  .profile-analytics-list-row.is-hero-row > span:last-child { display: block; }
}

.profile-section-plus-lock-overlay {
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid rgba(212, 160, 23, 0.45);
  background: linear-gradient(180deg, #0f1521, #0a0f18);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 14px 16px;
  z-index: 2;
  pointer-events: none;
}

.profile-analytics .profile-section-plus-lock-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(10, 15, 24, 0.98) 0, rgba(10, 15, 24, 0.9) 17%, rgba(10, 15, 24, 0.48) 35%, transparent 58%);
  pointer-events: none;
}

.profile-analytics-lock-preview {
  position: absolute;
  inset: 22px 20px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  grid-template-rows: minmax(0, 1fr) 42px;
  gap: 12px 16px;
  opacity: 0.52;
}

.profile-analytics-lock-preview-chart {
  min-width: 0;
  padding: 18px 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.018);
}

.profile-analytics-lock-preview-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.profile-analytics-lock-preview-chart line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.profile-analytics-lock-preview-chart polyline {
  fill: none;
  stroke: rgba(224, 177, 49, 0.72);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.profile-analytics-lock-preview-chart circle {
  fill: #101722;
  stroke: rgba(224, 177, 49, 0.86);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.profile-analytics-lock-preview-metrics {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.018);
}

.profile-analytics-lock-preview-metrics span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.profile-analytics-lock-preview-metrics span:last-child { border-bottom: 0; }
.profile-analytics-lock-preview-metrics i,
.profile-analytics-lock-preview-metrics b {
  display: block;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.profile-analytics-lock-preview-metrics i { width: 54px; }
.profile-analytics-lock-preview-metrics b { width: 72px; background: rgba(224, 177, 49, 0.28); }

.profile-analytics-lock-preview-insights {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-analytics-lock-preview-insights span {
  border-left: 2px solid rgba(224, 177, 49, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 42%, transparent 42%) 14px 13px / calc(100% - 28px) 6px no-repeat,
    rgba(255, 255, 255, 0.025);
}

.profile-analytics .profile-section-plus-lock-title,
.profile-analytics .profile-section-plus-lock-text {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 12px #070b12;
}

#page-profile.profile-sections-plus-locked .profile-plus-section > :not(.profile-section-plus-lock-overlay) {
  visibility: hidden;
}

#page-profile.profile-sections-plus-locked #profileAnalyticsCard {
  min-height: 300px;
}

.profile-section-plus-lock-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-light);
}

.profile-section-plus-lock-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .profile-analytics-lock-preview { grid-template-columns: 1fr; }
  .profile-analytics-lock-preview-metrics { display: none; }
}

#page-profile.profile-sections-plus-locked .profile-plus-section .extra-stats {
  filter: blur(1.6px);
  opacity: 0.58;
  pointer-events: none;
  user-select: none;
}

#page-profile.profile-sections-plus-locked .profile-plus-section .profile-section-plus-lock-overlay {
  display: flex;
}

.profile-plus-lock-host {
  display: none;
  width: 100%;
  margin-top: 10px;
}

#page-profile.profile-plus-locked .profile-layout {
  display: none;
}

#page-profile.profile-plus-locked #profileMatchHistoryCard {
  display: none;
}

#page-profile.profile-plus-locked .profile-plus-lock-host {
  display: flex;
}

.profile-plus-lock-card {
  width: min(760px, 100%);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 160, 23, 0.6);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(212, 160, 23, 0.18), rgba(212, 160, 23, 0) 42%),
    linear-gradient(180deg, rgba(16, 25, 39, 0.96), rgba(10, 16, 26, 0.97));
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.45), 0 0 34px rgba(212, 160, 23, 0.17);
  padding: 28px 28px 24px;
  text-align: left;
}

.profile-plus-lock-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.48);
  background: rgba(212, 160, 23, 0.1);
  color: #f2d58a;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-plus-lock-title {
  margin-top: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--gold-light);
}

.profile-plus-lock-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
}

.profile-plus-lock-benefits {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-plus-lock-benefit {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(11, 17, 26, 0.7);
  color: #d5dceb;
  font-size: 12px;
  line-height: 1.45;
  padding: 10px 11px 10px 26px;
}

.profile-plus-lock-benefit::before {
  content: '+';
  position: absolute;
  left: 10px;
  top: 10px;
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.profile-plus-lock-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-plus-lock-note {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#heroModal.hero-modal-long.open {
  align-items: flex-start;
  padding-top: 20px;
  padding-bottom: 36px;
}

.modal-content {
  background: linear-gradient(180deg, rgba(26, 26, 39, 0.95), rgba(16, 16, 26, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal-content { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
  z-index: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover { color: var(--gold); border-color: var(--gold-dim); }

.modal-body {
  padding: 22px;
}

.profile-inventory-tile {
  --inventory-accent: rgba(212, 160, 23, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 2px solid var(--inventory-accent);
  background: rgba(11, 14, 24, 0.9);
  padding: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: border-color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
  border-radius: 3px;
}

.profile-inventory-tile:hover {
  border-color: var(--inventory-accent);
  transform: translateY(-1px);
}

.profile-inventory-tile.is-active {
  border-color: var(--inventory-accent);
  box-shadow: inset 0 0 0 1px var(--inventory-accent), 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.profile-inventory-tile-media {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(73, 80, 97, 0.38), rgba(19, 23, 35, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-inventory-item-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-inventory-item-icon.is-contain {
  object-fit: contain;
  padding: 7%;
}

.profile-inventory-item-icon-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-light);
}

.profile-inventory-nickname-icon {
  --nickname-color: #63d8ff;
  --nickname-glow: rgba(99, 216, 255, 0.65);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nickname-color);
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(20px, 2.25vw, 34px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 4px var(--nickname-color),
    0 0 10px var(--nickname-glow),
    0 0 22px var(--nickname-glow);
  background:
    radial-gradient(circle, var(--nickname-glow) 0%, rgba(8, 10, 18, 0) 58%),
    linear-gradient(180deg, rgba(14, 18, 28, 0.94), rgba(7, 9, 15, 0.98));
}

.profile-inventory-nickname-icon.is-blue {
  --nickname-color: #63d8ff;
  --nickname-glow: rgba(99, 216, 255, 0.62);
}

.profile-inventory-nickname-icon.is-purple {
  --nickname-color: #c084fc;
  --nickname-glow: rgba(192, 132, 252, 0.62);
}

.profile-inventory-nickname-icon.is-red {
  --nickname-color: #ff4b55;
  --nickname-glow: rgba(255, 75, 85, 0.62);
}

.profile-inventory-nickname-icon.is-pink {
  --nickname-color: #ff91d4;
  --nickname-glow: rgba(255, 145, 212, 0.62);
}

.profile-inventory-nickname-icon.is-gray {
  --nickname-color: #b9bec8;
  --nickname-glow: rgba(185, 190, 200, 0.48);
}

.profile-inventory-nickname-icon.is-detail {
  width: 100%;
  height: 100%;
  font-size: clamp(38px, 5vw, 72px);
}

.profile-background-preview {
  width: 100%;
  height: 100%;
  display: block;
  background-color: #101827;
  background-position: center;
  background-size: cover;
}

.profile-background-preview.is-infinity,
[data-profile-background-theme="infinity"] {
  background-image:
    radial-gradient(circle at 22% 30%, rgba(93, 224, 255, 0.72), transparent 24%),
    radial-gradient(circle at 78% 68%, rgba(32, 113, 255, 0.48), transparent 31%),
    linear-gradient(125deg, #07121f 0%, #0a3a64 48%, #07101d 100%);
}

.profile-background-preview.is-shrine,
[data-profile-background-theme="shrine"] {
  background-image:
    radial-gradient(circle at 74% 34%, rgba(255, 62, 45, 0.68), transparent 24%),
    linear-gradient(32deg, transparent 42%, rgba(255, 28, 28, 0.32) 43%, transparent 45%),
    linear-gradient(135deg, #160607 0%, #5e1012 52%, #100607 100%);
}

.profile-background-preview.is-jujutsu-plus,
[data-profile-background-theme="jujutsu-plus"] {
  background-image:
    linear-gradient(90deg, rgba(9, 10, 8, 0.38), rgba(77, 57, 5, 0.08)),
    url("assets/profile-backgrounds/jujutsu_plus.png");
  background-position: center;
  background-size: cover;
}

.profile-background-preview.is-pure-love,
[data-profile-background-theme="pure-love"] {
  background-image:
    radial-gradient(circle at 24% 36%, rgba(255, 139, 218, 0.72), transparent 24%),
    radial-gradient(circle at 82% 62%, rgba(149, 79, 255, 0.46), transparent 32%),
    linear-gradient(130deg, #170a1b 0%, #5a174e 50%, #100917 100%);
}

.profile-background-preview.is-cursed-void,
[data-profile-background-theme="cursed-void"] {
  background-image:
    radial-gradient(circle at 68% 32%, rgba(174, 74, 255, 0.65), transparent 23%),
    radial-gradient(circle at 25% 74%, rgba(88, 28, 180, 0.52), transparent 31%),
    linear-gradient(128deg, #090612 0%, #29104f 52%, #08060e 100%);
}

#page-profile.has-profile-background {
  background-color: #07090e;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

#page-profile[data-profile-background-theme="infinity"] {
  background-image:
    linear-gradient(rgba(4, 6, 10, 0.52), rgba(4, 6, 10, 0.64)),
    linear-gradient(90deg, rgba(5, 7, 12, 0.96) 0%, rgba(5, 7, 12, 0.82) 46%, rgba(5, 7, 12, 0.42) 100%),
    url("assets/profile-backgrounds/infinity.png");
}

#page-profile[data-profile-background-theme="shrine"] {
  background-image:
    linear-gradient(rgba(4, 5, 9, 0.46), rgba(4, 5, 9, 0.60)),
    linear-gradient(90deg, rgba(5, 6, 10, 0.96) 0%, rgba(5, 6, 10, 0.82) 46%, rgba(5, 6, 10, 0.40) 100%),
    url("assets/profile-backgrounds/shrine.png");
}

#page-profile[data-profile-background-theme="jujutsu-plus"] {
  background-image:
    linear-gradient(rgba(5, 6, 6, 0.52), rgba(5, 6, 6, 0.68)),
    linear-gradient(90deg, rgba(5, 6, 8, 0.94) 0%, rgba(13, 12, 7, 0.76) 48%, rgba(52, 38, 4, 0.32) 100%),
    url("assets/profile-backgrounds/jujutsu_plus.png");
}

#page-profile.has-profile-background .profile-card,
#page-profile.has-profile-background .profile-section-card {
  background-color: rgba(9, 12, 18, 0.94);
  backdrop-filter: blur(2px);
}

.profile-background-preview.is-infinity {
  background-image: url("assets/profile-backgrounds/infinity.png");
  background-position: center;
  background-size: cover;
}

.profile-background-preview.is-shrine {
  background-image: url("assets/profile-backgrounds/shrine.png");
  background-position: center;
  background-size: cover;
}

.profile-background-preview.is-jujutsu-plus {
  background-image:
    linear-gradient(rgba(8, 8, 5, 0.18), rgba(8, 8, 5, 0.18)),
    url("assets/profile-backgrounds/jujutsu_plus.png");
  background-position: center;
  background-size: cover;
}

.profile-background-preview.is-detail {
  min-height: 100%;
}

.profile-left > .profile-card.has-profile-background {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.profile-left > .profile-card.has-profile-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: inherit;
  opacity: 0.82;
}

.profile-left > .profile-card.has-profile-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(7, 9, 15, 0.18), rgba(7, 9, 15, 0.72));
  pointer-events: none;
}

.profile-left > .profile-card.has-profile-background > * {
  position: relative;
  z-index: 1;
}

.profile-inventory-empty {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 11px;
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(10, 12, 20, 0.72);
}

.profile-inventory-rarity-arcana {
  --inventory-accent: #ef4444;
}

.profile-inventory-rarity-persona {
  --inventory-accent: #22c55e;
}

.profile-inventory-rarity-legendary {
  --inventory-accent: #facc15;
}

.profile-inventory-rarity-epic {
  --inventory-accent: #b395ff;
}

.profile-inventory-rarity-rare {
  --inventory-accent: #38bdf8;
}

.profile-inventory-rarity-common {
  --inventory-accent: #94a3b8;
}

.profile-inventory-rarity-seasonal {
  --inventory-accent: #86d9a0;
}

.profile-inventory-rarity-subscription {
  --inventory-accent: #ffd873;
}

.modal-hero-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-hero-icon {
  width: 72px; height: 72px;
  background: var(--bg3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.modal-hero-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
}

.modal-hero-attr {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12px;
  line-height: 1.25;
  color: var(--text-dim);
  margin-top: 4px;
}

.modal-hero-attr-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: inherit;
}

.modal-hero-attr > span {
  display: inline-flex;
  align-items: center;
  line-height: inherit;
}

.modal-hero-attr-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.modal-attr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.modal-attr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.modal-attr-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.modal-attr-card-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.modal-attr-card-value {
  margin-top: 5px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.modal-attr-card-value span {
  font-size: 12px;
  font-family: 'Inter', sans-serif;
}

.modal-attr-card-str .modal-attr-card-value { color: var(--str); }
.modal-attr-card-agi .modal-attr-card-value { color: var(--agi); }
.modal-attr-card-int .modal-attr-card-value { color: var(--int); }

.modal-combat-stats {
  margin: 2px 0 16px;
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 17, 0.48);
}

.modal-combat-stats-title {
  margin: 0 0 9px;
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.modal-combat-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.modal-resource-bars {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.modal-resource-bar {
  position: relative;
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.modal-resource-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 48%, transparent);
  pointer-events: none;
}

.modal-resource-bar-health {
  background: linear-gradient(180deg, #22bd71 0%, #078347 48%, #034b2a 100%);
}

.modal-resource-bar-mana {
  background: linear-gradient(180deg, var(--resource-top) 0%, var(--resource-mid) 48%, var(--resource-bottom) 100%);
}

.modal-resource-bar-value {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px #000, 1px 0 1px rgba(0,0,0,0.75);
}

.modal-resource-bar-regen {
  position: absolute;
  z-index: 2;
  right: 9px;
  color: #7cff9d;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 1px 2px #000;
}

.modal-resource-bar-mana .modal-resource-bar-regen {
  color: var(--resource-regen, #a8dcff);
}

.modal-combat-stat {
  min-width: 0;
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: var(--surface);
}

.modal-combat-stat-icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.modal-combat-stat-icon img {
  max-width: 21px;
  max-height: 21px;
  object-fit: contain;
}

.modal-combat-stat-icon-health {
  border-radius: 50%;
  background: #35a968;
  box-shadow: 0 0 8px rgba(53, 169, 104, 0.25);
}

.modal-combat-stat-icon-health::before,
.modal-combat-stat-icon-health::after {
  content: '';
  position: absolute;
  border-radius: 1px;
  background: #eafff1;
}

.modal-combat-stat-icon-health::before { width: 11px; height: 3px; }
.modal-combat-stat-icon-health::after { width: 3px; height: 11px; }

.modal-combat-stat-body {
  min-width: 0;
  display: flex;
  align-items: baseline;
  column-gap: 5px;
  flex-wrap: wrap;
}

.modal-combat-stat-value {
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.modal-combat-stat-extra {
  color: #72cc91;
  font-size: 10px;
  font-weight: 700;
}

.modal-combat-stat-mana .modal-combat-stat-extra { color: #68aef2; }

.modal-combat-stat-label {
  width: 100%;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.modal-stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}

.modal-stat-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.modal-stat-key {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.modal-abilities-wrap {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-ability-section {
  position: relative;
}

.modal-ability-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.modal-ability-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-title-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.ability-grid-uraume {
  grid-template-columns: repeat(5, minmax(84px, 1fr));
}

.ability-grid-uraume .ability-card-id-uraume_icefall_field {
  grid-column: 2;
  grid-row: 2;
}

.ability-grid-innate {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.megumi-shikigami-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 8px;
  align-items: start;
}

.megumi-shikigami-pair {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: visible;
}

.megumi-shikigami-pair[open] {
  border-color: rgba(212, 160, 23, 0.42);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.08);
}

.megumi-shikigami-summary {
  min-height: 38px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
}

.megumi-shikigami-summary::-webkit-details-marker {
  display: none;
}

.megumi-shikigami-summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.16s, border-color 0.16s;
}

.megumi-shikigami-pair[open] .megumi-shikigami-summary::after {
  transform: rotate(225deg);
  border-color: var(--gold-light);
}

.megumi-shikigami-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.megumi-shikigami-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.megumi-shikigami-name {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.megumi-shikigami-count {
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.megumi-shikigami-body {
  padding: 0 8px 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 72px));
  gap: 6px;
  align-items: start;
  justify-content: start;
}

.megumi-shikigami-body .ability-card {
  min-width: 0;
  padding: 5px;
  border-radius: 7px;
}

.megumi-shikigami-body .ability-icon-wrap {
  border-radius: 5px;
}

.megumi-shikigami-body .ability-label {
  margin-top: 4px;
  font-size: 9px;
  min-height: 2.35em;
}

.ability-card-megumi-q,
.ability-card-megumi-w {
  border-color: rgba(255, 255, 255, 0.08);
}

.megumi-mahoraga-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: -2px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.megumi-mahoraga-tabs::-webkit-scrollbar {
  display: none;
}

.megumi-mahoraga-tab {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(212, 160, 23, 0.38);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.16), rgba(212, 160, 23, 0.05));
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.megumi-mahoraga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 72px));
  gap: 6px;
  align-items: start;
  justify-content: start;
}

.megumi-mahoraga-grid .ability-card {
  min-width: 0;
  padding: 5px;
  border-radius: 7px;
  border-color: rgba(212, 160, 23, 0.18);
}

.megumi-mahoraga-grid .ability-icon-wrap {
  border-radius: 5px;
}

.megumi-mahoraga-grid .ability-label {
  margin-top: 4px;
  font-size: 9px;
  min-height: 2.35em;
}

.ability-card-megumi-q::before,
.ability-card-megumi-w::before {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(212, 160, 23, 0.46);
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.ability-card-megumi-q::before {
  content: "Q";
}

.ability-card-megumi-w::before {
  content: "W";
}

.ability-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px;
  transition: border-color 0.2s, transform 0.2s;
}

.ability-card-innate {
  border-color: rgba(199, 167, 76, 0.5);
  box-shadow: inset 0 0 0 1px rgba(199, 167, 76, 0.15);
}

.ability-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-1px);
  z-index: 5;
}

.ability-icon-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--bg3);
  overflow: hidden;
  position: relative;
}

.ability-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ability-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}

.ability-slot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
}

.ability-label {
  margin-top: 5px;
  font-size: 10px;
  color: var(--text);
  line-height: 1.25;
  min-height: 2.5em;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.ability-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  width: 360px;
  max-width: 78vw;
  background: linear-gradient(180deg, var(--surface2), var(--bg2));
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.72);
  padding: 11px 11px 42px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 30;
}

.ability-card:hover .ability-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ability-tip.ability-tip-dota-skill {
  width: min(420px, 90vw);
  max-width: 90vw;
  padding: 0;
  border-radius: 10px;
  border-color: var(--border-strong);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 160, 23, 0.13), transparent 46%),
    linear-gradient(180deg, var(--surface2) 0%, var(--bg2) 56%, #0d0d13 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.ability-dota-head {
  padding: 11px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.08), rgba(17, 17, 24, 0.12));
}

.ability-dota-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gold-light);
  line-height: 1.05;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ability-dota-meta {
  padding: 9px 14px 8px;
  border-bottom: 1px solid var(--border);
}

.ability-dota-meta-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 6px;
  margin-bottom: 2px;
}

.ability-dota-meta-row:last-child {
  margin-bottom: 0;
}

.ability-dota-meta-k {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.ability-dota-meta-v {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}

.ability-dota-meta-v.damage-physical {
  color: #e55f55;
}

.ability-dota-meta-v.damage-magical {
  color: #51a8ff;
}

.ability-dota-meta-v.damage-pure {
  color: #f2dd9a;
}

.ability-dota-desc {
  padding: 10px 14px 8px;
}

.ability-dota-desc-p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
}

.ability-dota-desc-p + .ability-dota-desc-p {
  margin-top: 10px;
}

.ability-desc-number {
  color: var(--gold-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ability-dota-stats {
  padding: 8px 14px 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ability-dota-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 8px;
  font-size: 12px;
}

.ability-dota-stat-k {
  color: var(--text-dim);
  text-transform: uppercase;
}

.ability-dota-stat-v {
  color: var(--gold-light);
  font-weight: 700;
  text-align: right;
}

.ability-tip.ability-tip-dota-skill .ability-tip-costs {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ability-tip.ability-tip-dota-skill .ability-tip-cost {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  padding: 2px 7px;
  min-height: 24px;
}

.ability-tip-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 6px;
  align-items: flex-start;
}

.ability-tip-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.ability-tip-costs {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  border-top: 1px solid var(--border);
  padding-top: 7px;
}

.ability-tip-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  min-width: 0;
  max-width: 100%;
}

.ability-tip-cost-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.ability-tip-cost-val {
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  text-align: left;
  line-height: 1.15;
}

.ability-tip-meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.ability-tip-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
  font-size: 11px;
}

.ability-tip-meta-k {
  color: var(--text-dim);
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ability-tip-meta-v {
  color: var(--text);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ability-tip-meta-v.damage-physical {
  color: #e55f55;
}

.ability-tip-meta-v.damage-magical {
  color: #51a8ff;
}

.ability-tip-meta-v.damage-pure {
  color: #f2dd9a;
}

.ability-tip-meta-v.damage-none {
  color: var(--text-dim);
}

.ability-tip-desc {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}

.ability-tip-stats {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ability-tip-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
  font-size: 11px;
}

.ability-tip-stat-k {
  color: var(--text-dim);
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ability-tip-stat-v {
  color: var(--gold-light);
  font-weight: 700;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ability-tip-empty {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}

.ability-slot-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(17, 17, 21, 0.95);
  padding: 2px;
}

.ability-slot-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.special-systems-section {
  margin-top: 2px;
}

.special-systems-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.special-system {
  position: relative;
  min-width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  outline: none;
}

.special-system-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--surface2), var(--bg3));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.special-system:hover .special-system-icon-wrap,
.special-system:focus-within .special-system-icon-wrap,
.special-system:focus .special-system-icon-wrap {
  border-color: var(--gold-dim);
  transform: translateY(-1px);
}

.special-system-icon {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.special-system-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.special-system-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.special-system-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(420px, 88vw);
  background: linear-gradient(180deg, var(--surface2), var(--bg2));
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.72);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 35;
}

.special-system:hover .special-system-tip,
.special-system:focus-within .special-system-tip,
.special-system:focus .special-system-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.special-system-tip-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.15;
}

.special-system-innate-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.special-system-innate-row,
.special-upgrade-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(22, 22, 31, 0.78);
}

.special-system-mini-icon-wrap {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.special-system-mini-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.special-system-mini-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
}

.special-system-item-name {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
}

.special-system-item-kind {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #d9e6ff;
  background: linear-gradient(90deg, rgba(60, 98, 182, 0.9), rgba(37, 72, 150, 0.9));
}

.special-system-item-kind.upgrade {
  color: #cfe7ff;
  background: linear-gradient(90deg, rgba(47, 87, 165, 0.9), rgba(30, 62, 133, 0.9));
}

.special-system-item-desc {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-dim);
  white-space: pre-wrap;
}

.special-upgrade-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.special-upgrade-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(22, 22, 31, 0.7);
}

.special-upgrade-group-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.special-upgrade-group-title.scepter {
  color: #ffd775;
}

.special-upgrade-group-title.shard {
  color: #8ad6ff;
}

.special-upgrade-group-icon {
  width: 11px;
  height: 11px;
  object-fit: contain;
}

.special-system-empty {
  padding: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.special-talent-table {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.special-talent-row {
  display: grid;
  grid-template-columns: 1fr 46px 1fr;
  align-items: stretch;
  background: rgba(22, 22, 31, 0.72);
}

.special-talent-row + .special-talent-row {
  border-top: 1px solid var(--border);
}

.special-talent-cell {
  padding: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text);
  display: flex;
  align-items: center;
}

.special-talent-cell.left {
  justify-content: flex-end;
  text-align: right;
}

.special-talent-cell.right {
  justify-content: flex-start;
  text-align: left;
}

.special-talent-level {
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 35%, rgba(212, 160, 23, 0.12), var(--bg3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-light);
}

.talent-tree {
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: visible;
}

.talent-tree-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: stretch;
}

.talent-tree-row + .talent-tree-row {
  border-top: 1px solid var(--border);
}

.talent-level {
  width: 44px;
  height: 44px;
  margin: auto;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 35%, rgba(212, 160, 23, 0.12), var(--bg3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-light);
}

.talent-choice {
  position: relative;
  min-height: 66px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  transition: background 0.2s;
}

.talent-choice-left {
  justify-content: flex-end;
  text-align: right;
}

.talent-choice-right {
  justify-content: flex-start;
  text-align: left;
}

.talent-choice:hover {
  background: rgba(212, 160, 23, 0.08);
}

.talent-choice-empty {
  background: transparent;
}

.talent-choice-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.35;
  font-weight: 600;
}

.talent-choice-tip {
  position: absolute;
  top: calc(100% + 6px);
  width: 270px;
  max-width: 64vw;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--surface2), var(--bg2));
  box-shadow: 0 8px 24px rgba(0,0,0,0.65);
  padding: 9px;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 0.15s, transform 0.15s;
}

.talent-choice-left .talent-choice-tip {
  right: 8px;
}

.talent-choice-right .talent-choice-tip {
  left: 8px;
}

.talent-choice:hover .talent-choice-tip {
  opacity: 1;
  transform: translateY(0);
}

.talent-choice-tip-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
}

.talent-choice-tip-desc {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
  white-space: pre-wrap;
}

.upgrade-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upgrade-row {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px;
}

.upgrade-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--bg3);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upgrade-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.upgrade-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.upgrade-badge {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upgrade-badge-icon {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

.upgrade-badge.shard {
  color: #8ad6ff;
  border-color: rgba(138, 214, 255, 0.3);
  background: rgba(138, 214, 255, 0.1);
}

.upgrade-badge.scepter {
  color: #ffd775;
  border-color: rgba(255, 215, 117, 0.3);
  background: rgba(255, 215, 117, 0.1);
}

.upgrade-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}

.upgrade-type-badge {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #d9e6ff;
  background: linear-gradient(90deg, rgba(60, 98, 182, 0.9), rgba(37, 72, 150, 0.9));
}

.upgrade-type-badge.upgrade {
  color: #cfe7ff;
  background: linear-gradient(90deg, rgba(47, 87, 165, 0.9), rgba(30, 62, 133, 0.9));
}

.upgrade-desc {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.35;
}

/* ===== DONATE ===== */
.donate-header {
  align-items: flex-end;
}

.donate-open-bot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.donate-alert {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 113, 113, 0.35);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(69, 18, 18, 0.82), rgba(24, 11, 11, 0.92));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.donate-alert-title {
  color: #ffd27d;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.donate-alert-body {
  color: rgba(255, 236, 201, 0.9);
  font-size: 14px;
  line-height: 1.55;
}

.donate-hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(111, 168, 227, 0.28);
  background:
    radial-gradient(circle at 12% 15%, rgba(88, 169, 255, 0.24), transparent 34%),
    radial-gradient(circle at 86% 0%, rgba(255, 209, 79, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(22, 28, 43, 0.98), rgba(12, 15, 24, 0.96) 62%, rgba(16, 22, 35, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.donate-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 32%, transparent 68%, rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px);
  opacity: 0.28;
  mask-image: radial-gradient(circle at 30% 35%, #000 0, transparent 72%);
}

.donate-hero-copy,
.donate-hero-points {
  position: relative;
  z-index: 1;
}

.donate-hero-copy {
  align-self: center;
}

.donate-kicker {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 168, 227, 0.38);
  background: linear-gradient(135deg, rgba(111, 168, 227, 0.18), rgba(255, 209, 79, 0.1));
  color: #a8d8ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.donate-hero-title {
  margin-top: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #f2f6ff;
  line-height: 0.98;
  text-wrap: balance;
}

.donate-hero-text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #c0cce0;
  max-width: 640px;
}

.donate-hero-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.donate-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.9), rgba(14, 18, 27, 0.92));
}

.donate-toolbar-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.donate-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donate-toolbar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.donate-toolbar-select {
  min-width: 168px;
  min-height: 34px;
  padding: 7px 28px 7px 10px;
  font-size: 12px;
  background: rgba(13, 17, 24, 0.92);
}

.donate-toolbar-meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.donate-point {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(142, 193, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 22, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.donate-point:hover {
  transform: translateY(-1px);
  border-color: rgba(142, 193, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(111, 168, 227, 0.14), rgba(255, 209, 79, 0.045)),
    rgba(8, 12, 22, 0.78);
}

.donate-point-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 18px;
  line-height: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(135deg, rgba(111, 168, 227, 0.22), rgba(255, 209, 79, 0.1));
  border: 1px solid rgba(142, 193, 255, 0.34);
}

.donate-point-icon > span {
  display: inline-block;
  line-height: 1;
  transform: translateY(-1px);
}

.donate-point-body {
  min-width: 0;
}

.donate-point-title {
  font-size: 15px;
  font-weight: 700;
  color: #eaf2ff;
}

.donate-point-text {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #aab7ca;
}

.donate-boosty-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(212, 160, 23, 0.24);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 168, 72, 0.14), transparent 26%),
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.04), transparent 24%),
    linear-gradient(135deg, rgba(30, 20, 18, 0.98), rgba(19, 14, 13, 0.98) 58%, rgba(24, 18, 17, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.donate-boosty-copy,
.donate-boosty-steps {
  min-width: 0;
}

.donate-kicker-boosty {
  border-color: rgba(255, 170, 116, 0.34);
  background: linear-gradient(135deg, rgba(255, 127, 80, 0.16), rgba(255, 198, 92, 0.12));
  color: #ffd3a0;
}

.donate-boosty-title {
  margin-top: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff1df;
}

.donate-boosty-text {
  margin-top: 12px;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.7;
  color: #d7c7bb;
}

.donate-boosty-actions {
  margin-top: 16px;
}

.donate-boosty-link {
  min-width: 180px;
}

.donate-boosty-steps {
  display: grid;
  gap: 12px;
}

.donate-boosty-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 181, 111, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(19, 14, 13, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.donate-boosty-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff0d9;
}

.donate-boosty-list {
  margin: 10px 0 0 18px;
  color: #d3c2b5;
  font-size: 13px;
  line-height: 1.55;
}

.donate-boosty-list li + li {
  margin-top: 8px;
}

.donate-boosty-example,
.donate-boosty-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #d3c2b5;
}

.donate-boosty-example span {
  color: #fff1dd;
  word-break: break-word;
}

.donate-boosty-note {
  color: #bcaea2;
}

.donate-boosty-contacts {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.donate-boosty-contacts a,
.donate-boosty-contacts span {
  font-size: 13px;
  line-height: 1.5;
  color: #ffe4c0;
}

.donate-boosty-contacts a:hover,
.donate-boosty-contacts a:focus-visible {
  color: #fff2dd;
}

.donate-subtabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 24, 0.86);
}

.donate-subtab {
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #aebbd0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.donate-subtab:hover,
.donate-subtab:focus-visible {
  color: #eef5ff;
  background: rgba(126, 203, 255, 0.1);
}

.donate-subtab.is-active {
  color: #101521;
  background: linear-gradient(135deg, #ffd35f, #79d7ff);
}

.donate-subtabs[hidden],
.donate-currency-panel[hidden],
.donate-catalog-hidden {
  display: none !important;
}

.donate-currency-panel {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(126, 203, 255, 0.22);
  background:
    radial-gradient(680px 220px at 0% -40%, rgba(126, 203, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(18, 23, 34, 0.94), rgba(12, 15, 23, 0.96));
}

.donate-currency-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.donate-kicker-currency {
  border-color: rgba(121, 215, 255, 0.36);
  background: linear-gradient(135deg, rgba(121, 215, 255, 0.16), rgba(255, 211, 95, 0.12));
  color: #bdeaff;
}

.donate-currency-title {
  margin-top: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #f2f7ff;
}

.donate-currency-text {
  margin-top: 6px;
  max-width: 640px;
  color: #aebbd0;
  font-size: 14px;
  line-height: 1.55;
}

.donate-currency-note {
  flex: 0 0 auto;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 211, 95, 0.24);
  background: rgba(255, 211, 95, 0.08);
  color: #d8e4f5;
  font-size: 12px;
  line-height: 1.45;
}

.donate-currency-note strong {
  color: #ffe08b;
}

.donate-currency-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.donate-currency-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 392px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(126, 203, 255, 0.18);
  background: linear-gradient(180deg, rgba(19, 25, 36, 0.96), rgba(10, 14, 22, 0.96));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.donate-currency-card-featured {
  border-color: rgba(255, 211, 95, 0.42);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 211, 95, 0.08);
}

.donate-currency-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.donate-currency-label {
  color: #9fd8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donate-currency-price {
  color: #ffe08b;
  font-size: 18px;
  font-weight: 800;
}

.donate-currency-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 154px;
  margin: 0 0 2px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 216, 108, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 211, 95, 0.1);
}

.donate-currency-art::after {
  content: "";
  position: absolute;
  inset: 10px 18px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 139, 0.38), transparent);
}

.donate-currency-art img {
  display: block;
  width: min(156px, 90%);
  height: min(156px, 90%);
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.34));
}

.donate-currency-amount {
  min-height: 54px;
  color: #f3f8ff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.donate-currency-desc {
  color: #9aa7bb;
  font-size: 12.5px;
  line-height: 1.45;
}

.donate-currency-buy {
  width: 100%;
  margin-top: auto;
}

.donate-currency-policy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.donate-currency-policy .donate-preview-policy-note {
  flex-basis: 100%;
}

/* Currency purchase preview */
.donate-currency-preview-shell .donate-preview-hero {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
}

.donate-currency-preview-media {
  min-height: 300px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 211, 92, 0.19), transparent 48%),
    linear-gradient(145deg, rgba(20, 28, 39, 0.98), rgba(8, 12, 18, 0.98));
}

.donate-currency-preview-media img {
  width: min(70%, 240px);
  height: min(70%, 240px);
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(246, 194, 52, 0.34));
}

.donate-currency-preview-shell .donate-preview-title {
  color: #f3ca58;
}

.donate-currency-preview-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.donate-currency-preview-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donate-currency-preview-price strong {
  color: #f3ca58;
  font: inherit;
}

.donate-currency-preview-shell .donate-preview-site-form {
  width: min(100%, 520px);
}

@media (max-width: 760px) {
  .donate-currency-preview-shell .donate-preview-hero {
    grid-template-columns: 1fr;
  }

  .donate-currency-preview-media {
    min-height: 190px;
  }
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.donate-promo-section {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 211, 95, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 211, 95, 0.08), rgba(126, 203, 255, 0.08) 48%, rgba(248, 113, 113, 0.07)),
    rgba(14, 18, 28, 0.82);
}

.donate-promo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.donate-kicker-promos {
  border-color: rgba(255, 211, 95, 0.34);
  background: rgba(255, 211, 95, 0.1);
  color: #ffe08b;
}

.donate-promo-title {
  margin-top: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #f4f7ff;
}

.donate-promo-text {
  max-width: 430px;
  color: #aebbd0;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.donate-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.donate-card-promo {
  min-height: 100%;
  border-color: rgba(255, 211, 95, 0.18);
  background:
    linear-gradient(180deg, rgba(24, 25, 35, 0.96), rgba(12, 15, 23, 0.98));
}

.donate-grid.donate-grid-compact .donate-card-sub {
  grid-column: auto;
  order: 0;
  display: flex;
}

.donate-grid.donate-grid-compact .donate-card-sub .donate-card-media {
  aspect-ratio: 16 / 10;
  border-right: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.donate-grid.donate-grid-compact .donate-card-sub .donate-card-body {
  min-height: 252px;
  padding: 14px;
}

.donate-grid.donate-grid-compact .donate-card-sub .donate-card-title {
  font-size: 23px;
}

.donate-card {
  --donate-accent: #7ecbff;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 22, 30, 0.96), rgba(14, 16, 24, 0.96));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.donate-card[hidden],
.donate-empty[hidden] {
  display: none !important;
}

.donate-card:hover {
  transform: translateY(-3px);
  border-color: var(--donate-accent);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.donate-card:focus-visible {
  outline: 2px solid var(--donate-accent);
  outline-offset: 2px;
}

.donate-card-gojo { --donate-accent: #6db9ff; }
.donate-card-sukuna { --donate-accent: #f58484; }
.donate-card-toji { --donate-accent: #86d9a0; }
.donate-card-geto { --donate-accent: #7ad8b6; }
.donate-card-student-gojo { --donate-accent: #8ed9ff; }
.donate-card-jogo { --donate-accent: #ff9c72; }
.donate-card-nanami { --donate-accent: #f1d37a; }
.donate-card-inumaki { --donate-accent: #a9cf92; }
.donate-card-yuji { --donate-accent: #ff8585; }
.donate-card-toji-shibuya { --donate-accent: #93d2a3; }
.donate-card-todo { --donate-accent: #9d93ff; }
.donate-card-sub { --donate-accent: #f7cf7f; }
.donate-card-bundle-shinjuku { --donate-accent: #ffe08b; }
.donate-card-bundle-ending { --donate-accent: #79d7ff; }
.donate-card-bundle-shibuya { --donate-accent: #c4a7ff; }
.donate-card-bundle-summer { --donate-accent: #8ef0c4; }

.donate-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(900px 130px at -8% -100%, rgba(126, 203, 255, 0.25) 0%, transparent 60%),
    linear-gradient(160deg, rgba(8, 11, 20, 0.9), rgba(18, 25, 40, 0.8));
}

.donate-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.donate-card-media-sub img {
  object-fit: contain;
  object-position: center;
  padding: 18px;
}

.donate-bundle-media {
  display: grid;
  gap: 0;
  background:
    linear-gradient(135deg, rgba(255, 211, 95, 0.1), rgba(126, 203, 255, 0.08)),
    #070b12;
}

.donate-bundle-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.34)),
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.46));
}

.donate-bundle-media-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.donate-bundle-media-trio {
  grid-template-columns: 1.18fr 0.82fr 0.82fr;
}

.donate-bundle-media img {
  position: relative;
  z-index: 1;
  min-width: 0;
  object-fit: cover;
  object-position: center;
}

.donate-bundle-media-duo img:first-child,
.donate-bundle-media-trio img:first-child {
  object-position: 42% center;
}

.donate-bundle-media-duo img + img,
.donate-bundle-media-trio img + img {
  border-left: 1px solid rgba(255, 211, 95, 0.22);
}

.donate-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #e7efff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 12, 21, 0.68);
}

.donate-badge-type {
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.donate-badge-type-arcana {
  border-color: #ef4444aa;
  background: #3a1217cc;
  color: #fecaca;
}

.donate-badge-type-persona {
  border-color: #22c55eaa;
  background: #13311fcc;
  color: #bbf7d0;
}

.donate-badge-type-skin {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
}

.donate-badge-type-seasonal {
  border-color: #14b8a6aa;
  background: #11302ccc;
  color: #99f6e4;
}

.donate-badge-type-subscription {
  border-color: #facc15aa;
  background: #3b3112cc;
  color: #fde68a;
}

.donate-badge-type-bundle {
  border-color: #ef4444aa;
  background: #54191fcc;
  color: #ffe4e6;
}

.donate-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  min-height: 252px;
  flex: 1;
}

.donate-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--donate-accent);
}

.donate-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #9aa7bb;
}

.donate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.donate-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  color: #cfddf4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.donate-tag-rarity {
  font-weight: 700;
}

.donate-tag-rarity-arcana {
  border-color: #ef4444aa;
  background: #3a1217cc;
  color: #fecaca;
}

.donate-tag-rarity-legendary {
  border-color: #facc15aa;
  background: #3b3112cc;
  color: #fde68a;
}

.donate-tag-rarity-common {
  border-color: #94a3b8aa;
  background: #1f2937cc;
  color: #d7dee8;
}

.donate-tag-rarity-persona {
  border-color: #22c55eaa;
  background: #13311fcc;
  color: #bbf7d0;
}

.donate-tag-rarity-epic {
  border-color: #a855f7aa;
  background: #2a153acc;
  color: #e9d5ff;
}

.donate-tag-rarity-rare {
  border-color: #38bdf8aa;
  background: #112b3ecc;
  color: #bae6fd;
}

.donate-tag-rarity-seasonal {
  border-color: #14b8a6aa;
  background: #11302ccc;
  color: #99f6e4;
}

.donate-tag-rarity-subscription {
  border-color: #facc15aa;
  background: #3b3112cc;
  color: #fde68a;
}

.donate-tag-price {
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
  font-weight: 700;
}

.donate-tag-price-discount {
  gap: 7px;
  padding: 4px 9px;
}

.donate-tag-old-price {
  color: #9aa7bb;
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.9);
  text-decoration-thickness: 2px;
}

.donate-tag-new-price {
  color: #fde68a;
  font-weight: 900;
}

.donate-tag-bundle {
  border-color: rgba(121, 215, 255, 0.34);
  background: rgba(121, 215, 255, 0.11);
  color: #bdeaff;
  font-weight: 700;
}

.donate-tag-entity,
.donate-tag-meta {
  border-color: rgba(126, 203, 255, 0.24);
  background: rgba(126, 203, 255, 0.1);
  color: #d7ecff;
}

.donate-tag-entity-plus {
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
}

.donate-card-bundle .donate-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.donate-buy-price-pair,
.donate-preview-buy-price-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.14);
  white-space: nowrap;
}

.donate-buy-old-price,
.donate-preview-buy-old-price {
  color: rgba(17, 24, 39, 0.58);
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-color: rgba(127, 29, 29, 0.75);
  text-decoration-thickness: 2px;
}

.donate-buy-new-price,
.donate-preview-buy-new-price {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.donate-buy-period,
.donate-preview-buy-period {
  margin-left: -4px;
  color: rgba(17, 24, 39, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.donate-change-list {
  display: block;
  min-height: 48px;
}

.donate-change-list span {
  display: inline-block;
  vertical-align: top;
  margin: 0 6px 6px 0;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.3px;
  color: #dbe7fa;
  background: rgba(126, 203, 255, 0.12);
  border: 1px solid rgba(126, 203, 255, 0.26);
}

.donate-card-sub {
  grid-column: 1 / -1;
  order: -1;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  align-items: stretch;
}

.donate-card-sub .donate-card-media {
  aspect-ratio: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
}

.donate-card-sub .donate-card-body {
  min-height: 0;
  padding: 18px;
}

.donate-card-sub .donate-card-title {
  font-size: 28px;
}

.donate-card-sub .donate-change-list > span {
  display: inline-block !important;
  margin: 0 8px 8px 0 !important;
  white-space: nowrap !important;
  position: static !important;
  transform: none !important;
}

.plus-details {
  margin-top: 22px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(247, 207, 127, 0.22);
  background:
    radial-gradient(780px 200px at -18% -110%, rgba(247, 207, 127, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, rgba(22, 19, 14, 0.93), rgba(16, 14, 11, 0.95));
}

.plus-details-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  letter-spacing: 0.7px;
  color: #ffe5a5;
}

.plus-details-lead {
  margin-top: 8px;
  color: #c9b58a;
  font-size: 13px;
  line-height: 1.55;
  max-width: 860px;
}

.plus-benefits-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plus-benefit {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 223, 145, 0.16);
  background: rgba(28, 24, 18, 0.7);
}

.plus-benefit h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  color: #ffe7b2;
  letter-spacing: 0.4px;
}

.plus-benefit p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #d3c29d;
}

.plus-details-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #bfa87b;
}

.donate-buy-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donate-buy-btn.is-disabled {
  opacity: 0.55;
  filter: saturate(0.35);
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}

.donate-preview-overlay {
  z-index: 2100;
  align-items: center;
  padding: 18px;
}

.donate-preview-content {
  width: min(1040px, calc(100vw - 28px));
  max-width: 1040px;
  max-height: calc(100svh - 28px);
  overflow: hidden;
  border-color: rgba(126, 203, 255, 0.22);
  background:
    radial-gradient(960px 260px at -14% -90%, rgba(126, 203, 255, 0.14) 0%, transparent 62%),
    radial-gradient(760px 260px at 108% 2%, rgba(255, 184, 107, 0.08) 0%, transparent 58%),
    linear-gradient(180deg, rgba(23, 26, 37, 0.97), rgba(13, 15, 23, 0.985));
}

.donate-preview-body {
  max-height: calc(100svh - 28px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 203, 255, 0.28) rgba(255, 255, 255, 0.05);
}

.donate-preview-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 22px;
}

.donate-preview-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 203, 255, 0.28);
  background: rgba(126, 203, 255, 0.08);
  color: #d9ecff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.donate-preview-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 0;
}

.donate-preview-media {
  position: relative;
  min-height: 0;
  height: min(360px, calc(100svh - 230px));
  max-height: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(540px 160px at -10% -80%, rgba(126, 203, 255, 0.2) 0%, transparent 60%),
    linear-gradient(160deg, rgba(11, 15, 25, 0.98), rgba(18, 26, 41, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 46px rgba(0, 0, 0, 0.28);
}

.donate-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.donate-preview-main-image {
  transition: opacity 0.18s ease, transform 0.22s ease;
}

.donate-preview-main-image.is-switching {
  opacity: 0;
  transform: scale(0.985);
}

.donate-preview-media-sub img {
  object-fit: contain;
  padding: 18px;
}

.donate-preview-bundle-strip {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 11px;
  border-radius: 16px;
  border: 1px solid rgba(255, 211, 95, 0.18);
  background:
    radial-gradient(260px 100px at 15% 0%, rgba(255, 211, 95, 0.1), transparent 62%),
    rgba(255, 255, 255, 0.04);
}

.donate-preview-bundle-strip-title {
  color: #dce9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.donate-preview-bundle-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.donate-preview-bundle-icon {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.donate-preview-bundle-icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.045);
}

.donate-preview-bundle-icon.is-active {
  border-color: rgba(255, 211, 95, 0.48);
  background: rgba(255, 211, 95, 0.075);
}

.donate-preview-bundle-icon img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 20, 0.72);
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.donate-preview-bundle-icon:not(.is-active) img {
  opacity: 0.78;
  filter: saturate(0.78);
}

.donate-preview-bundle-icon.is-active img {
  opacity: 1;
  filter: saturate(1.08);
}

.donate-preview-bundle-icon span {
  overflow: hidden;
  color: #aebbd0;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donate-preview-bundle-icon.is-active span {
  color: #f1dc96;
}

.donate-preview-subscription-offers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid rgba(250, 204, 21, 0.2);
  background:
    radial-gradient(420px 120px at 8% -45%, rgba(250, 204, 21, 0.11), transparent 64%),
    rgba(255, 255, 255, 0.04);
}

.donate-preview-subscription-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}

.donate-preview-subscription-head span {
  color: #e9f1ff;
  font-size: 13px;
  font-weight: 800;
}

.donate-preview-subscription-head strong {
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
}

.donate-preview-subscription-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.donate-preview-subscription-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(74px, 1fr) auto;
  grid-template-areas:
    "badge badge"
    "months price"
    "per per";
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  min-height: 94px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 20, 0.48);
  color: #dbe7fa;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.donate-preview-subscription-option:hover,
.donate-preview-subscription-option:focus-visible,
.donate-preview-subscription-option.is-active {
  border-color: rgba(250, 204, 21, 0.72);
  background: rgba(250, 204, 21, 0.12);
  transform: translateY(-1px);
}

.donate-preview-subscription-badge {
  grid-area: badge;
  justify-self: start;
  max-width: 100%;
  min-height: 18px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(126, 203, 255, 0.12);
  color: #bdeaff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.15;
}

.donate-preview-subscription-option.is-active .donate-preview-subscription-badge {
  background: rgba(250, 204, 21, 0.18);
  color: #fde68a;
}

.donate-preview-subscription-months {
  grid-area: months;
  color: #f3f7ff;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 900;
}

.donate-preview-subscription-price {
  grid-area: price;
  display: inline-flex;
  align-items: baseline;
  justify-self: end;
  gap: 8px;
  white-space: nowrap;
}

.donate-preview-subscription-price span {
  color: #8f9db3;
  font-size: 11px;
  font-weight: 800;
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.9);
  text-decoration-thickness: 2px;
}

.donate-preview-subscription-price strong {
  color: #fde68a;
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
}

.donate-preview-subscription-per-month {
  grid-area: per;
  color: #aebbd0;
  font-size: 11px;
  font-weight: 700;
}

.donate-preview-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.donate-preview-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 0.96;
  font-weight: 700;
  color: #f3f7ff;
}

.donate-preview-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.donate-preview-price-discount {
  gap: 8px;
}

.donate-preview-old-price {
  color: #9aa7bb;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.donate-preview-new-price {
  color: #fde68a;
}

.donate-preview-desc {
  color: #9fb0c8;
  font-size: 14px;
  line-height: 1.55;
}

.donate-preview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(540px 120px at -10% -60%, rgba(126, 203, 255, 0.08) 0%, transparent 60%),
    rgba(11, 14, 22, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.donate-preview-block-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #d5e7ff;
}

.donate-preview-subblock {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.donate-preview-subtitle,
.donate-preview-interface-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #d5e7ff;
}

.donate-preview-tags,
.donate-preview-changes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.donate-preview-tag,
.donate-preview-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
}

.donate-preview-tag:not(.donate-tag),
.donate-preview-change {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #dde8fa;
}

.donate-preview-change {
  border-color: rgba(126, 203, 255, 0.24);
  background: rgba(126, 203, 255, 0.1);
  color: #d7ecff;
}

.donate-preview-ability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

.donate-preview-ability-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 9px 7px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.donate-preview-ability-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 22, 0.9);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.donate-preview-ability-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donate-preview-ability-label {
  color: #cfdcf0;
  font-size: 11px;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.donate-preview-shard-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
}

.donate-preview-shard-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #b8c9dd;
}

.donate-preview-ability-grid-shard {
  grid-template-columns: repeat(auto-fit, minmax(110px, 140px));
}

.donate-preview-ability-tile-shard {
  align-items: flex-start;
}

.donate-preview-interface {
  padding-top: 2px;
}

.donate-preview-interface-hint {
  font-size: 12px;
  line-height: 1.45;
  color: #9db0ca;
}

.donate-preview-interface-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.donate-preview-interface-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(126, 203, 255, 0.16);
  background:
    radial-gradient(220px 90px at 20% 0%, rgba(126, 203, 255, 0.13) 0%, transparent 62%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.donate-preview-interface-label {
  color: #dce9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.donate-preview-interface-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.76);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.donate-preview-interface-preview-topbar,
.donate-preview-interface-preview-topbar img {
  width: 128px;
  height: 72px;
  border-radius: 9px;
}

.donate-preview-interface-preview-topbar img {
  object-fit: contain;
}

.donate-preview-interface-preview-minimap {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.donate-preview-interface-preview-minimap img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.donate-preview-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 2px -22px -22px;
  padding: 14px 22px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(13, 15, 23, 0.78), rgba(13, 15, 23, 0.98));
  backdrop-filter: blur(14px);
}

.donate-preview-note {
  color: #91a2bb;
  font-size: 12px;
  line-height: 1.5;
}

.donate-preview-footer-dual {
  flex-direction: column;
  align-items: stretch;
}

.donate-preview-footer-dual .donate-preview-note {
  max-width: none;
}

.donate-preview-footer-dual .donate-preview-actions {
  width: 100%;
}

.donate-preview-site-form {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  gap: 12px;
  min-width: min(100%, 320px);
}

.donate-preview-policy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(420px 120px at -10% -70%, rgba(255, 107, 107, 0.09) 0%, transparent 62%),
    rgba(255, 255, 255, 0.04);
}

.donate-preview-policy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.donate-preview-policy-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e7efff;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.donate-preview-policy-input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #ff5d5d;
  flex: 0 0 auto;
}

.donate-preview-policy-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff6b6b;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 107, 0.6);
  text-underline-offset: 2px;
  cursor: pointer;
}

.donate-preview-policy-link:hover {
  color: #ff8a8a;
  text-decoration-color: currentColor;
}

.donate-preview-policy-note {
  color: #9fb0c8;
  font-size: 12px;
  line-height: 1.55;
}

.donate-preview-buy {
  min-width: 240px;
}

.donate-preview-buy-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.donate-preview-buy-discount .donate-preview-buy-price-pair {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.donate-preview-buy-discount .donate-preview-buy-old-price {
  font-size: 13px;
}

.donate-preview-buy-discount .donate-preview-buy-new-price {
  font-size: 16px;
}

.donate-preview-actions-dual {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  align-items: stretch;
  gap: 12px;
  width: min(100%, 760px);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 74, 0.24);
  background:
    radial-gradient(520px 150px at 85% -40%, rgba(255, 214, 74, 0.12) 0%, transparent 64%),
    rgba(255, 255, 255, 0.045);
}

.donate-preview-actions-dual .donate-preview-site-form,
.donate-preview-actions-dual .donate-preview-jc-panel {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.donate-preview-actions-dual .donate-preview-site-form {
  justify-content: space-between;
}

.donate-preview-actions-dual .donate-preview-policy {
  order: 2;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(8, 12, 20, 0.36);
}

.donate-preview-actions-dual .donate-preview-site-buy {
  order: 1;
}

.donate-preview-actions-dual .donate-preview-site-buy,
.donate-preview-actions-dual .donate-preview-jc-buy {
  width: 100%;
}

.donate-preview-jc-panel {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 8px;
  min-width: min(100%, 280px);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 214, 74, 0.24);
  background:
    radial-gradient(420px 120px at -10% -70%, rgba(255, 214, 74, 0.16) 0%, transparent 62%),
    rgba(255, 255, 255, 0.045);
}

.donate-preview-jc-buy {
  width: 100%;
}

.donate-preview-jc-status {
  min-height: 18px;
  color: #aebbd0;
  font-size: 12px;
  line-height: 1.45;
}

.donate-preview-jc-status.is-success {
  color: #83f0a2;
}

.donate-preview-jc-status.is-error {
  color: #ff8b8b;
}

@media (max-width: 760px) {
  .donate-preview-overlay {
    align-items: flex-start;
    padding: 10px;
  }

  .donate-preview-content,
  .donate-preview-body {
    max-height: calc(100svh - 20px);
  }

  .donate-preview-shell {
    padding: 16px;
  }

  .donate-preview-body {
    padding: 0;
  }

  .donate-preview-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .donate-preview-actions-dual {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .donate-preview-media {
    height: clamp(190px, 34svh, 280px);
  }

  .donate-preview-interface-preview-topbar {
    width: min(100%, 128px);
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .donate-preview-interface-preview-topbar img {
    width: 100%;
    height: 100%;
  }

  .donate-preview-footer {
    margin: 0 -16px -16px;
    padding: 12px 16px 14px;
  }

  .donate-preview-buy {
    width: 100%;
    min-width: 0;
  }

  .donate-preview-site-form {
    min-width: 0;
    width: 100%;
  }

  .donate-preview-site-buy,
  .donate-preview-site-test-buy {
    width: 100%;
    min-width: 0;
  }

  .donate-preview-actions {
    justify-content: stretch;
  }
}

.donate-footnote {
  margin-top: 14px;
  color: #95a5bd;
  font-size: 12px;
  line-height: 1.55;
}

.donate-empty {
  margin-top: 2px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(14, 17, 25, 0.78);
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
}

.donate-admin-test-banner {
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(109, 185, 255, 0.32);
  background:
    radial-gradient(circle at top left, rgba(109, 185, 255, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(12, 18, 28, 0.94), rgba(8, 12, 20, 0.96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.donate-admin-test-banner.is-success {
  border-color: rgba(84, 194, 116, 0.38);
  background:
    radial-gradient(circle at top left, rgba(84, 194, 116, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 28, 0.94), rgba(8, 12, 20, 0.96));
}

.donate-admin-test-banner.is-info,
.donate-admin-test-banner.is-pending {
  border-color: rgba(109, 185, 255, 0.32);
  background:
    radial-gradient(circle at top left, rgba(109, 185, 255, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(12, 18, 28, 0.94), rgba(8, 12, 20, 0.96));
}

.donate-admin-test-banner.is-error {
  border-color: rgba(255, 120, 120, 0.34);
  background:
    radial-gradient(circle at top left, rgba(255, 120, 120, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 28, 0.94), rgba(8, 12, 20, 0.96));
}

.donate-admin-test-banner-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #dce9ff;
}

.donate-admin-test-banner-text {
  margin-top: 6px;
  color: #9db0c8;
  font-size: 13px;
  line-height: 1.55;
}

.donate-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: flex-end;
}

.donate-preview-site-buy,
.donate-preview-site-test-buy {
  min-width: 240px;
}

.donate-preview-site-buy.is-loading,
.donate-preview-site-test-buy.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .header-inner {
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
  }
  .header-actions {
    margin-left: auto;
    justify-content: flex-end;
  }
  .header-plus-pill {
    min-height: 34px;
    padding: 0 10px 0 8px;
    gap: 6px;
  }
  .header-plus-pill-text {
    font-size: 11px;
    letter-spacing: 0.35px;
  }
  .lang-switch {
    height: 34px;
  }
  .lang-switch-btn {
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-right { grid-template-columns: 1fr; }
  .profile-right > .profile-section-card:first-child { grid-column: auto; }
  .profile-plus-lock-card { padding: 22px 18px; }
  .profile-plus-lock-title { font-size: 24px; }
  .profile-plus-lock-benefits { grid-template-columns: 1fr; }
  .update-dota-entity-title { font-size: 28px; }
  .donate-hero-panel { grid-template-columns: 1fr; }
  .donate-boosty-panel { grid-template-columns: 1fr; }
  .donate-currency-head { align-items: flex-start; flex-direction: column; }
  .donate-currency-note { max-width: none; }
  .donate-currency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donate-promo-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .donate-promo-text {
    max-width: none;
    text-align: left;
  }
  .donate-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .donate-preview-subscription-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .donate-toolbar {
    align-items: stretch;
  }
  .donate-toolbar-controls {
    width: 100%;
  }
  .donate-toolbar-meta {
    margin-left: 0;
  }
  .donate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donate-card-sub {
    order: 0;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .donate-card-sub .donate-card-media {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .hero-filter-nav {
    margin-left: 0;
  }
  .donate-change-list { min-height: 42px; }
  .plus-benefits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .header-actions { gap: 6px; }
  .header-jc-pill {
    height: 32px;
    padding: 0 8px 0 6px;
  }
  .header-jc-pill-icon {
    width: 18px;
    height: 18px;
  }
  .header-jc-pill-value {
    font-size: 14px;
  }
  .header-jc-pill-code {
    display: none;
  }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .sections-grid { grid-template-columns: 1fr 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .donate-hero-panel { padding: 14px; }
  .donate-boosty-panel { padding: 14px; }
  .donate-subtabs { display: grid; grid-template-columns: 1fr; width: 100%; }
  .donate-currency-panel { padding: 14px; }
  .donate-currency-grid { grid-template-columns: 1fr; }
  .donate-promo-section { padding: 12px; }
  .donate-promo-title { font-size: 27px; }
  .donate-promo-grid { grid-template-columns: 1fr; }
  .donate-preview-subscription-grid { grid-template-columns: 1fr; }
  .donate-currency-card { min-height: 0; }
  .donate-currency-art { height: 132px; }
  .donate-currency-art img {
    width: min(132px, 82%);
    height: min(132px, 82%);
  }
  .donate-currency-amount { min-height: 0; font-size: 26px; }
  .donate-toolbar {
    padding: 10px 12px;
  }
  .donate-toolbar-controls {
    gap: 8px;
  }
  .donate-toolbar-group {
    width: 100%;
    justify-content: space-between;
  }
  .donate-toolbar-select {
    min-width: 0;
    width: min(220px, 100%);
  }
  .donate-card-body { min-height: 0; }
  .donate-change-list { min-height: 0; }
  .plus-details { padding: 12px; }
  .admin-actions { width: 100%; }
  .admin-action-btn { width: 100%; }
  .admin-native-root { min-height: 320px; }
  .admin-native-app { padding: 10px; gap: 10px; }
  .admin-native-grid { grid-template-columns: 1fr; }
  .admin-native-row,
  .admin-native-row-3 { grid-template-columns: 1fr; }
  .admin-native-kv { grid-template-columns: 1fr; }
  .profile-auth-bar { flex-direction: column; align-items: stretch; }
  .profile-auth-actions { width: 100%; justify-content: stretch; }
  .profile-auth-btn { width: 100%; }
  .profile-plus-lock-card { padding: 18px 14px; }
  .profile-plus-lock-card { text-align: center; }
  .profile-plus-lock-kicker { margin: 0 auto; }
  .profile-plus-lock-title { font-size: 21px; }
  .profile-plus-lock-text { max-width: none; }
  .profile-plus-lock-benefits { text-align: left; }
  .profile-plus-lock-actions { flex-direction: column; }
  .profile-plus-lock-actions .btn-primary,
  .profile-plus-lock-actions .btn-secondary { width: 100%; }
  .hero-stats-head,
  .hero-stat-row { grid-template-columns: minmax(0, 1fr) 56px 56px; gap: 8px; }
  .hero-stat-num { font-size: 14px; }
  .filter-bar {
    width: 100%;
    gap: 6px;
  }
  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .hero-filter-nav {
    width: 100%;
    justify-content: center;
    order: 2;
  }
  .header-plus-pill {
    display: none;
  }
  .hero-filter-current {
    min-width: 0;
    flex: 1;
  }
  #page-wiki .wiki-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
  }
  #page-wiki .wiki-tabs::before,
  #page-wiki .wiki-tabs::after {
    display: none;
  }
  #page-wiki .wiki-tab {
    min-width: 0;
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
    border-color: transparent;
    transform: none;
  }
  #page-wiki .wiki-tab.active {
    border-color: var(--gold-dim);
    background: rgba(212, 160, 23, 0.14);
    box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.18);
  }
  #page-profile .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .profile-card {
    padding: 18px 14px;
  }
  .profile-section-card {
    padding: 14px 12px;
  }
  .profile-name {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .profile-name-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .profile-fav-hero {
    line-height: 1.35;
    word-break: break-word;
  }
  .profile-stats-row {
    gap: 10px;
    justify-content: space-between;
  }
  .profile-stats-row .pstat {
    min-width: 78px;
    flex: 1 1 0;
  }
  .psec-header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .mode-tabs-small {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .mtab {
    padding: 4px 8px;
    font-size: 10px;
  }
  .rating-display {
    align-items: flex-start;
    gap: 12px;
  }
  .rating-kda-line {
    line-height: 1.35;
    word-break: break-word;
  }
  .progress-label {
    line-height: 1.35;
    word-break: break-word;
  }
  .rating-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .profile-right .extra-row {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .profile-season-select {
    width: 100%;
    min-width: 0;
  }
  .profile-season-row {
    padding: 12px;
  }
  .profile-season-row-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .profile-season-row-code {
    align-self: flex-start;
  }
  .profile-season-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-season-stat {
    padding: 9px 10px;
  }
  .profile-season-stat-value {
    font-size: 18px;
  }
  .profile-right .extra-row > span:first-child {
    min-width: 0;
    flex-shrink: 1;
  }
  .profile-right .extra-row > span:last-child {
    min-width: 0;
    max-width: 100%;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .profile-right .match-history {
    flex: 1 1 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .profile-right .mh {
    width: 20px;
    height: 20px;
  }
  .profile-match-history-meta {
    width: 100%;
    text-align: left;
    margin-top: 4px;
  }
  .profile-match-history-table {
    min-width: 880px;
  }
  .profile-match-history-wrap {
    max-height: min(62vh, 560px);
  }
  .profile-match-history-table th,
  .profile-match-history-table td {
    padding: 7px 8px;
  }
  .ladder-controls {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .ladder-controls .select-styled,
  #page-stats .select-styled {
    width: 100%;
  }
  .ladder-table-wrap,
  .stats-table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
  }
  .ladder-table,
  .stats-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  .ladder-table thead,
  .stats-table thead {
    display: none;
  }
  .ladder-table tbody,
  .stats-table tbody {
    display: block;
  }
  .ladder-table tbody tr,
  .stats-table tbody tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
  }
  .ladder-table td,
  .stats-table td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .ladder-table td:last-child,
  .stats-table td:last-child {
    border-bottom: none;
  }
  .ladder-table tbody tr:not(.table-skeleton-row) td::before,
  .stats-table tbody tr:not(.table-skeleton-row) td::before {
    content: '';
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
  }
  .ladder-table tbody tr:not(.table-skeleton-row) td:nth-child(1)::before { content: 'Place'; }
  .ladder-table tbody tr:not(.table-skeleton-row) td:nth-child(2)::before { content: 'Player'; }
  .ladder-table tbody tr:not(.table-skeleton-row) td:nth-child(3)::before { content: 'Hero'; }
  .ladder-table tbody tr:not(.table-skeleton-row) td:nth-child(4)::before { content: 'Points'; }
  .ladder-table tbody tr:not(.table-skeleton-row) td:nth-child(5)::before { content: 'Rank'; }
  .ladder-table tbody tr:not(.table-skeleton-row) td:nth-child(6)::before { content: 'Games'; }
  .ladder-table tbody tr:not(.table-skeleton-row) td:nth-child(7)::before { content: 'Winrate'; }
  .ladder-table tbody tr:not(.table-skeleton-row) td:nth-child(8)::before { content: 'KDA'; }
  .stats-table tbody tr:not(.table-skeleton-row) td:nth-child(1)::before { content: 'Hero'; }
  .stats-table tbody tr:not(.table-skeleton-row) td:nth-child(2)::before { content: 'Games'; }
  .stats-table tbody tr:not(.table-skeleton-row) td:nth-child(3)::before { content: 'Winrate'; }
  .stats-table tbody tr:not(.table-skeleton-row) td:nth-child(4)::before { content: 'KDA'; }
  .stats-table tbody tr:not(.table-skeleton-row) td:nth-child(5)::before { content: 'Pickrate'; }
  .ladder-table .player-cell,
  .stats-table .hero-stat-cell,
  .ladder-table .hero-cell {
    min-width: 0;
  }
  .hero-section { height: auto; padding: 60px 0 20px; }
  .hero-survey-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
  }
  .hero-survey-action {
    align-self: flex-start;
  }
  .heroes-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .creep-camp-grid { grid-template-columns: 1fr; }
  .creep-card {
    grid-template-columns: 1fr;
  }
  .creep-portrait-wrap {
    aspect-ratio: 4/3;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .creep-portrait {
    object-fit: contain;
    object-position: center center;
  }
  .ability-tip,
  .item-ability-tip,
  .special-system-tip,
  .talent-choice-tip {
    display: block;
    position: fixed;
    top: 50svh;
    left: 50vw;
    right: auto;
    bottom: auto;
    width: min(94vw, 520px);
    max-width: 94vw;
    max-height: min(78svh, calc(100svh - 96px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -46%);
    z-index: 2600;
  }
  .ability-tip.ability-tip-dota-skill,
  .item-ability-tip.item-ability-tip-dota,
  .special-system-tip,
  .talent-choice-tip {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .talent-choice-left .talent-choice-tip,
  .talent-choice-right .talent-choice-tip {
    left: 50vw;
    right: auto;
  }
  .modal-content,
  .modal-overlay.open .modal-content {
    transform: none !important;
  }
  #heroModal.hero-modal-long.open {
    padding: 10px;
  }
  .ability-card:hover .ability-tip,
  .item-card-ability:hover .item-ability-tip,
  .special-system:hover .special-system-tip,
  .special-system:focus-within .special-system-tip,
  .special-system:focus .special-system-tip,
  .talent-choice:hover .talent-choice-tip,
  .creep-ability:hover .creep-ability-tip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .ability-card:hover .ability-tip,
  .item-card-ability:hover .item-ability-tip,
  .special-system:hover .special-system-tip,
  .special-system:focus-within .special-system-tip,
  .special-system:focus .special-system-tip,
  .talent-choice:hover .talent-choice-tip {
    transform: translate(-50%, -46%);
  }
  .ability-card:hover,
  .item-card-ability:hover {
    transform: none;
  }
  .special-system:hover .special-system-icon-wrap,
  .special-system:focus-within .special-system-icon-wrap,
  .special-system:focus .special-system-icon-wrap {
    transform: none;
  }
  .creep-ability:hover .creep-ability-tip {
    transform: translateX(-50%) translateY(6px);
  }
  .ability-tip .ability-tip-costs {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 8px;
    padding-top: 8px;
    flex-wrap: wrap;
  }
  .ability-dota-title,
  .item-dota-title,
  .special-system-tip-title,
  .talent-choice-tip-title {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  .ability-dota-desc-p,
  .item-dota-section-body,
  .item-dota-detail-v,
  .special-system-item-desc,
  .talent-choice-tip-desc {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .ability-card.tip-open .ability-tip,
  .item-card-ability.tip-open .item-ability-tip,
  .special-system.tip-open .special-system-tip,
  .talent-choice.tip-open .talent-choice-tip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%);
  }
  .creep-ability.tip-open .creep-ability-tip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .creep-ability.tip-open,
  .ability-card.tip-open,
  .item-card-ability.tip-open,
  .special-system.tip-open,
  .talent-choice.tip-open {
    z-index: 140;
  }
  .ability-card.tip-open,
  .item-card-ability.tip-open,
  .special-system.tip-open,
  .talent-choice.tip-open {
    transform: none !important;
  }
  .special-system.tip-open .special-system-icon-wrap {
    transform: none !important;
  }
  .modal-overlay { padding: 8px 8px 20px; align-items: flex-start; }
  .modal-content { max-width: 100%; }
  .modal-body { padding: 14px; }
  .modal-hero-header { gap: 12px; margin-bottom: 14px; }
  .modal-hero-icon { width: 56px; height: 56px; }
  .modal-stats { gap: 8px; }
  .modal-attr-grid { gap: 8px; }
  .modal-attr-card { padding: 8px 9px; }
  .modal-attr-card-value { font-size: 16px; }
  .modal-attr-card-value span { font-size: 11px; }
  .modal-combat-stats { padding: 10px 8px; }
  .modal-combat-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ability-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
  .ability-grid-innate { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .megumi-shikigami-list {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  }
  .megumi-shikigami-body {
    padding-left: 8px;
    grid-template-columns: repeat(2, minmax(0, 64px));
  }
  .megumi-mahoraga-grid {
    grid-template-columns: repeat(auto-fit, minmax(64px, 64px));
  }
  .talent-tree-row { grid-template-columns: 1fr; gap: 2px; }
  .talent-level { order: -1; width: 36px; height: 36px; font-size: 22px; margin-top: 8px; }
  .talent-choice-left, .talent-choice-right { text-align: left; justify-content: flex-start; }
  .talent-choice { min-height: 52px; padding: 8px 10px; }
  .special-systems-row { gap: 10px; }
  .special-system-icon-wrap { width: 42px; height: 42px; }
  .upgrade-row { flex-direction: column; }
  .update-dota-entity { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .update-dota-entity-icon { width: 52px; height: 52px; }
  .update-dota-entity-title { font-size: 22px; }
  .update-dota-entity-new-hero { grid-template-columns: 56px minmax(0, 1fr); padding: 14px 12px; gap: 10px; }
  .update-dota-entity-new-hero > .update-dota-entity-icon { width: 52px; height: 52px; }
  .update-new-hero-abilities { grid-template-columns: 1fr; }
  .update-dota-line.update-dota-line-sub { margin-left: 8px; }
}

@media (max-width: 420px) {
  #page-profile .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .profile-card {
    padding: 16px 12px;
  }
  .profile-section-card {
    padding: 12px 10px;
  }
  .profile-stats-row {
    gap: 8px;
  }
  .pstat-val {
    font-size: 18px;
  }
  .hero-stats-head,
  .hero-stat-row {
    grid-template-columns: minmax(0, 1fr) 50px 52px;
    gap: 6px;
  }
  .hero-stat-num {
    font-size: 13px;
  }
  .ladder-table td,
  .stats-table td {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 6px;
    padding: 7px 8px;
  }
}

/* ===== SITE FOOTER ===== */
.site-footer {
  margin-top: 0;
  padding: 28px 24px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

body > .site-footer {
  margin-top: auto;
}

.site-footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.site-footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
}

.site-footer-legal-line {
  font-size: 12px;
  color: #d4deed;
}

.site-footer-legal-line a {
  color: #f3f7ff;
  text-decoration: none;
}

.site-footer-legal-line a:hover {
  color: var(--gold);
}

.site-footer-legal-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
}

.site-footer-legal-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff8f8f;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.site-footer-legal-link:hover {
  color: #ff9797;
}

.site-footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
}

.legal-modal-overlay {
  z-index: 2200;
}

.legal-modal-content {
  max-width: 860px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(760px 180px at -10% -90%, rgba(126, 203, 255, 0.12) 0%, transparent 62%),
    linear-gradient(180deg, rgba(23, 26, 37, 0.98), rgba(12, 14, 22, 0.995));
}

.legal-modal-body {
  max-height: min(82vh, 880px);
  overflow-y: auto;
  padding: 26px 24px 24px;
}

.legal-policy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-policy-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-policy-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 203, 255, 0.28);
  background: rgba(126, 203, 255, 0.08);
  color: #d9ecff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.legal-policy-title {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
  color: #f3f7ff;
}

.legal-policy-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.legal-policy-meta p,
.legal-policy-section p,
.legal-policy-section li {
  margin: 0;
  color: #c8d4e8;
  font-size: 14px;
  line-height: 1.7;
}

.legal-policy-meta a,
.legal-policy-section a {
  color: #ffd56a;
  text-decoration: none;
}

.legal-policy-meta a:hover,
.legal-policy-section a:hover {
  color: #ffe299;
}

.legal-policy-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(540px 120px at -10% -60%, rgba(126, 203, 255, 0.08) 0%, transparent 60%),
    rgba(11, 14, 22, 0.78);
}

.legal-policy-section h3 {
  margin: 0;
  color: #e8f1ff;
  font-size: 16px;
  font-weight: 700;
}

.legal-policy-section ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 20px 16px 18px;
  }

  .legal-modal-body {
    padding: 22px 18px 18px;
  }
}

.legal-policy-meta-inline {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 20, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.cookie-banner__text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-banner__link {
  display: inline;
  margin-left: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: #f5cf3d;
  font: inherit;
  cursor: pointer;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  color: #ffe26a;
  text-decoration: underline;
}

.cookie-banner__accept {
  flex-shrink: 0;
  padding: 11px 18px;
  border: none;
  border-radius: 12px;
  background: #f5cf3d;
  color: #18120a;
  font: 700 14px/1 'Rajdhani', sans-serif;
  cursor: pointer;
}

.cookie-banner__accept:hover,
.cookie-banner__accept:focus-visible {
  background: #ffe26a;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner__body {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__accept {
    width: 100%;
  }
}

/* Final purchase preview overrides: keep this after the global modal mobile rules. */
.donate-preview-overlay .donate-preview-content {
  width: min(960px, calc(100vw - 28px));
  max-width: 960px;
  max-height: calc(100svh - 28px);
  overflow: hidden;
}

.donate-preview-overlay .donate-preview-body {
  max-height: calc(100svh - 28px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.donate-preview-overlay .donate-preview-interface-preview-topbar {
  width: 128px;
  height: 72px;
  border-radius: 9px;
}

.donate-preview-overlay .donate-preview-interface-preview-topbar img {
  width: 128px;
  height: 72px;
  object-fit: contain;
  border-radius: 9px;
}

.donate-preview-overlay .donate-preview-interface-preview-minimap {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.donate-preview-overlay .donate-preview-interface-preview-minimap img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .donate-preview-overlay {
    padding: 10px;
  }

  .donate-preview-overlay .donate-preview-content,
  .donate-preview-overlay .donate-preview-body {
    max-height: calc(100svh - 20px);
  }
}

/* Compact showcase template for purchase preview. */
.donate-preview-overlay {
  align-items: center;
  background:
    radial-gradient(900px 460px at 50% 8%, rgba(126, 203, 255, 0.10), transparent 62%),
    rgba(0, 0, 0, 0.84);
}

.donate-preview-overlay .donate-preview-content {
  width: min(920px, calc(100vw - 28px));
  max-width: 920px;
  border-radius: 22px;
  border-color: rgba(126, 203, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(18, 21, 31, 0.98), rgba(10, 12, 19, 0.995));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.donate-preview-overlay .donate-preview-shell {
  gap: 12px;
  padding: 18px;
}

.donate-preview-overlay .donate-preview-kicker {
  margin-bottom: 2px;
  background: rgba(126, 203, 255, 0.06);
}

.donate-preview-overlay .donate-preview-hero {
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(520px 220px at 18% 0%, rgba(126, 203, 255, 0.10), transparent 58%),
    rgba(255, 255, 255, 0.028);
}

.donate-preview-overlay .donate-preview-media {
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 10;
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(7, 10, 17, 0.96), rgba(19, 27, 41, 0.92));
}

.donate-preview-overlay .donate-preview-media img {
  object-fit: cover;
}

.donate-preview-overlay .donate-preview-media-sub img {
  object-fit: contain;
  padding: 22px;
}

.donate-preview-overlay .donate-preview-summary {
  gap: 9px;
  justify-content: center;
}

.donate-preview-overlay .donate-preview-title {
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.02em;
}

.donate-preview-overlay .donate-preview-desc {
  max-width: 54ch;
}

.donate-preview-overlay .donate-preview-panel {
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.donate-preview-overlay .donate-preview-block-title {
  display: none;
}

.donate-preview-overlay .donate-preview-ability-grid {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.donate-preview-overlay .donate-preview-ability-tile {
  padding: 8px 7px;
  background: rgba(255, 255, 255, 0.035);
}

.donate-preview-overlay .donate-preview-ability-icon {
  width: 50px;
  height: 50px;
}

.donate-preview-overlay .donate-preview-interface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, max-content));
}

.donate-preview-overlay .donate-preview-interface-card {
  padding: 9px;
}

.donate-preview-overlay .donate-preview-footer {
  margin: 0 -18px -18px;
  padding: 12px 18px 14px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-content {
  width: min(760px, calc(100vw - 28px));
  max-width: 760px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-shell {
  gap: 10px;
  padding: 16px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-kicker {
  padding: 4px 9px;
  font-size: 10px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-hero {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-visual {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-media {
  aspect-ratio: 4 / 5;
  max-height: 270px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-title {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-desc {
  font-size: 13px;
  line-height: 1.45;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-price {
  padding: 5px 10px;
  font-size: 11px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-tags,
.donate-preview-overlay.donate-preview-has-abilities .donate-preview-changes {
  gap: 6px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-tag,
.donate-preview-overlay.donate-preview-has-abilities .donate-preview-change {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 11px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-panel {
  gap: 9px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-subtitle,
.donate-preview-overlay.donate-preview-has-abilities .donate-preview-interface-title {
  font-size: 11px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-ability-grid {
  grid-template-columns: 1fr;
  gap: 7px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-ability-tile {
  flex-direction: row;
  justify-content: flex-start;
  min-height: 50px;
  padding: 7px 8px;
  gap: 8px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-ability-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-ability-label {
  font-size: 11px;
  line-height: 1.2;
  text-align: left;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-ability-grid-shard {
  grid-template-columns: 1fr;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-interface-hint {
  display: none;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-interface-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-interface-card {
  width: auto;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-interface-preview-topbar,
.donate-preview-overlay.donate-preview-has-abilities .donate-preview-interface-preview-topbar img {
  width: 96px;
  height: 54px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-interface-preview-minimap {
  width: 54px;
  height: 54px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-interface-preview-minimap img {
  width: 36px;
  height: 36px;
}

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-footer {
  margin: 0 -16px -16px;
  padding: 10px 16px 12px;
}

@media (max-width: 820px) {
  .donate-preview-overlay {
    align-items: flex-start;
  }

  .donate-preview-overlay .donate-preview-shell {
    padding: 14px;
  }

  .donate-preview-overlay .donate-preview-hero {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .donate-preview-overlay .donate-preview-media {
    aspect-ratio: 16 / 9;
  }

  .donate-preview-overlay .donate-preview-footer {
    margin: 0 -14px -14px;
    padding: 12px 14px 14px;
  }

  .donate-preview-overlay.donate-preview-has-abilities .donate-preview-content {
    width: min(620px, calc(100vw - 20px));
  }

  .donate-preview-overlay.donate-preview-has-abilities .donate-preview-shell {
    padding: 14px;
  }

  .donate-preview-overlay.donate-preview-has-abilities .donate-preview-hero {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .donate-preview-overlay.donate-preview-has-abilities .donate-preview-visual {
    gap: 9px;
  }

  .donate-preview-overlay.donate-preview-has-abilities .donate-preview-media {
    aspect-ratio: 16 / 9;
    max-height: 230px;
  }

  .donate-preview-overlay.donate-preview-has-abilities .donate-preview-ability-grid,
  .donate-preview-overlay.donate-preview-has-abilities .donate-preview-ability-grid-shard,
  .donate-preview-overlay.donate-preview-has-abilities .donate-preview-interface-grid {
    grid-template-columns: 1fr;
  }

.donate-preview-overlay.donate-preview-has-abilities .donate-preview-footer {
  margin: 0 -14px -14px;
  padding: 10px 14px 12px;
}
}

@media (max-width: 860px) {
  .profile-inventory-body {
    grid-template-columns: 1fr;
  }

  .profile-inventory-grid,
  .profile-inventory-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-inventory-detail-name {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .profile-inventory-search-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .profile-inventory-grid,
  .profile-inventory-panel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-inventory-detail-name {
    font-size: 22px;
  }
}
.profile-reward-voucher {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.profile-reward-voucher-select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 10, 16, 0.88);
  color: #f5f0e8;
  padding: 0 10px;
}

.profile-reward-voucher-claim {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #d8b45f;
  color: #17120a;
  font-weight: 700;
  cursor: pointer;
}

.profile-reward-voucher-claim:disabled,
.profile-reward-voucher-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-reward-voucher-status {
  min-height: 18px;
  color: #d8b45f;
  font-size: 13px;
}

.profile-frame-equip {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.profile-frame-equip-button {
  min-height: 38px;
  border: 1px solid rgba(221, 180, 67, 0.58);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(91, 70, 22, 0.96), rgba(57, 43, 15, 0.96));
  color: #f5d66f;
  font-weight: 750;
  cursor: pointer;
}

.profile-frame-equip-button.is-equipped {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(25, 28, 35, 0.94);
  color: #d5d7dc;
}

.profile-frame-equip-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.profile-frame-equip-status {
  min-height: 18px;
  color: #d8b45f;
  font-size: 12px;
}

.profile-frame-equip-status.is-error {
  color: #ff8b8b;
}

/* ═══ ПАРАЛЛАКС ═══ */
.hero-bg {
  top: -20%; bottom: -20%;
  inset-inline: 0;
  height: auto;
  will-change: transform;
}
.hero-content { will-change: transform; }

/* ═══ КАРТОЧКИ КАТАЛОГА — появление при скролле ═══ */
.donate-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.2s ease, box-shadow 0.2s ease;
}
.donate-card.is-visible { opacity: 1; transform: translateY(0); }

.donate-promo-section .donate-card-promo {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ КАРТОЧКИ ВАЛЮТЫ — появление при переключении таба ═══ */
.donate-currency-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.donate-currency-card.is-visible { opacity: 1; transform: translateY(0); }

/* ═══ RIPPLE ═══ */
button, .btn-primary, .btn-secondary, .donate-buy-btn, .donate-currency-buy, .donate-subtab {
  position: relative;
  overflow: hidden;
}
.jjk-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  pointer-events: none;
  transform: scale(0);
  animation: jjk-ripple-anim 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes jjk-ripple-anim { to { transform: scale(1); opacity: 0; } }

/* ═══ 3D TILT ═══ */
.donate-card, .hero-card {
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.jjk-tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

/* ═══ TOAST ═══ */
#jjkToastContainer {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.jjk-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  min-width: 240px;
  max-width: 340px;
  pointer-events: all;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.3s cubic-bezier(0.22,1,0.36,1), transform 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.jjk-toast-in  { opacity: 1; transform: translateY(0) scale(1); }
.jjk-toast-out { opacity: 0; transform: translateY(8px) scale(0.97); }
.jjk-toast-success { background: linear-gradient(135deg,#1d6e3e,#1a5c34); border:1px solid #2d9e5a40; }
.jjk-toast-error   { background: linear-gradient(135deg,#7a1a1a,#631515); border:1px solid #e2404040; }
.jjk-toast-info    { background: linear-gradient(135deg,#1a3a6e,#152f5c); border:1px solid #378add40; }
.jjk-toast-warning { background: linear-gradient(135deg,#6e4a1a,#5c3c15); border:1px solid #ef9f2740; }
.jjk-toast-icon { font-size: 16px; flex-shrink: 0; }
.jjk-toast-msg { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }

@media (max-width: 640px) {
  #jjkToastContainer {
    left: 12px;
    right: 12px;
    bottom: 14px;
  }

  .jjk-toast {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}
/* Profile loading: stable, GPU-friendly stage shown while access and data resolve. */
.profile-loading-stage {
  position: fixed;
  z-index: 85;
  inset: 50% auto auto 50%;
  width: min(430px, calc(100vw - 32px));
  padding: 30px 28px 24px;
  transform: translate3d(-50%, -50%, 0);
  text-align: center;
  border: 1px solid rgba(226, 183, 82, .28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(18, 13, 30, .96), rgba(9, 8, 17, .97));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55), 0 0 45px rgba(118, 71, 181, .16), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(16px);
}
.profile-loading-stage[hidden] { display: none !important; }
.profile-is-loading > .container { opacity: .24; filter: saturate(.65); pointer-events: none; transition: opacity .2s ease, filter .2s ease; }
.profile-loading-stage::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0, rgba(236, 195, 94, .16), transparent 48%);
}
.profile-loading-sigil { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; }
.profile-loading-core {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f4d98d;
  font: 700 27px/1 'Exo 2', sans-serif;
  background: radial-gradient(circle at 38% 32%, #50346d, #171022 68%);
  box-shadow: 0 0 30px rgba(192, 132, 255, .35), inset 0 0 18px rgba(245, 211, 124, .18);
  animation: profile-core-pulse 1.7s ease-in-out infinite;
}
.profile-loading-orbit { position: absolute; inset: 5px; border-radius: 50%; border: 1px solid transparent; will-change: transform; }
.profile-loading-orbit::after { content: ''; position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: #f0ce73; box-shadow: 0 0 12px #f0ce73; }
.profile-loading-orbit.orbit-one { border-top-color: rgba(239, 202, 105, .75); border-right-color: rgba(239, 202, 105, .18); animation: profile-orbit 1.35s linear infinite; }
.profile-loading-orbit.orbit-two { inset: 12px; border-bottom-color: rgba(173, 111, 236, .7); border-left-color: rgba(173, 111, 236, .16); animation: profile-orbit 1.8s linear infinite reverse; }
.profile-loading-copy strong { display: block; color: #f7e6b1; font: 700 21px/1.25 'Exo 2', sans-serif; letter-spacing: .02em; }
.profile-loading-copy span { display: block; margin-top: 7px; color: rgba(235, 228, 244, .7); font-size: 14px; }
.profile-loading-line { height: 3px; margin-top: 21px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.profile-loading-line span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #c998ff, #f0d178, transparent); animation: profile-shimmer 1.25s ease-in-out infinite; will-change: transform; }
@keyframes profile-orbit { to { transform: rotate(360deg); } }
@keyframes profile-core-pulse { 50% { transform: scale(.94); filter: brightness(1.18); } }
@keyframes profile-shimmer { from { transform: translate3d(-110%, 0, 0); } to { transform: translate3d(340%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .profile-loading-core, .profile-loading-orbit, .profile-loading-line span { animation: none !important; }
}
[data-admin-only="1"][hidden] {
  display: none !important;
}

/* Rating V2 rules */
.ladder-rating-rules-link,
.rating-rules-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(245, 194, 66, .38);
  border-radius: 7px;
  color: #f4ca57;
  background: rgba(245, 194, 66, .07);
  font: 700 12px/1 var(--font-main);
  letter-spacing: .03em;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.ladder-rating-rules-link:hover,
.rating-rules-back:hover {
  border-color: rgba(245, 194, 66, .8);
  background: rgba(245, 194, 66, .12);
}

.ladder-rating-rules-link {
  min-height: 34px;
  padding: 0 11px;
  gap: 7px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: .015em;
}

.ladder-rating-rules-link-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
}

.rating-rules-page {
  --rr-gold: #f3c84f;
  --rr-green: #42dea0;
  --rr-red: #ff6269;
  --rr-panel: rgba(13, 17, 24, .92);
  --rr-border: rgba(180, 191, 213, .14);
}

.rating-rules-container {
  max-width: 1160px;
  padding-bottom: 72px;
}

.rating-rules-header {
  position: relative;
  padding: 24px 0 30px;
  border-bottom: 1px solid rgba(243, 200, 79, .25);
}

.rating-rules-back {
  margin-bottom: 28px;
}

.rating-rules-version {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--rr-gold);
  font: 800 11px/1 var(--font-main);
  letter-spacing: .16em;
}

.rating-rules-version strong {
  padding: 4px 7px;
  border: 1px solid rgba(69, 178, 255, .48);
  color: #7bcaff;
  font-size: 9px;
  letter-spacing: .1em;
}

.rating-rules-header h1 {
  margin: 0;
  color: #f6f7fa;
  font: 800 clamp(30px, 4vw, 48px)/1.08 var(--font-main);
}

.rating-rules-header > p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #aeb6c4;
  font-size: 16px;
  line-height: 1.55;
}

.rating-rules-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
  margin: 24px 0;
}

.rating-rule-step {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--rr-border);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(243, 200, 79, .07), rgba(12, 17, 25, .9) 55%);
}

.rating-rule-step-number {
  color: rgba(243, 200, 79, .34);
  font: 800 25px/1 var(--font-display, var(--font-main));
}

.rating-rule-step strong {
  display: block;
  margin-bottom: 5px;
  color: #f3f5f8;
  font-size: 14px;
}

.rating-rule-step p {
  margin: 0;
  color: #8e98a8;
  font-size: 12px;
  line-height: 1.4;
}

.rating-rule-flow-arrow {
  align-self: center;
  color: rgba(243, 200, 79, .5);
  font-size: 28px;
}

.rating-rules-section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--rr-border);
  border-radius: 10px;
  background: var(--rr-panel);
}

.rating-rules-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.rating-rules-section-heading.compact {
  margin-bottom: 12px;
}

.rating-rules-section-heading span,
.rating-season-minimums > span {
  display: block;
  margin-bottom: 6px;
  color: var(--rr-gold);
  font: 800 10px/1 var(--font-main);
  letter-spacing: .15em;
}

.rating-rules-section h2,
.rating-season-minimums h2 {
  margin: 0;
  color: #edf0f5;
  font-size: 21px;
  line-height: 1.2;
}

.rating-rules-section-heading > p {
  max-width: 475px;
  margin: 0;
  color: #8791a1;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.rating-rules-mode-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}

.rating-mode-card {
  padding: 17px;
  border: 1px solid rgba(180, 191, 213, .12);
  border-radius: 8px;
  background: rgba(5, 9, 15, .48);
}

.rating-mode-card-primary {
  border-color: rgba(243, 200, 79, .27);
}

.rating-mode-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rating-mode-card header strong {
  color: var(--rr-gold);
  font-size: 17px;
}

.rating-mode-card header span,
.rating-mode-card > p {
  color: #7e8999;
  font-size: 11px;
}

.rating-place-scale {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.rating-place-scale > div {
  display: grid;
  place-items: center;
  min-height: 56px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .025);
}

.rating-place-scale span {
  color: #717c8c;
  font-size: 10px;
}

.rating-place-scale strong,
.rating-compact-scale span,
.rating-duel-scale b {
  font-size: 14px;
}

.is-positive strong,
.rating-compact-scale .is-positive,
.rating-duel-scale .is-positive b {
  color: var(--rr-green);
}

.is-negative strong,
.rating-compact-scale .is-negative,
.rating-duel-scale .is-negative b {
  color: var(--rr-red);
}

.rating-compact-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.rating-compact-scale span,
.rating-duel-scale span {
  padding: 12px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .025);
  text-align: center;
  font-weight: 800;
}

.rating-mode-card > p {
  margin: 13px 0 0;
  line-height: 1.4;
}

.rating-duel-scale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.rating-duel-scale span {
  display: grid;
  gap: 4px;
  color: #a8b0be;
  font-size: 11px;
}

.rating-duel-scale i {
  color: #a8b0be;
  font-style: normal;
}

.rating-rank-road {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 16px 0 3px;
}

.rating-rank-road::before,
.rating-rank-progress {
  content: '';
  position: absolute;
  top: 45px;
  right: 9%;
  left: 9%;
  height: 2px;
  background: rgba(180, 191, 213, .17);
}

.rating-rank-progress {
  right: 50%;
  z-index: 1;
  background: linear-gradient(90deg, #826a25, var(--rr-gold));
  box-shadow: 0 0 12px rgba(243, 200, 79, .3);
}

.rating-rank-node {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 7px;
  color: #8993a2;
}

.rating-rank-node img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: saturate(.72) brightness(.88);
}

.rating-rank-node.is-start img,
.rating-rank-node.is-s img {
  filter: drop-shadow(0 0 9px rgba(243, 200, 79, .28));
}

.rating-rank-node strong {
  color: #edf0f5;
  font-size: 13px;
}

.rating-rank-node small {
  position: absolute;
  top: -16px;
  color: var(--rr-gold);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rating-rules-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

.rating-favorite-card > p {
  margin: 0 0 17px;
  color: #a7b0bf;
  font-size: 13px;
  line-height: 1.5;
}

.rating-example {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1.55fr;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(243, 200, 79, .18);
  border-radius: 7px;
  background: rgba(243, 200, 79, .035);
}

.rating-example > div:not(.rating-example-results) {
  display: grid;
  gap: 3px;
}

.rating-example > div > span,
.rating-favorite-card > small {
  color: #778292;
  font-size: 10px;
}

.rating-example > div > strong {
  color: #f1f3f6;
  font-size: 16px;
}

.rating-example > span {
  color: #636e7e;
  font-size: 10px;
  text-transform: uppercase;
}

.rating-example-results {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.rating-example-results span {
  display: grid;
  gap: 3px;
  min-width: 42px;
  padding: 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .035);
  color: #707b8b;
  text-align: center;
  font-size: 9px;
}

.rating-example-results b {
  font-size: 12px;
}

.rating-example-results span:nth-child(1) b { color: var(--rr-green); }
.rating-example-results span:nth-child(2) b { color: #9aa3b1; }
.rating-example-results span:nth-child(3) b { color: var(--rr-red); }

.rating-favorite-card > small {
  display: block;
  margin-top: 10px;
  line-height: 1.4;
}

.rating-double-card {
  position: relative;
  overflow: hidden;
}

.rating-double-value {
  position: absolute;
  top: 15px;
  right: 21px;
  color: rgba(243, 200, 79, .16);
  font: 900 56px/1 var(--font-display, var(--font-main));
}

.rating-double-subscription {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 9px 11px;
  border: 1px solid rgba(243, 200, 79, .24);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(243, 200, 79, .10), rgba(243, 200, 79, .025));
}

.rating-double-subscription img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.rating-double-subscription div {
  display: grid;
  gap: 2px;
}

.rating-double-subscription strong {
  color: var(--rr-gold);
  font-size: 13px;
}

.rating-double-subscription span {
  color: #9ca6b5;
  font-size: 10px;
  line-height: 1.35;
}

.rating-double-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rating-double-card li {
  position: relative;
  padding-left: 18px;
  color: #a7b0bf;
  font-size: 12px;
  line-height: 1.45;
}

.rating-double-card li::before {
  content: '';
  position: absolute;
  top: .48em;
  left: 0;
  width: 6px;
  height: 6px;
  border: 1px solid var(--rr-gold);
  transform: rotate(45deg);
}

.rating-rules-footer-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
}

.rating-season-minimums > div {
  display: flex;
  gap: 8px;
  margin: 16px 0 11px;
}

.rating-season-minimums > div strong {
  padding: 9px 11px;
  border: 1px solid rgba(243, 200, 79, .18);
  border-radius: 5px;
  color: #8993a2;
  font-size: 11px;
}

.rating-season-minimums > div b {
  margin-left: 6px;
  color: var(--rr-gold);
  font-size: 14px;
}

.rating-season-minimums p {
  margin: 0;
  color: #7c8796;
  font-size: 11px;
}

.rating-formula-details {
  align-self: center;
  border: 1px solid rgba(180, 191, 213, .13);
  border-radius: 7px;
  background: rgba(5, 9, 15, .42);
}

.rating-formula-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px;
  color: #d9dee7;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.rating-formula-details summary::-webkit-details-marker { display: none; }
.rating-formula-details summary b { color: var(--rr-gold); font-size: 18px; }
.rating-formula-details[open] summary b { transform: rotate(45deg); }

.rating-formula-body {
  padding: 0 17px 17px;
  border-top: 1px solid rgba(180, 191, 213, .1);
}

.rating-formula-body code {
  display: block;
  margin: 15px 0 11px;
  color: var(--rr-gold);
  font-size: 12px;
  white-space: normal;
}

.rating-formula-body p {
  margin: 8px 0 0;
  color: #8993a2;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .rating-rules-flow { grid-template-columns: 1fr; }
  .rating-rule-flow-arrow { display: none; }
  .rating-rules-mode-grid,
  .rating-rules-split,
  .rating-rules-footer-grid { grid-template-columns: 1fr; }
  .rating-rules-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .rating-rules-section-heading > p { text-align: left; }
}

@media (max-width: 600px) {
  #page-ladder .page-header { align-items: stretch; }
  #page-ladder .ladder-controls { flex-wrap: wrap; }
  .ladder-rating-rules-link { width: 100%; }
  .rating-rules-section { padding: 17px; }
  .rating-place-scale { grid-template-columns: repeat(3, 1fr); }
  .rating-rank-node img { width: 48px; height: 48px; }
  .rating-rank-road::before,
  .rating-rank-progress { top: 39px; }
  .rating-rank-node strong { font-size: 11px; }
  .rating-example { grid-template-columns: 1fr auto 1fr; }
  .rating-example-results { grid-column: 1 / -1; justify-content: stretch; }
  .rating-example-results span { flex: 1; }
}
