:root {
  --bg: #070a14;
  --bg-2: #0b0f1c;
  --bg-3: #111829;
  --panel: rgba(12, 17, 32, 0.82);
  --panel-solid: #0d1324;
  --panel-hi: rgba(22, 30, 54, 0.9);
  --line: rgba(201, 163, 90, 0.2);
  --line-strong: rgba(233, 197, 124, 0.45);
  --gold: #e9c57c;
  --gold-2: #c9a35a;
  --gold-hi: #f6dfa2;
  --gold-deep: #8a6a2f;
  --violet: #8d5cf6;
  --violet-2: #5b34b8;
  --amethyst: #b18cff;
  --text: #ebe6da;
  --muted: #98a1b6;
  --muted-2: #6c7488;
  --good: #4fd19a;
  --bad: #ef5b5b;
  --live: #ff4d6d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --display: "Cormorant SC", "Times New Roman", serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(141, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 30%, rgba(233, 197, 124, 0.06), transparent 60%),
    radial-gradient(800px 600px at 0% 80%, rgba(91, 52, 184, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(7, 10, 20, 0.55), rgba(7, 10, 20, 0.95) 70%),
    url("/img/backdrop.jpg") center top / cover no-repeat,
    var(--bg);
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-hi); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
::selection { background: rgba(233, 197, 124, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.gold-text {
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold) 45%, var(--gold-2) 70%, #a37a35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(7, 10, 20, 0.96), rgba(9, 13, 26, 0.86));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2) 20%, var(--gold-hi) 50%, var(--gold-2) 80%, transparent);
  opacity: 0.6;
}
.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 2px 10px rgba(233, 197, 124, 0.35)); transition: transform 0.4s; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand span {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff3cf, var(--gold) 55%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.brand em { font-style: normal; background: linear-gradient(180deg, #e7dbff, var(--amethyst)); -webkit-background-clip: text; background-clip: text; }

.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--text);
  font: 600 14px var(--body);
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-group.open > .nav-link { background: rgba(233, 197, 124, 0.08); color: var(--gold-hi); }
.nav-link.active, .nav-group.active > .nav-link { color: var(--gold); }
.nav-link.active::after, .nav-group.active > .nav-link::after { content: ""; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; transition: transform 0.2s; }
.nav-group { position: relative; }
.nav-group.open .caret { transform: rotate(225deg) translateY(-1px); }
.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 22, 42, 0.98), rgba(10, 14, 28, 0.98));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 60;
}
.nav-menu.right { left: auto; right: 0; }
.nav-group.open > .nav-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1101px) {
  .nav-group:hover > .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-group:hover > .nav-link { background: rgba(233, 197, 124, 0.08); color: var(--gold-hi); }
}
.nav-menu a, .nav-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.nav-menu a b { display: block; font-weight: 600; font-size: 14px; }
.nav-menu a span { display: block; font-size: 12px; color: var(--muted); }
.nav-menu a:hover, .nav-menu button:hover, .nav-menu a.active { background: linear-gradient(90deg, rgba(233, 197, 124, 0.14), rgba(141, 92, 246, 0.08)); color: var(--gold-hi); }
.nav-menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.nav-menu form button { color: var(--muted); }

.user-box { flex-shrink: 0; margin-left: auto; }
.steam-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #1a1306;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-2));
  box-shadow: 0 4px 18px rgba(233, 197, 124, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s, box-shadow 0.2s;
}
.steam-login:hover { color: #1a1306; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(233, 197, 124, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.steam-login svg { width: 18px; height: 18px; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(233, 197, 124, 0.06);
  color: var(--text);
  font: 600 14px var(--body);
  cursor: pointer;
}
.user-chip img, .user-chip .avatar-blank { width: 30px; height: 30px; border-radius: 50%; }
.user-chip > span:not(.caret):not(.avatar-blank) { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: rgba(233, 197, 124, 0.05); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--gold); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- каркас ---------- */

main { flex: 1; width: 100%; min-width: 0; max-width: 1280px; margin: 0 auto; padding: 34px 24px 70px; }
main.wide { max-width: 1440px; }

.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(7, 10, 20, 0.6), #05070e); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand b { display: block; font-family: var(--display); font-size: 20px; color: var(--gold); }
.footer-brand span { font-size: 12px; color: var(--muted-2); }
.footer-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }

