/* ============ L2R MULTI · main stylesheet ============ */
:root {
  --bg-0: #120820;
  --bg-1: #1a0b2e;
  --bg-2: #241238;
  --panel: rgba(148, 96, 255, 0.06);
  --panel-border: rgba(148, 96, 255, 0.18);
  --violet: #8b3dff;
  --violet-soft: #a86bff;
  --magenta: #e5199e;
  --amber: #ffb020;
  --amber-2: #f08c19;
  --text: #f4eefc;
  --muted: #b3a1d4;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: none;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.header__link:focus-visible { color: var(--text); outline: none; }
.header__link:focus-visible::after { right: 0; }
.socials__link:focus-visible,
.lang__toggle:focus-visible,
.burger:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 2px; border-radius: 6px; }

.btn--amber {
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-2) 100%);
  color: #2b1600;
  box-shadow: 0 8px 30px rgba(240, 140, 25, 0.35);
}
.btn--amber:hover { box-shadow: 0 12px 40px rgba(240, 140, 25, 0.55); filter: brightness(1.06); }

.btn--ghost {
  background: rgba(148, 96, 255, 0.08);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(168, 107, 255, 0.45);
}
.btn--ghost:hover { background: rgba(148, 96, 255, 0.16); }

.btn--lg { padding: 20px 44px; font-size: 15px; }
.btn--sm { padding: 11px 24px; font-size: 12px; }

.btn--discord { background: #5865f2; color: #fff; box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4); }
.btn--discord:hover { box-shadow: 0 12px 40px rgba(88, 101, 242, 0.6); }
.btn--telegram { background: #2aabee; color: #fff; box-shadow: 0 8px 30px rgba(42, 171, 238, 0.4); }
.btn--telegram:hover { box-shadow: 0 12px 40px rgba(42, 171, 238, 0.6); }
.btn__icon { width: 20px; height: 20px; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(18, 8, 32, 0.72), transparent);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  background: rgba(18, 8, 32, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(148, 96, 255, 0.15);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
/* brand wordmark: metallic */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  transition: filter 0.25s ease;
}
.brand:hover { filter: brightness(1.12); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #efeaf8 30%, #a99cc6 48%, #fdfbff 58%, #c6b8e4 82%, #8f7fb5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(139, 61, 255, 0.45));
}
.brand__row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}
.brand__line {
  height: 1.5px;
  flex: 1;
  min-width: 12px;
  background: linear-gradient(90deg, transparent, var(--amber));
}
.brand__line--r { background: linear-gradient(90deg, var(--amber), transparent); }
.brand__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 6.5px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffd77a, #f08c19);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand--footer .brand__name { font-size: 38px; }
.brand--footer .brand__row { margin-top: 6px; }
.brand--footer .brand__sub { font-size: 9.5px; }
.header__nav { display: flex; align-items: center; gap: 28px; margin-inline: auto; flex-wrap: nowrap; white-space: nowrap; }
.header__link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.header__link:hover { color: var(--text); }
.header__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--amber));
  transition: right 0.25s ease;
}
.header__link:hover::after { right: 0; }

/* ---- header nav groups: "Игра" and "Сообщество" are disclosure buttons with a compact menu.
   The top level stays at five items; new sections go inside a group, never on the top level. ---- */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group__toggle {
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  line-height: 1.4;
}
.nav-group__caret { width: 10px; height: 10px; flex: 0 0 auto; opacity: 0.75; transition: transform 0.2s ease; }
.nav-group.is-open .nav-group__toggle { color: var(--text); }
.nav-group.is-open .nav-group__toggle::after { right: 0; }
.nav-group.is-open .nav-group__caret { transform: rotate(180deg); }
.nav-group__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -12px;
  z-index: 40;
  min-width: 224px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(180deg, rgba(38, 20, 64, 0.98), rgba(24, 11, 42, 0.98));
  border: 1px solid rgba(168, 107, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 61, 255, 0.2);
  animation: dl-pop 0.18s ease;
}
.nav-group__menu[hidden] { display: none; }
.nav-group__menu::before {
  content: '';
  position: absolute;
  top: -6px; left: 24px;
  width: 10px; height: 10px;
  background: rgba(38, 20, 64, 0.98);
  border-left: 1px solid rgba(168, 107, 255, 0.35);
  border-top: 1px solid rgba(168, 107, 255, 0.35);
  transform: rotate(45deg);
}
/* invisible bridge over the gap so the pointer can travel from the toggle into the menu */
.nav-group__menu::after { content: ''; position: absolute; left: 0; right: 0; top: -13px; height: 13px; }
.nav-group__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-group__item::before {
  content: '';
  width: 5px; height: 5px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  background: rgba(168, 107, 255, 0.55);
  transition: background 0.15s ease;
}
.nav-group__item:hover, .nav-group__item:focus-visible { color: var(--text); background: rgba(148, 96, 255, 0.16); outline: none; }
.nav-group__item:hover::before, .nav-group__item:focus-visible::before, .nav-group__item.is-active::before { background: var(--amber); }
.nav-group__item.is-current { color: var(--text); }
.nav-group__item[hidden] { display: none; }

.header__actions { display: flex; align-items: center; gap: 18px; }

.socials { display: flex; gap: 10px; }
.socials__link {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(148, 96, 255, 0.1);
  color: var(--muted);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.socials__link svg { width: 19px; height: 19px; }
.socials__link:hover { color: #fff; background: rgba(148, 96, 255, 0.28); transform: translateY(-2px); }

/* language selector: "RU ▾" opens the same compact menu the nav groups use */
.lang { position: relative; display: flex; align-items: center; }
.lang__toggle {
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 6px 4px;
  transition: color 0.2s;
}
.lang__toggle:hover, .lang.is-open .lang__toggle { color: var(--text); }
.lang__current { color: var(--amber); }
.lang.is-open .nav-group__caret { transform: rotate(180deg); }
.lang__menu { left: auto; right: -6px; min-width: 176px; }
.lang__menu::before { left: auto; right: 16px; }
.lang__menu::after { left: auto; right: 0; width: 100%; }
.lang__btn { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--font-body); }
.lang__code {
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--violet-soft);
  min-width: 24px;
}
.lang__btn.is-active { color: var(--text); }
.lang__btn.is-active .lang__code { color: var(--amber); }

.burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 0 100%);
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('../assets/img/hero-bg.jpg') center / cover no-repeat;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 8, 32, 0.88) 0%, rgba(18, 8, 32, 0.42) 45%, rgba(18, 8, 32, 0.05) 100%),
    linear-gradient(180deg, rgba(18, 8, 32, 0.35) 0%, transparent 25%, transparent 62%, var(--bg-0) 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}
.hero__glow--magenta {
  width: 500px; height: 500px;
  background: var(--magenta);
  left: -180px; top: 20%;
  opacity: 0.25;
}
.hero__glow--violet {
  width: 600px; height: 600px;
  background: var(--violet);
  right: -150px; bottom: -10%;
  opacity: 0.2;
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 60px;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}
/* hero badge: two-segment launcher plate */
.hero__badge {
  --hb-cut: 10px;   /* corner slant, echoes CTA clip-path      */
  --hb-seam: 9px;   /* diagonal seam between the two segments  */
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 28px;
  filter: drop-shadow(0 10px 22px rgba(18, 8, 32, 0.55))
          drop-shadow(0 0 18px rgba(139, 61, 255, 0.16));
}
.hero__badge-plate {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  padding: 1px;
  background: linear-gradient(100deg,
    rgba(255, 176, 32, 0.7) 0%,
    rgba(255, 176, 32, 0.22) 20%,
    rgba(168, 107, 255, 0.4) 46%,
    rgba(148, 96, 255, 0.15) 74%,
    rgba(229, 25, 158, 0.32) 100%);
  clip-path: polygon(var(--hb-cut) 0, 100% 0, calc(100% - var(--hb-cut)) 100%, 0 100%);
  isolation: isolate;
}
/* dark glass fill, inset 1px so the gradient reads as a hairline frame */
.hero__badge-plate::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  clip-path: polygon(var(--hb-cut) 0, 100% 0, calc(100% - var(--hb-cut)) 100%, 0 100%);
  background:
    radial-gradient(90px 150% at 20px 50%, rgba(255, 176, 32, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(26, 11, 46, 0.88), rgba(18, 8, 32, 0.95));
  box-shadow: inset 0 1px 0 rgba(244, 238, 252, 0.05);
}
.hero__badge-tag {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px 8px 17px;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--hb-seam)) 100%, 0 100%);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, var(--amber) 0%, var(--amber-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  color: var(--bg-0);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__badge-gem { flex: 0 0 auto; display: block; }
.hero__badge-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin-left: calc(-1 * var(--hb-seam));
  padding: 8px 20px 8px 19px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}
