:root {
  color-scheme: dark;
  --color-bg: #070809;
  --color-bg-soft: #0c0e10;
  --color-surface: #111417;
  --color-surface-2: #171a1e;
  --color-text: #f5f5f3;
  --color-muted: #a3a5a8;
  --color-subtle: #6e7176;
  --color-line: rgba(255, 255, 255, 0.12);
  --color-line-strong: rgba(255, 255, 255, 0.22);
  --color-accent: #e21b2d;
  --color-accent-hover: #f12639;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
  --container: 1312px;
  --header-height: 92px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.46);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

main {
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out);
}

body.is-page-loading main {
  opacity: 0.42;
  pointer-events: none;
  transform: translateY(5px);
}

main[tabindex="-1"]:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 32px;
}

/* Shared header and mobile sidebar */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 7, 8, 0.58);
  transition: background-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled,
body:not(.home-page) .site-header {
  background: rgba(6, 7, 8, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  width: 100%;
  height: 100%;
  padding-inline: clamp(24px, 4vw, 64px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 12px;
}

.site-brand__mark {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.site-brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-brand__name strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-brand__name small {
  margin-top: 4px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: clamp(28px, 3vw, 48px);
}

.desktop-nav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  color: #d5d5d5;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.desktop-nav .nav-link::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  content: '';
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 240ms var(--ease-out);
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
  color: #fff;
}

.desktop-nav .nav-link.active::after,
.desktop-nav .nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.header-action:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

.header-action--accent {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.header-action--accent:hover {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
}

.nav-burger,
.nav-close {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.nav-burger span,
.nav-close span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1px;
  background: #fff;
}

.nav-burger span:first-child { top: 18px; }
.nav-burger span:last-child { top: 26px; }
.nav-close span:first-child { top: 22px; transform: rotate(45deg); }
.nav-close span:last-child { top: 22px; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 101;
  border: 0;
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 102;
  display: flex;
  flex-direction: column;
  width: min(92vw, 430px);
  padding: 24px;
  border-left: 1px solid var(--color-line);
  background: #0a0c0e;
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 360ms var(--ease-out), visibility 360ms;
}

.site-header.menu-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.site-header.menu-open .nav-drawer {
  transform: translateX(0);
  visibility: visible;
}

.nav-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-drawer__top .nav-close {
  display: block;
}

.nav-drawer__links {
  display: flex;
  flex-direction: column;
  margin-top: 64px;
  border-top: 1px solid var(--color-line);
}

.nav-drawer__links .nav-link {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-drawer__links .nav-link span {
  color: var(--color-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
}

.nav-drawer__links .nav-link.active {
  color: var(--color-accent);
}

.nav-drawer__meta {
  margin-top: auto;
  color: var(--color-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    108deg,
    transparent 0 34%,
    rgba(255, 255, 255, 0.2) 47%,
    transparent 60%
  );
  content: "";
  pointer-events: none;
  transform: translateX(-120%);
  transition: transform 520ms var(--ease-out);
}

.btn--primary::after {
  margin-left: 10px;
  content: "\2197";
  font-size: 14px;
  line-height: 1;
  transition: transform 220ms var(--ease-out);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--primary:hover::before {
  transform: translateX(120%);
}

.btn--primary:hover::after {
  transform: translate(2px, -2px);
}

.btn--secondary,
.btn--ghost {
  border-color: var(--color-line-strong);
  background: rgba(9, 10, 11, 0.38);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--secondary:hover,
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

/* Homepage */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: clamp(132px, 14vh, 176px) clamp(24px, 5vw, 76px) 32px;
  background-color: #0b0d0d;
  background-image: url('/assets/hero.jpg');
  background-position: center 44%;
  background-size: cover;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 3, 4, 0.96) 0%, rgba(2, 3, 4, 0.78) 33%, rgba(2, 3, 4, 0.2) 64%, rgba(2, 3, 4, 0.5) 100%),
    linear-gradient(180deg, rgba(2, 3, 4, 0.2) 32%, rgba(2, 3, 4, 0.4) 68%, rgba(2, 3, 4, 0.94) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: end;
  gap: clamp(48px, 8vw, 132px);
  width: min(100%, 1420px);
  margin: auto auto 64px;
  min-width: 0;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.hero-kicker,
.section-kicker {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-kicker span {
  margin-inline: 7px;
  color: rgba(255, 255, 255, 0.35);
}

.hero-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(76px, 8vw, 128px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.78;
  text-transform: uppercase;
}

.hero-title em {
  color: var(--color-accent);
  font-style: normal;
}

.hero-lead {
  max-width: 590px;
  margin-top: 34px;
  color: #d1d2d3;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.event-panel {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 11, 0.76);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.event-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(226, 27, 45, 0.14);
  animation: status-pulse 2.6s ease-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(226, 27, 45, 0.14);
  }

  48% {
    box-shadow: 0 0 0 8px rgba(226, 27, 45, 0);
  }
}

.event-panel__eyebrow {
  margin: 26px 26px 0;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-panel__date {
  margin: 4px 26px 24px;
  font-family: var(--font-display);
  font-size: clamp(38px, 3.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-timer {
  padding: 22px 26px 26px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.025);
}

.timer-label {
  display: block;
  margin-bottom: 14px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.timer-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.timer-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: center;
}

.timer-box + .timer-box::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 1px;
  background: var(--color-line);
  content: '';
}

.timer-box strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.timer-box span {
  color: var(--color-subtle);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timer-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  background: transparent;
  color: #dedede;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.timer-arrow:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.timer-arrow svg {
  color: var(--color-accent);
  transition: transform 240ms var(--ease-out);
}

.timer-arrow:hover svg {
  transform: translateX(4px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 1420px);
  margin-inline: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(8, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-fact {
  min-height: 98px;
  padding: 19px 24px;
}

.hero-fact + .hero-fact {
  border-left: 1px solid var(--color-line);
}

.hero-fact span {
  display: block;
  color: var(--color-subtle);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-fact strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
  text-transform: uppercase;
}

.club-principles {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.5fr);
  gap: clamp(48px, 8vw, 130px);
  padding: clamp(88px, 10vw, 150px) clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
}

.section-heading h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-heading__intro {
  max-width: 520px;
  margin-top: 24px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.principles-grid.principles-grid--alliance {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principle-card {
  min-height: 290px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  transition: border-color 220ms ease, transform 220ms var(--ease-out);
}

.principle-card:hover {
  border-color: var(--color-line-strong);
  transform: translateY(-4px);
}

.principle-card__index {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.principle-card h3 {
  margin-top: 82px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.principle-card p {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.65;
}

.principle-card p + p {
  margin-top: 10px;
}

/* Existing inner-page structure, now using the shared system */
.page-hero {
  padding: calc(var(--header-height) + 104px) 0 94px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg-soft);
}

.kicker {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-title {
  max-width: 900px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
}

.page-intro {
  max-width: 680px;
  margin-top: 28px;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.7;
}

.page-section {
  padding: 88px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
}

.feature-card p {
  margin-top: 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

.detail-list {
  border-top: 1px solid var(--color-line);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--color-line);
}

.detail-row dt {
  color: var(--color-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-row dd {
  font-size: 17px;
  font-weight: 600;
  text-align: right;
}

/* Footer */
.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand span,
.footer-nav a {
  color: var(--color-subtle);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-nav a:hover {
  color: var(--color-text);
}

@media (max-width: 1160px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-action {
    display: none;
  }

  .nav-burger {
    display: block;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
    gap: 48px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: 220px;
  }

  .principle-card h3 {
    margin-top: 44px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 76px;
  }

  .container {
    padding-inline: 22px;
  }

  .site-header__inner {
    padding-inline: 20px;
  }

  .site-brand__mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .site-brand__name strong {
    font-size: 22px;
  }

  .hero {
    min-height: auto;
    padding: 122px 22px 22px;
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(2, 3, 4, 0.42) 0%, rgba(2, 3, 4, 0.72) 34%, rgba(2, 3, 4, 0.97) 72%, rgba(2, 3, 4, 0.99) 100%),
      linear-gradient(90deg, rgba(2, 3, 4, 0.74), rgba(2, 3, 4, 0.2));
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 54px;
    margin: 0 0 22px;
  }

  .hero-title {
    font-size: clamp(67px, 20vw, 94px);
  }

  .event-panel {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-fact + .hero-fact {
    border-left: 1px solid var(--color-line);
  }

  .hero-fact:nth-child(3) {
    border-top: 1px solid var(--color-line);
    border-left: 0;
  }

  .hero-fact:nth-child(4) {
    border-top: 1px solid var(--color-line);
  }

  .club-principles {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-brand__name small {
    display: none;
  }

  .nav-drawer {
    width: 100%;
    padding: 20px;
    border-left: 0;
  }

  .nav-drawer__links {
    margin-top: 48px;
  }

  .hero-kicker {
    max-width: 280px;
    line-height: 1.6;
  }

  .hero-title {
    margin-top: 15px;
    font-size: clamp(58px, 16vw, 66px);
    line-height: 0.82;
  }

  .hero-lead {
    margin-top: 27px;
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .btn {
    width: 100%;
  }

  .event-panel__head,
  .event-panel__eyebrow,
  .event-panel__date,
  .hero-timer,
  .timer-arrow {
    padding-right: 20px;
    padding-left: 20px;
  }

  .event-panel__head {
    gap: 10px;
  }

  .status-badge {
    min-width: 0;
    justify-content: flex-end;
    font-size: 8px;
    line-height: 1.35;
    text-align: right;
  }

  .event-panel__date {
    margin-right: 0;
    margin-left: 0;
    padding-right: 20px;
    padding-left: 20px;
  }

  .timer-box strong {
    font-size: 30px;
  }

  .hero-fact {
    min-height: 92px;
    padding: 17px;
  }

  .hero-fact strong {
    font-size: 21px;
    line-height: 1.08;
  }

  .club-principles {
    padding: 74px 22px;
  }

  .section-heading h2 {
    font-size: 48px;
  }

  .principle-card {
    min-height: 210px;
  }

  .footer-inner,
  .footer-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-row {
    flex-direction: column;
    gap: 8px;
  }

  .detail-row dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compatibility tokens for content added before the visual-system merge. */
:root {
  --hairline: var(--color-line);
  --ink-1: var(--color-text);
  --ink-2: var(--color-muted);
  --ink-3: var(--color-subtle);
  --gold: var(--color-accent);
  --gold-deep: var(--color-accent-hover);
  --navy-deep: var(--color-bg);
  --header-h: var(--header-height);
  --site-shell: var(--container);
}

/* Tournament history, participants, atmosphere and contact sections. */
.section-head{
  max-width: 720px;
  margin-bottom: 34px;
}
.section-head h2{
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.14;
  font-weight: 600;
}
.section-head p{
  margin-top: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}

.tournaments-page .page-hero{
  padding-bottom: 54px;
}
.tournament-story{
  padding: 74px 0 92px;
  background:
    radial-gradient(ellipse 820px 420px at 12% 8%, rgba(226,27,45,0.13), transparent 62%),
    linear-gradient(180deg, rgba(226,27,45,0.09), transparent 45%);
}
.tournament-stack{
  display: flex;
  flex-direction: column;
  gap: 58px;
}
.tournament-row{
  display:grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items:center;
  padding: 34px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(8,10,11,0.28);
  box-shadow: 0 22px 58px rgba(0,0,0,0.18);
}
.tournament-media{
  min-width: 0;
}
.tournament-number{
  display:block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--gold);
  letter-spacing: -0.03em;
}
.tournament-banner{
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    linear-gradient(135deg, rgba(226,27,45,0.18), rgba(226,27,45,0.2)),
    rgba(0,0,0,0.28);
}
.tournament-banner::after{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(17,20,23,0.18), transparent 45%, rgba(17,20,23,0.24)),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.34));
  pointer-events:none;
}
.tournament-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tournament-copy{
  max-width: 520px;
}
.tournament-date{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tournament-date::before{
  content:'';
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.tournament-copy h2,
.tournament-preview h2{
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.12;
}
.tournament-copy p,
.tournament-preview p{
  margin-top: 16px;
  color: var(--ink-2);
  line-height: 1.72;
}
.tournament-preview{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 28px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: 20px;
  border: 1px solid rgba(226,27,45,0.28);
  background:
    radial-gradient(ellipse 520px 260px at 85% 10%, rgba(226,27,45,0.22), transparent 66%),
    linear-gradient(135deg, rgba(226,27,45,0.13), rgba(226,27,45,0.11)),
    rgba(8,10,11,0.38);
  box-shadow: 0 22px 62px rgba(0,0,0,0.22);
}
.tournament-preview > div{
  max-width: 700px;
}
.tournament-preview .btn{
  flex: 0 0 auto;
}

@media (max-width: 860px){
  .tournament-row{
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .tournament-copy{
    max-width: none;
  }
  .tournament-preview{
    align-items:flex-start;
    flex-direction:column;
  }
}
@media (max-width: 520px){
  .tournaments-page .page-hero{
    padding-bottom: 34px;
  }
  .tournament-story{
    padding: 44px 0 62px;
  }
  .tournament-stack{
    gap: 34px;
  }
  .tournament-row{
    padding: 18px;
    border-radius: 14px;
  }
  .tournament-number{
    margin-bottom: 12px;
    font-size: clamp(2.45rem, 16vw, 3.9rem);
  }
  .tournament-banner{
    border-radius: 12px;
  }
  .tournament-date{
    font-size: 0.74rem;
    line-height: 1.35;
  }
  .tournament-copy h2,
  .tournament-preview h2{
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }
  .tournament-copy p,
  .tournament-preview p{
    font-size: 0.96rem;
    line-height: 1.62;
  }
  .tournament-preview{
    padding: 24px 18px;
    border-radius: 15px;
  }
  .tournament-preview .btn{
    width: 100%;
  }
}

/* ---------- participants ---------- */
.participants-section{
  overflow: hidden;
  padding: 34px 0 46px;
  background:
    radial-gradient(ellipse 780px 380px at 85% 12%, rgba(226,27,45,0.14), transparent 62%),
    linear-gradient(180deg, rgba(226,27,45,0.08), transparent 46%);
}
.participants-page .page-hero{
  padding: calc(var(--header-h) + 48px) 0 34px;
}
.participants-page .page-title{
  font-size: clamp(1.9rem, 3.3vw, 2.75rem);
}
.participants-page .page-intro{
  margin-top: 14px;
  max-width: 760px;
}
.participants-page--empty{
  min-height: calc(100svh - 150px);
  padding-top: var(--header-h);
  background: var(--navy-deep);
}
.partners-page--empty{
  min-height: calc(100svh - 150px);
  padding-top: var(--header-h);
  background: var(--navy-deep);
}
.participants-marquee{
  --participant-gap: 22px;
  --participant-half-gap: 11px;
  margin-top: 0;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.participants-marquee:active{
  cursor: grabbing;
}
.participants-marquee::-webkit-scrollbar{
  display: none;
}
.participants-track{
  display: flex;
  gap: var(--participant-gap);
  width: max-content;
  padding: 4px max(28px, calc((100vw - var(--container)) / 2 + 28px)) 6px;
  animation: participants-scroll 42s linear infinite;
  will-change: transform;
}
.participants-marquee--reverse .participants-track{
  animation-direction: reverse;
}
.participants-marquee:hover .participants-track,
.participants-marquee:focus-within .participants-track,
.participants-marquee.is-dragging .participants-track{
  animation-play-state: paused;
}
.participants-group{
  display: flex;
  gap: var(--participant-gap);
}
.participant-card{
  flex: 0 0 clamp(220px, 23vw, 286px);
  min-height: 332px;
  padding: 14px 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(8,10,11,0.34);
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}
.participant-logo{
  height: 184px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.08);
}
.participant-logo--light{
  background: rgba(255,255,255,0.96);
}
.participant-logo--dark{
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.12), transparent 45%),
    #020407;
}
.participant-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.participant-logo img[src*="olimp-logo"]{
  scale: 2.15;
  translate: 5px -19px;
}
.participant-logo img[src*="pereplet-gg-logo"]{
  scale: 1.62;
  translate: 0 -7px;
}
.participant-card h3{
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.18;
}
.participant-card p{
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.46;
}
@keyframes participants-scroll{
  from{ transform: translate3d(0, 0, 0); }
  to{ transform: translate3d(calc(-50% - var(--participant-half-gap)), 0, 0); }
}
@media (max-width: 720px){
  .participants-marquee{
    --participant-gap: 16px;
    --participant-half-gap: 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }
  .participants-track{
    animation-duration: 34s;
    padding-left: 20px;
    padding-right: 20px;
  }
  .participant-card{
    flex-basis: 230px;
    min-height: 326px;
    padding: 12px 12px 16px;
  }
  .participant-logo{
    height: 174px;
  }
}
@media (max-width: 520px){
  .participants-section{
    padding: 24px 0 34px;
  }
  .participants-page .page-hero{
    padding: calc(var(--header-h) + 34px) 0 26px;
  }
  .participants-page .page-title{
    font-size: clamp(1.9rem, 10vw, 2.45rem);
  }
  .participants-marquee{
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  }
  .participant-card{
    flex-basis: min(78vw, 260px);
    min-height: 306px;
  }
  .participant-logo{
    height: 160px;
    padding: 14px;
  }
  .participant-card h3{
    font-size: 1.1rem;
  }
  .participant-card p{
    font-size: 0.82rem;
  }
}

.home-about{
  background:
    radial-gradient(ellipse 760px 420px at 12% 0%, rgba(226,27,45,0.12), transparent 62%),
    linear-gradient(180deg, rgba(17,20,23,0.98), rgba(7,8,9,0.98));
}
.home-about-head{
  max-width: 780px;
}
.about-table{
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8,10,11,0.26);
  box-shadow: 0 24px 58px rgba(0,0,0,0.18);
}
.about-row{
  display:grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--hairline);
}
.about-row:last-child{
  border-bottom: none;
}
.about-label,
.about-value{
  padding: 24px 28px;
}
.about-label{
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255,255,255,0.035);
  border-right: 1px solid var(--hairline);
}
.about-value{
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.65;
}
.tournament-atmosphere{
  margin-top: clamp(52px, 7vw, 86px);
}
.atmosphere-layout{
  display:grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: stretch;
}
.atmosphere-video-card,
.atmosphere-photo{
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(8,10,11,0.28);
  box-shadow: 0 24px 58px rgba(0,0,0,0.2);
  overflow: hidden;
}
.atmosphere-video-card{
  display:flex;
  flex-direction:column;
  min-height: 430px;
  padding: 14px;
}
.atmosphere-video-frame{
  position: relative;
  flex:1;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(226,27,45,0.18), transparent 48%),
    rgba(0,0,0,0.38);
}
.atmosphere-video-frame::before,
.atmosphere-photo::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.04), transparent 42%, rgba(0,0,0,0.5)),
    linear-gradient(90deg, rgba(17,20,23,0.16), transparent 55%);
}
.atmosphere-video-frame video,
.atmosphere-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.atmosphere-video-frame video{
  display:block;
  min-height: 320px;
}
.atmosphere-video-card figcaption,
.atmosphere-photo figcaption{
  position: relative;
  z-index:2;
  display:inline-flex;
  align-self:flex-start;
  margin: 14px 4px 2px;
  padding: 7px 12px;
  border: 1px solid rgba(226,27,45,0.32);
  border-radius: 999px;
  background: rgba(8,10,11,0.58);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.atmosphere-photos{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1.1fr 0.9fr;
  gap: 16px;
}
.atmosphere-photo{
  min-height: 190px;
}
.atmosphere-photo--large{
  grid-column: 1 / -1;
  min-height: 220px;
}
.atmosphere-photo figcaption{
  position:absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
}

@media (max-width: 860px){
  .atmosphere-layout{
    grid-template-columns: 1fr;
  }
  .atmosphere-video-card{
    min-height: 360px;
  }
}
@media (max-width: 640px){
  .about-row{
    grid-template-columns: 1fr;
  }
  .about-label{
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .about-label,
  .about-value{
    padding: 18px 20px;
  }
  .atmosphere-video-card{
    min-height: 0;
    padding: 10px;
  }
  .atmosphere-video-frame,
  .atmosphere-video-frame video{
    min-height: 230px;
  }
  .atmosphere-photos{
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .atmosphere-photo,
  .atmosphere-photo--large{
    min-height: 210px;
    grid-column: auto;
  }
}

.home-participants{
  margin-top: clamp(52px, 7vw, 86px);
}
.home-about > .container > .home-participants{
  margin-top: 0;
}
.home-partners{
  margin-top: clamp(52px, 7vw, 86px);
}
.home-participants .participants-section{
  margin-left: calc(-1 * clamp(16px, 3vw, 28px));
  margin-right: calc(-1 * clamp(16px, 3vw, 28px));
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 58px rgba(0,0,0,0.18);
}
.home-partners .participants-section{
  margin-left: calc(-1 * clamp(16px, 3vw, 28px));
  margin-right: calc(-1 * clamp(16px, 3vw, 28px));
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 58px rgba(0,0,0,0.18);
}
.home-participants .participants-track,
.home-partners .participants-track{
  padding-left: 28px;
  padding-right: 28px;
}

.alliance-map-section.home-alliance-map {
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--color-bg-soft);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.18);
}

.home-alliance-map .alliance-map-heading {
  margin-bottom: 24px;
}

.contact-tournament{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: clamp(24px, 4vw, 52px);
  align-items:center;
  margin-top: clamp(54px, 7vw, 92px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 520px 260px at 85% 20%, rgba(226,27,45,0.18), transparent 64%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(8,10,11,0.34);
  box-shadow: 0 26px 68px rgba(0,0,0,0.2);
}
.contact-tournament-copy h2{
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  font-weight: 600;
}
.contact-tournament-copy p:last-child{
  margin-top: 16px;
  max-width: 640px;
  color: var(--ink-2);
  line-height: 1.65;
}
.contact-card{
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(226,27,45,0.3);
  border-radius: 18px;
  background: rgba(17,20,23,0.68);
}
.contact-card__photo{
  width: 112px;
  height: 142px;
  border: 1px solid var(--color-line);
  border-radius: 15px;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
}
.contact-card__details{
  min-width: 0;
}
.contact-card-label{
  display:block;
  margin-bottom: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-card h3{
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
  margin-bottom: 14px;
}
.contact-phone{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.025em;
  white-space: nowrap;
  transition: color 180ms ease;
}
.contact-phone > span[aria-hidden="true"]{
  color: var(--color-accent);
  font-size: 1rem;
}
.contact-phone:hover{
  color: var(--color-accent);
}
.contact-telegram{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out);
}
.contact-telegram:hover{
  transform: translateY(-2px);
  background: var(--gold-deep);
}

@media (max-width: 760px){
  .contact-tournament{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .contact-card{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }
  .contact-card__photo{
    width: 100%;
    height: 230px;
  }
}

/* Restrained interaction layer inspired by Uiverse's Penumbra system. */
.event-panel,
.principle-card,
.tournament-row,
.participant-card,
.contact-tournament {
  position: relative;
  isolation: isolate;
  transition:
    border-color 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.event-panel::before,
.principle-card::before,
.tournament-row::before,
.participant-card::before,
.contact-tournament::before {
  position: absolute;
  top: -1px;
  right: 20px;
  left: 20px;
  z-index: 2;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 27, 45, 0.82),
    transparent
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0.34);
  transition: opacity 240ms var(--ease-out), transform 360ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .event-panel:hover,
  .principle-card:hover,
  .tournament-row:hover,
  .participant-card:hover,
  .contact-tournament:hover {
    border-color: rgba(226, 27, 45, 0.3);
    box-shadow:
      0 28px 72px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(226, 27, 45, 0.04);
  }

  .event-panel:hover,
  .tournament-row:hover,
  .participant-card:hover,
  .contact-tournament:hover {
    transform: translateY(-3px);
  }

  .event-panel:hover::before,
  .principle-card:hover::before,
  .tournament-row:hover::before,
  .participant-card:hover::before,
  .contact-tournament:hover::before {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* ---------- Alliance geography map ---------- */
.alliance-map-section {
  padding: 58px 0 68px;
  border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(ellipse 720px 360px at 18% 10%, rgba(226, 27, 45, 0.1), transparent 66%),
    var(--color-bg);
}

.alliance-map-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  max-width: none;
  margin-bottom: 28px;
}

.alliance-map-heading h2 {
  margin-top: 13px;
}

.alliance-map-heading > p {
  max-width: 520px;
  margin: 0;
}

.alliance-map-layout {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr) 310px;
  height: 580px;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid #2a2b33;
  border-radius: 22px;
  background: #121216;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  isolation: isolate;
}

.alliance-map-layout::after {
  display: none;
}

.alliance-map-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #27282f;
}

.alliance-map-toolbar {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.alliance-map-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 13px;
  border: 1px solid rgba(216, 188, 104, 0.18);
  border-radius: 999px;
  background: rgba(7, 8, 8, 0.76);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.alliance-map-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 5px rgba(226, 27, 45, 0.13), 0 0 18px rgba(226, 27, 45, 0.72);
}

.alliance-map-status b {
  color: var(--color-text);
  font-weight: 600;
}

.alliance-map-controls {
  position: absolute;
  z-index: 7;
  right: 16px;
  bottom: 16px;
  display: flex;
  width: 38px;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #2c2d35;
  border-radius: 12px;
  background: rgba(10, 10, 13, 0.9);
  backdrop-filter: blur(12px);
}

.alliance-map-controls button {
  width: 38px;
  min-width: 38px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 16px;
}

.alliance-map-controls button + button {
  border-top: 1px solid #2c2d35;
  border-left: 0;
}

.alliance-map-controls [data-map-reset] {
  color: var(--color-text);
  font-size: 17px;
}

.alliance-map-controls button:hover,
.alliance-map-controls button:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
}

.alliance-map-viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 44%, rgba(226, 27, 45, 0.09), transparent 25%),
    radial-gradient(circle at 66% 35%, rgba(216, 188, 104, 0.06), transparent 33%),
    #070808;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.alliance-map-viewport.is-dragging {
  cursor: grabbing;
}

.alliance-map-viewport:focus-visible {
  outline: 2px solid rgba(226, 27, 45, 0.8);
  outline-offset: -2px;
}

.alliance-map-viewport svg {
  display: block;
  width: 100%;
  height: 100%;
}

.alliance-map-stats {
  display: flex;
  position: absolute;
  z-index: 6;
  bottom: 16px;
  left: 16px;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 78px);
  pointer-events: none;
}

.alliance-map-stats span {
  padding: 8px 11px;
  border: 1px solid #2c2d35;
  border-radius: 999px;
  background: rgba(10, 10, 13, 0.88);
  color: #9295a3;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.alliance-map-stats b {
  color: #f4f4f7;
  font-weight: 600;
}

.map-land {
  fill: url(#mapLand);
  stroke: rgba(224, 200, 128, 0.76);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  filter: url(#mapOutlineGlow);
  animation: map-outline-glow 4.8s ease-in-out infinite;
}

.map-connection {
  fill: none;
  stroke: rgba(224, 200, 128, 0.5);
  stroke-dasharray: 5 12;
  stroke-linecap: round;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(224, 200, 128, 0.5));
  animation: map-route-flow 4.2s linear infinite;
}

.map-marker {
  cursor: pointer;
  outline: none;
}

.map-marker__halo {
  fill: rgba(226, 27, 45, 0.26);
  filter: url(#markerGlow);
  transform-box: fill-box;
  transform-origin: center;
  animation: map-marker-pulse 2.4s ease-in-out infinite;
}

.map-marker__symbol {
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pin-float 3.2s ease-in-out infinite;
}

.map-marker__pin {
  fill: var(--color-accent);
  stroke: #f3e3b0;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  filter: url(#markerGlow);
}

.map-marker__pin-center {
  fill: #15130f;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.map-marker__check {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  vector-effect: non-scaling-stroke;
}

.map-marker__label-bg {
  fill: rgba(8, 8, 7, 0.86);
  stroke: rgba(216, 188, 104, 0.32);
  stroke-width: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
  vector-effect: non-scaling-stroke;
}

.map-marker__label {
  fill: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
  text-anchor: middle;
  opacity: 0;
  transition: opacity 160ms ease;
}

.map-marker:hover .map-marker__pin,
.map-marker:focus .map-marker__pin,
.map-marker.is-active .map-marker__pin {
  fill: #e0c66f;
  stroke: #fff6d5;
}

.map-marker:hover .map-marker__pin-center,
.map-marker:focus .map-marker__pin-center,
.map-marker.is-active .map-marker__pin-center {
  fill: #1a1710;
}

.map-marker:hover .map-marker__label-bg,
.map-marker:focus .map-marker__label-bg,
.map-marker.is-active .map-marker__label-bg,
.map-marker:hover .map-marker__label,
.map-marker:focus .map-marker__label,
.map-marker.is-active .map-marker__label {
  opacity: 1;
}

@keyframes map-marker-pulse {
  0%, 100% { opacity: 0.42; transform: scale(0.78); }
  50% { opacity: 0.92; transform: scale(1.22); }
}

@keyframes map-outline-glow {
  0%, 100% { stroke: rgba(224, 200, 128, 0.58); opacity: 0.82; }
  50% { stroke: rgba(255, 232, 163, 0.95); opacity: 1; }
}

@keyframes map-route-flow {
  to { stroke-dashoffset: -68; }
}

@keyframes map-pin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.alliance-map-hint {
  position: absolute;
  left: 16px;
  bottom: 82px;
  padding: 7px 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(7, 8, 9, 0.78);
  color: var(--color-subtle);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  pointer-events: none;
  text-transform: uppercase;
}

.alliance-map-sidebar {
  display: flex;
  position: relative;
  z-index: 3;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #141419;
}

.alliance-map-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  color: #9b9eac;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.alliance-map-sidebar__head b {
  color: #8fa7d9;
  font-weight: 600;
}

.alliance-city-list {
  display: grid;
  gap: 3px;
  padding: 0 12px 14px;
  overflow-y: auto;
}

.alliance-city-list button {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f2f2f5;
  text-align: left;
}

.alliance-city-list button > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(226, 27, 45, 0.45);
}

.alliance-city-list button > span,
.alliance-city-list button strong,
.alliance-city-list button small {
  display: block;
  min-width: 0;
}

.alliance-city-list button strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alliance-city-list button small {
  margin-top: 3px;
  overflow: hidden;
  color: #777b8b;
  font-size: 9px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alliance-city-list button > b {
  color: #858b9f;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.alliance-city-list button:hover,
.alliance-city-list button:focus-visible,
.alliance-city-list button.is-active {
  background: #1b1c22;
  color: #fff;
  outline: none;
}

.alliance-city-details {
  min-height: 0;
  margin-top: auto;
  padding: 18px 22px 20px;
  overflow-y: auto;
  border-top: 1px solid #27282f;
  background: #121217;
}

.alliance-city-details > p {
  color: var(--color-muted);
  font-size: 13px;
}

.alliance-city-details h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.alliance-city-details__count {
  display: block;
  margin-top: 7px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.alliance-city-clubs {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.alliance-city-club {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid #282930;
  border-radius: 8px;
  background: #18191e;
}

.alliance-city-club:hover {
  border-color: rgba(226, 27, 45, 0.35);
}

.alliance-city-club img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.alliance-city-club strong,
.alliance-city-club span {
  display: block;
  overflow-wrap: anywhere;
}

.alliance-city-club strong {
  font-size: 12px;
}

.alliance-city-club span {
  margin-top: 3px;
  color: var(--color-subtle);
  font-size: 10px;
  line-height: 1.35;
}

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

.participants-grid .participant-card {
  min-width: 0;
}

.participant-card__location {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--color-subtle);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
}

.participant-card__location::before {
  width: 6px;
  height: 6px;
  margin-top: 3px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(226, 27, 45, 0.62);
  content: '';
}

.participant-card--link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.partners-empty {
  margin-top: 28px;
  padding: 28px;
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-align: center;
}

@media (max-width: 1050px) {
  .alliance-map-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    height: 560px;
    min-height: 560px;
  }
  .participants-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .alliance-map-section {
    padding: 42px 0 50px;
  }
  .alliance-map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .alliance-map-viewport {
    height: 100%;
  }
  .alliance-map-layout {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
  }
  .alliance-map-card {
    position: relative;
    height: min(70vw, 470px);
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid #27282f;
  }
  .alliance-map-sidebar {
    position: relative;
    z-index: 4;
    flex-direction: column;
    background: #141419;
  }
  .alliance-map-sidebar__head {
    padding: 18px 18px 12px;
  }
  .alliance-city-list {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 10px 14px;
    pointer-events: auto;
  }
  .alliance-city-details {
    position: static;
    width: auto;
    max-height: 350px;
    border: 0;
    border-top: 1px solid #27282f;
    border-radius: 0;
    box-shadow: none;
  }
  .participants-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .alliance-map-layout {
    margin-right: -4px;
    margin-left: -4px;
    border-radius: 14px;
  }
  .alliance-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 13px;
  }
  .alliance-map-controls {
    width: 38px;
  }
  .alliance-map-controls button {
    flex: 0 0 auto;
  }
  .alliance-map-card {
    height: 350px;
    min-height: 350px;
  }
  .alliance-map-hint {
    display: none;
  }
  .alliance-city-list,
  .alliance-city-details {
    padding: 14px;
  }
  .alliance-city-list {
    grid-template-columns: 1fr;
  }
  .participants-grid {
    grid-template-columns: 1fr;
  }
  .participants-grid .participant-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-marker__halo {
    animation: none;
  }
}

/* ---------- Persistent site theme switcher ---------- */
.theme-switcher {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: 0 12px 34px rgba(7, 37, 59, 0.18);
  color: var(--color-text);
}

.theme-switcher__label {
  padding: 0 7px 0 10px;
  color: var(--color-subtle);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.theme-switcher button:hover,
.theme-switcher button[aria-pressed="true"] {
  border-color: var(--color-line);
  background: var(--color-surface-2);
  color: var(--color-text);
}

.theme-switcher__swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(8, 50, 79, 0.22);
}

.theme-switcher__swatch--blue {
  background: linear-gradient(135deg, #0b4169 0 52%, #f9f6f0 53% 75%, #b8c3ca 76%);
}

.theme-switcher__swatch--dark {
  background: linear-gradient(135deg, #08090a 0 57%, #e21b2d 58%);
}

/* ---------- APC blue / white theme ---------- */
html[data-theme="blue"] {
  color-scheme: light;
  --color-bg: #eef4f7;
  --color-bg-soft: #f7fafc;
  --color-surface: #ffffff;
  --color-surface-2: #e5edf2;
  --color-text: #0b3555;
  --color-muted: #587286;
  --color-subtle: #8295a3;
  --color-line: rgba(8, 55, 87, 0.13);
  --color-line-strong: rgba(8, 55, 87, 0.25);
  --color-accent: #0d466f;
  --color-accent-hover: #082f4e;
  --shadow-lg: 0 28px 74px rgba(8, 55, 87, 0.16);
}

html[data-theme="blue"] body {
  background:
    radial-gradient(circle at 84% 14%, rgba(133, 169, 191, 0.16), transparent 27rem),
    var(--color-bg);
}

html[data-theme="blue"] .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.16);
  background: rgba(7, 43, 69, 0.7);
  color: #fffdf9;
}

html[data-theme="blue"] .site-header.is-scrolled,
html[data-theme="blue"] body:not(.home-page) .site-header {
  border-bottom-color: var(--color-line);
  background: rgba(249, 252, 253, 0.92);
  color: var(--color-text);
  box-shadow: 0 9px 30px rgba(8, 55, 87, 0.08);
}

html[data-theme="blue"] .site-brand__mark {
  border-color: rgba(220, 234, 242, 0.72);
  box-shadow: 0 8px 26px rgba(3, 30, 50, 0.2);
}

html[data-theme="blue"] .site-header:not(.is-scrolled) .site-brand__name small,
html[data-theme="blue"] .site-header:not(.is-scrolled) .desktop-nav .nav-link {
  color: rgba(255, 255, 255, 0.76);
}

html[data-theme="blue"] body:not(.home-page) .site-brand__name small,
html[data-theme="blue"] body:not(.home-page) .desktop-nav .nav-link,
html[data-theme="blue"] .site-header.is-scrolled .site-brand__name small,
html[data-theme="blue"] .site-header.is-scrolled .desktop-nav .nav-link {
  color: var(--color-muted);
}

html[data-theme="blue"] body:not(.home-page) .desktop-nav .nav-link:hover,
html[data-theme="blue"] body:not(.home-page) .desktop-nav .nav-link.active,
html[data-theme="blue"] .site-header.is-scrolled .desktop-nav .nav-link:hover,
html[data-theme="blue"] .site-header.is-scrolled .desktop-nav .nav-link.active {
  color: var(--color-text);
}

html[data-theme="blue"] .site-header:not(.is-scrolled) .header-action:not(.header-action--accent) {
  border-color: rgba(255, 255, 255, 0.38);
}

html[data-theme="blue"] .home-page .site-header:not(.is-scrolled) .nav-link::after {
  background: #c4d3db;
}

html[data-theme="blue"] .header-action--accent {
  border-color: #fffdf9;
  background: #fffdf9;
  color: #0b4169;
}

html[data-theme="blue"] body:not(.home-page) .header-action--accent,
html[data-theme="blue"] .site-header.is-scrolled .header-action--accent {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

html[data-theme="blue"] body:not(.home-page) .header-action:not(.header-action--accent),
html[data-theme="blue"] .site-header.is-scrolled .header-action:not(.header-action--accent) {
  border-color: var(--color-line-strong);
  background: rgba(255, 255, 255, 0.64);
}

html[data-theme="blue"] .nav-drawer {
  border-left-color: var(--color-line);
  background: #f8fbfd;
  color: var(--color-text);
}

html[data-theme="blue"] .nav-drawer .nav-close span,
html[data-theme="blue"] body:not(.home-page) .nav-burger span,
html[data-theme="blue"] .site-header.is-scrolled .nav-burger span {
  background: var(--color-text);
}

html[data-theme="blue"] .hero {
  background-color: #092f4d;
  color: #fffdf9;
}

html[data-theme="blue"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 36, 58, 0.97) 0%, rgba(7, 49, 78, 0.84) 34%, rgba(8, 55, 87, 0.28) 67%, rgba(5, 36, 58, 0.6) 100%),
    linear-gradient(180deg, rgba(5, 36, 58, 0.12) 28%, rgba(5, 36, 58, 0.42) 68%, rgba(5, 36, 58, 0.96) 100%);
}

html[data-theme="blue"] .hero-kicker,
html[data-theme="blue"] .hero-title em,
html[data-theme="blue"] .timer-arrow svg {
  color: #c2d0d8;
}

html[data-theme="blue"] .hero-title,
html[data-theme="blue"] .event-panel__date,
html[data-theme="blue"] .timer-box strong,
html[data-theme="blue"] .hero-fact strong,
html[data-theme="blue"] .timer-arrow {
  color: #fffdf9;
}

html[data-theme="blue"] .hero-lead {
  color: #e2ebef;
}

html[data-theme="blue"] .event-panel,
html[data-theme="blue"] .hero-facts {
  border-color: rgba(219, 233, 240, 0.27);
  background: rgba(5, 40, 64, 0.78);
  box-shadow: 0 28px 74px rgba(1, 24, 39, 0.32);
}

html[data-theme="blue"] .event-panel__head,
html[data-theme="blue"] .event-panel__eyebrow,
html[data-theme="blue"] .timer-label,
html[data-theme="blue"] .timer-box span,
html[data-theme="blue"] .hero-fact span {
  color: #abc0cc;
}

html[data-theme="blue"] .status-badge i {
  box-shadow: 0 0 0 4px rgba(168, 204, 222, 0.17);
  animation-name: status-pulse-blue;
}

@keyframes status-pulse-blue {
  0%, 100% { box-shadow: 0 0 0 4px rgba(168, 204, 222, 0.17); }
  48% { box-shadow: 0 0 0 8px rgba(168, 204, 222, 0); }
}

html[data-theme="blue"] .hero-timer {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="blue"] .hero .btn--primary {
  background: #fffdf9;
  color: #0a3d61;
}

html[data-theme="blue"] .hero .btn--primary:hover {
  background: #dce7ec;
}

html[data-theme="blue"] .hero .btn--secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(5, 40, 64, 0.46);
  color: #fff;
}

html[data-theme="blue"] .btn--secondary,
html[data-theme="blue"] .btn--ghost {
  border-color: var(--color-line-strong);
  background: #fff;
  color: var(--color-text);
}

html[data-theme="blue"] .club-principles,
html[data-theme="blue"] .page-section,
html[data-theme="blue"] .participants-section,
html[data-theme="blue"] .tournament-story,
html[data-theme="blue"] .home-about,
html[data-theme="blue"] .alliance-map-section {
  background:
    radial-gradient(ellipse 760px 390px at 86% 8%, rgba(115, 155, 180, 0.14), transparent 64%),
    var(--color-bg);
}

html[data-theme="blue"] .page-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 241, 246, 0.96)),
    var(--color-bg-soft);
}

html[data-theme="blue"] .principle-card,
html[data-theme="blue"] .feature-card,
html[data-theme="blue"] .tournament-row,
html[data-theme="blue"] .participant-card,
html[data-theme="blue"] .about-table,
html[data-theme="blue"] .atmosphere-video-card,
html[data-theme="blue"] .atmosphere-photo,
html[data-theme="blue"] .contact-tournament,
html[data-theme="blue"] .contact-card,
html[data-theme="blue"] .tournament-preview,
html[data-theme="blue"] .partners-empty {
  border-color: var(--color-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 52px rgba(8, 55, 87, 0.09);
}

html[data-theme="blue"] .participant-logo {
  border-color: rgba(8, 55, 87, 0.1);
  background: #edf3f6;
}

html[data-theme="blue"] .participant-logo--light {
  background: #fff;
}

html[data-theme="blue"] .participant-logo--dark {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.12), transparent 45%), #061827;
}

