﻿body.theme-home {
  background: linear-gradient(180deg, #131a55 0%, #0b1037 22%, #070921 52%, #030513 100%);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.index-page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 88px;
  --hero-races-overlap: 75px;
  --hero-races-base-top: 20px;
}

#section-announcement,
#section-races,
#section-policy {
  scroll-margin-top: calc(var(--site-header-height) + 10px);
}

.index-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
}

.index-hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(78px, 10vw, 144px);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 9, 30, 0), rgba(7, 9, 30, 0.96));
  z-index: 0;
}

.index-races,
.index-policy {
  position: relative;
}

.index-policy {
  overflow: hidden;
  overflow: clip;
  min-height: clamp(170px, 24vw, 360px);
  background:
    linear-gradient(180deg, rgba(4, 6, 20, 0.26), rgba(4, 6, 20, 0.62)),
    url('/v1.0.238/static/bg_lines-c7ea2145a43295e5662cc68e31b161e3.png') center top / cover no-repeat,
    url('/v1.0.238/static/bg-163531a284bbcc65c08b1eed771931f1.webp') center 56% / cover no-repeat;
}

.index-races {
  overflow: hidden;
  overflow: clip;
  z-index: 2;
  margin-top: calc(var(--hero-races-overlap) * -1);
  padding-top: calc(var(--hero-races-overlap) + var(--hero-races-base-top));
  background:
    linear-gradient(
      180deg,
      rgba(9, 11, 36, 0) 0,
      rgba(9, 11, 36, 0) calc(var(--race-stage-height) - 42px),
      rgba(9, 11, 36, 0.38) calc(var(--race-stage-height) + 28px),
      rgba(9, 11, 36, 0.86) calc(var(--race-stage-height) + 180px),
      #090b24 100%
    );
  --race-stage-height: clamp(760px, 84vh, 920px);
}

.index-races__stage-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--race-stage-height);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.index-races__stage-layer {
  position: absolute;
  inset: 0;
  background: url('/v1.0.238/static/bg-1-1451c58e43217a3eedacaa99c05990b8.webp') center top / cover no-repeat;
  opacity: 0;
  transition: opacity 360ms ease;
  will-change: opacity;
}

.index-races__stage-layer.is-active {
  opacity: 1;
}

.index-hero > .shell-container,
.index-races > .shell-container,
.index-policy > .shell-container {
  position: relative;
  z-index: 1;
}

.index-policy > .shell-container {
  min-height: inherit;
}

.index-policy__spacer {
  min-height: inherit;
}

.index-hero > .shell-container {
  width: 100%;
  max-width: none;
}

.index-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  --hero-scene-height: clamp(500px, calc(100vh - var(--site-header-height)), 840px);
  --hero-scene-height: clamp(500px, calc(100svh - var(--site-header-height)), 840px);
  --hero-scene-lift: clamp(112px, calc(var(--hero-scene-height) * 0.17), 144px);
  --hero-copy-width: 500px;
  --hero-side-offset: clamp(22px, 4vw, 44px);
  min-height: var(--hero-scene-height);
}

.index-stage__backdrop {
  position: absolute;
  top: calc(-1 * var(--hero-scene-lift) + 34px);
  right: 0;
  bottom: -30px;
  left: 0;
  background: url('/v1.0.238/static/bg-ae80e966c13b1f84c9ec8dda64c80783.jpg') center calc(50% + 28px) / max(100vw, calc((var(--hero-scene-height) + 156px) * 2.1333)) auto no-repeat;
}

.index-stage__backdrop::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(7, 9, 30, 0), rgba(7, 9, 30, 0.9));
}

.index-stage__grid {
  position: relative;
  z-index: 1;
  min-height: var(--hero-scene-height);
  height: var(--hero-scene-height);
}

.index-stage__main {
  position: relative;
  width: min(var(--shell-width), calc(100% - 32px));
  margin: 0 auto;
  box-sizing: border-box;
  min-height: var(--hero-scene-height);
  height: var(--hero-scene-height);
  padding: 40px 44px 38px;
}

