/* PhoenixGamer: тема "Хекстек" */

/* Цвета темы зарегистрированы, чтобы плавно перетекать (пасхалка) */
@property --gold { syntax: '<color>'; inherits: true; initial-value: #C8AA6E; }
@property --gold-hi { syntax: '<color>'; inherits: true; initial-value: #E8D5A3; }
@property --line { syntax: '<color>'; inherits: true; initial-value: #463714; }
@property --line-strong { syntax: '<color>'; inherits: true; initial-value: #785A28; }
@property --ok { syntax: '<color>'; inherits: true; initial-value: #0AC8B9; }

:root {
  --bg: #010A13;
  --surface: #0A1428;
  --surface-2: #1E2328;
  --line: #463714;
  --line-strong: #785A28;
  --gold: #C8AA6E;
  --gold-hi: #E8D5A3;
  --text: #F0E6D2;
  --muted: #A09B8C;
  --ok: #0AC8B9;
  --old: #E8877A;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1240px;
  --gutter: 24px;
  --cut: 20px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  color-scheme: dark;
  transition: --gold 700ms, --gold-hi 700ms, --line 700ms, --line-strong 700ms, --ok 700ms;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--text); text-decoration: none; transition: color 200ms; }
a:hover { color: var(--gold-hi); }
h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 72px 96px; }
.section-tight { padding-block: 8px 96px; }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--bg); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Кнопки, теги ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 22px;
  font: 700 15px/1 var(--font); cursor: pointer;
  border: 1px solid transparent; background: none; color: inherit;
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hi); color: var(--bg); }
.btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline:hover, .btn-outline[aria-current="page"] { background: var(--gold); color: var(--bg); }

.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--gold); }
.tag.tone-ok { color: var(--ok); }
.tag.tone-old { color: var(--old); }
.tag-lg { border: 1px solid currentColor; padding: 6px 14px; font-size: 14px; }

.frame { border: 1px solid var(--line-strong); padding: 8px; background: var(--surface); }

.notice { border: 1px solid var(--line); background: var(--surface); padding: 20px 24px; color: var(--muted); }

/* ---------- Шапка ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(1, 10, 19, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--gold); font-weight: 800; font-size: 21px; }
.logo:hover { color: var(--gold-hi); }
.logo img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); object-fit: cover; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { font-size: 15px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-strong); color: var(--gold); cursor: pointer;
}

@media (max-width: 880px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity 200ms, transform 200ms var(--ease), visibility 0s 200ms;
  }
  .js .site-header.is-open .site-nav { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms, transform 200ms var(--ease); }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .no-js .site-nav { flex-wrap: wrap; gap: 12px 20px; }
}

/* ---------- Подвал ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px; font-size: 14px; color: var(--muted); }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--gold-hi); }

/* ---------- Заголовок страницы ---------- */

.page-head { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--gold); }

/* ---------- Карусель ---------- */

.hero { padding-top: 40px; }
.carousel { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.carousel-frame { position: relative; }
.carousel-viewport { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.no-js .carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.carousel-track { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; transition: transform 700ms var(--ease); }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.slide-link { position: relative; display: block; height: 100%; }
.slide-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s linear; }
.slide.is-active .slide-link img { transform: scale(1.04); }
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 28px 32px; background: rgba(1, 10, 19, 0.8);
}
.slide-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.slide-text > * { transition: opacity 500ms 150ms, transform 500ms 150ms var(--ease); }
.js .slide:not(.is-active) .slide-text > * { opacity: 0; transform: translateY(12px); }
.slide-label { font-size: 13px; font-weight: 700; color: var(--gold); }
.slide-title { font-size: clamp(22px, 3.2vw, 40px); font-weight: 800; line-height: 1.12; }
.slide-meta { font-size: 14px; color: var(--muted); }
.slide-link:hover .btn-gold { background: var(--gold-hi); }

.carousel-arrow {
  position: absolute; top: 40%; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); background: rgba(1, 10, 19, 0.7); color: var(--gold); cursor: pointer;
  transition: background 200ms, color 200ms;
}
.carousel-arrow:hover { background: var(--gold); color: var(--bg); }
.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