/* periodic sheen sweep across the plate */
.hero__badge-plate::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 48px;
  z-index: 2;
  background: linear-gradient(105deg,
    rgba(244, 238, 252, 0) 0%,
    rgba(244, 238, 252, 0.12) 50%,
    rgba(244, 238, 252, 0) 100%);
  transform: translateX(-70px) skewX(-18deg);
  animation: hero-badge-sheen 7s cubic-bezier(0.4, 0, 0.2, 1) 1.5s infinite;
  pointer-events: none;
}
@keyframes hero-badge-sheen {
  0%        { transform: translateX(-70px) skewX(-18deg); }
  16%, 100% { transform: translateX(540px) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__badge-plate::after { animation: none; visibility: hidden; }
}
@media (max-width: 480px) {
  .hero__badge { --hb-cut: 8px; --hb-seam: 8px; }
  .hero__badge-tag   { padding: 7px 12px 7px 14px; font-size: 9px; letter-spacing: 0.12em; }
  .hero__badge-label { padding: 7px 14px 7px 16px; font-size: 10.5px; letter-spacing: 0.06em; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__title { font-family: var(--font-display); line-height: 1.05; margin-bottom: 24px; }
.hero__title-top {
  display: block;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero__title-main {
  display: block;
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(100deg, #fff 20%, #d9c2ff 50%, var(--violet-soft) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(139, 61, 255, 0.45));
}
.hero__desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.server-card {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(24, 12, 42, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 176, 32, 0.5);
  border-radius: 16px;
  padding: 14px 22px 14px 14px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.server-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  background: radial-gradient(circle at 30% 30%, #3a1f5e, #1c0f33);
  border: 2px solid rgba(168, 107, 255, 0.4);
  color: var(--text);
}
.server-card__tag {
  position: absolute;
  top: -10px; left: 18px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, var(--amber), var(--amber-2));
  color: #2b1600;
  padding: 3px 12px;
  border-radius: 6px;
  text-transform: uppercase;
}
.server-card__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.server-card__type {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted);
}
.server-card__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3ddc84; box-shadow: 0 0 8px #3ddc84;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* dot follows the live verdict (data-status set by js/main.js renderServer) */
.server-card[data-status="offline"] .server-card__dot { background: #ff5c7a; box-shadow: 0 0 8px #ff5c7a; }
.server-card[data-status="degraded"] .server-card__dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.server-card[data-status="unknown"] .server-card__dot,
.server-card[data-status="checking"] .server-card__dot { background: #8d7bb0; box-shadow: none; }
.server-card[data-status="checking"] .server-card__dot { animation: pulse 1.2s ease-in-out infinite; }
/* pre-OBT: the amber tag cools down to violet, nothing is "live" yet */
.server-card[data-stage="preobt"] { border-color: rgba(168, 107, 255, 0.5); }
.server-card[data-stage="preobt"] .server-card__tag {
  background: linear-gradient(180deg, var(--violet-soft), var(--violet));
  color: var(--text);
}
.server-card[data-stage="live"] { border-color: rgba(61, 220, 132, 0.45); }
.server-card[data-stage="live"][data-status="offline"] { border-color: rgba(255, 92, 122, 0.45); }

/* --- countdown / status side of the plate --- */
.server-card__side {
  display: flex;
  align-items: center;
  margin-left: 6px;
  padding-left: 20px;
  border-left: 1px solid rgba(168, 107, 255, 0.22);
  min-height: 52px;
}
.server-card__side[hidden] { display: none; }
.countdown { display: grid; gap: 6px; }
.countdown[hidden] { display: none; }
.countdown__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.countdown__units { display: flex; gap: 6px; }
.countdown__unit {
  display: grid;
  justify-items: center;
  min-width: 46px;
  padding: 5px 6px 4px;
  border-radius: 8px;
  background: rgba(148, 96, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(168, 107, 255, 0.28);
}
.countdown__unit b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  text-shadow: 0 0 14px rgba(255, 176, 32, 0.35);
}
.countdown__unit i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.1);
  box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.35);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3ddc84;
  white-space: nowrap;
}
.status-pill[hidden] { display: none; }
.status-pill__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}
.status-pill[data-state="offline"] {
  color: #ff5c7a;
  background: rgba(255, 92, 122, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 122, 0.35);
}
.status-pill[data-state="offline"] .status-pill__dot { animation: none; }
.status-pill[data-state="degraded"] {
  color: var(--amber);
  background: rgba(255, 176, 32, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.4);
}
.status-pill[data-state="unknown"],
.status-pill[data-state="checking"] {
  color: var(--muted);
  background: rgba(148, 96, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(168, 107, 255, 0.3);
}
.status-pill[data-state="unknown"] .status-pill__dot { animation: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .status-pill__dot, .server-card[data-status="checking"] .server-card__dot { animation: none; }
}

.hero__art {
  --class-color: #a86bff;
  --class-glow: rgba(139, 61, 255, 0.45);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: stretch;
  pointer-events: none;
}
.hero__art::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 130%; aspect-ratio: 1;
  transform: translate(-50%, 30%);
  background: radial-gradient(circle, var(--class-glow), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
  transition: background 0.5s ease;
}
.char-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: -110px;
  animation: glow-pulse 5s ease-in-out infinite;
  will-change: transform, opacity;
  transition: transform 0.35s ease-out, opacity 0.26s ease;
}
.hero__char {
  display: block;
  max-height: min(94vh, 1010px);
  max-width: none;
  width: auto;
}
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 34px var(--class-glow)); }
  50% { filter: drop-shadow(0 0 58px var(--class-glow)); }
}




/* subtle sparkles around the hero character */
.sparkle {
  position: absolute;
  z-index: 2;
  width: 10px; height: 10px;
  background: radial-gradient(circle, #ffd77a 0%, rgba(255, 176, 32, 0.7) 35%, transparent 70%);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 4s ease-in-out infinite;
  pointer-events: none;
}
.sparkle--1 { top: 18%; left: 12%; animation-delay: 0s; }
.sparkle--2 { top: 40%; right: 8%; width: 7px; height: 7px; animation-delay: 1.4s; }
.sparkle--3 { top: 64%; left: 6%; width: 8px; height: 8px; animation-delay: 2.6s;
  background: radial-gradient(circle, #d9c2ff 0%, rgba(168, 107, 255, 0.7) 35%, transparent 70%); }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.35) rotate(45deg); }
}

/* particles */
.hero__particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--violet-soft);
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-110vh) scale(0.4); opacity: 0; }
}

/* ============ SECTIONS ============ */
.section { padding-block: 110px; position: relative; scroll-margin-top: 40px; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 14px;
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 18px;
}
.section-head__sub { color: var(--muted); font-size: 16px; }

