
/* =====================================================================
   LA2STAR static template — main layout
   ---------------------------------------------------------------------
   COORDINATE SYSTEM
   The design is a single fixed composition whose master artwork is
   8222 x 4590 source pixels. Every positioned element (class .L) carries
   its original source rectangle as unitless custom properties:

       style="--x:465; --y:0; --w:994; --h:341"

   --x/--y are relative to the nearest positioned parent (section or
   group). One shared factor, --u, converts source pixels to CSS pixels:

       --u = page width / 8222

   So the whole page scales uniformly — no asset has its own scale, and
   aspect ratios are always preserved. To move a component, change its
   --x/--y; to resize, change --w/--h in proportion.
   ===================================================================== */

:root {
  --src-width: 8222;
  --src-height: 4590;
  --page-bg: #050404;
  --focus-ring: #e9c46a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page-bg);
  color: #f3e4c0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ---------------------------------------------------------------------
   Page + stage
   --------------------------------------------------------------------- */

.page {
  container-type: inline-size;
  width: 100%;
}

.stage {
  --u: calc(100cqw / var(--src-width));
  position: relative;
  width: 100%;
}

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */

.section {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--h) * var(--u));
  margin: 0;
  padding: 0;
}

.hero {
  z-index: 1;
}

.info-panels {
  z-index: 2;
}

.site-footer {
  z-index: 3;
}

.site-header {
  z-index: 4;
}

.hero .quick-menu {
  z-index: 5;
}

/* ---------------------------------------------------------------------
   Section background artwork
   --------------------------------------------------------------------- */

.section-bg {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  max-width: none;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   Positioned layer
   --------------------------------------------------------------------- */

.L {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
}

img.L,
.section-bg {
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Reset semantic wrappers */

ul.L,
li.L {
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

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

/* ---------------------------------------------------------------------
   Interaction
   --------------------------------------------------------------------- */

.js-link {
  cursor: pointer;
  transition: filter .18s ease;
}

.js-link:hover {
  filter: brightness(1.14);
}

.js-link:focus {
  outline: none;
}

.js-link:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  filter: brightness(1.14);
}

.site-header .main-nav .nav-link:focus,
.site-header .main-nav .nav-link:focus-visible,
.site-header .main-nav .nav-link:active {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.hl-item,
.feature-card,
.stat-row,
.clan-row {
  cursor: default;
}

/* ---------------------------------------------------------------------
   Accessibility helpers
   --------------------------------------------------------------------- */

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: #1a120a;
  color: #f3e4c0;
  border: 1px solid var(--focus-ring);
  font: 14px/1.2 system-ui, sans-serif;
}

.skip-link:focus {
  top: 8px;
}

.is-hidden {
  visibility: hidden !important;
}

/* ---------------------------------------------------------------------
   Footer navigation
   --------------------------------------------------------------------- */

.footer-nav--band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(78 * var(--u));
  white-space: nowrap;
  z-index: 2;
}

.footer-nav--band .footer-link {
  position: relative;
  display: block;
  padding: calc(14 * var(--u)) calc(10 * var(--u));
  font-family: "PT Serif", Georgia, "Times New Roman", Times, serif;
  font-size: calc(56 * var(--u));
  line-height: 1;
  color: #ece4d6;
  text-decoration: none;
  text-shadow: 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, .8);
  transition: color .25s ease;
}

.footer-nav--band .footer-link:hover,
.footer-nav--band .footer-link:focus-visible {
  color: #f0c977;
}

.footer-text-cover {
  background: #020202;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   LA2STAR header cleanup
   --------------------------------------------------------------------- */

.site-header .nav-active-underline {
  display: none !important;
}

.site-header img[src*="language-russian-flag"],
.site-header img[src*="language-russian-caption"],
.site-header img[src*="language-selector-chevron"] {
  display: none !important;
}

.site-header :is(a, button, div, span):has(img[src*="language-russian-flag"]),
.site-header :is(a, button, div, span):has(img[src*="language-russian-caption"]),
.site-header :is(a, button, div, span):has(img[src*="language-selector-chevron"]) {
  display: none !important;
}

/* ---------------------------------------------------------------------
   Navigation hover underline
   --------------------------------------------------------------------- */

.site-header .main-nav .nav-link {
  overflow: visible;
}

.site-header .main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: calc(12 * var(--u));
  height: calc(3 * var(--u));
  min-height: 1px;
  background: linear-gradient(90deg,
    rgba(179, 112, 31, 0) 0%,
    rgba(224, 173, 83, .9) 22%,
    rgba(255, 226, 157, 1) 50%,
    rgba(224, 173, 83, .9) 78%,
    rgba(179, 112, 31, 0) 100%);
  box-shadow: 0 0 calc(9 * var(--u)) rgba(255, 177, 64, .72);
  opacity: 0;
  transform: scaleX(.72);
  transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.site-header .main-nav .nav-link:hover::after,
.site-header .main-nav .nav-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ---------------------------------------------------------------------
   HOME — correct centered lower gold underline
   --------------------------------------------------------------------- */

.site-header .main-nav .nav-link--home:hover::before,
.site-header .main-nav .nav-link--home:focus-visible::before {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) scaleX(1) !important;
}