html[data-theme="blue"] .about-label {
  border-color: var(--color-line);
  background: #e7f0f4;
}

html[data-theme="blue"] .atmosphere-video-frame {
  background: radial-gradient(circle at 50% 42%, rgba(35, 101, 142, 0.18), transparent 48%), #dce8ee;
}

html[data-theme="blue"] .atmosphere-video-card figcaption,
html[data-theme="blue"] .atmosphere-photo figcaption {
  border-color: rgba(13, 70, 111, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-accent);
}

html[data-theme="blue"] .contact-card {
  border-color: rgba(13, 70, 111, 0.22);
}

html[data-theme="blue"] .contact-telegram {
  background: var(--color-accent);
  color: #fff;
}

html[data-theme="blue"] .event-panel::before,
html[data-theme="blue"] .principle-card::before,
html[data-theme="blue"] .tournament-row::before,
html[data-theme="blue"] .participant-card::before,
html[data-theme="blue"] .contact-tournament::before {
  background: linear-gradient(90deg, transparent, rgba(13, 70, 111, 0.78), transparent);
}

html[data-theme="blue"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.13);
  background: #083656;
  color: #fffdf9;
}

html[data-theme="blue"] .site-footer p,
html[data-theme="blue"] .site-footer small,
html[data-theme="blue"] .site-footer .footer-nav {
  color: #b9cad3;
}