/* ============ FEATURES ============ */
.features {
  position: relative;
  background: linear-gradient(180deg, #1e0e34 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  padding-top: 160px;
  margin-top: -64px;
  clip-path: polygon(0 64px, 100% 0, 100% 100%, 0 100%);
}
.features::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 67px;
  background: linear-gradient(90deg, var(--magenta), var(--violet), var(--amber));
  clip-path: polygon(0 calc(100% - 3px), 100% 0, 100% 3px, 0 100%);
  opacity: 0.55;
}
/* --- server passport strip --- */
.specs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 56px;
}
.spec {
  position: relative;
  background: rgba(24, 12, 42, 0.72);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 20px 12px 16px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.spec::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0.55;
}
.spec:hover { transform: translateY(-4px); border-color: rgba(168, 107, 255, 0.45); }
.spec__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  background: linear-gradient(180deg, #fff 25%, #d9c2ff 70%, var(--violet-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(139, 61, 255, 0.35));
}
.spec__value--free {
  background: linear-gradient(180deg, #ffd77a 20%, var(--amber-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.spec__value--inf { font-size: clamp(30px, 3vw, 42px); line-height: 0.9; }
.spec__label {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- server features showcase (tabs + one stage), data from site-admin --- */
.feat {
  scroll-margin-top: 96px;
  position: relative;
  background: linear-gradient(120deg, rgba(148, 96, 255, 0.09), rgba(229, 25, 158, 0.05) 60%, transparent);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 26px 40px 40px;
  margin-bottom: 56px;
}
.feat[hidden] { display: none; }
.feat__tabs {
  display: flex;
  gap: 4px;
  margin: 0 -40px 30px;
  padding: 0 40px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(148, 96, 255, 0.2);
  -webkit-overflow-scrolling: touch;
}
.feat__tabs::-webkit-scrollbar { display: none; }
.feat--single .feat__tabs { display: none; }
.feat--single { padding-top: 40px; }
.feat__tab {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.feat__tab-num {
  font-size: 11px;
  color: var(--amber);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.feat__tab:hover { color: var(--text); background: rgba(34, 18, 58, 0.6); }
.feat__tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.feat__tab.is-active {
  color: var(--text);
  background: rgba(34, 18, 58, 0.92);
  border-color: rgba(255, 176, 32, 0.5);
  box-shadow: 0 0 24px rgba(255, 176, 32, 0.12), inset 0 0 0 1px rgba(255, 176, 32, 0.08);
}
.feat__tab.is-active .feat__tab-num { opacity: 1; }
.feat__tab::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--magenta));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feat__tab.is-active::after { opacity: 1; }
/* autoplay progress: fills the active tab's underline over --feat-autoplay */
.feat__tab-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}
.feat__tab-bar i { display: block; height: 100%; width: 0; background: var(--text); opacity: 0.8; }
.feat--autoplay .feat__tab.is-active::after { opacity: 0.35; }
.feat--autoplay .feat__tab.is-active .feat__tab-bar { opacity: 1; }
.feat--autoplay .feat__tab.is-active .feat__tab-bar i { animation: feat-progress var(--feat-autoplay, 8s) linear forwards; }
@keyframes feat-progress { from { width: 0; } to { width: 100%; } }

.feat__stage { display: grid; touch-action: pan-y; }
.feat__panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;
}
.feat__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s;
}
/* hidden panels and an off-screen block do not burn CPU on scene animations */
.feat__panel:not(.is-active) .scene *,
.feat__panel:not(.is-active) .scene::before,
.feat--offscreen .scene *,
.feat--offscreen .scene::before { animation-play-state: paused !important; }

.feat__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0c2f, #10071d);
  border: 1px solid rgba(148, 96, 255, 0.25);
}
.feat__media .scene { border: 0; border-radius: 0; }
.feat__shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
img.feat__shot { -webkit-user-drag: none; }
.feat__video video { opacity: 0; transition: opacity 0.3s ease; }
.feat__video.is-playing video { opacity: 1; }

.feat__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2b1600;
  background: linear-gradient(180deg, var(--amber), var(--amber-2));
  padding: 6px 14px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  margin-bottom: 16px;
}
.feat__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.12;
  margin-bottom: 14px;
}
.feat__lead { color: var(--text); font-size: 16px; margin-bottom: 22px; }
.feat__lead:empty { display: none; }
.feat__points { list-style: none; display: grid; gap: 12px; }
.feat__points[hidden] { display: none; }
.feat__points li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.feat__points li::before {
  content: '';
  position: absolute;
  left: 2px; top: 7px;
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--amber), var(--magenta));
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 176, 32, 0.5);
}
.feat__cta { margin-top: 24px; }
.feat__cta[hidden] { display: none; }

/* --- media carousel (scene + screenshot/video slides) --- */
.media-carousel { position: relative; }
.media-carousel__viewport {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.media-carousel__viewport img { -webkit-user-drag: none; }
.media-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}
.media-carousel__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.media-carousel--active .media-carousel__viewport { cursor: grab; }
.media-carousel--active .media-carousel__viewport:active { cursor: grabbing; }
.media-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(168, 107, 255, 0.45);
  background: rgba(20, 10, 36, 0.8);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.media-carousel__arrow:hover {
  border-color: rgba(255, 176, 32, 0.65);
  background: rgba(34, 18, 58, 0.95);
  color: var(--amber);
}
.media-carousel__arrow svg { width: 17px; height: 17px; }
.media-carousel__arrow--prev { left: 10px; }
.media-carousel__arrow--next { right: 10px; }
.media-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}
.media-carousel__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: rgba(168, 107, 255, 0.35);
  transition: width 0.25s ease, background 0.25s ease;
}
.media-carousel__dot:hover { background: rgba(168, 107, 255, 0.65); }
.media-carousel__dot.is-active {
  width: 22px;
  background: linear-gradient(90deg, var(--amber), var(--magenta));
}
.chip {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(255, 176, 32, 0.07);
  border: 1px solid rgba(255, 176, 32, 0.3);
  padding: 7px 12px;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

/* --- extras --- */
.extras { text-align: center; }
.extras__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 18px;
}
.extras__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.extras__chip {
  font-size: 13px;
  color: var(--muted);
  background: rgba(148, 96, 255, 0.07);
  border: 1px solid var(--panel-border);
  border-radius: 99px;
  padding: 9px 18px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.extras__chip:hover { color: var(--text); border-color: rgba(168, 107, 255, 0.5); }

/* ============ SCENES (animated feature demos) ============ */
.scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 61, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #1a0c2f, #10071d);
  border: 1px solid rgba(148, 96, 255, 0.25);
  border-radius: 16px;
  overflow: hidden;
}
.scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 107, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 107, 255, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(85% 85% at 50% 50%, #000 35%, transparent 100%);
  mask-image: radial-gradient(85% 85% at 50% 50%, #000 35%, transparent 100%);
}

/* shared primitives */
.scn-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  background: rgba(20, 10, 36, 0.9);
  border: 1px solid rgba(168, 107, 255, 0.4);
  border-radius: 9px;
  padding: 7px 11px;
  white-space: nowrap;
}
.scn-chip b { color: var(--amber); font-family: var(--font-body); font-size: 11px; }
.scn-dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px #3ddc84;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.scn-dot-live--amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.scn-bar {
  position: absolute;
  z-index: 2;
  height: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(168, 107, 255, 0.35);
  border-radius: 99px;
  overflow: hidden;
}
.scn-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--magenta), var(--violet-soft));
}
.scn-minibar {
  width: 46px; height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.scn-minibar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--magenta));
  animation: minibar-fill 6s ease-in-out infinite;
}
@keyframes minibar-fill { 0% { width: 12%; } 70% { width: 86%; } 100% { width: 12%; } }
.scn-mob {
  position: absolute;
  z-index: 2;
  width: 11px; height: 11px;
  background: linear-gradient(135deg, #ff5d7e, #c02a63);
  box-shadow: 0 0 10px rgba(229, 25, 158, 0.55);
  transform: rotate(45deg);
  animation: mob-cycle 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes mob-cycle {
  0% { opacity: 0; scale: 0.2; }
  6% { opacity: 1; scale: 1; }
  62% { opacity: 1; scale: 1; }
  70% { opacity: 0; scale: 0.4; }
  100% { opacity: 0; scale: 0.2; }
}
.scn-dot {
  position: absolute;
  z-index: 2;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--violet-soft);
  box-shadow: 0 0 9px rgba(168, 107, 255, 0.8);
}
.scn-player {
  position: absolute;
  z-index: 2;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe3a1, var(--amber-2));
  box-shadow: 0 0 16px rgba(255, 176, 32, 0.8);
}
.scn-player::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1.5px solid rgba(255, 176, 32, 0.5);
  border-radius: 50%;
}
.scn-spark {
  position: absolute;
  z-index: 2;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffd77a;
  box-shadow: 0 0 8px rgba(255, 215, 122, 0.9);
  opacity: 0;
  animation: spark-fly 7s ease-in infinite;
  animation-delay: var(--d, 0s);
}
@keyframes spark-fly {
  0%, 8% { opacity: 0; transform: translate(0, 0) scale(1); }
  10% { opacity: 1; }
  22% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.4); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.4); }
}
.scn-num {
  position: absolute;
  z-index: 3;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  color: #ffd77a;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: num-float 3.2s ease-out infinite;
  animation-delay: var(--d, 0s);
}
.scn-num--sub { font-size: 11px; color: #d9c2ff; }
@keyframes num-float {
  0%, 12% { opacity: 0; transform: translateY(4px); }
  18% { opacity: 1; }
  48% { opacity: 0; transform: translateY(-18px); }
  100% { opacity: 0; transform: translateY(-18px); }
}

/* scene: farm spot */
.scene--spot .scene__ring {
  position: absolute;
  left: 50%; top: 52%;
  width: 62%; aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(255, 176, 32, 0.45);
  border-radius: 50%;
  animation: ring-pulse 4s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.14); }
  50% { box-shadow: 0 0 0 14px rgba(255, 176, 32, 0); }
}
.scene--spot .scene__pylon {
  position: absolute;
  left: 50%; top: 52%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  background: linear-gradient(135deg, #d9c2ff, var(--violet));
  transform: rotate(45deg);
  box-shadow: 0 0 22px rgba(139, 61, 255, 0.9);
  animation: pylon-glow 3s ease-in-out infinite;
}
@keyframes pylon-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(139, 61, 255, 0.7); }
  50% { box-shadow: 0 0 30px rgba(139, 61, 255, 1); }
}
.scene--spot .scn-player { left: 44%; top: 46%; }
.scene--spot .scene__lvl { top: 14px; left: 14px; }
.scene--spot .scene__storage { top: 14px; right: 14px; animation: storage-bump 7s ease-in-out infinite; }
@keyframes storage-bump {
  0%, 20%, 100% { transform: none; }
  23% { transform: scale(1.07); }
  26% { transform: none; }
}
.scene--spot .scene__owner { bottom: 14px; left: 50%; transform: translateX(-50%); }

