:root {
  --abyss: #0c1626;
  --tide: rgba(20, 35, 58, 0.72);
  --tide-solid: #14233a;
  --tide-2: #1b2e4a;
  --foam: #e8eef4;
  --soft: #b7c6d8;
  --mist: #8fa3ba;
  --gold: #e8c170;
  --gold-ink: #2a1f08;
  --spectro: #6fa8ff;
  --line: rgba(143, 163, 186, 0.22);
  --danger: #ff8f8f;
  --good: #5fe0b0;

  /* ряды графиков: проверено validate_palette.js для тёмной подложки #14233a */
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;

  --f-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  min-height: 100%;
  /* подсветка вшита в фон страницы: отдельный закреплённый слой заставлял
     браузер смешивать ещё одну полноэкранную поверхность на каждом кадре */
  background:
    radial-gradient(1000px 600px at 78% 12%, rgba(111, 168, 255, 0.14), transparent 70%) fixed,
    radial-gradient(820px 520px at 6% 82%, rgba(232, 193, 112, 0.09), transparent 72%) fixed,
    var(--abyss);
  color: var(--foam);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* фон на всю страницу */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body.calm #bg { display: none; }
body > header, body > main, body > footer, .modal { position: relative; z-index: 1; }

/* переключатель спокойного режима */
.calm-toggle { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--mist); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: color 0.2s, box-shadow 0.2s; }
.calm-toggle:hover { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.calm-toggle svg { width: 17px; height: 17px; }
body.calm .calm-toggle { color: var(--gold); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- верхняя панель ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 13px var(--gutter);
  /* без backdrop-filter: размытие поверх движущегося фона пересчитывалось бы каждый кадр */
  background: linear-gradient(to bottom, rgba(12, 22, 38, 0.97), rgba(12, 22, 38, 0.88) 55%, rgba(12, 22, 38, 0));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 0.95rem var(--f-display); }
.brand img { border-radius: 9px; }
.top__nav { display: flex; align-items: center; gap: clamp(10px, 1.3vw, 20px); margin-left: auto; font-weight: 500; }
.top__nav a, .top__nav button, .brand span { white-space: nowrap; }
.top__nav a:not(.btn), .top__nav button.link { color: var(--mist); text-decoration: none; transition: color 0.2s; }
.top__nav a:not(.btn):hover, .top__nav button.link:hover { color: var(--foam); }
button.link { border: 0; background: none; font: inherit; cursor: pointer; padding: 0; }

.socials { display: flex; align-items: center; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; color: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.socials a:hover { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* ---------- кнопки ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.92em 1.7em; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink);
  font: 700 1rem var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(232, 193, 112, 0.55); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn--small { padding: 0.55em 1.2em; font-size: 0.92rem; }
.btn--wide { width: 100%; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, 0.4); transform: scale(0); animation: ripple 0.6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- первый экран ---------- */
/*
 * Всё движение здесь идёт только через transform и opacity: такие анимации
 * браузер отдаёт видеокарте и не пересчитывает разметку. Ни одна из них не
 * меняет размеры и положение в потоке, поэтому кадры остаются дешёвыми.
 */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 72px); align-items: center;
  width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto;
  padding: 132px 0 108px;
}
.hero__copy { min-width: 0; }
.hero__title { margin: 0 0 24px; font: 800 clamp(2.1rem, 6.2vw, 4.8rem)/1.07 var(--f-display); letter-spacing: -0.02em; max-width: 15ch; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line__in { display: block; transform: translateY(105%); animation: rise 0.95s var(--ease) forwards; }
.line:nth-child(2) .line__in { animation-delay: 0.14s; }
@keyframes rise { to { transform: translateY(0); } }
.hero__lead { max-width: 56ch; margin: 0 0 32px; color: var(--soft); font-size: clamp(1.02rem, 1.5vw, 1.18rem); opacity: 0; animation: settle 0.9s 0.5s var(--ease) forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: settle 0.9s 0.65s var(--ease) forwards; }
.hero__note { margin: 18px 0 0; color: var(--mist); font-size: 0.92rem; opacity: 0; animation: settle 0.9s 0.8s var(--ease) forwards; }
@keyframes settle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- общее для секций ---------- */
section { position: relative; }
.band { padding: clamp(68px, 10vw, 128px) 0; }
.band--solid { background: rgba(19, 33, 55, 0.82); }
.h2 { margin: 0 0 16px; font: 600 clamp(1.55rem, 3.4vw, 2.5rem)/1.15 var(--f-display); letter-spacing: -0.015em; max-width: 22ch; }
.lead { max-width: 62ch; margin: 0 0 44px; color: var(--soft); }
.card { border-radius: 20px; background: rgba(20, 35, 58, 0.88); box-shadow: inset 0 0 0 1px var(--line), 0 26px 60px -40px #000; }

/* ---------- окно программы ---------- */
.app { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; border-radius: 20px; overflow: hidden; background: rgba(11, 20, 34, 0.94); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px var(--line); }
.app__side { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: rgba(20, 35, 58, 0.6); border-right: 1px solid var(--line); }
.tab { padding: 0.75em 1em; border: 0; border-radius: 10px; background: transparent; color: var(--mist); font: 600 0.98rem var(--f-body); text-align: left; cursor: pointer; transition: background 0.2s, color 0.2s; }
.tab:hover { color: var(--foam); }
.tab.is-on { background: var(--tide-2); color: var(--gold); }
.app__view { padding: clamp(20px, 3vw, 36px); }
.pane { display: none; }
.pane.is-on { display: block; animation: paneIn 0.45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.pane__title { margin: 0 0 6px; font: 600 1.35rem var(--f-display); }
.pane__text { margin: 0 0 24px; max-width: 52ch; color: var(--soft); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tiles li { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(20, 35, 58, 0.75); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 0.92rem; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.tiles li:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--gold), 0 14px 30px -14px rgba(232, 193, 112, 0.45); }
.tiles img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; background: var(--tide-2); }
.el { font: 500 0.78rem var(--f-body); font-style: normal; color: var(--mist); }
.el::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.el--fusion { color: #ff8a5c; } .el--havoc { color: #d16bff; } .el--glacio { color: #7fd8ff; }
.el--aero { color: #5fe0b0; } .el--electro { color: #b98cff; }
.mock-launch { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.mock-btn { padding: 0.9em 1.8em; border-radius: 12px; background: var(--gold); color: var(--gold-ink); font-weight: 800; }
.mock-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.mock-check input { accent-color: var(--gold); width: 18px; height: 18px; }
.mock-live { display: inline-flex; align-items: center; gap: 10px; padding: 0.7em 1.1em; border-radius: 999px; background: rgba(20, 35, 58, 0.8); box-shadow: inset 0 0 0 1px var(--line); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(95, 224, 176, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(95, 224, 176, 0); } }

/* ---------- отличия ---------- */
.vs { margin: 0; }
.vs__row { display: grid; grid-template-columns: 150px 1fr 1.25fr; gap: 24px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line); }
.vs__row:last-child { border-bottom: 1px solid var(--line); }
.vs dt { font: 600 1rem var(--f-display); }
.vs dd { margin: 0; }
.vs__old { color: var(--mist); text-decoration: line-through; text-decoration-color: rgba(143, 163, 186, 0.45); }
.vs__new { position: relative; padding-left: 18px; }
.vs__new::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- дорожная карта ---------- */
.steps { position: relative; margin: 0; padding: 0 0 0 40px; list-style: none; }
.steps::before, .steps::after { content: ""; position: absolute; left: 9px; top: 6px; width: 2px; border-radius: 2px; }
.steps::before { bottom: 6px; background: var(--line); }
.steps::after { height: calc(var(--fill, 0) * (100% - 12px)); background: linear-gradient(var(--gold), var(--spectro)); }
.step { position: relative; padding-bottom: 44px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -40px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--tide-solid); box-shadow: inset 0 0 0 2px var(--mist); }
.step--done::before { background: var(--gold); box-shadow: none; }
.step--now::before { background: var(--tide-solid); box-shadow: inset 0 0 0 2px var(--gold); animation: pulse-gold 2s infinite; }
@keyframes pulse-gold { 0% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 0 rgba(232, 193, 112, 0.5); } 100% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 14px rgba(232, 193, 112, 0); } }
.step h3 { margin: 0 0 8px; font: 600 1.2rem var(--f-display); }
.step p { margin: 0; max-width: 62ch; color: var(--soft); }

/* ---------- формы ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85em 1em; border: 0; border-radius: 12px;
  background: rgba(12, 22, 38, 0.85); color: var(--foam);
  font: 500 1rem var(--f-body); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.2s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.field__hint { margin: 6px 0 0; color: var(--mist); font-size: 0.86rem; }
.err { min-height: 1.3em; margin: 6px 0 0; color: var(--danger); font-size: 0.88rem; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; color: var(--soft); font-size: 0.95rem; cursor: pointer; }
.agree input { accent-color: var(--gold); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-status { margin: 12px 0 0; min-height: 1.4em; color: var(--mist); font-size: 0.92rem; }
.is-shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- предложения ---------- */
.wish { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.wish__form { padding: clamp(22px, 3vw, 34px); }
.wishlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-height: 520px; overflow: auto; }
.wishlist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--tide); box-shadow: inset 0 0 0 1px var(--line); animation: settle 0.45s var(--ease); }
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 46px; padding: 6px 0; border: 0; border-radius: 12px; background: rgba(12, 22, 38, 0.8); color: var(--mist); font: 700 0.95rem var(--f-body); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.vote:hover { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); transform: translateY(-2px); }
.vote.is-on { color: var(--gold-ink); background: var(--gold); box-shadow: none; }
.vote svg { width: 14px; height: 14px; }
.wish__who { margin: 0 0 4px; font-weight: 700; font-size: 0.9rem; color: var(--gold); }
.wish__text { margin: 0; color: var(--soft); }
.wishlist__empty { padding: 20px; color: var(--mist); }