.index-stage__logo {
  width: clamp(196px, 15vw, 242px);
  opacity: 0.94;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.32));
  flex: 0 0 auto;
}

.index-stage__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.index-stage__character {
  position: absolute;
  bottom: clamp(-108px, calc(-114px + ((var(--hero-scene-height) - 500px) * 0.06)), -84px);
  opacity: 0.96;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
  filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.42));
  width: auto;
  max-width: none;
}

.index-stage__character--classic {
  left: calc(((100vw - 100%) / -2) - 108px);
  height: clamp(560px, calc(300px + 30vw), 900px);
  transform: translateX(-26px);
}

.index-stage__character--evolution {
  right: calc(((100vw - 100%) / -2) - 114px);
  height: clamp(580px, calc(316px + 30vw), 920px);
  transform: translateX(26px);
}

.index-stage[data-reveal].is-visible .index-stage__character {
  transform: translateX(0);
}

.index-stage[data-screen="classic"] .index-stage__character--classic {
  filter: drop-shadow(0 18px 50px rgba(73, 149, 255, 0.26));
}

.index-stage[data-screen="classic"] .index-stage__character--evolution {
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.32));
}

.index-stage[data-screen="evolution"] .index-stage__character--classic {
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.32));
}

.index-stage[data-screen="evolution"] .index-stage__character--evolution {
  filter: drop-shadow(0 18px 50px rgba(255, 110, 153, 0.22));
}

.index-stage__content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--hero-copy-width));
  min-height: calc(var(--hero-scene-height) - 118px);
  display: flex;
  align-items: flex-start;
  margin: 0 auto;
  padding-top: clamp(86px, calc(var(--hero-scene-height) * 0.145), 126px);
  padding-left: 0;
  container-type: inline-size;
}