/* scene: flag event */
.scene--flag .scene__hplabel { top: 12px; left: 14px; border-color: rgba(229, 25, 158, 0.5); }
.scene--flag .scene__hp { top: 20px; left: 130px; right: 18px; }
.scene--flag .scene__hp i { animation: hp-drain 9s linear infinite; }
@keyframes hp-drain {
  0% { width: 100%; }
  78% { width: 4%; }
  84% { width: 0; }
  100% { width: 0; }
}
.scene--flag .scene__flagpole {
  position: absolute;
  left: 50%; top: 30%;
  width: 3px; height: 40%;
  background: linear-gradient(180deg, #d9c2ff, rgba(217, 194, 255, 0.2));
  border-radius: 2px;
}
.scene--flag .scene__banner {
  position: absolute;
  left: calc(50% + 3px); top: 30%;
  width: 58px; height: 34px;
  background: linear-gradient(120deg, var(--magenta), var(--violet));
  clip-path: polygon(0 0, 100% 8%, 82% 50%, 100% 92%, 0 100%);
  transform-origin: left center;
  animation: banner-wave 2.6s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(229, 25, 158, 0.5);
}
@keyframes banner-wave {
  0%, 100% { transform: skewY(-2deg) scaleX(1); }
  50% { transform: skewY(2.5deg) scaleX(0.96); }
}
.scene--flag .scene__pl { animation: attack-blink 1.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes attack-blink {
  0%, 100% { box-shadow: 0 0 9px rgba(168, 107, 255, 0.8); }
  50% { box-shadow: 0 0 16px rgba(255, 215, 122, 1); background: #ffd77a; }
}
.scene--flag .scene__gem {
  position: absolute;
  bottom: 22%;
  width: 12px; height: 12px;
  transform: rotate(45deg) scale(0);
  border-radius: 3px;
  animation: gem-pop 9s ease-out infinite;
}
.scene--flag .scene__gem--stone { left: 38%; background: #9aa3b5; box-shadow: 0 0 10px #9aa3b5; animation-delay: 0s; }
.scene--flag .scene__gem--gold { left: 46%; background: #ffd77a; box-shadow: 0 0 10px #ffd77a; animation-delay: 0.12s; }
.scene--flag .scene__gem--wood { left: 54%; background: #c98d5a; box-shadow: 0 0 10px #c98d5a; animation-delay: 0.24s; }
.scene--flag .scene__gem--food { left: 62%; background: #7cfc9a; box-shadow: 0 0 10px #7cfc9a; animation-delay: 0.36s; }
@keyframes gem-pop {
  0%, 78% { transform: rotate(45deg) scale(0); opacity: 0; }
  82% { transform: rotate(45deg) scale(1.25) translateY(-6px); opacity: 1; }
  86% { transform: rotate(45deg) scale(1) translateY(-4px); }
  97% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) scale(0.6); }
}
.scene--flag .scene__every { bottom: 12px; right: 14px; }

/* scene: epic duel */
.scene--duel .scene__fighter {
  position: absolute;
  top: 46%;
  width: 22px; height: 22px;
  border-radius: 6px;
  z-index: 2;
}
.scene--duel .scene__fighter--a {
  left: 30%;
  background: linear-gradient(135deg, #ffd77a, var(--amber-2));
  box-shadow: 0 0 16px rgba(255, 176, 32, 0.8);
  animation: fighter-a 10s ease-in-out infinite;
}
.scene--duel .scene__fighter--b {
  right: 30%;
  background: linear-gradient(135deg, #d9c2ff, var(--violet));
  box-shadow: 0 0 16px rgba(139, 61, 255, 0.8);
  animation: fighter-b 10s ease-in-out infinite;
}
@keyframes fighter-a {
  0% { transform: translateX(-30px); opacity: 0; }
  8% { transform: none; opacity: 1; }
  30% { transform: translateX(6px); }
  40%, 88% { transform: none; opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fighter-b {
  0% { transform: translateX(30px); opacity: 0; }
  8% { transform: none; opacity: 1; }
  30% { transform: translateX(-6px); }
  40% { opacity: 1; }
  48%, 100% { opacity: 0.12; filter: grayscale(1); }
}
.scene--duel .scene__vs {
  position: absolute;
  left: 50%; top: 44%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(229, 25, 158, 0.8);
  animation: vs-flash 10s ease-in-out infinite;
  z-index: 3;
}
@keyframes vs-flash {
  0%, 6% { opacity: 0; transform: translateX(-50%) scale(0.6); }
  10% { opacity: 1; transform: translateX(-50%) scale(1.15); }
  14% { transform: translateX(-50%) scale(1); }
  42% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.scene--duel .scene__clash {
  position: absolute;
  left: 50%; top: 48%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: clash-burst 10s ease-out infinite;
  z-index: 2;
}
@keyframes clash-burst {
  0%, 28% { opacity: 0; transform: scale(0.4); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  31% { opacity: 1; transform: scale(1.6); box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); }
  36%, 100% { opacity: 0; transform: scale(0.4); }
}
.scene--duel .scene__boss {
  position: absolute;
  left: 50%; bottom: 18%;
  width: 92px; height: 92px;
  margin-left: -46px;
  background: linear-gradient(180deg, #2c1548, #170a2a);
  border: 1px solid rgba(168, 107, 255, 0.45);
  clip-path: polygon(50% 0, 88% 22%, 100% 62%, 78% 100%, 22% 100%, 0 62%, 12% 22%);
  opacity: 0;
  animation: boss-rise 10s ease-out infinite;
  z-index: 1;
}
@keyframes boss-rise {
  0%, 50% { opacity: 0; transform: translateY(34px) scale(0.8); }
  60% { opacity: 1; transform: none; }
  94% { opacity: 1; }
  100% { opacity: 0; }
}
.scene--duel .scene__eye {
  position: absolute;
  top: 34px;
  width: 10px; height: 5px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
  animation: eye-glow 2s ease-in-out infinite;
}
.scene--duel .scene__eye--l { left: 24px; }
.scene--duel .scene__eye--r { right: 24px; }
@keyframes eye-glow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; box-shadow: 0 0 18px var(--magenta); }
}
.scene--duel .scene__round1 { top: 12px; left: 14px; animation: chip-phase-1 10s ease-in-out infinite; }
.scene--duel .scene__round2 { top: 12px; right: 14px; animation: chip-phase-2 10s ease-in-out infinite; }
@keyframes chip-phase-1 {
  0%, 4% { opacity: 0; }
  8%, 44% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}
@keyframes chip-phase-2 {
  0%, 50% { opacity: 0.3; }
  56%, 96% { opacity: 1; }
  100% { opacity: 0.3; }
}
.scene--duel .scene__reward {
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  color: var(--amber);
  border-color: rgba(255, 176, 32, 0.5);
  opacity: 0;
  animation: reward-pop 10s ease-out infinite;
}
@keyframes reward-pop {
  0%, 82% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  87%, 97% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; }
}

/* scene: multi attack */
.scene--multi .scene__caster { left: 18%; top: 46%; }
.scene--multi .scene__beam {
  position: absolute;
  left: 20%; top: calc(46% + 6px);
  width: 46%; height: 2.5px;
  background: linear-gradient(90deg, rgba(255, 215, 122, 0.1), #ffd77a);
  transform-origin: left center;
  transform: scaleX(0);
  animation: beam-fire 3.2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 215, 122, 0.8);
  z-index: 1;
}
@keyframes beam-fire {
  0%, 8% { transform: scaleX(0); opacity: 0; }
  14% { transform: scaleX(1); opacity: 1; }
  30% { opacity: 1; }
  38%, 100% { transform: scaleX(1); opacity: 0; }
}
.scene--multi .scn-mob { animation: mob-hit 3.2s ease-in-out infinite; }
.scene--multi .scene__m0 { animation-delay: 0.15s; width: 14px; height: 14px; }
.scene--multi .scene__m1 { animation-delay: 0.3s; }
.scene--multi .scene__m2 { animation-delay: 0.38s; }
.scene--multi .scene__m3 { animation-delay: 0.46s; }
.scene--multi .scene__m4 { animation-delay: 0.54s; }
@keyframes mob-hit {
  0%, 12% { filter: none; }
  18% { filter: brightness(2.2) drop-shadow(0 0 8px #ffd77a); }
  26%, 100% { filter: none; }
}
.scene--multi .scene__toggle { top: 12px; left: 14px; }

/* scene: daily pve */
.scene--pve { display: block; }
.scene--pve .scene__gate {
  position: absolute;
  top: 18%;
  width: 24%;
  height: 56%;
  background: linear-gradient(180deg, rgba(44, 21, 72, 0.9), rgba(23, 10, 42, 0.95));
  border: 1px solid rgba(168, 107, 255, 0.35);
  border-radius: 60px 60px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 12px;
  gap: 8px;
  z-index: 2;
}
.scene--pve .scene__gate--1 { left: 10%; }
.scene--pve .scene__gate--2 { left: 38%; animation: gate-active 8s ease-in-out infinite; }
.scene--pve .scene__gate--3 { right: 10%; }
@keyframes gate-active {
  0%, 18% { border-color: rgba(168, 107, 255, 0.35); box-shadow: none; }
  30%, 80% { border-color: rgba(255, 176, 32, 0.65); box-shadow: 0 0 26px rgba(255, 176, 32, 0.25); }
  100% { border-color: rgba(168, 107, 255, 0.35); box-shadow: none; }
}
.scene--pve .scene__gate b {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.scene--pve .scene__gate--2 b { color: var(--text); }
.scene--pve .scene__pips { display: flex; gap: 5px; }
.scene--pve .scene__pips i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(168, 107, 255, 0.3);
}
.scene--pve .scene__gate--2 .scene__pips i { animation: pip-light 8s ease-in-out infinite; }
.scene--pve .scene__gate--2 .scene__pips i:nth-child(1) { animation-delay: 0s; }
.scene--pve .scene__gate--2 .scene__pips i:nth-child(2) { animation-delay: 0.3s; }
.scene--pve .scene__gate--2 .scene__pips i:nth-child(3) { animation-delay: 0.6s; }
.scene--pve .scene__gate--2 .scene__pips i:nth-child(4) { animation-delay: 0.9s; }
@keyframes pip-light {
  0%, 28% { background: rgba(168, 107, 255, 0.3); box-shadow: none; }
  36%, 82% { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
  92%, 100% { background: rgba(168, 107, 255, 0.3); }
}
.scene--pve .scene__bossglow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 25, 158, 0.85), transparent 70%);
  animation: bossglow-pulse 2.4s ease-in-out infinite;
  margin-bottom: auto;
  margin-top: 26%;
}
@keyframes bossglow-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}
.scene--pve .scene__free { bottom: 12px; left: 50%; transform: translateX(-50%); }

/* scene: dynamic tasks */
.scene--task .scene__card {
  position: absolute;
  left: 8%; top: 16%;
  width: 56%;
  background: rgba(20, 10, 36, 0.92);
  border: 1px solid rgba(168, 107, 255, 0.4);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  z-index: 2;
}
.scene--task .scene__cardrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.scene--task .scene__cardrow b {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.scene--task .scene__timer {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  color: var(--magenta);
}
.scene--task .scene__taskbar { position: relative; inset: auto; width: 100%; }
.scene--task .scene__taskbar i { animation: task-progress 6s ease-in-out infinite; }
@keyframes task-progress {
  0% { width: 4%; }
  80% { width: 100%; }
  100% { width: 100%; }
}
.scene--task .scene__cardrow--reward { justify-content: flex-start; }
.scene--task .scene__cardrow--reward span {
  font-size: 11px;
  color: var(--muted);
}
.scene--task .scene__gemico {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, #ffd77a, var(--magenta));
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(255, 176, 32, 0.6);
  flex-shrink: 0;
}
.scene--task .scene__btn {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(168, 107, 255, 0.4);
  border-radius: 7px;
  padding: 6px 12px;
  flex: 1;
  text-align: center;
}
.scene--task .scene__btn--ok {
  color: #2b1600;
  background: linear-gradient(180deg, var(--amber), var(--amber-2));
  border-color: transparent;
}
.scene--task .scene__beer {
  top: 20%; right: 8%;
  opacity: 0;
  animation: beer-pop 6s ease-out infinite;
}
@keyframes beer-pop {
  0%, 78% { opacity: 0; transform: translateY(8px); }
  85%, 97% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

/* scene: autofarm */
.scene--afk .scene__afkchar { z-index: 2; }
.scene--afk .scene__reticle {
  position: absolute;
  left: 50%; top: 50%;
  width: 74px; height: 74px;
  margin: -37px 0 0 -37px;
  border: 1.5px dashed rgba(255, 176, 32, 0.55);
  border-radius: 50%;
  animation: reticle-spin 7s linear infinite;
  z-index: 1;
}
@keyframes reticle-spin { to { transform: rotate(360deg); } }
.scene--afk .scn-mob { animation: afk-target 6.4s ease-in-out infinite; }
.scene--afk .scene__t0 { animation-delay: 0s; }
.scene--afk .scene__t1 { animation-delay: 1.6s; }
.scene--afk .scene__t2 { animation-delay: 3.2s; }
.scene--afk .scene__t3 { animation-delay: 4.8s; }
@keyframes afk-target {
  0%, 6% { filter: none; opacity: 1; }
  12% { filter: brightness(2.2) drop-shadow(0 0 9px #ffd77a); }
  20% { opacity: 0; scale: 0.4; }
  30%, 88% { opacity: 0; scale: 0.4; }
  96%, 100% { opacity: 1; scale: 1; filter: none; }
}
.scene--afk .scene__night {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 4, 20, 0.62), rgba(8, 4, 20, 0.4));
  opacity: 0;
  animation: night-fall 12s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes night-fall {
  0%, 46% { opacity: 0; }
  54%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
.scene--afk .scene__moon {
  position: absolute;
  top: 16px; right: 18px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset -6px 3px 0 0 #d9c2ff, 0 0 16px rgba(217, 194, 255, 0.4);
  opacity: 0;
  animation: night-fall 12s ease-in-out infinite;
  z-index: 3;
}
.scene--afk .scene__auto { top: 12px; left: 14px; animation: auto-hide 12s ease-in-out infinite; }
@keyframes auto-hide {
  0%, 46% { opacity: 1; }
  54%, 92% { opacity: 0.35; }
  100% { opacity: 1; }
}
.scene--afk .scene__offline {
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: offline-show 12s ease-in-out infinite;
  z-index: 3;
}
@keyframes offline-show {
  0%, 48% { opacity: 0; }
  56%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============ START ============ */
.start {
  position: relative;
  background: linear-gradient(180deg, #1e0e34 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  padding-top: 160px;
}
.start::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--bg-0);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.start::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(90deg, var(--amber), var(--violet), var(--magenta));
  clip-path: polygon(0 0, 100% calc(100% - 2px), 100% 100%, 0 2px);
  opacity: 0.5;
}
.start .container { position: relative; z-index: 1; }

/* head: left-aligned editorial variant of the global section-head */
.start__head {
  text-align: left;
  max-width: 680px;
  margin: 0 0 56px;
}
.start__head .section-head__sub { max-width: 560px; margin-top: 14px; }

/* layout: launcher showcase | step rail */
.start__layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

/* ---------- launcher showcase ---------- */
.start__showcase { position: relative; }
.start__showcase::before {
  content: '';
  position: absolute;
  inset: -14% -18% -22%;
  background: radial-gradient(58% 55% at 50% 44%, rgba(139, 61, 255, 0.18), transparent 72%);
  pointer-events: none;
}
.start__showcase::after {
  content: '';
  position: absolute;
  left: 8%; right: 8%; bottom: -34px;
  height: 48px;
  background: radial-gradient(closest-side, rgba(10, 4, 20, 0.6), transparent);
  pointer-events: none;
}
.start__frame {
  --fr-cut: 18px;
  --fr-tilt: rotateY(-4deg) rotateX(1.2deg);
  position: relative;
  z-index: 1;
  padding: 1px;
  background: linear-gradient(115deg,
    rgba(255, 176, 32, 0.65) 0%,
    rgba(255, 176, 32, 0.18) 22%,
    rgba(168, 107, 255, 0.45) 46%,
    rgba(148, 96, 255, 0.14) 72%,
    rgba(229, 25, 158, 0.5) 100%);
  clip-path: polygon(var(--fr-cut) 0, 100% 0, 100% calc(100% - var(--fr-cut)), calc(100% - var(--fr-cut)) 100%, 0 100%, 0 var(--fr-cut));
  filter: drop-shadow(0 26px 60px rgba(10, 4, 20, 0.6)) drop-shadow(0 0 34px rgba(139, 61, 255, 0.2));
  transform: perspective(1400px) var(--fr-tilt);
  animation: start-frame-float 9s ease-in-out infinite;
}
.start__frame-inner {
  position: relative;
  clip-path: polygon(var(--fr-cut) 0, 100% 0, 100% calc(100% - var(--fr-cut)), calc(100% - var(--fr-cut)) 100%, 0 100%, 0 var(--fr-cut));
  background: #150a26;
  overflow: hidden;
}
/* periodic sheen sweep across the glass */
.start__frame-inner::after {
  content: '';
  position: absolute;
  top: -10%; bottom: -10%; left: 0;
  width: 80px;
  z-index: 6;
  background: linear-gradient(105deg, rgba(244, 238, 252, 0) 0%, rgba(244, 238, 252, 0.07) 50%, rgba(244, 238, 252, 0) 100%);
  transform: translateX(-140px) skewX(-18deg);
  animation: start-frame-sheen 9s cubic-bezier(0.4, 0, 0.2, 1) 2s infinite;
  pointer-events: none;
}
/* the real screenshot, once it exists (see SWAP POINT comment in HTML) */
.start__shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------- pure-CSS launcher mock (decoration until the real shot lands) ---------- */
.launcher {
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10;
  background: linear-gradient(165deg, #200f38 0%, #150a26 58%, #120820 100%);
  font-family: var(--font-body);
  user-select: none;
}
.launcher__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  flex: none;
  padding: 0 14px;
  background: rgba(18, 8, 32, 0.55);
  border-bottom: 1px solid rgba(148, 96, 255, 0.16);
}
.launcher__dots { display: flex; gap: 7px; }
.launcher__dots i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--magenta); }
.launcher__dots i:nth-child(2) { background: var(--amber); }
.launcher__dots i:nth-child(3) { background: var(--violet-soft); }
.launcher__brand {
  display: flex; align-items: center; gap: 8px;
  margin-left: 4px;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
}
.launcher__brand em {
  width: 6px; height: 6px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--violet-soft);
}
.launcher__brand b { font-size: 9px; font-weight: 700; letter-spacing: 0.22em; color: var(--amber); }
.launcher__winctl { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.launcher__winctl i:first-child { width: 10px; height: 2px; background: rgba(179, 161, 212, 0.5); }
.launcher__winctl i:last-child { width: 8px; height: 8px; border: 1.5px solid rgba(179, 161, 212, 0.5); }

.launcher__body { position: relative; display: flex; flex: 1; min-height: 0; }
.launcher__side {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 52px; flex: none;
  padding-top: 16px;
  background: rgba(18, 8, 32, 0.4);
  border-right: 1px solid rgba(148, 96, 255, 0.14);
}
.launcher__side i {
  width: 16px; height: 16px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: rgba(179, 161, 212, 0.22);
}
.launcher__side i.is-active {
  background: linear-gradient(180deg, var(--amber), var(--amber-2));
  box-shadow: 0 0 12px rgba(255, 176, 32, 0.5);
}
.launcher__main { position: relative; flex: 1; min-width: 0; padding: 16px 18px; overflow: hidden; }
.launcher__art {
  position: absolute;
  right: 2%; bottom: 0;
  width: auto; height: 112%;
  opacity: 0.94;
  filter: drop-shadow(0 0 30px rgba(139, 61, 255, 0.35));
  pointer-events: none;
}
.launcher__nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.launcher__nav-item {
  font-family: var(--font-display);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--amber);
}
.launcher__nav-bar { width: 42px; height: 6px; background: rgba(179, 161, 212, 0.18); transform: skewX(-14deg); }
.launcher__card {
  position: relative; z-index: 1;
  display: flex; gap: 10px;
  width: 58%;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(26, 12, 44, 0.82);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: inset 0 1px 0 rgba(244, 238, 252, 0.05);
}
.launcher__thumb {
  width: 44px; height: 44px; flex: none;
  background: linear-gradient(145deg, rgba(139, 61, 255, 0.45), rgba(229, 25, 158, 0.25));
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.launcher__lines { display: flex; flex: 1; flex-direction: column; gap: 7px; justify-content: center; }
.launcher__lines i { height: 7px; background: rgba(179, 161, 212, 0.2); }
.launcher__lines i:first-child { width: 86%; background: rgba(244, 238, 252, 0.28); }
.launcher__lines i:last-child { width: 56%; }

.launcher__dock {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  flex: none;
  padding: 12px 14px;
  background: rgba(18, 8, 32, 0.75);
  border-top: 1px solid rgba(148, 96, 255, 0.16);
}
.launcher__load { flex: 1; min-width: 0; }
.launcher__status {
  display: flex; justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; overflow: hidden;
}
.launcher__status span { overflow: hidden; text-overflow: ellipsis; }
.launcher__status b { font-family: var(--font-display); color: var(--amber); }
.launcher__progress {
  position: relative;
  height: 6px;
  background: rgba(148, 96, 255, 0.16);
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.launcher__progress i {
  position: relative;
  display: block;
  width: 87%; height: 100%;
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
  clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
  overflow: hidden;
}
.launcher__progress i::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 36px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-50px) skewX(-18deg);
  animation: start-progress-sheen 2.6s linear 1s infinite;
}
.launcher__play {
  flex: none;
  padding: 11px 24px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #2b1600;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-2) 100%);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 4px 18px rgba(240, 140, 25, 0.45);
}

/* ---------- step rail ---------- */
.start__steps { position: relative; }
.start__steps::before {
  content: '';
  position: absolute;
  left: 21px; top: 30px; bottom: 34px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--violet) 44%, var(--magenta) 80%, var(--amber-2) 100%);
  opacity: 0.45;
}
.step-row { position: relative; display: flex; align-items: center; gap: 20px; }
.step-row + .step-row { margin-top: 18px; }
.step-row--1 { --step-c1: rgba(255, 176, 32, 0.85);  --step-c2: rgba(255, 176, 32, 0.22); --step-num: var(--amber); }
.step-row--2 { --step-c1: rgba(168, 107, 255, 0.85); --step-c2: rgba(139, 61, 255, 0.22); --step-num: var(--violet-soft); }
.step-row--3 { --step-c1: rgba(229, 25, 158, 0.8);   --step-c2: rgba(229, 25, 158, 0.2);  --step-num: var(--magenta); }

.step-row__gem {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 48px; flex: none;
  padding: 1px;
  clip-path: polygon(50% 0, 100% 26%, 100% 74%, 50% 100%, 0 74%, 0 26%);
  background: linear-gradient(165deg, var(--step-c1), var(--step-c2));
}
.step-row__gem::before {
  content: '';
  position: absolute;
  inset: 1px;
  clip-path: polygon(50% 0, 100% 26%, 100% 74%, 50% 100%, 0 74%, 0 26%);
  background: linear-gradient(180deg, #241238 0%, #170b29 100%);
}
/* facet highlight */
.step-row__gem::after {
  content: '';
  position: absolute;
  inset: 1px;
  clip-path: polygon(50% 0, 100% 26%, 100% 74%, 50% 100%, 0 74%, 0 26%);
  background: linear-gradient(135deg, rgba(244, 238, 252, 0.1) 0%, transparent 46%);
  pointer-events: none;
}
.step-row__gem span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--step-num);
}

.step-row__plate {
  --pl-cut: 12px;
  position: relative;
  flex: 1;
  display: flex; align-items: center;
  min-width: 0;
  padding: 1px;
  background: linear-gradient(120deg, var(--step-c1) 0%, rgba(148, 96, 255, 0.22) 32%, rgba(148, 96, 255, 0.12) 68%, rgba(148, 96, 255, 0.22) 100%);
  clip-path: polygon(var(--pl-cut) 0, 100% 0, 100% calc(100% - var(--pl-cut)), calc(100% - var(--pl-cut)) 100%, 0 100%, 0 var(--pl-cut));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.step-row__plate::before {
  content: '';
  position: absolute;
  inset: 1px;
  clip-path: polygon(var(--pl-cut) 0, 100% 0, 100% calc(100% - var(--pl-cut)), calc(100% - var(--pl-cut)) 100%, 0 100%, 0 var(--pl-cut));
  background: linear-gradient(120deg, rgba(148, 96, 255, 0.1) 0%, rgba(26, 11, 46, 0.85) 38%, rgba(18, 8, 32, 0.92) 100%);
}
.step-row:hover .step-row__plate { transform: translateX(6px); filter: brightness(1.15); }
/* Step 01 carries the only controls on the rail, and a plate that slides 6px on hover
   would take the button with it, out from under the cursor. The plate still brightens. */
.step-row--1:hover .step-row__plate { transform: none; }
.step-row__body { position: relative; z-index: 1; flex: 1; min-width: 0; padding: 18px 4px 18px 22px; }
.step-row__title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step-row__text { color: var(--muted); font-size: 14px; line-height: 1.55; }
/* The way into the Hub: the amber button people came for, and a quiet line beside it for
   everyone who already has an account and only needs the door. */
.step-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.step-row__signin { color: var(--violet-soft); font-size: 13px; font-weight: 600; transition: color 0.2s ease; }
.step-row__signin:hover { color: var(--amber); }
.step-row__icon {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px; flex: none;
  margin: 0 18px 0 14px;
  filter: drop-shadow(0 6px 16px rgba(240, 140, 25, 0.28));
}

/* ---------- CTA: the rail's terminal stop ---------- */
.step-row--cta { margin-top: 32px; align-items: flex-start; }
.step-row--cta .step-row__gem { margin-top: 6px; }
.step-row__gem--cta {
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-2) 100%);
  filter: drop-shadow(0 0 8px rgba(255, 176, 32, 0.45));
  animation: start-gem-pulse 2.6s ease-in-out infinite;
}
.step-row__gem--cta::before,
.step-row__gem--cta::after { content: none; }
.step-row__gem--cta svg { position: relative; z-index: 1; display: block; }
.step-row__cta {
  flex: 1;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px 22px;
}
.start__note { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; line-height: 1.5; max-width: 210px; }

/* ---------- animations ---------- */
@keyframes start-frame-float {
  0%, 100% { transform: perspective(1400px) var(--fr-tilt) translateY(0); }
  50%      { transform: perspective(1400px) var(--fr-tilt) translateY(-10px); }
}
@keyframes start-frame-sheen {
  0%        { transform: translateX(-140px) skewX(-18deg); }
  14%, 100% { transform: translateX(780px) skewX(-18deg); }
}
@keyframes start-progress-sheen {
  0%   { transform: translateX(-50px) skewX(-18deg); }
  100% { transform: translateX(620px) skewX(-18deg); }
}
@keyframes start-gem-pulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 176, 32, 0.35)); }
  50%      { filter: drop-shadow(0 0 14px rgba(255, 176, 32, 0.7)); }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .start__layout { grid-template-columns: 1fr; gap: 64px; }
  .start__showcase { width: 100%; max-width: 640px; margin-inline: auto; }
  .start__frame { --fr-tilt: rotateY(0deg) rotateX(0deg); }
  .start__head { margin-bottom: 48px; }
}
@media (max-width: 640px) {
  .start { padding-top: 120px; }
  .start__frame { --fr-cut: 12px; }
  .start__steps::before { left: 18px; bottom: 40px; }
  .step-row { gap: 14px; }
  .step-row + .step-row { margin-top: 14px; }
  .step-row__gem { width: 38px; height: 42px; }
  .step-row__gem span { font-size: 10.5px; }
  .step-row__body { padding: 15px 2px 15px 16px; }
  .step-row__title { font-size: 13.5px; }
  .step-row__text { font-size: 13.5px; }
  /* The plate is narrow here, so the button takes the row and the sign-in line sits under it. */
  .step-row__actions { gap: 10px 14px; margin-top: 12px; }
  .step-row__actions .btn { width: 100%; }
  .step-row__icon { width: 46px; height: 46px; margin: 0 14px 0 10px; }
  .step-row--cta { margin-top: 26px; }
  .step-row__cta { align-items: stretch; gap: 12px; }
  .start__note { max-width: none; }
}
@media (max-width: 480px) {
  .launcher__bar { height: 34px; }
  .launcher__side { display: none; }
  .launcher__main { padding: 12px 14px; }
  .launcher__nav { margin-bottom: 10px; }
  .launcher__card { width: 66%; }
  .launcher__card + .launcher__card { display: none; }
  .launcher__thumb { width: 36px; height: 36px; }
  .launcher__art { height: 104%; right: -4%; }
  .launcher__dock { padding: 10px 12px; }
  .launcher__play { padding: 9px 16px; font-size: 10px; }
  .launcher__brand { letter-spacing: 0.12em; }
}
@media (prefers-reduced-motion: reduce) {
  .start__frame,
  .launcher__progress i::after,
  .step-row__gem--cta { animation: none; }
  .start__frame-inner::after { animation: none; visibility: hidden; }
  .step-row:hover .step-row__plate { transform: none; }
}