html[data-theme="blue"] .alliance-map-layout {
  border-color: #24516d;
  background: #092a43;
  box-shadow: 0 26px 72px rgba(8, 55, 87, 0.2);
}

html[data-theme="blue"] .alliance-map-card {
  border-color: #254b64;
}

html[data-theme="blue"] .alliance-map-viewport {
  background:
    radial-gradient(circle at 28% 44%, rgba(118, 176, 209, 0.14), transparent 25%),
    radial-gradient(circle at 66% 35%, rgba(229, 239, 244, 0.08), transparent 33%),
    #061d2f;
}

html[data-theme="blue"] #mapLand stop:first-child {
  stop-color: #164f75;
}

html[data-theme="blue"] #mapLand stop:last-child {
  stop-color: #0b304d;
}

html[data-theme="blue"] .map-land {
  stroke: rgba(188, 211, 223, 0.82);
  animation-name: map-outline-glow-blue;
}

@keyframes map-outline-glow-blue {
  0%, 100% { stroke: rgba(167, 201, 218, 0.68); opacity: 0.86; }
  50% { stroke: rgba(224, 239, 246, 0.98); opacity: 1; }
}

html[data-theme="blue"] .map-connection {
  stroke: rgba(176, 211, 229, 0.7);
  filter: drop-shadow(0 0 3px rgba(125, 185, 215, 0.55));
}