.carousel-thumbs { display: flex; gap: 12px; }
.thumb {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); opacity: 0.6;
  transition: opacity 300ms, border-color 300ms;
}
.thumb:hover { opacity: 0.9; color: var(--text); }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb-title { font-size: 13px; font-weight: 600; line-height: 1.3; padding-inline: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb-progress { display: block; height: 3px; margin: auto 4px 4px; background: var(--surface-2); }
.thumb-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.thumb.is-done .thumb-progress span { width: 100%; }

.carousel-pause {
  flex: 0 0 52px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--gold); cursor: pointer;
}
.carousel-pause .icon-play, .carousel.is-paused .carousel-pause .icon-pause { display: none; }
.carousel.is-paused .carousel-pause .icon-play { display: block; }
.no-js .carousel-arrow, .no-js .carousel-pause { display: none; }
.carousel-all { text-align: right; font-weight: 700; }
.carousel-all a { color: var(--gold); }

@media (max-width: 720px) {
  .carousel-viewport { aspect-ratio: 4 / 5; }
  .slide-caption { padding: 18px; }
  .slide-caption .btn { min-height: 40px; padding: 10px 18px; }
  .carousel-arrow { display: none; }
  .carousel-thumbs { gap: 6px; }
  .thumb { padding: 0; border: 0; background: none; opacity: 1; }
  .thumb img, .thumb-title { display: none; }
  .thumb-progress { margin: 0; height: 4px; }
  .thumb { padding-block: 10px; }
  .carousel-pause { flex-basis: 44px; height: 44px; align-self: center; }
}

/* ---------- Полоса под каруселью ---------- */

.strip { max-width: 1120px; margin: 16px auto 0; display: flex; flex-wrap: wrap; gap: 12px; }
.strip-item {
  flex: 1 1 320px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); font-size: 15px;
  transition: border-color 250ms;
}
.strip-item:hover { border-color: var(--gold); color: var(--text); }
.strip-item strong { color: var(--gold); }
.strip-dot { width: 10px; height: 10px; border-radius: 50%; background: #3BA55D; box-shadow: 0 0 0 3px rgba(59, 165, 93, 0.25); }
.strip-cta { margin-left: auto; color: var(--gold); font-weight: 700; }

/* ---------- Вкладки ---------- */

.tab-list { display: none; justify-content: center; gap: 8px; margin-bottom: 36px; }
.js .tab-list { display: flex; }
.tab {
  min-height: 48px; padding: 0 32px; cursor: pointer;
  font: 800 22px/1 var(--font); color: var(--muted);
  background: transparent; border: 1px solid var(--line);
  transition: background 250ms, border-color 250ms, color 250ms;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-2); border-color: var(--gold); color: var(--text); }