/* ============ COMMUNITY ============ */
.community__panel {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(18, 8, 32, 0.35) 0%, rgba(18, 8, 32, 0.08) 55%, rgba(18, 8, 32, 0.45) 100%),
    url('../assets/img/community-bg.jpg') center 72% / cover no-repeat;
  padding: 90px 64px;
  text-align: center;
  overflow: hidden;
}
.community__title,
.community__text { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }
.community__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.community__text { color: var(--muted); max-width: 520px; margin: 0 auto 36px; }
.community__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.community__actions .btn { display: inline-flex; align-items: center; gap: 10px; }
.btn--hub { color: #2b1600; }
.btn--hub .btn__icon { width: 18px; height: 18px; }
@media (max-width: 640px) { .community__actions { flex-direction: column; align-items: stretch; } }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid rgba(148, 96, 255, 0.15);
  background: #0d0518;
  padding-top: 56px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer__tagline { color: var(--muted); font-size: 14px; margin-top: 14px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid rgba(148, 96, 255, 0.1);
  color: rgba(186, 170, 216, 0.85);
  font-size: 13px;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { display: none; }
  .specs { grid-template-columns: repeat(3, 1fr); }
  .feat { padding: 18px 28px 28px; }
  .feat__tabs { margin: 0 -28px 24px; padding: 0 28px 10px; }
  .feat__panel { grid-template-columns: 1fr; gap: 28px; align-content: start; }
  .feat__media { aspect-ratio: 16 / 10; }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .header__inner { gap: 22px; }
  .header__nav { gap: 22px; }
  .header__actions { gap: 14px; }
}

@media (max-width: 1024px) {
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(18, 8, 32, 0.97);
    padding: 24px;
    gap: 18px;
    transform: translateY(calc(-100% - var(--header-h)));
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s 0.3s;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
  .header__nav.is-open { transform: translateY(0); visibility: visible; transition: transform 0.3s ease; }
  .header__nav { max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); overflow-y: auto; white-space: normal; }
  .burger { display: flex; }
  .header__cta, .header__socials { display: none; }
  /* the nav is taken out of the flow here, so the actions need their own push to the right edge */
  .header__actions { margin-left: auto; gap: 12px; }
  /* nav groups become static sections: the toggle is a caption, the items are always listed */
  .header__nav .nav-group { flex-direction: column; align-items: center; }
  .header__nav .nav-group__toggle { pointer-events: none; color: var(--muted); justify-content: center; }
  .header__nav .nav-group__toggle::after { display: none; }
  .header__nav .nav-group__caret { display: none; }
  .header__nav .nav-group__menu, .header__nav .nav-group__menu[hidden] {
    display: flex; position: static; align-items: center;
    min-width: 0; padding: 0; margin: 6px 0 2px;
    background: none; border: 0; border-radius: 0;
    box-shadow: none; animation: none; gap: 2px;
  }
  .header__nav .nav-group__menu::before, .header__nav .nav-group__menu::after { display: none; }
  .header__nav .nav-group__item { padding: 8px 12px; font-size: 15px; }
  .lang__menu { right: 0; }
}