html[data-theme="blue"] .map-marker__halo {
  fill: rgba(97, 169, 208, 0.3);
}

html[data-theme="blue"] .map-marker__pin {
  fill: #f7fafb;
  stroke: #94b6c9;
}

html[data-theme="blue"] .map-marker__pin-center {
  fill: #0d466f;
}

html[data-theme="blue"] .map-marker:hover .map-marker__pin,
html[data-theme="blue"] .map-marker:focus .map-marker__pin,
html[data-theme="blue"] .map-marker.is-active .map-marker__pin {
  fill: #b9d0dc;
  stroke: #fff;
}

html[data-theme="blue"] .map-marker:hover .map-marker__pin-center,
html[data-theme="blue"] .map-marker:focus .map-marker__pin-center,
html[data-theme="blue"] .map-marker.is-active .map-marker__pin-center {
  fill: #082f4e;
}

html[data-theme="blue"] .map-marker__label-bg {
  fill: rgba(5, 31, 50, 0.92);
  stroke: rgba(178, 208, 223, 0.46);
}

html[data-theme="blue"] .alliance-map-status,
html[data-theme="blue"] .alliance-map-controls,
html[data-theme="blue"] .alliance-map-stats span,
html[data-theme="blue"] .alliance-map-hint {
  border-color: rgba(177, 207, 222, 0.24);
  background: rgba(5, 31, 50, 0.88);
  color: #b7cad4;
}