.panel-title { font-size: 30px; margin-bottom: 24px; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.no-js .tab-panel + .tab-panel { margin-top: 64px; }
.js .tab-panel[hidden] { display: none; }
.js .tab-panel.is-entering { animation: panel-in 400ms var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.more-link { text-align: center; margin-top: 32px; font-weight: 700; }
.more-link a { color: var(--gold); }

/* ---------- Карточки ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card {
  background: var(--line); padding: 1px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background 250ms, transform 250ms var(--ease);
}
.card:hover { background: var(--gold); transform: translateY(-4px); }
.card-link {
  height: 100%; display: flex; flex-direction: column; background: var(--surface); color: var(--text);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
a.card-link:hover { color: var(--text); }
.card-img { width: 100%; height: 200px; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 26px; }
.card-title { font-size: 24px; }
.card-text { font-size: 15px; color: var(--muted); }
.card-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--gold); }

/* Сетап: карточки своей высоты, раскрытие одной не растягивает соседние */
.setup-grid { align-items: start; }
.setup-summary { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.setup-details { margin-top: 8px; }
.setup-details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 0 14px; cursor: pointer; list-style: none;
  color: var(--gold); font-weight: 700; border: 1px solid var(--line);
  transition: border-color 250ms, background 250ms;
}
.setup-details summary::-webkit-details-marker { display: none; }
.setup-details summary::after {
  content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 300ms var(--ease);
}
.setup-details summary:hover { border-color: var(--gold); }
.setup-details[open] summary { background: var(--surface-2); border-color: var(--gold); }
.setup-details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.setup-details.is-closing summary { background: none; border-color: var(--line); }
.setup-details.is-closing summary::after { transform: translateY(-2px) rotate(45deg); }
.details-body { overflow: hidden; }
.setup-details dl { margin: 0; padding-top: 12px; display: grid; gap: 8px; }
.setup-details dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.setup-details dt { color: var(--muted); }
.setup-details dd { margin: 0; }

/* ---------- Гайд ---------- */

.guide-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); overflow: hidden; }
.guide-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.guide-hero::after { content: ''; position: absolute; inset: 0; background: rgba(1, 10, 19, 0.62); }
.guide-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-block: 64px 40px; }
.guide-hero h1 { font-size: clamp(36px, 6vw, 68px); }
.guide-hero .crumbs { color: #CDBE91; }
.guide-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-block: 28px 0; }
.guide-nav a { border: 1px solid var(--line); padding: 10px 18px; font-size: 14px; font-weight: 700; }
.guide-nav a:hover { border-color: var(--gold); color: var(--gold); }
.guide-body { max-width: 1040px; display: flex; flex-direction: column; gap: 64px; padding-block: 48px 96px; }
.guide-section { scroll-margin-top: 96px; display: flex; flex-direction: column; gap: 24px; }
.guide-section h2 { font-size: 32px; display: flex; align-items: center; gap: 16px; }
.guide-section h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.variant { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.variant-img { width: 100%; max-height: 360px; object-fit: contain; background: #000; border-bottom: 1px solid var(--line); }
.variant-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.variant-body h3 { color: var(--gold); font-size: 18px; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.skill { display: flex; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color 250ms; }
.skill:hover { border-color: var(--line-strong); }
.skill-img { flex-shrink: 0; width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line-strong); }
.skill-name { font-size: 17px; color: var(--gold); margin-bottom: 6px; }
.skill-text { font-size: 14px; color: var(--muted); }
.skill-text + .skill-text { margin-top: 8px; }

/* ---------- Гайд нового формата (Data Dragon) ---------- */

.dd-icon { flex-shrink: 0; border: 1px solid var(--line-strong); background: #000; }
.guide-subtitle { font-size: 18px; color: #CDBE91; margin-top: -6px; }
.guide-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.guide-tags .tag-lg { color: var(--text); border-color: var(--line-strong); background: rgba(1, 10, 19, 0.6); }
.guide-tags .tag-lg.tone-ok { color: var(--ok); border-color: currentColor; }
.guide-tags .tag-lg.tone-old { color: var(--old); border-color: currentColor; }

.rune-page { background: var(--surface); border: 1px solid var(--line); padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.rune-page-head h3 { color: var(--gold); font-size: 20px; }
.rune-page-head p { font-size: 14px; margin-top: 4px; }
.rune-trees { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.rune-tree { display: flex; flex-direction: column; gap: 12px; }
.rune-tree-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #CDBE91; font-size: 14px; }
.rune-tree-name .dd-icon { border: 0; background: none; }
.rune-keystone { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.rune-keystone .dd-icon { border-radius: 50%; border-color: var(--gold); }
.rune-list, .rune-shards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rune-list li, .rune-shards li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rune-list .dd-icon { border-radius: 50%; }
.rune-shards { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.rune-shards li { font-size: 12px; color: var(--muted); }
.rune-shards .dd-icon { border-radius: 50%; border: 0; }

.skill-key { display: inline-flex; min-width: 28px; justify-content: center; margin-right: 6px; padding: 2px 6px; font-size: 13px; border: 1px solid var(--gold); color: var(--gold); }

.skill-order { background: var(--surface); border: 1px solid var(--line); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.skill-order h3 { font-size: 20px; color: var(--gold); }
.skill-max { font-size: 14px; color: var(--muted); margin-top: 4px; }
.skill-max b { color: var(--text); }
.skill-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.skill-table { border-collapse: separate; border-spacing: 3px; min-width: 640px; width: 100%; font-size: 13px; }
.skill-table thead th { color: var(--muted); font-weight: 600; text-align: center; padding-bottom: 4px; }
.skill-table tbody th { text-align: left; white-space: nowrap; padding-right: 8px; }
.skill-table tbody th > * { vertical-align: middle; }
.skill-table tbody th .dd-icon { display: inline-block; }
.skill-table tbody th, .skill-table thead th:first-child { width: 64px; }
.skill-table tbody th span { margin-left: 6px; font-weight: 800; color: var(--gold); }
.skill-table td { width: 30px; height: 30px; text-align: center; background: var(--surface-2); color: transparent; font-weight: 800; }
.skill-table td.on { background: var(--gold); color: var(--bg); }

.item-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.item-group { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.item-group h3 { font-size: 17px; color: var(--gold); }
.item-group h3 .muted { font-size: 14px; font-weight: 500; }
.item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.item-list li { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; line-height: 1.25; }
.item-list .dd-icon { border-color: var(--gold); }

.matchups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.matchup-col { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; }
.matchup-col h3 { font-size: 18px; margin-bottom: 12px; }
.matchup-col.tone-ok h3 { color: var(--ok); }
.matchup-col.tone-old h3 { color: var(--old); }
.matchup-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.matchup-col li { display: flex; gap: 12px; align-items: flex-start; }
.matchup-col li p { font-size: 14px; margin-top: 2px; }
.tips { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }

/* ---------- Чемпионы ---------- */

.lol-hub { display: flex; flex-direction: column; gap: 28px; }
.profile-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; }
.profile-label { font-size: 13px; font-weight: 700; color: var(--gold); }
.profile-id { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.profile-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.profile-links .btn { flex-direction: column; gap: 2px; align-items: flex-start; }
.profile-hint { font-size: 11px; font-weight: 500; opacity: 0.8; }
.lol-subtitle { font-size: 28px; }
.champ-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.champ-card { display: flex; gap: 18px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color 250ms; }
.champ-card:hover { border-color: var(--gold); }
.champ-icon { width: 96px; height: 96px; border: 1px solid var(--gold); }
.champ-info { display: flex; flex-direction: column; gap: 4px; }
.champ-info h3 { font-size: 22px; }
.champ-title { font-size: 14px; }
.champ-role { font-size: 14px; color: #CDBE91; }

/* ---------- Архив видео ---------- */

.chip-count { margin-left: 6px; font-size: 13px; color: var(--muted); }
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.video-card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); transition: border-color 250ms, transform 250ms var(--ease); }
.video-card a:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--text); }
.video-thumb { position: relative; display: block; }
.video-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.video-duration { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; font-size: 12px; font-weight: 700; background: rgba(1, 10, 19, 0.85); border: 1px solid var(--line); }
.video-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.video-card-title { font-weight: 700; line-height: 1.3; }
.video-card-meta { font-size: 13px; color: var(--muted); }
.shorts-row { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.short-card { flex: 0 0 200px; }
.short-card a { display: flex; flex-direction: column; gap: 8px; }
.short-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid var(--line); transition: border-color 250ms; }
.short-card a:hover img { border-color: var(--gold); }
.short-title { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.short-meta { font-size: 12px; color: var(--muted); }

.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-bottom: 96px; align-items: start; }
.video-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.video-meta-line { color: var(--muted); }
.video-description { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.video-description p + p { margin-top: 4px; }
.video-description a { color: var(--gold); }
.video-side { display: flex; flex-direction: column; gap: 12px; }
.side-title { font-size: 17px; margin-top: 10px; }
.mini-card { display: flex; gap: 12px; align-items: flex-start; padding: 8px; background: var(--surface); border: 1px solid var(--line); transition: border-color 250ms; }
.mini-card:hover { border-color: var(--gold); color: var(--text); }
.mini-card img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; flex-shrink: 0; }
.mini-card > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-title { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .video-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Расписание ---------- */

.schedule { display: flex; flex-direction: column; gap: 24px; }
.schedule-empty, .next-stream { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.schedule-empty h2 { font-size: 28px; }
.next-title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.next-when { font-size: 18px; color: var(--muted); }
.next-when time { color: var(--text); }
.schedule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.schedule-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); }
.schedule-list li > :last-child { margin-left: auto; color: var(--gold); font-weight: 700; }
.schedule-day { font-weight: 800; min-width: 130px; }
.schedule-time { color: var(--gold); font-weight: 700; }
.strip-soon { background: var(--gold); box-shadow: 0 0 0 3px rgba(200, 170, 110, 0.25); }
.strip-live { background: #E84057; box-shadow: 0 0 0 3px rgba(232, 64, 87, 0.3); animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 7px rgba(232, 64, 87, 0); } }

/* ---------- Видео по клику ---------- */

.yt-lite { max-width: 1040px; }
.yt-lite-link { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); }
.yt-lite-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 300ms; }
.yt-lite-link:hover img { opacity: 1; }
.yt-lite iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.play-diamond {
  position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center;
  transform: rotate(45deg); border: 2px solid var(--gold); background: rgba(1, 10, 19, 0.75); color: var(--text);
  transition: background 250ms, transform 250ms var(--ease);
}
.play-diamond svg { transform: rotate(-45deg); }
.yt-lite-link:hover .play-diamond { background: var(--gold); color: var(--bg); transform: rotate(45deg) scale(1.06); }

/* ---------- Новость ---------- */

.prose { max-width: 820px; display: flex; flex-direction: column; gap: 32px; padding-bottom: 96px; }
.article-section { display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.article-section h2 { font-size: 28px; }
.article-img { width: 100%; }

/* ---------- Игры ---------- */

.games-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.search { flex: 0 1 420px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.search-row { display: flex; gap: 8px; }
.search input[type="search"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  font: 500 16px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
}
.search input::placeholder { color: #6F6A60; }
.js .search .btn { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--muted); }
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip[aria-current="true"] { background: var(--surface-2); border-color: var(--gold); color: var(--text); }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.game-card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); transition: border-color 250ms, transform 250ms var(--ease); }
.game-card a:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--text); }
.game-img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-bottom: 1px solid var(--line); }
.game-info { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.game-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.game-title { font-weight: 700; line-height: 1.25; }
.empty-note { padding-block: 24px; }

.score {
  flex-shrink: 0; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; border: 1px solid currentColor;
}
.score-lg { width: 88px; height: 88px; font-size: 32px; }
.tone-high { color: var(--ok); }
.tone-mid { color: var(--gold); }
.tone-low { color: var(--old); }
.stars { font-size: 15px; letter-spacing: 2px; }
.stars-empty { color: #3C3C41; }

.game-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; padding-bottom: 96px; }
.game-media { display: flex; flex-direction: column; gap: 24px; }
.game-verdict { display: flex; gap: 20px; align-items: flex-start; }
.game-verdict .lead { margin-top: 8px; color: var(--text); }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.game-lists { display: flex; flex-direction: column; gap: 24px; }
.pros, .cons { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.pros h2, .cons h2 { font-size: 22px; margin-bottom: 14px; }
.pros h2 { color: var(--ok); }
.cons h2 { color: var(--old); }
.pros ul, .cons ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- 404 ---------- */

.not-found { text-align: center; padding-block: 96px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.not-found-code { font-size: 120px; font-weight: 800; line-height: 1; color: var(--line-strong); }

/* ---------- Появление при прокрутке ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .card[data-reveal].is-visible:hover { transform: translateY(-4px); }

/* ---------- Мобильные ---------- */

@media (max-width: 600px) {
  :root { --gutter: 16px; --cut: 16px; }
  .section { padding-block: 48px 72px; }
  .page-head { padding-block: 36px 24px; }
  .tab { flex: 1; padding: 0 12px; font-size: 19px; }
  .card-img { height: 160px; }
  .card-title { font-size: 21px; }
  .search { flex-basis: 100%; }
}

/* Кто попросил меньше движения: без анимаций и автопрокрутки */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .slide.is-active .slide-link img { transform: none; }
}

/* ---------- Окно с видео ---------- */

.video-dialog { width: min(1120px, 94vw); padding: 0; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); }
.video-dialog::backdrop { background: rgba(1, 10, 19, 0.88); }
.video-dialog[open] { animation: panel-in 300ms var(--ease); }
.video-dialog-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-dialog-close {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 44px; height: 44px;
  font-size: 28px; line-height: 1; color: var(--gold); background: rgba(1, 10, 19, 0.8); border: 1px solid var(--gold); cursor: pointer;
}
.video-dialog-close:hover { background: var(--gold); color: var(--bg); }

/* ---------- Пасхалка: my energy is monster ---------- */

html.monster-mode {
  --gold: #9BE300;
  --gold-hi: #C8FF5A;
  --line: #24400A;
  --line-strong: #4C7A12;
  --ok: #9BE300;
}

.beast { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }
.beast.is-leaving { opacity: 0; transition: opacity 600ms; }
.beast svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(155, 227, 0, 0.75)); }
.beast path {
  fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: claw 380ms cubic-bezier(0.7, 0, 0.3, 1) forwards, claw-fade 900ms 1500ms forwards;
}
@keyframes claw { to { stroke-dashoffset: 0; } }
@keyframes claw-fade { to { opacity: 0.18; } }

.beast-text {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: 92vw; text-align: center;
  font-size: clamp(32px, 7vw, 96px); font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  color: #F4FFE0; text-shadow: 0 0 24px rgba(155, 227, 0, 0.9), 0 0 2px #9BE300;
  opacity: 0; animation: beast-text 2400ms 350ms both;
}
@keyframes beast-text {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); filter: blur(8px); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: none; }
  16% { transform: translate(calc(-50% - 6px), -50%) skewX(-8deg); text-shadow: -4px 0 #FF2AD4, 4px 0 #9BE300; }
  20% { transform: translate(calc(-50% + 4px), -50%) skewX(6deg); }
  24% { transform: translate(-50%, -50%); text-shadow: 0 0 24px rgba(155, 227, 0, 0.9); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08); }
}