@media (max-width: 640px) {
  .section { padding-block: 70px; }
  .feat { padding: 12px 18px 22px; border-radius: 18px; }
  .feat__tabs { margin: 0 -18px 20px; padding: 0 18px 10px; }
  .feat__tab { padding: 10px 14px; font-size: 12px; }
  .feat__media { aspect-ratio: 4 / 3; }
  .feat__lead { font-size: 15px; }
  .feat__points li { font-size: 14px; }
  .community__panel { padding: 44px 28px; }
  /* «Присоединяйся» in Unbounded is wider than the panel at the 26px clamp floor */
  .community__title { font-size: clamp(16px, 5vw, 24px); }
  .btn--lg { padding: 17px 32px; font-size: 13px; }
  .server-card { width: 100%; flex-wrap: wrap; }
  .server-card__side {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 10px;
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid rgba(168, 107, 255, 0.22);
    min-height: 0;
  }
  .countdown__units { width: 100%; }
  .countdown__unit { flex: 1; min-width: 0; }
  .specs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .spec { padding: 14px 8px 12px; }
  .spec__label { font-size: 10px; }
  .feat { padding: 14px 24px 24px; }
  .feat__tabs { margin: 0 -24px 22px; padding: 0 24px 10px; }
  .feat__panel { gap: 28px; }
  .scn-chip { font-size: 9px; padding: 5px 8px; gap: 5px; }
  .scene--flag .scene__hp { left: 116px; }
  .scene--spot .scene__storage { top: 50px; right: 10px; }
  .scene--task .scene__card { width: 70%; }
  .scene--task .scene__beer { top: auto; bottom: 12px; right: 10px; }
  .extras__chip { font-size: 12px; padding: 8px 14px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .feat__panel { transition: none; transform: none; }
  .feat__tab-bar { display: none; }
  /* animated demo scenes: freeze in a readable state instead of the empty last frame */
  .scn-mob { animation: none !important; opacity: 1; scale: 1; }
  .scn-num { animation: none !important; opacity: 1; transform: none; }
  .scene--flag .scene__hp i { animation: none !important; width: 62%; }
  .scene--flag .scene__gem { animation: none !important; opacity: 1; transform: rotate(45deg) scale(1); }
  .scene--duel .scene__fighter,
  .scene--duel .scene__vs,
  .scene--duel .scene__boss,
  .scene--duel .scene__reward,
  .scene--duel .scene__round1,
  .scene--duel .scene__round2 { animation: none !important; opacity: 1; transform: none; filter: none; }
  .scene--duel .scene__reward { transform: translateX(-50%); }
  .scene--duel .scene__vs { transform: translateX(-50%); }
  .scene--multi .scene__beam { animation: none !important; transform: scaleX(1); opacity: 1; }
  .scene--task .scene__taskbar i { animation: none !important; width: 62%; }
  .scene--task .scene__beer { animation: none !important; opacity: 1; transform: none; }
  .scene--afk .scene__offline { animation: none !important; opacity: 1; }
  .scn-minibar i { animation: none !important; width: 62%; }
}

/* ============ LEGAL PAGES (/legal/*.html) ============ */
.legal {
  padding: calc(var(--header-h) + 64px) 0 96px;
  position: relative;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(139, 61, 255, 0.16), transparent 55%),
    radial-gradient(ellipse at 90% 30%, rgba(229, 25, 158, 0.08), transparent 50%);
}
.legal__inner { max-width: 860px; margin: 0 auto; }
.legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--muted);
}
.legal__crumbs a { color: var(--muted); transition: color 0.2s; }
.legal__crumbs a:hover { color: var(--text); }
.legal__crumbs a.is-current { color: var(--amber); }
.legal__doc h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  background: linear-gradient(100deg, #fff 20%, #d9c2ff 55%, #a86bff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--panel-border);
}
.legal__meta b { color: var(--text); font-weight: 600; }
.legal__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 34px;
}
.legal__doc h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}
.legal__doc h2:first-of-type { margin-top: 0; }
.legal__doc p, .legal__doc li { color: #d9cdee; font-size: 15px; line-height: 1.75; }
.legal__doc p { margin-bottom: 14px; }
.legal__doc ul { padding-left: 22px; margin: 0 0 16px; }
.legal__doc li { margin-bottom: 6px; }
.legal__doc li::marker { color: var(--violet-soft); }
.legal__doc strong { color: var(--text); font-weight: 700; }
.legal__doc a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.legal__doc a:hover { text-decoration: none; }
.legal__note {
  margin: 20px 0 26px;
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--magenta);
  border-radius: 6px;
}
.legal__note p:last-child { margin-bottom: 0; }
.legal__missing {
  color: var(--muted);
  font-style: italic;
}
.legal__actions { margin-top: 48px; display: flex; gap: 14px; flex-wrap: wrap; }
.footer__nav-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(179, 161, 212, 0.7);
  margin-bottom: 4px;
}
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__bottom-links a { color: inherit; transition: color 0.2s; }
.footer__bottom-links a:hover { color: var(--text); }
@media (max-width: 640px) {
  .legal { padding-top: calc(var(--header-h) + 36px); }
  .legal__doc p, .legal__doc li { font-size: 14.5px; }
}