/* ---------- модальное окно входа ---------- */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(6, 12, 20, 0.72); backdrop-filter: blur(6px); animation: fade 0.25s; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal__box { width: min(440px, 100%); padding: clamp(24px, 4vw, 36px); border-radius: 22px; background: #14233a; box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -40px #000; animation: modalIn 0.35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.modal__head h2 { margin: 0; font: 600 1.4rem var(--f-display); }
.modal__close { border: 0; background: none; color: var(--mist); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal__close:hover { color: var(--foam); }
.modal__sub { margin: 0 0 20px; color: var(--mist); font-size: 0.95rem; }
.switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 22px; padding: 4px; border-radius: 999px; background: rgba(12, 22, 38, 0.85); }
.switcher button { padding: 0.6em; border: 0; border-radius: 999px; background: transparent; color: var(--mist); font: 700 0.95rem var(--f-body); cursor: pointer; transition: background 0.25s var(--ease), color 0.25s; }
.switcher button.is-on { background: var(--gold); color: var(--gold-ink); }

/* ---------- профиль и админка ---------- */
.shell { padding: 108px var(--gutter) 80px; }
.shell__in { width: min(1120px, 100%); margin-inline: auto; }
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.page-head h1 { margin: 0; font: 600 clamp(1.7rem, 3.6vw, 2.5rem) var(--f-display); }
.page-head p { margin: 6px 0 0; color: var(--mist); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 0.35em 0.9em; border-radius: 999px; background: rgba(232, 193, 112, 0.14); color: var(--gold); font-size: 0.85rem; font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.panel { padding: clamp(20px, 3vw, 30px); }
.panel h2 { margin: 0 0 6px; font: 600 1.25rem var(--f-display); }
.panel p.sub { margin: 0 0 20px; color: var(--mist); font-size: 0.95rem; }

.dl { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px; border-radius: 16px; background: rgba(12, 22, 38, 0.7); box-shadow: inset 0 0 0 1px var(--line); }
.dl__v { font: 700 2rem var(--f-display); color: var(--gold); }
.dl__meta { color: var(--mist); font-size: 0.9rem; }

.changelog { margin: 0; padding: 0; list-style: none; }
.changelog li { padding: 18px 0; border-top: 1px solid var(--line); }
.changelog li:first-child { border-top: 0; padding-top: 0; }
.changelog h3 { margin: 0 0 2px; font: 600 1.05rem var(--f-display); }
.changelog time { color: var(--mist); font-size: 0.86rem; }
.changelog ul { margin: 10px 0 0; padding-left: 18px; color: var(--soft); }
.changelog li li { padding: 2px 0; border: 0; }

/* статистика */
.tiles-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { padding: 20px; border-radius: 16px; background: var(--tide); box-shadow: inset 0 0 0 1px var(--line); }
.stat__v { font: 700 clamp(1.7rem, 3.4vw, 2.3rem)/1.1 var(--f-display); }
.stat__k { margin-top: 4px; color: var(--mist); font-size: 0.9rem; }
.chart { margin-bottom: 24px; padding: clamp(18px, 2.6vw, 28px); }
.chart__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.chart__head h2 { margin: 0; font: 600 1.15rem var(--f-display); }
.chart__note { color: var(--mist); font-size: 0.88rem; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; color: var(--soft); font-size: 0.9rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.tip { position: fixed; z-index: 40; padding: 8px 11px; border-radius: 10px; background: #0c1626; color: var(--foam); font-size: 0.85rem; line-height: 1.45; box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px -12px #000; pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.tip.is-on { opacity: 1; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--mist); font-weight: 700; font-size: 0.85rem; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
details.table-view { margin-top: 10px; }
details.table-view summary { cursor: pointer; color: var(--mist); font-size: 0.9rem; padding: 6px 0; }
.empty { padding: 26px; border-radius: 16px; background: rgba(12, 22, 38, 0.6); box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); }

/* ---------- подвал ---------- */
.foot { padding: 34px 0 46px; border-top: 1px solid var(--line); color: var(--mist); font-size: 0.88rem; }
.foot__in { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.foot p { max-width: 68ch; margin: 0; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .grid-2, .wish { grid-template-columns: 1fr; }
}
@media (max-width: 1300px) {
  .top__nav .nav-lo { display: none; }
}
@media (max-width: 1100px) {
  .top__nav a:not(.btn) { display: none; }
}
/* телефоны: в шапке остаются логотип, переключатель фона и вход; соцсети и ссылки есть в подвале */
@media (max-width: 720px) {
  .top { gap: 12px; }
  .top .socials { display: none; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
}
@media (max-width: 860px) {
  .top__nav a:not(.btn), .top__nav button.link { display: none; }
  .app { grid-template-columns: 1fr; }
  .app__side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .vs__row { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .line__in { transform: none; }
  .hero__lead, .hero__actions, .hero__note { opacity: 1; }
}

/* ---------- отзывы ---------- */
.reviews__head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 44px; }
.score { display: grid; grid-template-columns: auto auto; gap: 2px 12px; align-items: center; padding: 16px 22px; border-radius: 18px; background: rgba(12, 22, 38, 0.72); box-shadow: inset 0 0 0 1px var(--line); }
.score[hidden] { display: none; }
.score__v { grid-row: span 2; font: 700 2.6rem/1 var(--f-display); color: var(--gold); }
.score__stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.score__c { color: var(--mist); font-size: 0.88rem; }

.reviews { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.review-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.review { padding: 20px 22px; border-radius: 18px; background: var(--tide); box-shadow: inset 0 0 0 1px var(--line); animation: settle 0.45s var(--ease); }
.review__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.review__who { font-weight: 700; color: var(--gold); }
.review__when { color: var(--mist); font-size: 0.84rem; }
.review__stars { color: var(--gold); letter-spacing: 2px; }
.review__text { margin: 0; color: var(--soft); }
.review-empty { padding: 24px; border-radius: 18px; background: rgba(12, 22, 38, 0.6); box-shadow: inset 0 0 0 1px var(--line); color: var(--mist); }

/* оценка звёздами: под капотом обычные радиокнопки */
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 18px; }
.stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.stars label { cursor: pointer; padding: 2px; color: var(--line); transition: color 0.18s, transform 0.18s var(--ease); }
.stars label svg { width: 30px; height: 30px; display: block; }
.stars label:hover, .stars label:hover ~ label,
.stars input:checked ~ label { color: var(--gold); }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.notice { padding: 16px 18px; border-radius: 14px; background: rgba(12, 22, 38, 0.7); box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); font-size: 0.95rem; }
.notice--wait { box-shadow: inset 0 0 0 1px rgba(232, 193, 112, 0.45); }
.notice b { color: var(--gold); }

/* ---------- очередь модерации ---------- */
.mod { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.mod li { padding: 18px 20px; border-radius: 16px; background: rgba(12, 22, 38, 0.7); box-shadow: inset 0 0 0 1px var(--line); }
.mod__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.mod__text { margin: 0 0 14px; color: var(--soft); }
.mod__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mini { padding: 0.5em 1.1em; border: 0; border-radius: 999px; background: transparent; color: var(--foam); font: 700 0.88rem var(--f-body); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.2s, color 0.2s, background 0.2s; }
.mini:hover { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold); }
.mini--ok { background: var(--gold); color: var(--gold-ink); box-shadow: none; }
.mini--ok:hover { color: var(--gold-ink); filter: brightness(1.06); }
.mini--no:hover { box-shadow: inset 0 0 0 1.5px var(--danger); color: var(--danger); }
.count-pill { display: inline-flex; min-width: 22px; height: 22px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 0.78rem; font-weight: 800; }

@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- вкладки панели управления ---------- */
.switcher--wide { grid-template-columns: repeat(3, 1fr); max-width: 560px; margin-bottom: 30px; }
.switcher--wide button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mod__state { align-self: center; color: var(--mist); font-size: 0.85rem; }
.mod__state--live { color: var(--good); }

/* ---------- живая часть первого экрана ---------- */
.facts {
  display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px);
  margin: 34px 0 0; padding: 0; list-style: none;
  opacity: 0; animation: settle 0.9s 0.95s var(--ease) forwards;
}
.facts li { display: flex; flex-direction: column; }
.facts b { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--f-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.facts span { margin-top: 4px; color: var(--mist); font-size: 0.92rem; }

.stage {
  position: relative; display: grid; place-items: center;
  place-content: center;
  aspect-ratio: 1; width: 100%; max-width: 460px; margin-inline: auto;
  contain: layout paint;
  /* сдвиг от курсора приходит переменными — сама анимация остаётся на видеокарте */
  transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 14px), 0);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0; animation: stageIn 1.1s 0.35s var(--ease) forwards;
}
@keyframes stageIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

.stage__glow {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(111, 168, 255, 0.30), rgba(232, 193, 112, 0.10) 45%, transparent 68%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }

.stage__rings { position: absolute; inset: 0; }
.ring {
  position: absolute; inset: 0; margin: auto;
  border-radius: 50%; display: block;
  will-change: transform;
}
.ring--1 { width: 100%; height: 100%; border: 1px solid rgba(143, 163, 186, 0.22); animation: spin 48s linear infinite; }
.ring--2 { width: 82%; height: 82%; border: 1px dashed rgba(232, 193, 112, 0.35); animation: spin 32s linear infinite reverse; }
.ring--3 { width: 64%; height: 64%; border: 1px solid rgba(111, 168, 255, 0.35); animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ring__dot {
  position: absolute; top: -5px; left: 50%;
  width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 14px 2px rgba(232, 193, 112, 0.55);
}

.stage__disc {
  position: relative; width: 52%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: rgba(12, 22, 38, 0.9);
  box-shadow: inset 0 0 0 1px rgba(232, 193, 112, 0.35), 0 30px 70px -30px #000;
  animation: float 6.5s ease-in-out infinite alternate;
}
@keyframes float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }

.face {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.face.is-on { opacity: 1; transform: none; }

.stage__caption {
  position: absolute; left: 50%; bottom: 2%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(12, 22, 38, 0.92); box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.stage__caption b { font: 600 1rem var(--f-display); }
.stage__caption span { display: inline-flex; align-items: center; gap: 7px; color: var(--mist); font-size: 0.84rem; }
.stage__caption i { width: 8px; height: 8px; border-radius: 50%; }
.stage__caption.is-switching b, .stage__caption.is-switching span { opacity: 0; }
.stage__caption b, .stage__caption span { transition: opacity 0.35s; }

.scroll-hint {
  position: absolute; left: 0; bottom: 34px;
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--mist); font-size: 0.9rem; text-decoration: none;
  opacity: 0; animation: settle 0.9s 1.25s var(--ease) forwards;
  transition: color 0.2s;
}
.scroll-hint:hover { color: var(--gold); }
.scroll-hint svg { width: 17px; height: 17px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* спокойный режим и запрет движения останавливают анимации первого экрана */
body.calm .stage__glow, body.calm .ring, body.calm .stage__disc, body.calm .scroll-hint svg { animation-play-state: paused; }
body.calm .stage { transition: none; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 118px; }
  .stage { max-width: 320px; order: -1; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage__glow, .ring, .stage__disc, .scroll-hint svg { animation: none !important; }
  .stage { transform: none !important; }
}

/* ---------- справочные страницы ---------- */
.h3 { margin: 34px 0 16px; font: 600 1.25rem var(--f-display); }
.fineprint { margin: 22px 0 0; color: var(--mist); font-size: 0.86rem; max-width: 70ch; }
.prose { max-width: 820px; }
.prose h2 { margin: 30px 0 10px; font: 600 1.2rem var(--f-display); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--soft); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--gold); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 16px; background: rgba(20, 35, 58, 0.88); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 22px 18px; color: var(--soft); }
.faq__a p { margin: 0 0 10px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.search, .select { padding: 0.7em 1em; border: 0; border-radius: 12px; background: rgba(12, 22, 38, 0.85); color: var(--foam); font: 500 0.95rem var(--f-body); box-shadow: inset 0 0 0 1.5px var(--line); }
.search { min-width: 220px; flex: 1 1 220px; max-width: 320px; }
.search:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.select { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 0.5em 1em; border: 0; border-radius: 999px; background: transparent; color: var(--mist); font: 600 0.9rem var(--f-body); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: color 0.2s, background 0.2s, box-shadow 0.2s; }
.chip:hover { color: var(--foam); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); box-shadow: none; }

.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hero-card { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 10px; border: 0; border-radius: 16px; background: rgba(20, 35, 58, 0.88); color: var(--foam); text-align: left; font-family: var(--f-body); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.hero-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--gold), 0 14px 30px -14px rgba(232, 193, 112, 0.4); }
.hero-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; background: var(--tide-2); }
.hero-card__name { font-weight: 700; font-size: 0.98rem; }
.hero-card__meta { display: flex; align-items: center; gap: 6px; color: var(--mist); font-size: 0.82rem; }
.hero-card__stars { margin-left: auto; color: var(--gold); letter-spacing: 1px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot.el--aero { color: #5fe0b0; } .dot.el--fusion { color: #ff8a5c; } .dot.el--glacio { color: #7fd8ff; }
.dot.el--electro { color: #b98cff; } .dot.el--havoc { color: #d16bff; } .dot.el--spectro { color: #f2dc7c; }

.tier { display: inline-flex; align-items: center; justify-content: center; padding: 0.2em 0.65em; border-radius: 8px; font: 800 0.8rem var(--f-display); background: var(--tide-2); color: var(--soft); }
.hero-card .tier { position: absolute; top: 16px; right: 16px; background: rgba(12, 22, 38, 0.88); }
.tier--SS { color: var(--gold-ink); background: var(--gold); }
.tier--S { color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.tier--A { color: #8cb8ff; box-shadow: inset 0 0 0 1.5px #8cb8ff; }
.tier--B, .tier--C { color: var(--mist); box-shadow: inset 0 0 0 1.5px var(--line); }
.hero-card .tier--SS { background: var(--gold); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 0.25em 0.8em; border-radius: 999px; background: rgba(12, 22, 38, 0.8); color: var(--soft); font-size: 0.84rem; box-shadow: inset 0 0 0 1px var(--line); }

.sheet { width: min(640px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px; background: #14233a; color: var(--foam); box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -30px #000; }
.sheet::backdrop { background: rgba(6, 12, 20, 0.75); }
.sheet[open] { animation: modalIn 0.3s var(--ease); }
.sheet__box { position: relative; padding: clamp(20px, 4vw, 32px); }
.sheet__close { position: absolute; top: 12px; right: 14px; }
.sheet__head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; padding-right: 32px; }
.sheet__img { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; background: var(--tide-2); flex: none; }
.sheet__head h2 { margin: 0; font: 600 1.5rem var(--f-display); }
.sheet__en { margin: 2px 0 10px; color: var(--mist); font-size: 0.9rem; }
.sheet__tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sheet__sec { margin-top: 20px; }
.sheet__sec h3 { margin: 0 0 8px; font: 600 1rem var(--f-display); color: var(--gold); }
.sheet__list { margin: 0; padding-left: 20px; color: var(--soft); }
.sheet__list li { padding: 2px 0; }

.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.banner { overflow: hidden; border-radius: 18px; background: rgba(20, 35, 58, 0.88); box-shadow: inset 0 0 0 1px var(--line); }
.banner__pic { position: relative; aspect-ratio: 16 / 9; background: var(--tide-2); }
.banner__pic img { width: 100%; height: 100%; object-fit: cover; }
.banner__kind { position: absolute; top: 10px; left: 10px; background: rgba(12, 22, 38, 0.9); }
.banner__body { padding: 16px 18px 18px; }
.banner__body h3 { margin: 0 0 4px; font: 600 1.05rem var(--f-display); }
.banner__feat { margin: 0 0 8px; color: var(--gold); font-weight: 700; }
.banner__when { margin: 0; color: var(--mist); font-size: 0.9rem; }
.banner__left { margin: 8px 0 0; color: var(--soft); }
.banner__timer { color: var(--foam); font-variant-numeric: tabular-nums; }

.banner-list { display: grid; margin: 0 0 18px; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 230px 1fr auto 56px; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); font-size: 0.93rem; }
.row__date { color: var(--mist); }
.row__name em { color: var(--gold); font-style: normal; }
.row__ver { color: var(--mist); text-align: right; }

.changelog__sum { margin: 6px 0 0; color: var(--foam); }

.foot__col { display: flex; align-items: center; gap: 16px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__links a { color: var(--mist); text-decoration: none; }
.foot__links a:hover { color: var(--foam); }

.danger-zone { margin-top: 24px; }
.danger-zone details summary { cursor: pointer; color: var(--mist); }
.btn--danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn--danger:hover { box-shadow: inset 0 0 0 1.5px var(--danger), 0 10px 30px -8px rgba(255, 143, 143, 0.4); }

.reply { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(232, 193, 112, 0.09); box-shadow: inset 3px 0 0 var(--gold); }
.reply b { display: block; color: var(--gold); font-size: 0.85rem; margin-bottom: 2px; }
.reply p { margin: 0; color: var(--soft); font-size: 0.95rem; }
.stage { display: inline-block; margin-left: 8px; padding: 0.15em 0.7em; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.stage--planned { color: #8cb8ff; box-shadow: inset 0 0 0 1.5px #8cb8ff; }
.stage--done { color: var(--gold-ink); background: var(--good); }
.mod__reply { display: grid; gap: 8px; margin-top: 12px; }
.mod__reply textarea { min-height: 70px; padding: 0.7em 1em; border: 0; border-radius: 12px; background: rgba(12, 22, 38, 0.85); color: var(--foam); font: 500 0.95rem var(--f-body); resize: vertical; box-shadow: inset 0 0 0 1.5px var(--line); }
.mod__reply textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }

@media (max-width: 720px) {
  .row { grid-template-columns: 1fr auto; }
  .row__date { grid-column: 1 / -1; }
  .row__ver { display: none; }
}

/* ---------- блок «Открыто всем» на главной ---------- */
.facts a { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform 0.25s var(--ease); }
.facts a:hover { transform: translateY(-3px); }
.facts a:hover span { color: var(--gold); }
.facts span { transition: color 0.2s; }

.explore { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.explore__banner, .explore__heroes {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; overflow: hidden; border-radius: 24px;
  background: rgba(20, 35, 58, 0.9); color: var(--foam); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 70px -40px #000;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.explore__banner:hover, .explore__heroes:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--gold), 0 30px 70px -36px rgba(232, 193, 112, 0.35); }

.explore__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.explore__banner:hover img { transform: scale(1.04); }
.explore__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 31, 0.96) 6%, rgba(10, 18, 31, 0.55) 48%, rgba(10, 18, 31, 0.08)); }
.explore__live { position: absolute; top: 18px; left: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 9px; padding: 0.4em 1em; border-radius: 999px; background: rgba(10, 18, 31, 0.82); font-size: 0.86rem; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }

.explore__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: clamp(20px, 3vw, 32px); }
.explore__title { font: 600 clamp(1.3rem, 2.6vw, 1.9rem)/1.15 var(--f-display); }
.explore__sub { color: var(--soft); max-width: 44ch; }
.explore__timer { margin-top: 4px; font: 700 clamp(1.5rem, 3.4vw, 2.4rem) var(--f-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.explore__cta { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 0.6em 1.3em; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 0.95rem; transition: transform 0.25s var(--ease); }
.explore__cta::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.explore__banner:hover .explore__cta::after, .explore__heroes:hover .explore__cta::after { transform: translateX(4px); }

.explore__heroes { justify-content: space-between; background: linear-gradient(160deg, rgba(27, 46, 74, 0.95), rgba(14, 26, 44, 0.95)); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 22px 22px 0; }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--tide-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.4s var(--ease); }
.mosaic img:nth-child(2), .mosaic img:nth-child(5) { transform: translateY(12px); }
.explore__heroes:hover .mosaic img { transform: translateY(-4px); }
.explore__heroes:hover .mosaic img:nth-child(2), .explore__heroes:hover .mosaic img:nth-child(5) { transform: translateY(8px); }

@media (max-width: 900px) {
  .explore { grid-template-columns: 1fr; }
  .explore__banner, .explore__heroes { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .explore__banner img, .mosaic img { transition: none; }
}