html[data-theme="blue"] .alliance-map-status b,
html[data-theme="blue"] .alliance-map-controls button,
html[data-theme="blue"] .alliance-map-stats b {
  color: #fff;
}

html[data-theme="blue"] .alliance-map-status i,
html[data-theme="blue"] .alliance-city-list button > i {
  background: #dce9ef;
  box-shadow: 0 0 0 5px rgba(135, 187, 214, 0.16), 0 0 18px rgba(135, 187, 214, 0.58);
}

html[data-theme="blue"] .alliance-map-sidebar {
  background: #0a2b43;
}

html[data-theme="blue"] .alliance-map-sidebar__head {
  color: #aabfca;
}

html[data-theme="blue"] .alliance-map-sidebar__head b {
  color: #dce8ee;
}

html[data-theme="blue"] .alliance-city-list button {
  color: #f4f8fa;
}

html[data-theme="blue"] .alliance-city-list button small,
html[data-theme="blue"] .alliance-city-list button > b {
  color: #91aab7;
}

html[data-theme="blue"] .alliance-city-list button:hover,
html[data-theme="blue"] .alliance-city-list button:focus-visible,
html[data-theme="blue"] .alliance-city-list button.is-active {
  background: #123b56;
}

html[data-theme="blue"] .alliance-city-details {
  border-color: #254b64;
  background: #08253a;
  color: #f5f9fb;
}