.bubble {
  position: absolute; bottom: -24px; border-radius: 50%;
  border: 2px solid rgba(200, 255, 90, 0.85); background: rgba(155, 227, 0, 0.12);
  animation-name: bubble-up; animation-timing-function: cubic-bezier(0.3, 0, 0.6, 1); animation-fill-mode: both;
}
@keyframes bubble-up {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(14px, -55vh); }
  100% { transform: translate(-10px, -110vh); opacity: 0; }
}

.beast-shake main { animation: beast-shake 450ms 120ms both; }
@keyframes beast-shake {
  0%, 100% { transform: none; }
  15% { transform: translate(-8px, 4px) rotate(-0.4deg); }
  30% { transform: translate(7px, -5px) rotate(0.4deg); }
  45% { transform: translate(-6px, 3px); }
  60% { transform: translate(5px, -2px); }
  80% { transform: translate(-2px, 1px); }
}

.game-card.is-monster a {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 32px rgba(155, 227, 0, 0.35);
  animation: beast-glow 1800ms ease-in-out infinite;
}
.game-card.is-monster .score { color: var(--gold); }
.game-card.is-dropping { animation: beast-drop 900ms 500ms cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes beast-glow {
  0%, 100% { box-shadow: 0 0 0 1px var(--gold), 0 0 20px rgba(155, 227, 0, 0.25); }
  50% { box-shadow: 0 0 0 1px var(--gold), 0 0 44px rgba(155, 227, 0, 0.6); }
}
@keyframes beast-drop {
  0% { opacity: 0; transform: translateY(-120px) rotate(-6deg) scale(0.9); }
  100% { opacity: 1; transform: none; }
}
.monster-mode .game-page .score, .monster-mode .game-page h1 { color: var(--gold); text-shadow: 0 0 18px rgba(155, 227, 0, 0.45); }