.page-head { text-align: center; margin: 4px auto 34px; max-width: 820px; animation: rise 0.6s ease both; }
.page-head-ornament { width: min(420px, 80%); height: auto; display: block; margin: 0 auto 12px; filter: drop-shadow(0 4px 18px rgba(233, 197, 124, 0.25)); }
.page-head h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 10px;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold) 50%, var(--gold-2) 80%, #9a7231 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(233, 197, 124, 0.12);
}
.page-head .lead { color: var(--muted); font-size: 16px; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.24em; font-size: 12px; font-weight: 700; color: var(--amethyst); margin: 0 0 8px; }

.section { margin: 0 0 40px; animation: rise 0.6s ease both; }
.section-title { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.section-title h2 { margin: 0; font-size: 30px; color: var(--gold); white-space: nowrap; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.section-title .more { order: 3; font-size: 14px; font-weight: 600; white-space: nowrap; }
.section-title small { color: var(--muted); font-size: 14px; font-family: var(--body); }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.auto-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 24, 44, 0.86), rgba(10, 14, 28, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.card.hover { transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.card.hover:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(233, 197, 124, 0.08); }
.card h3 { font-size: 22px; color: var(--gold); }
.card.pad-lg { padding: 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* имперская рамка с золотыми уголками */
.imperial-frame { position: relative; padding: 26px; border-radius: 6px; background: linear-gradient(180deg, rgba(14, 20, 38, 0.92), rgba(8, 11, 22, 0.94)); border: 1px solid rgba(233, 197, 124, 0.32); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(141, 92, 246, 0.08), var(--shadow); }
.imperial-frame .c { position: absolute; width: 58px; height: 57px; background-size: contain; background-repeat: no-repeat; pointer-events: none; z-index: 2; }
.imperial-frame .tl { top: -9px; left: -9px; background-image: url("/img/corner_tl.webp"); }
.imperial-frame .tr { top: -9px; right: -9px; background-image: url("/img/corner_tr.webp"); }
.imperial-frame .bl { bottom: -9px; left: -9px; background-image: url("/img/corner_bl.webp"); }
.imperial-frame .br { bottom: -9px; right: -9px; background-image: url("/img/corner_br.webp"); }

/* ---------- кнопки, формы ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 15px var(--body);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  text-align: center;
}
.button.gold { color: #1b1406; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-2)); box-shadow: 0 6px 26px rgba(233, 197, 124, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.button.gold:hover { color: #1b1406; transform: translateY(-2px); box-shadow: 0 10px 34px rgba(233, 197, 124, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.button.ghost { color: var(--gold-hi); border-color: var(--line-strong); background: rgba(233, 197, 124, 0.05); }
.button.ghost:hover { background: rgba(233, 197, 124, 0.12); border-color: var(--gold); }
.button.violet { color: #fff; background: linear-gradient(180deg, #a77bff, var(--violet) 55%, var(--violet-2)); box-shadow: 0 6px 24px rgba(141, 92, 246, 0.35); }
.button.violet:hover { color: #fff; transform: translateY(-2px); }
.button.small { padding: 8px 14px; font-size: 13px; }
.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

input[type="text"], input[type="search"], input[type="url"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(233, 197, 124, 0.2);
  background: rgba(5, 8, 16, 0.75);
  color: var(--text);
  font: 15px var(--body);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 197, 124, 0.15); background: rgba(5, 8, 16, 0.95); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
label.field { display: block; margin-bottom: 16px; }
label.field > span { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--gold); }
label.field > small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin: 0 0 14px; display: none; }
.form-note.show { display: block; }
.form-note.ok { background: rgba(79, 209, 154, 0.1); border: 1px solid rgba(79, 209, 154, 0.35); color: #b8f3d8; }
.form-note.err { background: rgba(239, 91, 91, 0.1); border: 1px solid rgba(239, 91, 91, 0.35); color: #ffc9c9; }

.search-bar { display: flex; gap: 10px; align-items: stretch; }
.search-bar input { flex: 1; padding-left: 44px; background: rgba(5, 8, 16, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a35a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center / 20px no-repeat; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.02); transition: all 0.2s; }
.chip:hover { color: var(--gold-hi); border-color: var(--line-strong); }
.chip.active { color: #1b1406; border-color: transparent; background: linear-gradient(180deg, var(--gold-hi), var(--gold-2)); }
.filters { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin: 0 0 22px; }
.filters .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); margin-right: 4px; }
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(5, 8, 16, 0.6); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; margin: 0 0 22px; }
.tabs a { padding: 9px 18px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tabs a:hover { color: var(--gold-hi); }
.tabs a.active { color: #1b1406; background: linear-gradient(180deg, var(--gold-hi), var(--gold-2)); box-shadow: 0 4px 16px rgba(233, 197, 124, 0.25); }

/* ---------- главная ---------- */

.hero {
  position: relative;
  margin: -34px calc(50% - 50vw) 40px;
  grid-template-columns: minmax(0, 1fr);
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-art { position: absolute; inset: 0; z-index: -2; background: url("/img/hero_art.jpg") 62% 78% / cover no-repeat; transform: scale(1.04); animation: heroZoom 26s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(7, 10, 20, 0.45), rgba(7, 10, 20, 0.9) 75%), linear-gradient(180deg, rgba(7, 10, 20, 0.75) 0%, rgba(7, 10, 20, 0.25) 35%, rgba(7, 10, 20, 0.4) 70%, var(--bg) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 40%, rgba(141, 92, 246, 0.25), transparent 45%); mix-blend-mode: screen; animation: breathe 6s ease-in-out infinite; }
.hero-inner { text-align: center; padding: 70px 24px 110px; max-width: 920px; width: 100%; min-width: 0; }
.hero-crest { width: 130px; height: auto; filter: drop-shadow(0 8px 30px rgba(233, 197, 124, 0.45)); animation: float 6s ease-in-out infinite; }
.hero h1 {
  font-size: clamp(38px, 8vw, 96px);
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
  line-height: 1;
  background: linear-gradient(100deg, #b98a3e 0%, #fff4d0 25%, var(--gold) 45%, #fff6dc 55%, var(--gold-2) 75%, #b98a3e 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.7));
}
.hero .tagline { font-size: clamp(16px, 2vw, 20px); color: #d8d2c4; max-width: 680px; margin: 0 auto 26px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-search { margin: 26px auto 0; max-width: 560px; }

.live-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: -86px 0 44px; position: relative; z-index: 3; }
.live-card {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 25, 46, 0.9), rgba(10, 14, 28, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 0.25s, border-color 0.25s;
}
.live-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.live-card b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--gold-hi); }
.live-card span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.live-card.is-live b { color: #ffd5dd; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7); animation: pulse 1.6s infinite; margin-right: 8px; vertical-align: middle; }

/* герои дня */
.champions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.champion { text-align: center; padding: 34px 22px 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform 0.3s; }
.champion:hover { transform: translateY(-4px); }
.champion .ribbon-title { position: relative; display: inline-block; padding: 9px 28px; margin: -54px 0 14px; font-family: var(--display); font-size: 18px; font-weight: 700; color: #1b1406; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-2)); border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); letter-spacing: 0.04em; }
.champion.actor .ribbon-title { color: #fff; background: linear-gradient(180deg, #b48dff, var(--violet) 55%, var(--violet-2)); }
.champion .wreath { position: relative; width: 150px; height: 120px; display: grid; place-items: center; margin-bottom: 6px; }
.champion .wreath::before { content: ""; position: absolute; inset: 0; background: url("/img/wreath.webp") center bottom / contain no-repeat; opacity: 0.9; }
.champion .avatar, .champion .avatar-blank { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.5), 0 0 30px rgba(233, 197, 124, 0.35); font-size: 36px; position: relative; z-index: 1; }
.champion.actor .avatar, .champion.actor .avatar-blank { border-color: var(--amethyst); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.5), 0 0 30px rgba(141, 92, 246, 0.5); }
.champion .name { font-size: 20px; font-weight: 800; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.champion .value { font-family: var(--display); font-size: 34px; line-height: 1; margin-top: 4px; }
.champion .value-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.champion.empty .name { color: var(--muted); font-weight: 600; font-size: 15px; white-space: normal; }

/* ---------- таблицы ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(8, 11, 22, 0.78); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; padding: 13px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-2); background: linear-gradient(180deg, rgba(233, 197, 124, 0.08), rgba(233, 197, 124, 0.02)); border-bottom: 1px solid var(--line-strong); white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
table.t tbody tr { transition: background 0.15s; }
table.t tbody tr:hover { background: linear-gradient(90deg, rgba(233, 197, 124, 0.07), rgba(141, 92, 246, 0.04)); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t td.rank { width: 44px; color: var(--muted-2); font-weight: 700; font-variant-numeric: tabular-nums; }
table.t tr.top-1 td.rank { color: var(--gold-hi); }
table.t tr.top-2 td.rank { color: #d9dde6; }
table.t tr.top-3 td.rank { color: #e0a36b; }
tr.click-row { cursor: pointer; }

.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who .avatar, .who .avatar-blank { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.who-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.player-name { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; display: inline-block; vertical-align: bottom; }
a.player-name:hover { color: var(--gold-hi); }
.player-name.bot { color: var(--muted); font-weight: 500; font-style: italic; }

.avatar { object-fit: cover; background: var(--bg-3); }
.avatar-blank { display: inline-grid; place-items: center; background: radial-gradient(circle at 30% 30%, #3a2a66, #151a30); color: var(--gold); font-weight: 800; font-family: var(--display); }

.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; color: var(--gold-hi); background: rgba(233, 197, 124, 0.1); border: 1px solid rgba(233, 197, 124, 0.25); }
.tag-top { color: #1b1406; background: linear-gradient(180deg, var(--gold-hi), var(--gold-2)); border-color: transparent; }
.tag-wanted { color: #ffd2d2; background: rgba(239, 91, 91, 0.15); border-color: rgba(239, 91, 91, 0.4); }
.tag-black { color: #fff; background: #3a0f16; border-color: #a12a3a; }

.status-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; color: #fff; background: #3a4258; letter-spacing: 0.03em; white-space: nowrap; }
.status-streamer { background: linear-gradient(180deg, #a77bff, #7745e6); }
.status-admin { background: linear-gradient(180deg, #ef6b6b, #b33232); }
.status-tester { background: linear-gradient(180deg, #43c28a, #23845a); }
.status-ic { background: linear-gradient(180deg, #e0b14f, #a7791f); color: #1b1406; }
.status-icla { background: linear-gradient(180deg, #5b98f0, #2d63bd); }
.status-icd { background: linear-gradient(180deg, #9a7cf0, #5f43bb); }
.sub-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: #f8e3a9; }
.sub-badge::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff5cf, var(--gold) 50%, #9a7231); box-shadow: 0 0 8px rgba(233, 197, 124, 0.6); }
.dash { color: var(--muted-2); }

.division { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.division img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.division.small img { width: 24px; height: 24px; }
.division b { font-weight: 700; font-size: 13px; }

.wl { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl .w { color: var(--good); font-weight: 700; }
.wl .l { color: var(--bad); font-weight: 700; }
.delta.up { color: var(--good); font-weight: 800; }
.delta.down { color: var(--bad); font-weight: 800; }

/* ---------- топы ---------- */

.top-list { display: flex; flex-direction: column; gap: 2px; }
.top-row { display: grid; grid-template-columns: 30px 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; transition: background 0.15s; }
.top-row:hover { background: rgba(233, 197, 124, 0.06); }
.top-row .pos { font-weight: 800; color: var(--muted-2); text-align: center; font-variant-numeric: tabular-nums; }
.top-row:nth-child(1) .pos { color: var(--gold-hi); }
.top-row:nth-child(2) .pos { color: #d9dde6; }
.top-row:nth-child(3) .pos { color: #e0a36b; }
.top-row .label { min-width: 0; }
.top-row .label b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-row .figure { text-align: right; font-variant-numeric: tabular-nums; }
.top-row .figure b { display: block; font-size: 17px; color: var(--gold-hi); }
.top-row .figure span { font-size: 12px; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold-2), var(--gold-hi)); box-shadow: 0 0 10px rgba(233, 197, 124, 0.4); transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar.ban i { background: linear-gradient(90deg, #8f2c3a, #ef5b5b); box-shadow: 0 0 10px rgba(239, 91, 91, 0.35); }
.bar.violet i { background: linear-gradient(90deg, var(--violet-2), var(--amethyst)); box-shadow: 0 0 10px rgba(141, 92, 246, 0.4); }

.hero-img { width: 48px; height: 27px; border-radius: 5px; object-fit: cover; background: var(--bg-3); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.hero-img.lg { width: 96px; height: 54px; border-radius: 8px; }
.hero-img.empty { display: inline-block; }
.ability-img, .item-img { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; background: var(--bg-3); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.item-img { width: 48px; height: 36px; border-radius: 6px; }
.icon-sm { width: 30px !important; height: 30px !important; }
.item-img.icon-sm { width: 36px !important; height: 27px !important; }
.icon-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.neutral-ring { outline: 2px solid rgba(141, 92, 246, 0.7); outline-offset: 1px; }

.mini-heroes { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-heroes .hero-img { width: 40px; height: 22px; }

/* ---------- профиль игрока ---------- */

.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-bottom: 30px; }
.profile-avatar { position: relative; }
.profile-avatar .avatar, .profile-avatar .avatar-blank { width: 140px; height: 140px; border-radius: 20px; border: 3px solid var(--gold); box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.5), 0 0 40px rgba(233, 197, 124, 0.3); font-size: 56px; }
.profile-avatar .top-badge { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 999px; color: #1b1406; background: linear-gradient(180deg, var(--gold-hi), var(--gold-2)); white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
.profile-name { font-family: var(--display); font-size: clamp(32px, 4.4vw, 50px); margin: 0 0 8px; color: var(--text); overflow-wrap: anywhere; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--muted); font-size: 14px; }
.profile-rating { text-align: center; padding: 18px 26px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 0%, rgba(233, 197, 124, 0.14), rgba(10, 14, 28, 0.9) 70%); }
.profile-rating .division img { width: 76px; height: 76px; }
.profile-rating > b { display: block; font-family: var(--display); font-size: 44px; line-height: 1; color: var(--gold-hi); margin-top: 6px; }
.profile-rating .division { flex-direction: column; gap: 4px; }
.profile-rating .division b { font-size: 14px; color: var(--text); letter-spacing: 0.06em; }
.profile-rating span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-bottom: 30px; }
.tile b.word { font-family: var(--body); font-size: 15px; font-weight: 800; line-height: 1.3; padding: 7px 0 6px; overflow-wrap: anywhere; }
.tile { padding: 16px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(17, 24, 44, 0.85), rgba(10, 14, 28, 0.9)); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tile b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.05; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.tile span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.tile small { display: block; color: var(--muted-2); font-size: 12px; margin-top: 2px; }
.tile.rep-good b { color: var(--good); }
.tile.rep-bad b { color: var(--bad); }
.tile.actor b { color: var(--amethyst); }

.fav-list { display: flex; flex-direction: column; gap: 10px; }
.fav { display: flex; align-items: center; gap: 12px; }
.fav .info { flex: 1; min-width: 0; }
.fav .info b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav .info span { font-size: 12px; color: var(--muted); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(233, 197, 124, 0.05); border: 1px solid var(--line); }
.ach .medal { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: #1b1406; background: radial-gradient(circle at 35% 30%, #fff5cf, var(--gold) 50%, #8a6a2f); box-shadow: 0 0 14px rgba(233, 197, 124, 0.35); }
.ach.locked { opacity: 0.45; filter: grayscale(0.8); }
.ach b { display: block; font-size: 14px; }
.ach span { font-size: 12px; color: var(--muted); }

/* ---------- матчи ---------- */

.match-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.match-state.live { color: #ffb3c1; }
.match-state.finished { color: var(--good); }
.match-state.abandoned { color: var(--muted); }
.mode-badge { display: inline-block; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(141, 92, 246, 0.18); border: 1px solid rgba(141, 92, 246, 0.4); color: #ddd0ff; letter-spacing: 0.04em; }
.match-no { font-family: var(--display); font-size: 18px; color: var(--gold); font-weight: 700; }
.winner { display: inline-flex; align-items: center; gap: 8px; }
.place { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 900; font-size: 14px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.place.p1 { color: #1b1406; background: radial-gradient(circle at 35% 30%, #fff5cf, var(--gold) 55%, #8a6a2f); box-shadow: 0 0 14px rgba(233, 197, 124, 0.45); }
.place.p2 { color: #1b1d24; background: radial-gradient(circle at 35% 30%, #fff, #c6ccd8 55%, #7c8494); }
.place.p3 { color: #2a1607; background: radial-gradient(circle at 35% 30%, #ffd9b0, #d38d4f 55%, #7e4a1e); }
.match-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; }
.bans { display: flex; flex-wrap: wrap; gap: 8px; }
.ban { position: relative; }
.ban img { filter: grayscale(0.6) brightness(0.8); }
.ban::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(135deg, transparent 46%, rgba(239, 91, 91, 0.9) 47%, rgba(239, 91, 91, 0.9) 53%, transparent 54%); pointer-events: none; }

/* ---------- контент ---------- */

.prose { font-size: 16px; line-height: 1.75; color: #ddd7ca; }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; text-decoration-color: rgba(233, 197, 124, 0.4); text-underline-offset: 3px; }

.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.social { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17, 24, 44, 0.85), rgba(10, 14, 28, 0.9)); color: var(--text); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.social:hover { color: var(--text); transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 0 30px rgba(233, 197, 124, 0.12); }
.social img { width: 48px; height: 48px; }
.social b { display: block; font-size: 17px; }
.social span { font-size: 13px; color: var(--muted); }
.social.disabled { opacity: 0.55; pointer-events: none; }

.person { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.person .avatar, .person .avatar-blank { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--gold-2); font-size: 38px; box-shadow: 0 0 24px rgba(233, 197, 124, 0.2); }
.person b { font-size: 19px; }
.person .role { color: var(--amethyst); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }

.fame { text-align: center; padding: 30px 22px 24px; }
.fame .wreath-img { width: 170px; height: auto; margin: 0 auto 8px; display: block; opacity: 0.95; }
.fame h3 { margin-bottom: 4px; }
.fame .name { font-size: 22px; font-weight: 800; }

.tour { display: flex; flex-direction: column; gap: 10px; }
.tour-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tour-status { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.tour-status.upcoming { background: rgba(141, 92, 246, 0.18); color: #d9c9ff; border: 1px solid rgba(141, 92, 246, 0.4); }
.tour-status.live { background: rgba(255, 77, 109, 0.16); color: #ffc2cd; border: 1px solid rgba(255, 77, 109, 0.4); }
.tour-status.finished { background: rgba(79, 209, 154, 0.12); color: #b8f3d8; border: 1px solid rgba(79, 209, 154, 0.35); }
.podium { display: flex; flex-direction: column; gap: 6px; }
.podium div { display: flex; align-items: center; gap: 10px; }

.division-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.division-card { text-align: center; padding: 26px 14px 20px; }
.division-card img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6)); transition: transform 0.35s; }
.division-card:hover img { transform: scale(1.08) rotate(-3deg); }
.division-card b { display: block; font-family: var(--display); font-size: 24px; color: var(--gold); margin-top: 8px; }
.division-card span { color: var(--muted); font-size: 14px; }
.division-card .count { display: block; margin-top: 8px; font-size: 13px; color: var(--muted-2); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.shop-item { position: relative; overflow: hidden; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17, 24, 44, 0.85), rgba(8, 11, 22, 0.95)); display: flex; flex-direction: column; gap: 8px; transition: transform 0.25s, box-shadow 0.25s; }
.shop-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rarity, var(--muted-2)); box-shadow: 0 0 14px var(--rarity, transparent); }
.shop-item:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5); }
.shop-item .art { height: 110px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06), transparent 70%); }
.shop-item .art img { max-height: 100px; max-width: 100%; object-fit: contain; }
.shop-item .art .glyph { font-family: var(--display); font-size: 44px; color: var(--rarity, var(--gold)); opacity: 0.85; }
.shop-item b { font-size: 15px; line-height: 1.3; }
.shop-item .type { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.shop-item .price { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--gold-hi); margin-top: auto; }
.shop-item .price img { width: 18px; height: 18px; }
.shop-item .price.case { color: var(--amethyst); font-weight: 700; font-size: 13px; }
.rarity-common { --rarity: #b0c3d9; }
.rarity-blue { --rarity: #4b69ff; }
.rarity-green { --rarity: #4fd19a; }
.rarity-purple { --rarity: #a95cff; }
.rarity-gold { --rarity: #e4ae39; }
.rarity-red { --rarity: #eb4b4b; }
.rarity-arcana { --rarity: #ade55c; }

.quest { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.quest .q-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-size: 26px; color: #1b1406; background: radial-gradient(circle at 35% 30%, #fff5cf, var(--gold) 55%, #8a6a2f); box-shadow: 0 0 18px rgba(233, 197, 124, 0.3); }
.rewards { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.reward { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.reward img { width: 18px; height: 18px; }
.reward.special { color: var(--amethyst); }
.reward.xp { color: #9fd3ff; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tier { flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 10px; background: rgba(5, 8, 16, 0.6); border: 1px solid var(--line); }
.tier b { display: block; font-size: 14px; }
.tier span { font-size: 12px; color: var(--muted); }

.academy-group { margin-bottom: 26px; }
.family { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; border-radius: 12px; background: rgba(5, 8, 16, 0.5); border: 1px solid var(--line); margin-bottom: 10px; }
.family .icon-row .item-img { width: 64px; height: 48px; }
.family .rule { font-size: 14px; color: #d8d2c4; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.video-card { padding: 0; overflow: hidden; }
.video-card .body { padding: 16px 18px 18px; }
.video-facade { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; overflow: hidden; }
.video-facade img, .video-facade .video-blank { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s, filter 0.3s; filter: brightness(0.75); }
.video-facade .video-blank { background: radial-gradient(circle at 50% 50%, #2b1d55, #05070e); }
.video-facade:hover img { transform: scale(1.04); filter: brightness(0.9); }
.video-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--gold-hi); background: radial-gradient(circle, rgba(233, 197, 124, 0.35), rgba(7, 10, 20, 0.6)); cursor: pointer; box-shadow: 0 0 30px rgba(233, 197, 124, 0.4); transition: transform 0.2s; }
.video-play span { display: block; width: 0; height: 0; margin-left: 28px; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 22px solid var(--gold-hi); }
.video-facade:hover .video-play { transform: scale(1.08); }
.video-kind { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 5px; background: rgba(0, 0, 0, 0.65); color: var(--gold-hi); }
.video-frame { position: relative; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- чат ---------- */

.chat-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.chat-box { display: flex; flex-direction: column; height: min(72vh, 760px); padding: 0; overflow: hidden; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 7px 8px; border-radius: 10px; animation: msgIn 0.3s ease both; }
.msg:hover { background: rgba(255, 255, 255, 0.025); }
.msg .avatar, .msg .avatar-blank { width: 38px; height: 38px; border-radius: 50%; font-size: 16px; }
.msg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg-head .player-name { font-size: 14px; max-width: 220px; }
.msg-head time { font-size: 11px; color: var(--muted-2); }
.msg-text { overflow-wrap: anywhere; white-space: pre-wrap; color: #e3ded2; }
.msg.mine .msg-head .player-name { color: var(--gold-hi); }
.emote { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; margin: -4px 1px; transition: transform 0.15s; }
.emote:hover { transform: scale(1.6); position: relative; z-index: 2; }
.msg-text.only-emotes .emote { width: 64px; height: 64px; margin: 2px; }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: rgba(5, 8, 16, 0.6); position: relative; }
.chat-form textarea { min-height: 46px; height: 46px; max-height: 120px; resize: none; padding: 12px 14px; }
.emote-toggle { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(233, 197, 124, 0.06); cursor: pointer; display: grid; place-items: center; transition: background 0.2s; }
.emote-toggle img { width: 30px; height: 30px; }
.emote-toggle:hover { background: rgba(233, 197, 124, 0.14); }
.emote-panel { position: absolute; bottom: calc(100% + 8px); left: 12px; right: 12px; max-height: 300px; overflow-y: auto; padding: 12px; border-radius: var(--radius); background: rgba(10, 14, 28, 0.98); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: none; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; z-index: 5; }
.emote-panel.open { display: grid; }
.emote-panel button { border: 0; background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 5px; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.emote-panel button:hover { background: rgba(233, 197, 124, 0.14); transform: scale(1.08); }
.emote-panel img { width: 44px; height: 44px; object-fit: contain; display: block; margin: 0 auto; }
.chat-side .card { margin-bottom: 16px; }
.chat-login { padding: 18px; text-align: center; border-top: 1px solid var(--line); }
.rules-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.rules-list li { margin-bottom: 6px; }

/* ---------- обращения ---------- */

.ticket { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 8, 16, 0.5); margin-bottom: 12px; }
.ticket-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ticket-head b { font-size: 15px; }
.ticket-status { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.ticket-status.new { background: rgba(141, 92, 246, 0.18); color: #d9c9ff; }
.ticket-status.progress { background: rgba(233, 197, 124, 0.16); color: var(--gold-hi); }
.ticket-status.resolved { background: rgba(79, 209, 154, 0.14); color: #b8f3d8; }
.ticket-status.rejected { background: rgba(239, 91, 91, 0.14); color: #ffc9c9; }
.ticket-text { white-space: pre-wrap; overflow-wrap: anywhere; color: #d8d2c4; font-size: 14px; }
.reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border-left: 3px solid var(--gold); background: rgba(233, 197, 124, 0.06); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply.user { border-left-color: var(--violet); background: rgba(141, 92, 246, 0.06); }
.reply small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }

/* ---------- прочее ---------- */

.pagination { display: flex; justify-content: center; gap: 6px; margin: 24px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
.pagination a:hover { color: var(--gold-hi); border-color: var(--line-strong); }
.pagination .current { color: #1b1406; background: linear-gradient(180deg, var(--gold-hi), var(--gold-2)); border-color: transparent; }
.pagination .gap { border: 0; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state img { opacity: 0.5; filter: grayscale(0.4); margin-bottom: 12px; }
.empty-state p { font-size: 17px; color: var(--text); margin-bottom: 4px; }
.empty-state span { font-size: 14px; }

.notice { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(141, 92, 246, 0.07); color: #d8d2c4; font-size: 14px; margin-bottom: 20px; }
.notice b { color: var(--gold); }

.error-page { text-align: center; padding: 60px 0; }
.error-page .code { font-family: var(--display); font-size: clamp(90px, 18vw, 180px); line-height: 1; }

.coin { width: 18px; height: 18px; vertical-align: -3px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ---------- анимации ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 220% center; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12) translateY(-1%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 77, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  .burger { display: flex; }
  .site-nav {
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(7, 10, 20, 0.98);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .site-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 16px; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; margin: 4px 0 8px; min-width: 0; }
  .nav-group.open > .nav-menu { display: block; }
  .user-box { margin-left: auto; }
  .user-chip > span:not(.caret):not(.avatar-blank) { max-width: 110px; }
  .live-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .division-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chat-shell { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  main { padding: 24px 16px 60px; }
  .hero { margin: -24px calc(50% - 50vw) 34px; min-height: 480px; }
  .hero-search { flex-direction: column; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .champions { grid-template-columns: 1fr; gap: 44px; margin-top: 30px; }
  .profile-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .profile-meta { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 25px; white-space: normal; }
  .topbar-inner { padding: 10px 16px; gap: 10px; }
  .brand span { font-size: 19px; }
  .family { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .live-strip { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -60px; }
  .live-card { padding: 14px; }
  .live-card b { font-size: 30px; }
  .division-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steam-login span { display: none; }
  .steam-login { padding: 10px; }
  .user-chip > span:not(.caret):not(.avatar-blank) { display: none; }
  .brand span { display: none; }
  .quest { grid-template-columns: 44px minmax(0, 1fr); }
  .quest .rewards { grid-column: 1 / -1; justify-content: flex-start; }
  .video-grid { grid-template-columns: 1fr; }
  table.t th, table.t td { padding: 10px 10px; }
  .hide-sm { display: none; }
}

/* ---------- дополнения ---------- */
.suggest-wrap { position: relative; flex: 1; min-width: 0; }
.suggest-wrap input { width: 100%; }
.suggest-wrap > .nav-menu { left: 0; right: 0; min-width: 0; top: calc(100% + 6px); }
.suggest-wrap.open > .nav-menu { opacity: 1; visibility: visible; transform: none; }
.live-strip.compact { margin: 0 0 26px; }
.about-art { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 10px; display: block; }
.case-art { width: 100%; max-width: 160px; height: auto; margin: 0 auto 8px; display: block; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)); }
.item-img.big { width: 88px; height: 64px; margin: 0 auto 8px; display: block; }
.block { display: block; }
.fame .fame-avatar, .fame .avatar-blank { width: 76px; height: 76px; border-radius: 50%; margin: -70px auto 10px; display: grid; border: 2px solid var(--gold); position: relative; font-size: 30px; }
.card .price { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; color: var(--gold-hi); }
.reply-form { margin-top: 12px; }
.reply-form textarea { min-height: 70px; }
.label.muted { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
@media (max-width: 1100px) { .suggest-wrap > .nav-menu { display: none; position: absolute; } .suggest-wrap.open > .nav-menu { display: block; } }