html[data-theme="blue"] .alliance-city-details > p,
html[data-theme="blue"] .alliance-city-club span {
  color: #a8bdc8;
}

html[data-theme="blue"] .alliance-city-details__count {
  color: #c6dae4;
}

html[data-theme="blue"] .alliance-city-club {
  border-color: #2b526a;
  background: #0e3148;
}

html[data-theme="blue"] .alliance-city-club:hover {
  border-color: #7199ad;
}

html[data-theme="blue"] .participant-card__location::before {
  box-shadow: 0 0 10px rgba(13, 70, 111, 0.42);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="blue"] .event-panel:hover,
  html[data-theme="blue"] .principle-card:hover,
  html[data-theme="blue"] .tournament-row:hover,
  html[data-theme="blue"] .participant-card:hover,
  html[data-theme="blue"] .contact-tournament:hover {
    border-color: rgba(13, 70, 111, 0.3);
    box-shadow: 0 28px 72px rgba(8, 55, 87, 0.16), 0 0 0 1px rgba(13, 70, 111, 0.04);
  }
}

@media (max-width: 620px) {
  .theme-switcher {
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
  }

  .theme-switcher__label,
  .theme-switcher button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .theme-switcher button {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .alliance-map-section.home-alliance-map {
    margin-right: -4px;
    margin-left: -4px;
    padding: 20px 10px 10px;
    border-radius: 14px;
  }
}

/* Compact participant catalogue on the homepage. */
.home-participant-catalog {
  margin-top: clamp(52px, 7vw, 86px);
}

.participants-grid--compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.participants-grid--compact .participant-card {
  min-height: 0;
  padding: 10px 10px 14px;
  border-radius: 14px;
}

.participants-grid--compact .participant-logo {
  height: clamp(108px, 10vw, 140px);
  padding: 12px;
  border-radius: 10px;
}

.participants-grid--compact .participant-card h3 {
  margin-top: 10px;
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  line-height: 1.1;
}

.participants-grid--compact .participant-card__location {
  gap: 6px;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.35;
}

.participants-grid--compact .participant-card__location::before {
  width: 13px;
  height: 15px;
  margin-top: 0;
  flex: 0 0 13px;
  border-radius: 0;
  background: var(--color-accent);
  box-shadow: none;
  content: '';
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-7.1 7-13a7 7 0 1 0-14 0c0 5.9 7 13 7 13Z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='9' r='2.5' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-7.1 7-13a7 7 0 1 0-14 0c0 5.9 7 13 7 13Z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='9' r='2.5' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 900px) {
  .participants-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .participants-grid--compact .participant-logo {
    height: clamp(125px, 22vw, 178px);
  }
}

@media (max-width: 560px) {
  .participants-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .participants-grid--compact .participant-logo {
    height: clamp(108px, 36vw, 148px);
    padding: 9px;
  }
}

@media (max-width: 760px) {
  .principles-grid.principles-grid--alliance {
    grid-template-columns: 1fr;
  }
}

/* Санкт-Петербург — главный город географии Альянса. */
.map-marker.is-hub .map-marker__symbol {
  animation-name: map-hub-float;
}

.map-marker.is-hub .map-marker__halo {
  fill: rgba(241, 207, 98, 0.38);
}

.map-marker.is-hub .map-marker__pin {
  fill: #e0c66f;
  stroke: #fff7dc;
  stroke-width: 2;
}

.map-marker.is-hub .map-marker__pin-center {
  fill: #5c4811;
}

.map-marker.is-hub .map-marker__label-bg,
.map-marker.is-hub .map-marker__label {
  opacity: 1;
}

.map-marker.is-hub .map-marker__label {
  font-size: 11px;
  font-weight: 700;
}

.alliance-city-list button.is-hub {
  box-shadow: inset 0 0 0 1px rgba(224, 198, 111, 0.34);
}

.alliance-city-list button.is-hub strong {
  color: #f0d781;
}

@keyframes map-hub-float {
  0%, 100% { transform: translateY(0) scale(1.18); }
  50% { transform: translateY(-4px) scale(1.24); }
}

html[data-theme="blue"] .map-marker.is-hub .map-marker__halo {
  fill: rgba(100, 188, 230, 0.46);
}

html[data-theme="blue"] .map-marker.is-hub .map-marker__pin {
  fill: #67b8df;
  stroke: #f6fcff;
}

html[data-theme="blue"] .map-marker.is-hub .map-marker__pin-center {
  fill: #073b5d;
}

html[data-theme="blue"] .alliance-city-list button.is-hub {
  background: rgba(92, 170, 209, 0.12);
  box-shadow: inset 0 0 0 1px rgba(143, 202, 230, 0.42);
}

html[data-theme="blue"] .alliance-city-list button.is-hub strong {
  color: #d9f1fc;
}

/* Full-width tournament video with a square gallery below. */
.atmosphere-layout {
  grid-template-columns: 1fr;
  gap: 18px;
}

.atmosphere-video-card {
  min-height: 0;
  padding: 0;
}

.atmosphere-video-frame {
  width: 100%;
  min-height: 0;
  flex: none;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
}

.atmosphere-video-frame video {
  min-height: 0;
  object-position: center;
}

.atmosphere-video-card figcaption {
  position: absolute;
  top: 16px;
  left: 16px;
  margin: 0;
}

.atmosphere-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: clamp(64px, 7vw, 88px);
  height: clamp(64px, 7vw, 88px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(6, 37, 59, 0.78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
  color: #fff;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 220ms var(--ease-out), background-color 180ms ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.atmosphere-play-button::before {
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid currentColor;
  content: '';
  transform: translate(-50%, -50%);
}

.atmosphere-play-button:hover {
  background: rgba(13, 70, 111, 0.94);
  transform: translate(-50%, -50%) scale(1.06);
}

.atmosphere-video-frame.is-playing .atmosphere-play-button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.82);
}