.index-stage__panel {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 0 0 18px;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.index-stage__head {
  position: static;
}

.index-stage__logo-button {
  position: absolute;
  top: clamp(44px, calc(var(--hero-scene-height) * 0.072), 62px);
  left: 46px;
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0.88;
  transition: opacity 160ms ease, transform 160ms ease;
}

.index-stage__logo-button:hover,
.index-stage__logo-button.is-active {
  opacity: 1;
}

.index-stage__switches {
  display: contents;
}

.index-stage__switch {
  position: absolute;
  top: clamp(250px, calc(var(--hero-scene-height) * 0.39), 334px);
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.index-stage__switch--classic {
  left: calc(50% - (var(--hero-copy-width) / 2) - var(--hero-side-offset));
  transform: translate(-100%, -50%);
  text-align: right;
  justify-items: end;
}

.index-stage__switch--evolution {
  left: calc(50% + (var(--hero-copy-width) / 2) + var(--hero-side-offset));
  transform: translateY(-50%);
  text-align: left;
  justify-items: start;
}

.index-stage__switch:hover,
.index-stage__switch.is-active {
  color: #ffffff;
}

.index-stage__switch-eyebrow {
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
}

.index-stage__switch-title {
  font-family: BebasNeue, sans-serif;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: 0.08em;
  line-height: 0.96;
}

.index-stage__slides {
  position: relative;
  min-height: 0;
}

.index-slide {
  display: none;
  min-height: 0;
  gap: 18px;
  align-content: end;
}

.index-stage[data-screen="main"] .index-slide[data-screen="main"],
.index-stage[data-screen="classic"] .index-slide[data-screen="classic"],
.index-stage[data-screen="evolution"] .index-slide[data-screen="evolution"] {
  display: grid;
}

.index-slide__eyebrow {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.index-slide__lead {
  width: 100%;
}

.index-slide__title {
  width: 100%;
  font-family: BebasNeue, sans-serif;
  font-size: 56px;
  font-size: clamp(40px, 8.8cqi, 56px);
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  text-wrap: nowrap;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.index-slide--main .index-slide__title {
  width: 100%;
}

.index-title-line {
  display: block;
}

.index-slide__caption {
  margin-top: 16px;
  width: 100%;
  color: var(--text-muted);
  font-size: clamp(8.2px, 1.72vw, 13px);
  line-height: 1.45;
  white-space: nowrap;
  text-wrap: nowrap;
}

.index-slide__caption-list {
  display: grid;
  gap: 10px;
  width: 100%;
}

.index-slide__caption-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: clamp(9px, 2.2vw, 13px);
  line-height: 1.4;
}

.index-slide__caption-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.index-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.index-slide__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.index-slide__feature {
  min-height: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.index-slide__feature:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.index-slide__feature-number {
  display: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: BebasNeue, sans-serif;
  font-size: 26px;
  letter-spacing: 0.1em;
}

.index-slide__feature-text {
  margin-top: 12px;
  color: var(--text-main);
  font-size: clamp(7.8px, 1.5vw, 12px);
  line-height: 1.45;
  white-space: nowrap;
  text-wrap: nowrap;
}



.index-section-head {
  max-width: 700px;
  margin-bottom: 28px;
  padding-top: 26px;
}

.index-races .index-section-head {
  max-width: none;
  margin-bottom: 24px;
  padding-top: 10px;
}

.index-section-head__title {
  width: min(100%, 600px);
}

.index-section-head__text {
  width: min(100%, 560px);
}

.index-section-head__eyebrow {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.index-section-head__title {
  margin-top: 10px;
  font-family: BebasNeue, sans-serif;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: 0.04em;
}

.index-races .index-section-head__title {
  width: 100%;
  max-width: none;
  font-size: clamp(22px, 7.6vw, 88px);
  line-height: 0.9;
  white-space: nowrap;
  text-wrap: nowrap;
}

.index-races .index-section-head__title .index-title-line {
  display: inline;
}

.index-races .index-section-head__title .index-title-line + .index-title-line {
  margin-left: 0.3em;
}

.index-races .index-section-head__text {
  width: 100%;
  max-width: none;
  font-size: clamp(7.4px, 1.6vw, 17px);
  line-height: 1.25;
  white-space: nowrap;
  text-wrap: nowrap;
}

.index-section-head__text {
  margin-top: 18px;
  max-width: 48rem;
  color: var(--text-muted);
  font-size: clamp(12px, 2.1vw, 17px);
}

.race-viewer {
  --race-accent: #f5b105;
  --race-glow: rgba(245, 177, 5, 0.26);
  display: grid;
  gap: 20px;
}

.race-viewer__card {
  transition: opacity 220ms ease;
}

.race-viewer[data-state="loading"] .race-viewer__tabs,
.race-viewer[data-state="error"] .race-viewer__tabs {
  opacity: 0.56;
  pointer-events: none;
}

.race-viewer[data-state="loading"] .race-viewer__card {
  opacity: 0.84;
}

.race-viewer[data-active-race="2"] {
  --race-accent: #67abff;
  --race-glow: rgba(103, 171, 255, 0.28);
}

.race-viewer[data-active-race="3"] {
  --race-accent: #62da82;
  --race-glow: rgba(98, 218, 130, 0.28);
}

.race-viewer__controls {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 16px;
  align-items: center;
}

.race-viewer__arrow {
  min-height: 64px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.race-viewer__arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.race-viewer__arrow:disabled {
  opacity: 0.44;
  cursor: default;
}

.race-viewer__arrow:disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.race-viewer__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.race-viewer__tab {
  min-height: 76px;
  border-radius: 24px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  display: grid;
  align-content: center;
  gap: 5px;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.race-viewer__tab:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.race-viewer__tab:disabled {
  opacity: 0.48;
  cursor: default;
  transform: none;
}

.race-viewer__tab.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--race-glow);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.race-viewer__tab-race {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.race-viewer__tab-name {
  font-family: BebasNeue, sans-serif;
  font-size: 30px;
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.race-card {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border-radius: 34px;
  padding: 18px 28px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(180deg, rgba(7, 11, 33, 0.72), rgba(3, 5, 18, 0.8));
}

.race-card::before,
.race-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.race-card::before {
  background: linear-gradient(90deg, rgba(6, 8, 24, 0.78) 0%, rgba(6, 8, 24, 0.56) 38%, rgba(6, 8, 24, 0.2) 70%, rgba(6, 8, 24, 0.62) 100%);
}

.race-card::after {
  background:
    radial-gradient(circle at 18% 16%, var(--race-glow), transparent 24%),
    linear-gradient(180deg, transparent 52%, rgba(3, 5, 18, 0.72) 100%);
}

.race-card--1 {
  --race-accent: #f5b105;
  --race-glow: rgba(245, 177, 5, 0.26);
}

.race-card--2 {
  --race-accent: #67abff;
  --race-glow: rgba(103, 171, 255, 0.28);
}

.race-card--3 {
  --race-accent: #62da82;
  --race-glow: rgba(98, 218, 130, 0.28);
}

.race-card__copy {
  position: relative;
  z-index: 1;
  width: min(76%, 940px);
}

.race-card__eyebrow {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.race-card__name-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 0;
}

.race-card__title-block {
  display: grid;
  gap: 6px;
}

.race-card__emblem {
  width: 72px;
  aspect-ratio: 1;
  object-fit: contain;
}

.race-card__title {
  font-family: BebasNeue, sans-serif;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.92;
  letter-spacing: 0.05em;
}

.race-card__eyebrow--inline {
  color: rgba(255, 255, 255, 0.7);
  font-family: BebasNeue, sans-serif;
  font-size: 24px;
  line-height: 0.94;
  letter-spacing: 0.12em;
}

.race-card__text {
  margin-top: 14px;
  color: var(--text-muted);
  width: min(169%, 1280px);
  max-width: none;
  font-size: clamp(14.6px, 1.74vw, 20.3px);
  line-height: 1.35;
  white-space: nowrap;
  text-wrap: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.race-card__text br {
  display: block;
  content: '';
}

.race-card__classes {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.race-card__classes-title {
  color: var(--race-accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.race-card__class-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.race-card__class {
  min-height: 118px;
  border-radius: 20px;
  background: rgba(5, 9, 28, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 14px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  color: var(--text-main);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.race-card__class:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--race-glow);
}

.race-card__class-icon {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.race-card__class-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.race-card__visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 310px;
  max-width: 42%;
  pointer-events: none;
  z-index: 1;
}

.race-card__character {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 20px 46px rgba(0, 0, 0, 0.36));
}

.race-viewer__fallback {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.race-viewer__fallback a {
  color: var(--accent);
}

.race-popup {
  z-index: 99;
}

.race-popup .hystmodal__wrap {
  align-items: flex-start;
  padding: 20px 16px;
  backdrop-filter: blur(12px);
}

.race-popup__dialog {
  width: min(1220px, calc(100% - 32px));
  margin: 12px auto;
  max-height: calc(100vh - 56px);
  overflow: hidden;
  border-radius: 34px;
  background: #060918;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 46px 120px rgba(0, 0, 0, 0.5);
}

.race-popup__chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 22px 0;
}

.race-popup__close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.race-popup__switchers {
  display: flex;
  gap: 10px;
}

.race-popup__switch {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.race-viewer__arrow:focus-visible,
.race-viewer__tab:focus-visible,
.race-card__class:focus-visible,
.race-popup__close:focus-visible,
.race-popup__switch:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

.race-popup__body {
  padding: 18px 32px 34px;
  max-height: calc(100vh - 124px);
  overflow: auto;
}

.race-popup__identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.race-popup__emblem {
  width: 88px;
  aspect-ratio: 1;
  object-fit: contain;
}

.race-popup__eyebrow {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.race-popup__title {
  margin-top: 8px;
  font-family: BebasNeue, sans-serif;
  font-size: 56px;
  line-height: 0.92;
  letter-spacing: 0.04em;
}

.race-popup__stages {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.race-popup__stage {
  padding: 0;
  background: none;
  border: 0;
}

.race-popup__stage + .race-popup__stage {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.race-popup__stage-title {
  font-family: BebasNeue, sans-serif;
  font-size: 34px;
  line-height: 0.96;
  letter-spacing: 0.04em;
}

.race-popup__class-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.race-popup__class-card {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0;
  background: none;
}

.race-popup__class-card + .race-popup__class-card {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.race-popup__class-image {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.race-popup__class-name {
  font-family: 'Kelson Sans RU', Gotham, sans-serif;
  font-size: 24px;
  line-height: 1.15;
}

.race-popup__class-text {
  margin-top: 10px;
  color: var(--text-muted);
  line-height: 1.7;
}

.race-popup__skills-title {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.race-popup__skills {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.race-popup__skill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: #eef2ff;
  line-height: 1.6;
}

.race-popup__skill-icon,
.race-popup__skill-dot {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.race-popup__skill-dot {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffffff);
}

@media (max-width: 1320px) {
  .race-viewer {
    gap: 18px;
  }

  .race-card__copy {
    width: min(72%, 820px);
  }

  .race-card__class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



@media (max-width: 900px) {
  .index-page {
    gap: 0;
    padding-top: 0;
  }
}

@media (max-width: 750px) {
  .index-page {
    --hero-races-overlap: 58px;
    --hero-races-base-top: 16px;
  }

  .index-races {
    --race-stage-height: 700px;
  }

  .index-policy {
    min-height: 240px;
    background-position: center top, center top, center 52%;
  }

  .race-card {
    padding: 22px;
  }

  .race-card__copy {
    width: 100%;
  }

  .race-card__text {
    width: 100%;
    font-size: clamp(10px, 2.0vw, 20px);
  }

  .race-card__visual {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 0;
  }

  .race-card__character {
    width: auto;
    height: 180px;
    max-height: 180px;
    object-fit: contain;
    object-position: top right;
  }

  .race-card__class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .race-viewer__controls {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 10px;
  }

  .race-viewer__tabs {
    gap: 10px;
  }

  .race-viewer__tab {
    min-height: 66px;
    padding: 12px 14px;
  }

  .race-popup__dialog {
    width: calc(100% - 20px);
    margin: 10px auto;
    max-height: calc(100vh - 20px);
  }

  .race-popup__chrome {
    padding: 16px 16px 0;
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .race-popup__switchers {
    width: 100%;
    justify-content: space-between;
  }

  .race-popup__body {
    padding: 16px 18px 24px;
    max-height: calc(100vh - 110px);
  }

  .race-popup__title {
    font-size: 42px;
  }

  .race-popup__class-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .race-popup__class-image {
    max-width: 220px;
  }

  .index-stage {
    min-height: clamp(500px, calc(100svh - var(--site-header-height)), 840px);
    --hero-scene-height: clamp(500px, calc(100svh - var(--site-header-height)), 840px);
  }

  .index-stage__main {
    width: min(var(--shell-width), calc(100% - 24px));
    min-height: var(--hero-scene-height);
    height: var(--hero-scene-height);
    padding: 22px 22px 28px;
  }

  .index-stage__content {
    min-height: 0;
    margin: 0 auto;
    padding-top: 0;
    padding-left: 0;
  }

  .index-stage__backdrop {
    top: calc(-1 * var(--hero-scene-lift) + 34px);
    bottom: -30px;
    background: url('/v1.0.238/static/bg-ae80e966c13b1f84c9ec8dda64c80783.jpg') center calc(50% + 28px) / max(100vw, calc((var(--hero-scene-height) + 156px) * 2.1333)) auto no-repeat;
  }

  .index-stage__character {
    bottom: clamp(-108px, calc(-76px - 2.4vw), -84px);
    display: block;
    opacity: 0.96;
  }

  .index-stage__character--classic {
    left: clamp(-132px, calc(-24px - 13vw), -72px);
    height: clamp(360px, calc(200px + 48vw), 560px);
  }

  .index-stage__character--evolution {
    right: clamp(-136px, calc(-26px - 13vw), -76px);
    height: clamp(380px, calc(220px + 48vw), 580px);
  }

  .index-stage__panel {
    max-width: none;
    padding-bottom: 0;
  }

  .index-stage__head {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
  }

  .index-stage__logo-button {
    position: static;
    justify-self: start;
  }

  .index-stage__switches {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .index-stage__switch {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(4, 8, 25, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-items: center;
    text-align: center;
  }

  .index-stage__switch-title {
    font-size: clamp(18px, 4.2vw, 24px);
  }

  .index-slide__lead,
  .index-slide__title,
  .index-slide__caption,
  .index-slide__caption-list,
  .index-section-head__title,
  .index-section-head__text {
    width: 100%;
  }

  .index-slide__title {
    font-size: clamp(20px, 6.2vw, 33px);
    line-height: 0.94;
    letter-spacing: 0.02em;
  }

  .index-slide__caption,
  .index-slide__caption-list li {
    font-size: clamp(8.2px, 1.72vw, 13px);
    line-height: 1.35;
  }

  .index-slide__feature-text {
    margin-top: 0;
    font-size: clamp(7.8px, 1.5vw, 12px);
    line-height: 1.35;
  }

  .index-section-head__text {
    font-size: clamp(12px, 2.1vw, 17px);
    line-height: 1.38;
  }

  .index-races .index-section-head__title {
    font-size: clamp(22px, 7.6vw, 88px);
  }

  .index-slide__features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .index-slide__feature {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .index-slide__feature:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

















@media (max-width: 430px) {
  .index-races .index-section-head__title,
  .index-races .index-section-head__text,
  .race-card__text {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-wrap: wrap;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .index-races .index-section-head__title {
    font-size: clamp(28px, 9.2vw, 40px);
    line-height: 0.92;
  }

  .index-races .index-section-head__title .index-title-line {
    display: block;
  }

  .index-races .index-section-head__title .index-title-line + .index-title-line {
    margin-left: 0;
  }

  .index-races .index-section-head__text {
    font-size: 13px;
    line-height: 1.35;
  }

  .race-viewer__controls {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .race-viewer__arrow {
    min-height: 54px;
    border-radius: 18px;
    font-size: 24px;
  }

  .race-viewer__tabs {
    gap: 8px;
  }

  .race-viewer__tab {
    min-height: 62px;
    padding: 10px 10px;
    border-radius: 20px;
  }

  .race-viewer__tab-race {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .race-viewer__tab-name {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  .race-card {
    min-height: 0;
    padding: 18px;
  }

  .race-card__copy {
    width: 100%;
  }

  .race-card__name-row {
    gap: 12px;
    padding-right: 104px;
  }

  .race-card__emblem {
    width: 56px;
  }

  .race-card__eyebrow--inline {
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  .race-card__title {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 0.94;
  }

  .race-card__text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.34;
  }

  .race-card__text br {
    display: none;
  }

  .race-card__classes {
    margin-top: 16px;
    padding-top: 16px;
  }

  .race-card__class-grid {
    gap: 10px;
  }

  .race-card__class {
    min-height: 104px;
    padding: 12px 10px;
    gap: 10px;
  }

  .race-card__class-icon {
    width: 52px;
    height: 52px;
  }

  .race-card__class-name {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .race-card__visual {
    top: 10px;
    right: 8px;
  }

  .race-card__character {
    height: 150px;
    max-height: 150px;
  }
}