/* ============ PHASE 2 · logo image, downloads menu ============ */
.brand__img {
  display: block;
  height: 88px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px rgba(139, 61, 255, 0.35));
  transition: filter 0.25s ease, transform 0.25s ease;
}
.brand:hover .brand__img { transform: translateY(-1px); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px rgba(168, 107, 255, 0.6)); }
.brand--footer .brand__img { height: 96px; }
.header__logo { flex: 0 0 auto; margin-block: -14px; }
.header.is-scrolled .brand__img { height: 72px; }

.step-row__cta { flex-direction: column; align-items: stretch; gap: 14px; }
.dl { position: relative; display: inline-flex; }
.dl--primary, .dl--primary .dl__btn { width: 100%; }
.dl-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dl-row .dl__btn { padding: 14px 26px; font-size: 12.5px; }
.dl__btn { gap: 12px; }
.dl__caret { display: none; flex: 0 0 auto; transition: transform 0.2s ease; }
.dl.has-menu .dl__caret { display: block; }
.dl.is-open .dl__caret { transform: rotate(180deg); }
.dl__btn.is-disabled {
  cursor: default;
  filter: grayscale(0.55) brightness(0.7);
  box-shadow: none;
}
.dl__btn.is-disabled:hover { transform: none; }
.dl__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  min-width: 260px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(38, 20, 64, 0.98), rgba(24, 11, 42, 0.98));
  border: 1px solid rgba(168, 107, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 61, 255, 0.2);
  animation: dl-pop 0.18s ease;
}
.dl__menu[hidden] { display: none; }
.dl__menu--up { top: auto; bottom: calc(100% + 10px); animation-name: dl-pop-up; }
.dl__menu--up::before { top: auto; bottom: -6px; transform: rotate(225deg); }
@keyframes dl-pop-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dl__menu::before {
  content: '';
  position: absolute;
  top: -6px; left: 28px;
  width: 10px; height: 10px;
  background: rgba(38, 20, 64, 0.98);
  border-left: 1px solid rgba(168, 107, 255, 0.35);
  border-top: 1px solid rgba(168, 107, 255, 0.35);
  transform: rotate(45deg);
}
.dl__head {
  display: flex; flex-direction: column; gap: 3px;
  padding: 8px 12px 10px;
  border-bottom: 1px solid rgba(168, 107, 255, 0.18);
  margin-bottom: 6px;
}
.dl__pick {
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.dl__meta { font-size: 12.5px; color: var(--amber); letter-spacing: 0.03em; }
.dl__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.dl__item:hover, .dl__item:focus-visible { background: rgba(148, 96, 255, 0.18); outline: none; }
.dl__ico {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(148, 96, 255, 0.12);
  color: var(--violet-soft);
  flex: 0 0 auto;
}
.dl__ico svg { width: 20px; height: 20px; }
.dl__item:hover .dl__ico { color: var(--amber); background: rgba(255, 176, 32, 0.12); }
@keyframes dl-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .dl, .dl__btn { width: 100%; }
  .dl-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .dl__menu { left: 0; right: 0; min-width: 0; }
  .brand__img, .header.is-scrolled .brand__img { height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl__menu { animation: none; }
}


/* ============ Cookie notice (first-party analytics, js/track.js) ============ */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(18, 8, 32, 0.96);
  border-top: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  padding: 14px 0;
}
.consent__inner {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.consent__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 62ch;
}
.consent__link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent__panel {
  width: min(1240px, 100% - 48px);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--panel-border);
}
@media (min-width: 768px) { .consent__panel { grid-template-columns: 1fr 1fr 1fr auto; align-items: start; } }
.consent__option--fixed { cursor: default; opacity: 0.75; }
.consent__option { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; cursor: pointer; }
.consent__option input { margin-top: 4px; }
.consent__option-label { display: block; font-weight: 600; }
.consent__option-hint { display: block; font-size: 0.8rem; color: var(--muted); }