.atmosphere-photos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(132px, 12vw, 176px);
  gap: clamp(10px, 1.2vw, 16px);
}

.atmosphere-photo,
.atmosphere-photo--large {
  appearance: none;
  min-width: 0;
  min-height: 0;
  grid-column: span 3;
  grid-row: span 1;
  margin: 0;
  padding: 0;
  aspect-ratio: auto;
  color: inherit;
  cursor: zoom-in;
  isolation: isolate;
  transform: translateZ(0);
}

.atmosphere-photo--featured {
  grid-column: span 6;
  grid-row: span 2;
}

.atmosphere-photo--wide {
  grid-column: span 6;
}

.atmosphere-photo--tall {
  grid-row: span 2;
}

.atmosphere-photo--panorama {
  grid-column: 1 / -1;
  grid-row: span 2;
}

.atmosphere-photo img {
  display: block;
  transform: scale(1.002);
  transition: transform 600ms var(--ease-out), filter 300ms ease;
}

.atmosphere-photo::before {
  background:
    linear-gradient(180deg, transparent 52%, rgba(1, 14, 24, 0.42)),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 38%);
  opacity: 0.58;
  transition: opacity 260ms ease;
}

.atmosphere-photo::after {
  content: '↗';
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 50%;
  background: rgba(3, 28, 46, 0.62);
  color: #fff;
  font: 500 1.05rem/1 var(--font-body);
  opacity: 0;
  transform: translateY(7px) scale(0.9);
  transition: opacity 220ms ease, transform 300ms var(--ease-out), background-color 220ms ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.atmosphere-photo:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (hover: hover) {
  .atmosphere-photo:hover img {
    filter: saturate(1.07) contrast(1.025);
    transform: scale(1.045);
  }

  .atmosphere-photo:hover::before {
    opacity: 0.32;
  }

  .atmosphere-photo:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.atmosphere-gallery-is-open {
  overflow: hidden;
}

.atmosphere-lightbox[hidden] {
  display: none;
}

.atmosphere-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: clamp(48px, 7vw, 78px) minmax(0, 1fr) clamp(48px, 7vw, 78px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(18px, 3vw, 38px);
  background: rgba(1, 10, 17, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.atmosphere-lightbox__stage {
  grid-column: 2;
  display: grid;
  min-width: 0;
  margin: 0;
  place-items: center;
}

.atmosphere-lightbox__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - 112px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: clamp(12px, 1.5vw, 20px);
  box-shadow: 0 32px 100px rgba(0,0,0,0.58);
  object-fit: contain;
}

.atmosphere-lightbox__close,
.atmosphere-lightbox__arrow {
  appearance: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 220ms var(--ease-out);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.atmosphere-lightbox__close:hover,
.atmosphere-lightbox__arrow:hover {
  border-color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.15);
  transform: scale(1.06);
}

.atmosphere-lightbox__close:focus-visible,
.atmosphere-lightbox__arrow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.atmosphere-lightbox__close {
  position: absolute;
  top: clamp(16px, 2.2vw, 28px);
  right: clamp(16px, 2.2vw, 28px);
  z-index: 2;
  width: 48px;
  height: 48px;
  font: 300 2rem/1 var(--font-body);
}

.atmosphere-lightbox__arrow {
  align-self: center;
  width: clamp(44px, 5vw, 58px);
  height: clamp(44px, 5vw, 58px);
  font: 400 clamp(1.25rem, 2vw, 1.7rem)/1 var(--font-body);
}

.atmosphere-lightbox__arrow--prev {
  grid-column: 1;
  justify-self: start;
}

.atmosphere-lightbox__arrow--next {
  grid-column: 3;
  justify-self: end;
}

.atmosphere-lightbox__counter {
  position: absolute;
  bottom: clamp(16px, 2vw, 24px);
  left: 50%;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  font: 500 0.76rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

@media (max-width: 860px) {
  .atmosphere-photos {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(126px, 22vw, 170px);
  }

  .atmosphere-photo {
    grid-column: span 2;
  }

  .atmosphere-photo--featured,
  .atmosphere-photo--wide,
  .atmosphere-photo--panorama {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .atmosphere-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(118px, 37vw, 164px);
    gap: 9px;
  }

  .atmosphere-photo {
    grid-column: span 1;
  }

  .atmosphere-photo--featured,
  .atmosphere-photo--wide,
  .atmosphere-photo--panorama {
    grid-column: span 2;
  }

  .atmosphere-photo::after {
    display: none;
  }

  .atmosphere-lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 12px 8px;
  }

  .atmosphere-lightbox__stage img {
    max-height: calc(100vh - 132px);
    max-height: calc(100dvh - 132px);
    border-radius: 10px;
  }

  .atmosphere-lightbox__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .atmosphere-lightbox__arrow {
    width: 40px;
    height: 40px;
  }

  .atmosphere-play-button::before {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere-photo img,
  .atmosphere-photo::after,
  .atmosphere-lightbox__close,
  .atmosphere-lightbox__arrow {
    transition: none;
  }
}

/* Homepage section navigation, highlighted event and partner carousel */
.site-header__inner {
  grid-template-columns: minmax(210px, 0.72fr) auto minmax(56px, 0.72fr);
}

.desktop-nav {
  gap: clamp(12px, 1.45vw, 24px);
}

.desktop-nav .nav-link {
  font-size: clamp(10px, 0.76vw, 12px);
}

[data-home-section] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.hero-title--new-era {
  max-width: 790px;
  font-size: clamp(60px, 6.5vw, 104px);
  line-height: 0.84;
}

.event-panel--featured {
  cursor: default;
  border-color: rgba(226, 27, 45, 0.62);
  background:
    radial-gradient(circle at 92% 8%, rgba(226, 27, 45, 0.2), transparent 35%),
    rgba(8, 10, 11, 0.9);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(226, 27, 45, 0.14),
    0 0 48px rgba(226, 27, 45, 0.16);
}

.event-panel--featured .event-panel__head {
  background: rgba(226, 27, 45, 0.08);
}

.event-panel--featured .hero-timer {
  padding-bottom: 32px;
  border-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
  .event-panel--featured:hover {
    transform: none;
    box-shadow:
      0 34px 90px rgba(0, 0, 0, 0.56),
      0 0 0 1px rgba(226, 27, 45, 0.14),
      0 0 48px rgba(226, 27, 45, 0.16);
  }
}

html[data-theme="blue"] .event-panel--featured {
  border-color: rgba(179, 220, 240, 0.68);
  background:
    radial-gradient(circle at 92% 8%, rgba(130, 198, 231, 0.24), transparent 38%),
    rgba(4, 38, 61, 0.92);
  box-shadow:
    0 34px 90px rgba(1, 24, 39, 0.42),
    0 0 0 1px rgba(185, 222, 239, 0.16),
    0 0 54px rgba(109, 180, 214, 0.22);
}

html[data-theme="blue"] .event-panel--featured .event-panel__head {
  background: rgba(190, 225, 241, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="blue"] .event-panel--featured:hover {
    transform: none;
    box-shadow:
      0 34px 90px rgba(1, 24, 39, 0.42),
      0 0 0 1px rgba(185, 222, 239, 0.16),
      0 0 54px rgba(109, 180, 214, 0.22);
  }
}

.partner-carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: clamp(10px, 1.4vw, 20px);
  align-items: center;
  margin-top: clamp(24px, 3vw, 38px);
}

.partner-carousel__viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
}

.partner-carousel__track {
  display: flex;
  width: max-content;
  gap: clamp(18px, 2.1vw, 30px);
}

.partner-card {
  width: clamp(176px, 16.5vw, 226px);
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
}

.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  padding: clamp(18px, 2vw, 28px);
  border-radius: 18px;
  background: rgba(232, 241, 246, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

.partner-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) saturate(0);
  opacity: 0.62;
  transition: filter 300ms var(--ease-out), opacity 300ms ease, transform 360ms var(--ease-out);
}

.partner-card h3 {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.1;
}

.partner-card:hover .partner-card__logo img,
.partner-card:focus-within .partner-card__logo img {
  filter: grayscale(0) saturate(1);
  opacity: 1;
  transform: scale(1.045);
}

.partner-carousel__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 23px;
  line-height: 1;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.partner-carousel__arrow:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.partner-carousel__arrow:disabled {
  cursor: default;
  opacity: 0.28;
}

.reveal-section {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition: opacity 720ms ease, transform 900ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html,
body,
.alliance-city-list,
.alliance-city-details,
.partner-carousel__viewport {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-bg-soft);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.alliance-city-list::-webkit-scrollbar,
.alliance-city-details::-webkit-scrollbar,
.partner-carousel__viewport::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.alliance-city-list::-webkit-scrollbar-track,
.alliance-city-details::-webkit-scrollbar-track,
.partner-carousel__viewport::-webkit-scrollbar-track {
  background: var(--color-bg-soft);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.alliance-city-list::-webkit-scrollbar-thumb,
.alliance-city-details::-webkit-scrollbar-thumb,
.partner-carousel__viewport::-webkit-scrollbar-thumb {
  border: 2px solid var(--color-bg-soft);
  border-radius: 999px;
  background: var(--color-accent);
}

@media (max-width: 1280px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .nav-burger {
    display: block;
  }
}

@media (max-width: 860px) {
  .hero-title--new-era {
    max-width: 680px;
    font-size: clamp(58px, 13vw, 82px);
  }

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

  .partner-carousel__arrow {
    width: 44px;
    height: 44px;
  }

  .partner-card {
    width: clamp(170px, 42vw, 218px);
  }

  .nav-drawer__links {
    margin-top: 38px;
  }

  .nav-drawer__links .nav-link {
    min-height: 58px;
    font-size: 26px;
  }
}

@media (max-width: 520px) {
  .hero-title--new-era {
    font-size: clamp(45px, 13vw, 60px);
    line-height: 0.88;
  }

  .partner-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .partner-carousel__arrow {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .partner-card {
    width: min(64vw, 210px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .partner-card__logo img {
    transition: none;
  }
}
