:root {
  --bg: #090311;
  --panel: rgba(22, 8, 36, 0.82);
  --line-soft: rgba(141, 78, 206, 0.18);
  --gold: #dfb37b;
  --gold-strong: #ffcc6a;
  --violet: #a867ff;
  --green: #56df91;
  --red: #ff6079;
  --text: #f7eaf8;
  --muted: #af88c6;
  --muted-soft: #845e9d;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  --l2-hero-art: url("https://about.ncsoft.com/artbook/en/assets/images/lin2/03/6_13_2.jpg");
  --l2-dragon-art: url("https://about.ncsoft.com/artbook/en/assets/images/lin2/03/6_01.jpg");
  --l2-fortress-art: url("https://about.ncsoft.com/artbook/en/assets/images/lin2/01/4_32.jpg");
  --l2-weapons-art: url("https://about.ncsoft.com/artbook/en/assets/images/lin2/03/6_15.jpg");
  --l2-warriors-a: url("https://about.ncsoft.com/artbook/en/assets/images/lin2/01/4_18.jpg");
  --l2-warriors-b: url("https://about.ncsoft.com/artbook/en/assets/images/lin2/01/4_06.jpg");
  --l2-warriors-c: url("https://about.ncsoft.com/artbook/en/assets/images/lin2/01/4_07.jpg");
  --l2-warriors-d: url("https://about.ncsoft.com/artbook/en/assets/images/lin2/01/4_11.jpg");
  --l2-warriors-e: url("https://about.ncsoft.com/artbook/en/assets/images/lin2/01/4_12.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#home,
#about,
#info,
#ranking,
#events,
#gallery,
#download {
  scroll-margin-top: 140px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(94, 34, 160, 0.16), transparent 24%),
    linear-gradient(180deg, #07020d 0%, #090311 48%, #07020f 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(92, 44, 153, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 44, 153, 0.08) 1px, transparent 1px);
  background-size: 74px 74px;
  pointer-events: none;
  opacity: 0.34;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.background-orb,
.starfield,
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background-orb {
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.18;
}

.orb-left {
  top: -8rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(152, 86, 255, 0.85), transparent 68%);
}

.orb-right {
  top: 18rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(255, 164, 81, 0.55), transparent 68%);
}

.starfield {
  background-image:
    radial-gradient(circle at 16% 22%, rgba(240, 195, 255, 0.5) 0 1px, transparent 1.4px),
    radial-gradient(circle at 33% 68%, rgba(219, 153, 255, 0.34) 0 1px, transparent 1.2px),
    radial-gradient(circle at 70% 30%, rgba(242, 208, 125, 0.4) 0 1px, transparent 1.3px),
    radial-gradient(circle at 88% 78%, rgba(185, 110, 255, 0.4) 0 1px, transparent 1.2px),
    radial-gradient(circle at 56% 48%, rgba(242, 208, 125, 0.28) 0 1px, transparent 1.2px);
  opacity: 0.7;
}

.grid-overlay {
  background: none;
}

.cursor-trail-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}

.cursor-spark {
  position: fixed;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, rgba(255, 245, 210, 0.95), rgba(214, 151, 255, 0.92));
  clip-path: polygon(50% 0%, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0% 50%, 39% 38%);
  box-shadow: 0 0 4px rgba(236, 199, 255, 0.22);
  transform: translate(-50%, -50%);
  animation: cursorSparkFade var(--spark-life, 760ms) ease-out forwards;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(8, 3, 14, 0.84);
  border-bottom: 1px solid rgba(126, 67, 191, 0.16);
}

.topbar,
main {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

.ticker {
  width: 100%;
  margin: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-glyph {
  color: var(--violet);
  font-size: 2rem;
  text-shadow: 0 0 20px rgba(168, 103, 255, 0.45);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong,
.section-kicker,
h1,
h2,
h3,
.ranking-table td:first-child,
.badge,
.player-cell strong,
.podium-name,
.podium-rank,
.podium-score {
  font-family: "Cormorant Garamond", serif;
}

.brand-copy strong {
  color: #e6b27a;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(230, 178, 122, 0.12);
}

.brand-copy small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-l2 {
  display: inline-block;
  font-size: 1.58em;
  font-weight: 800;
  line-height: 0.88;
  color: #ffd59b;
  text-shadow: 0 0 20px rgba(255, 213, 155, 0.2);
}

.brand-name {
  font-size: 0.96em;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.social-rail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(148, 86, 219, 0.26);
  background: rgba(21, 6, 33, 0.82);
  color: #f7eaf8;
  text-decoration: none;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(14px);
}

.social-rail-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-rail-link:hover {
  transform: translateX(-4px);
  border-color: rgba(231, 187, 113, 0.34);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.social-rail-link.social-tiktok:hover {
  background: linear-gradient(135deg, rgba(17, 226, 215, 0.2), rgba(255, 54, 109, 0.24));
}

.social-rail-link.social-instagram:hover {
  background: linear-gradient(135deg, rgba(255, 199, 95, 0.22), rgba(225, 48, 108, 0.24), rgba(131, 58, 180, 0.26));
}

.social-rail-link.social-discord:hover {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(171, 124, 255, 0.22));
}

.social-rail-link.social-youtube:hover {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.24), rgba(255, 122, 122, 0.18));
}

.language-button {
  padding: 10px 12px;
  border: 1px solid rgba(148, 86, 219, 0.24);
  color: var(--muted);
  background: rgba(24, 8, 38, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.language-button:hover,
.language-button.is-active {
  color: #12061f;
  border-color: rgba(231, 187, 113, 0.36);
  background: linear-gradient(135deg, #f0c78d, #c887ff);
}

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

.site-nav a {
  padding: 12px 18px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  border-color: rgba(148, 86, 219, 0.36);
  background: rgba(69, 18, 112, 0.24);
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(148, 86, 219, 0.28);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  background: rgba(34, 10, 52, 0.34);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-link:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 150, 255, 0.4);
  background: rgba(69, 18, 112, 0.28);
}

.header-link-primary {
  color: #12061f;
  border-color: rgba(231, 187, 113, 0.36);
  background: linear-gradient(135deg, #f0c78d, #c887ff);
}

.header-link-primary:hover {
  color: #12061f;
  border-color: rgba(231, 187, 113, 0.52);
  background: linear-gradient(135deg, #f3cf97, #d39aff);
}

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(136, 75, 198, 0.18);
  border-bottom: 1px solid rgba(136, 75, 198, 0.18);
  background: linear-gradient(90deg, rgba(58, 10, 98, 0.6), rgba(88, 24, 144, 0.38));
}

.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 10px 0;
  color: #cb9f6f;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: marquee 36s linear infinite;
}

.ticker-track span::before {
  content: "+";
  margin-right: 10px;
  color: #d58aff;
}

main {
  padding: 44px 0 80px;
}

.hero,
.section,
.ranking-section {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  padding: 56px 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30px -30px 0;
  background:
    linear-gradient(90deg, rgba(7, 2, 13, 0.96) 0%, rgba(7, 2, 13, 0.68) 44%, rgba(7, 2, 13, 0.82) 100%),
    radial-gradient(circle at 63% 16%, rgba(229, 183, 111, 0.16), transparent 16%),
    var(--l2-hero-art) right center / cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0;
  background:
    linear-gradient(180deg, rgba(7, 2, 13, 0.18), rgba(7, 2, 13, 0.68)),
    linear-gradient(90deg, rgba(7, 2, 13, 0.28) 0%, transparent 34%, transparent 66%, rgba(7, 2, 13, 0.42) 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(20, 6, 33, 0.72), rgba(10, 3, 16, 0.84)),
    radial-gradient(circle at 18% 12%, rgba(199, 149, 255, 0.12), transparent 24%);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 181, 109, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.events-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -12px;
  margin-bottom: 24px;
}

.preview-card {
  padding: 22px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.event-card:hover,
.event-showcase-card:hover,
.download-panel:hover {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.06);
  box-shadow: 0 32px 78px rgba(0, 0, 0, 0.48);
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 3, 18, 0.16) 0%, rgba(11, 3, 18, 0.52) 48%, rgba(11, 3, 18, 0.86) 100%),
    linear-gradient(135deg, rgba(236, 181, 109, 0.08), transparent 38%);
  pointer-events: none;
  transition: transform 280ms ease, opacity 280ms ease;
}

.preview-card > * {
  position: relative;
  z-index: 1;
}

.preview-olympiad {
  background-image:
    linear-gradient(180deg, rgba(11, 3, 18, 0.18), rgba(11, 3, 18, 0.76)),
    radial-gradient(circle at 20% 16%, rgba(243, 205, 113, 0.18), transparent 18%),
    var(--l2-warriors-d) center 18% / cover no-repeat;
}

.preview-siege {
  background-image:
    linear-gradient(180deg, rgba(11, 3, 18, 0.16), rgba(11, 3, 18, 0.78)),
    radial-gradient(circle at 82% 20%, rgba(255, 190, 108, 0.18), transparent 18%),
    var(--l2-hero-art) center 24% / cover no-repeat;
}

.preview-tvt {
  background-image:
    linear-gradient(180deg, rgba(11, 3, 18, 0.18), rgba(11, 3, 18, 0.78)),
    radial-gradient(circle at 22% 20%, rgba(255, 106, 141, 0.14), transparent 18%),
    var(--l2-warriors-b) center 26% / cover no-repeat;
}

.preview-card h3 {
  margin: 16px 0 10px;
  font-size: 2rem;
}

.preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-kicker {
  margin: 0 0 10px;
  color: #c795ff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(199, 149, 255, 0.14);
}

.ranking-kicker {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: #8f6da8;
}

h1,
h2 {
  margin: 0;
  line-height: 0.96;
  font-weight: 600;
}

h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.25vw, 3.2rem);
}

.inline-logo {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.inline-logo-two {
  display: inline-block;
  font-size: 1.34em;
  line-height: 0;
  transform: translateY(0.04em);
}

.hero-title-line {
  display: block;
  font-size: 0.62em;
}

h2 {
  font-size: clamp(3rem, 5vw, 4.6rem);
  color: #efccaa;
  text-align: center;
}

.section-head h2 {
  text-align: left;
  font-size: clamp(1.6rem, 2.55vw, 2.25rem);
  line-height: 1.06;
  margin: 0;
}

.hero-text,
.section-copy,
.status-list,
.event-card p,
.media-overlay p,
.download-copy p {
  color: var(--muted);
  line-height: 1.9;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  align-items: stretch;
}

.download-actions .button {
  min-width: 220px;
  padding: 18px 26px;
  border-radius: 0;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.download-actions .button-primary {
  background: linear-gradient(135deg, #f1c98d 0%, #dfb37b 28%, #c887ff 100%);
  box-shadow: 0 18px 42px rgba(181, 109, 255, 0.18);
}

.download-actions .button-secondary {
  border-color: rgba(199, 135, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(56, 17, 84, 0.92), rgba(23, 7, 35, 0.94));
  color: #f3d8ff;
  box-shadow: 0 18px 42px rgba(81, 28, 126, 0.22);
}

.download-actions .button:hover {
  transform: translateY(-3px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 15px 22px;
  border: 1px solid rgba(146, 81, 221, 0.32);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  color: #12061f;
  background: linear-gradient(135deg, #f0c78d, #c887ff);
  box-shadow: 0 14px 36px rgba(167, 103, 255, 0.16);
}

.button-secondary,
.button-ghost {
  background: rgba(34, 10, 52, 0.45);
}

.button-ghost {
  border-color: rgba(231, 187, 113, 0.28);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-meta article,
.status-card,
.hero-side-card,
.event-card,
.download-panel,
.media-card,
.ranking-table-shell,
.podium-card {
  background: linear-gradient(180deg, rgba(31, 10, 48, 0.9), rgba(15, 5, 24, 0.9));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.hero-meta article {
  padding: 18px;
}

.hero-label {
  display: block;
  color: var(--muted-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.hero-meta strong {
  font-size: 1.4rem;
  color: #f4d0ff;
}

.hero-panel {
  display: grid;
  gap: 18px;
  align-content: center;
}

.status-card,
.hero-side-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.status-card::before,
.hero-side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 3, 18, 0.42), rgba(11, 3, 18, 0.86)),
    var(--l2-dragon-art) center / cover no-repeat;
  opacity: 0.34;
  pointer-events: none;
}

.status-card > *,
.hero-side-card > * {
  position: relative;
  z-index: 1;
}

.status-kicker {
  margin: 0 0 12px;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.status-row strong,
.hero-side-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.status-list {
  margin: 0;
  padding-left: 18px;
}

.hero-side-card p,
.hero-side-card strong {
  margin: 0;
}

.hero-side-card p {
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.hero-side-card strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ranking-section {
  padding: 40px 0 20px;
}

.ranking-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 34px;
}

.ranking-heading .section-kicker {
  text-align: center;
}

.title-divider {
  width: 120px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, rgba(197, 141, 255, 0.75), transparent);
}

.ranking-toolbar,
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.ranking-toolbar {
  margin-bottom: 28px;
}

.ranking-tabs,
.gallery-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid rgba(123, 61, 187, 0.3);
  background: rgba(37, 11, 57, 0.62);
}

.ranking-tab,
.gallery-tab,
.ranking-search button,
.video-trigger {
  font-family: "Inter", sans-serif;
}

.ranking-tab,
.gallery-tab {
  border: 0;
  border-right: 1px solid rgba(123, 61, 187, 0.28);
  padding: 14px 26px;
  color: var(--muted);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.ranking-tab:last-child,
.gallery-tab:last-child {
  border-right: 0;
}

.ranking-tab:hover,
.ranking-tab.is-active,
.gallery-tab:hover,
.gallery-tab.is-active {
  color: #f8d6ff;
  background: rgba(95, 32, 150, 0.34);
}

.ranking-search {
  display: flex;
  gap: 12px;
}

.ranking-search input {
  width: 240px;
  padding: 14px 16px;
  border: 1px solid rgba(123, 61, 187, 0.3);
  color: var(--text);
  background: rgba(27, 9, 42, 0.72);
  outline: none;
}

.ranking-search input::placeholder {
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ranking-search button {
  padding: 14px 22px;
  border: 1px solid rgba(123, 61, 187, 0.3);
  color: #efccaa;
  background: rgba(37, 11, 57, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.podium-card {
  padding: 34px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.podium-card:hover {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.06);
  box-shadow: 0 32px 78px rgba(0, 0, 0, 0.48);
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--podium-art);
  background-position: center;
  background-size: cover;
  opacity: 0.76;
  transform: scale(1.02);
  z-index: 0;
  transition: transform 280ms ease, opacity 280ms ease, filter 280ms ease;
}

.podium-card:hover::after {
  transform: scale(1.1);
  opacity: 0.9;
  filter: brightness(1.12);
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 3, 18, 0.08) 0%, rgba(11, 3, 18, 0.28) 42%, rgba(11, 3, 18, 0.74) 100%),
    linear-gradient(135deg, rgba(236, 181, 109, 0.05), transparent 40%);
  pointer-events: none;
  z-index: 1;
  transition: transform 280ms ease, opacity 280ms ease;
}

.event-card:hover::before,
.event-showcase-card:hover::before {
  transform: scale(1.06);
  opacity: 0.95;
}

.podium-card > * {
  position: relative;
  z-index: 2;
}

.podium-card.is-first {
  border-color: rgba(232, 182, 102, 0.56);
  background-image: radial-gradient(circle at 50% 22%, rgba(242, 200, 118, 0.16), transparent 16%);
}

.podium-card.is-second {
  border-color: rgba(190, 134, 255, 0.36);
  background-image: radial-gradient(circle at 50% 18%, rgba(212, 191, 255, 0.14), transparent 16%);
}

.podium-card.is-third {
  border-color: rgba(219, 132, 72, 0.36);
  background-image: radial-gradient(circle at 50% 18%, rgba(245, 151, 79, 0.14), transparent 16%);
}

.podium-rank {
  display: block;
  margin-bottom: 12px;
  font-size: 4rem;
  color: var(--gold-strong);
  line-height: 0.9;
}

.podium-card.is-second .podium-rank {
  color: #f0e4ff;
}

.podium-card.is-third .podium-rank {
  color: #d7914f;
}

.podium-name {
  margin: 0;
  font-size: 2.3rem;
  font-weight: 600;
  text-transform: uppercase;
}

.podium-class {
  margin: 6px 0 18px;
  color: var(--muted-soft);
  font-style: italic;
}

.podium-score {
  margin: 0;
  font-size: 2.5rem;
  color: var(--violet);
}

.podium-foot {
  display: block;
  margin-top: 8px;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.ranking-table-shell {
  overflow: hidden;
}

.table-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(123, 61, 187, 0.2);
  background: rgba(58, 15, 90, 0.42);
}

.table-summary span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.table-summary strong {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ranking-table-wrap {
  overflow-x: hidden;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 18px 22px;
  text-align: left;
}

.ranking-table th {
  color: var(--muted-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  background: rgba(61, 18, 96, 0.34);
}

.ranking-table tbody tr {
  border-top: 1px solid rgba(123, 61, 187, 0.16);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ranking-table tbody tr.is-highlighted {
  background: rgba(93, 31, 148, 0.18);
}

.ranking-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(95, 32, 150, 0.34), rgba(31, 10, 48, 0.2));
  box-shadow: inset 3px 0 0 rgba(223, 179, 123, 0.72), 0 12px 30px rgba(0, 0, 0, 0.22);
}

.ranking-table tbody tr:hover .player-cell strong,
.ranking-table tbody tr:hover .score-cell {
  color: var(--gold-strong);
}

.ranking-table td:first-child {
  width: 64px;
  color: var(--gold-strong);
  font-size: 2rem;
}

.player-cell strong,
.player-cell small {
  display: block;
}

.player-cell strong {
  font-size: 1.28rem;
  font-weight: 600;
  text-transform: uppercase;
}

.player-cell small {
  color: var(--muted-soft);
  font-style: italic;
}

.score-cell {
  font-size: 1.38rem;
  color: var(--violet);
}

.score-red {
  color: var(--red);
}

.score-green {
  color: var(--green);
}

.level-cell {
  color: #e9c56d;
  font-size: 1.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 6px 10px;
  border: 1px solid rgba(123, 61, 187, 0.4);
  color: #d2b0ff;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 84px 0 0;
}

.section-copy {
  max-width: 540px;
}

.event-grid,
.about-grid,
.info-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.info-card-button {
  appearance: none;
  isolation: isolate;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.info-card-button:hover {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.06);
  box-shadow: 0 32px 78px rgba(0, 0, 0, 0.48);
}

.info-card-button::before,
.info-card-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.info-card-button::before {
  z-index: 0;
  background: var(--info-art) center / cover no-repeat;
  opacity: 0.5;
  transform: scale(1.03);
  transition: transform 260ms ease, opacity 260ms ease;
}

.info-card-button::after {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(13, 4, 21, 0.18), rgba(10, 3, 16, 0.92)),
    radial-gradient(circle at 78% 18%, rgba(236, 181, 109, 0.18), transparent 24%);
}

.info-card-button:hover::before {
  opacity: 0.66;
  transform: scale(1.1);
}

.info-card-button > * {
  position: relative;
  z-index: 1;
}

.info-card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(17, 6, 26, 0.18), rgba(10, 3, 16, 0.92)),
    radial-gradient(circle at 82% 18%, rgba(236, 181, 109, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(41, 11, 61, 0.94), rgba(17, 6, 26, 0.98));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.about-icon {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  height: 42px;
  padding: 0 14px;
  color: var(--gold-strong);
  border: 1px solid rgba(223, 179, 123, 0.32);
  background: rgba(42, 14, 62, 0.7);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.about-card h3 {
  margin: 24px 0 16px;
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
}

.about-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.about-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(141, 78, 206, 0.16);
  line-height: 1.55;
}

.info-item-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-item-list li {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 142px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(141, 78, 206, 0.2);
  background:
    linear-gradient(180deg, rgba(42, 14, 62, 0.76), rgba(20, 6, 32, 0.62)),
    radial-gradient(circle at 88% 20%, rgba(223, 179, 123, 0.1), transparent 28%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.info-item-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 179, 123, 0.36);
  background:
    linear-gradient(180deg, rgba(58, 19, 86, 0.86), rgba(24, 7, 38, 0.68)),
    radial-gradient(circle at 88% 20%, rgba(223, 179, 123, 0.16), transparent 28%);
}

.info-item-image {
  position: absolute;
  inset: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(10, 3, 16, 0.08), rgba(10, 3, 16, 0.78)),
    var(--item-art) center / cover no-repeat;
  transition: transform 220ms ease, filter 220ms ease;
}

.info-item-list li:hover .info-item-image {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.info-item-list span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 9px 11px;
  line-height: 1.42;
  font-size: 0.84rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.92), 0 0 14px rgba(0, 0, 0, 0.72);
}

.info-rule-note {
  margin: 0 0 16px;
  padding: 8px 10px;
  color: #f2d091;
  background: linear-gradient(90deg, rgba(86, 40, 12, 0.34), rgba(42, 14, 62, 0.48));
  border: 1px solid rgba(223, 179, 123, 0.32);
  line-height: 1.25;
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.about-list strong {
  color: var(--text);
  font-weight: 600;
}

.event-card {
  padding: 24px;
  min-height: 196px;
  background-position: center;
  background-size: cover;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.event-card,
.event-showcase-card {
  position: relative;
  overflow: hidden;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--event-art);
  background-position: center;
  background-size: cover;
  opacity: 0.8;
  transform: scale(1.02);
  z-index: 0;
}

.event-card::before,
.event-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 3, 18, 0.06) 0%, rgba(11, 3, 18, 0.28) 42%, rgba(11, 3, 18, 0.72) 100%),
    linear-gradient(135deg, rgba(236, 181, 109, 0.04), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.event-card > * {
  position: relative;
  z-index: 2;
}

.event-siege {
  background-image: radial-gradient(circle at 78% 24%, rgba(255, 190, 108, 0.16), transparent 20%);
}

.event-tvt {
  background-image: radial-gradient(circle at 20% 26%, rgba(255, 106, 141, 0.1), transparent 18%);
}

.event-antharas {
  background-image: radial-gradient(circle at 70% 24%, rgba(255, 104, 88, 0.14), transparent 18%);
}

.event-olympiad {
  background-image: radial-gradient(circle at 24% 20%, rgba(243, 205, 113, 0.12), transparent 18%);
}

.event-lh {
  background-image: radial-gradient(circle at 78% 22%, rgba(172, 108, 255, 0.12), transparent 18%);
}

.event-rush {
  background-image: radial-gradient(circle at 16% 20%, rgba(114, 221, 255, 0.1), transparent 18%);
}

.event-card h3,
.event-card p,
.event-hour {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.event-hour,
.media-type {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(231, 187, 113, 0.22);
  color: #efccaa;
  background: rgba(87, 31, 123, 0.24);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.event-card h3,
.media-overlay h3,
.download-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.6rem, 2.35vw, 1.95rem);
  font-weight: 600;
  line-height: 1.08;
}

.event-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.event-showcase-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(31, 10, 48, 0.9), rgba(15, 5, 24, 0.9));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.event-showcase-card:first-child {
  background:
    linear-gradient(180deg, rgba(11, 3, 18, 0.2), rgba(11, 3, 18, 0.86)),
    var(--l2-warriors-a) center 22% / cover no-repeat;
}

.event-showcase-card:last-child {
  background:
    linear-gradient(180deg, rgba(11, 3, 18, 0.2), rgba(11, 3, 18, 0.86)),
    var(--l2-weapons-art) center / cover no-repeat;
}

.event-showcase-card > * {
  position: relative;
  z-index: 1;
}

.event-showcase-kicker {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.event-showcase-card h3 {
  margin: 14px 0 16px;
  font-size: 2.1rem;
}

.event-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.gallery-tabs {
  margin-bottom: 18px;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
}

.media-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(11, 3, 18, 0.1) 10%, rgba(10, 2, 16, 0.96) 100%),
    radial-gradient(circle at top, rgba(135, 80, 204, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(41, 11, 61, 0.92), rgba(17, 6, 26, 0.96));
  background-position: center;
  background-size: cover;
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.12), transparent 12%),
    linear-gradient(135deg, rgba(236, 181, 109, 0.12), transparent 36%);
  transition: transform 280ms ease, opacity 280ms ease, filter 280ms ease;
}

.media-card:hover::before {
  transform: scale(1.12);
  opacity: 0.95;
  filter: brightness(1.12);
}

.media-card.is-hidden {
  display: none;
}

.media-video {
  cursor: default;
  background:
    linear-gradient(180deg, rgba(11, 3, 18, 0.1) 10%, rgba(10, 2, 16, 0.96) 100%),
    radial-gradient(circle at top, rgba(236, 181, 109, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(48, 15, 62, 0.92), rgba(17, 6, 26, 0.96));
}

.gallery-grid .media-card:nth-child(1) {
  background-image:
    linear-gradient(180deg, rgba(11, 3, 18, 0.1), rgba(10, 2, 16, 0.96)),
    radial-gradient(circle at top, rgba(135, 80, 204, 0.18), transparent 34%),
    var(--l2-fortress-art);
}

.gallery-grid .media-card:nth-child(2) {
  background-image:
    linear-gradient(180deg, rgba(11, 3, 18, 0.08), rgba(10, 2, 16, 0.96)),
    radial-gradient(circle at top, rgba(236, 181, 109, 0.16), transparent 34%),
    var(--l2-hero-art);
}

.gallery-grid .media-card:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgba(11, 3, 18, 0.08), rgba(10, 2, 16, 0.96)),
    radial-gradient(circle at top, rgba(236, 181, 109, 0.16), transparent 34%),
    var(--l2-dragon-art);
}

.gallery-grid .media-card:nth-child(4) {
  background-image:
    linear-gradient(180deg, rgba(11, 3, 18, 0.08), rgba(10, 2, 16, 0.96)),
    radial-gradient(circle at top, rgba(236, 181, 109, 0.16), transparent 34%),
    var(--l2-warriors-a);
}

.gallery-grid .media-card:nth-child(5) {
  background-image:
    linear-gradient(180deg, rgba(11, 3, 18, 0.08), rgba(10, 2, 16, 0.96)),
    radial-gradient(circle at top, rgba(135, 80, 204, 0.18), transparent 34%),
    var(--l2-warriors-d);
}

.gallery-grid .media-card:nth-child(6) {
  background-image:
    linear-gradient(180deg, rgba(11, 3, 18, 0.08), rgba(10, 2, 16, 0.96)),
    radial-gradient(circle at top, rgba(236, 181, 109, 0.16), transparent 34%),
    var(--l2-dragon-art);
}

.media-type,
.video-trigger {
  position: absolute;
  z-index: 2;
}

.media-type {
  top: 16px;
  left: 16px;
}

.video-trigger {
  top: 16px;
  right: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(231, 187, 113, 0.22);
  color: var(--text);
  background: rgba(31, 11, 48, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  cursor: pointer;
}

.media-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 20px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(4, 1, 9, 0.88);
  backdrop-filter: blur(14px);
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-frame {
  width: min(1080px, 100%);
  margin: 0;
}

.gallery-lightbox-image {
  width: 100%;
  min-height: min(70vh, 720px);
  border: 1px solid rgba(223, 179, 123, 0.42);
  background-position: center;
  background-size: cover;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  transition: transform 160ms ease;
}

.gallery-lightbox-image.is-dragging {
  cursor: grabbing;
  transition: none;
}

.gallery-lightbox figcaption {
  margin-top: 14px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  text-align: center;
}

.gallery-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(223, 179, 123, 0.42);
  color: var(--text);
  background: rgba(26, 8, 38, 0.88);
  cursor: pointer;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 70px;
  border: 1px solid rgba(223, 179, 123, 0.42);
  color: var(--text);
  background: rgba(26, 8, 38, 0.8);
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-lightbox-prev {
  left: 22px;
}

.gallery-lightbox-next {
  right: 22px;
}

.media-wide {
  grid-column: span 2;
}

.media-tall {
  grid-row: span 2;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 82% 26%, rgba(198, 135, 255, 0.16), transparent 18%),
    radial-gradient(circle at 16% 30%, rgba(241, 201, 141, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(74, 27, 104, 0.18), rgba(31, 10, 48, 0.1)),
    var(--l2-weapons-art);
  background-position: center;
  background-size: cover;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 3, 16, 0.54) 0%, rgba(10, 3, 16, 0.18) 38%, rgba(10, 3, 16, 0.5) 100%),
    linear-gradient(180deg, rgba(11, 3, 18, 0.16) 0%, rgba(11, 3, 18, 0.58) 100%);
  pointer-events: none;
}

.download-copy {
  justify-self: start;
  text-align: left;
}

.download-panel > * {
  position: relative;
  z-index: 1;
}

.bottom-effects {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bottom-glow,
.bottom-mist,
.cosmic-particles {
  position: absolute;
  inset: auto 0 0;
}

.bottom-glow {
  display: none;
}

.cosmic-particles {
  inset: 0;
  height: 100%;
}

.cosmic-dot {
  position: absolute;
  bottom: -8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c97bff;
  box-shadow: 0 0 4px rgba(201, 123, 255, 0.28);
  opacity: 0.78;
  animation: floatCosmic linear infinite;
}

.bottom-mist {
  display: none;
}

.modal-backdrop,
.info-modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 1, 10, 0.72);
  backdrop-filter: blur(16px);
  z-index: 50;
}

.modal-backdrop[hidden],
.info-modal-backdrop[hidden],
.auth-modal[hidden],
.info-modal[hidden] {
  display: none !important;
}

.auth-modal,
.info-modal {
  position: relative;
  width: min(100%, 520px);
  padding: 28px;
  background: linear-gradient(180deg, rgba(34, 12, 52, 0.96), rgba(14, 4, 22, 0.96));
  border: 1px solid rgba(168, 103, 255, 0.28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.info-modal {
  width: min(100%, 920px);
}

.info-modal-art {
  min-height: 230px;
  margin: 18px 0 20px;
  border: 1px solid rgba(223, 179, 123, 0.26);
  background:
    linear-gradient(180deg, rgba(10, 3, 16, 0.08), rgba(10, 3, 16, 0.72)),
    var(--info-art) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(168, 103, 255, 0.12), 0 22px 60px rgba(0, 0, 0, 0.3);
}

.modal-tabs {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid rgba(168, 103, 255, 0.24);
  background: rgba(24, 8, 38, 0.72);
}

.modal-tab {
  border: 0;
  padding: 10px 18px;
  color: var(--muted);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.modal-tab.is-active,
.modal-tab:hover {
  color: #12061f;
  background: linear-gradient(135deg, #f0c78d, #c887ff);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(168, 103, 255, 0.28);
  color: var(--text);
  background: rgba(35, 11, 54, 0.8);
  cursor: pointer;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.auth-modal h2 {
  text-align: left;
  margin-bottom: 12px;
}

.modal-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form span {
  color: #e8cfff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(123, 61, 187, 0.3);
  color: var(--text);
  background: rgba(24, 8, 38, 0.9);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(223, 179, 123, 0.42);
}

.modal-submit {
  margin-top: 6px;
  width: 100%;
}

.modal-switch {
  margin-top: 14px;
  border: 0;
  padding: 0;
  color: #d5b8ea;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  transition: color 180ms ease, transform 180ms ease;
}

.modal-switch strong {
  color: var(--gold);
  text-decoration: underline;
}

.modal-switch:hover {
  color: #f2ddff;
  transform: translateX(2px);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes floatCosmic {
  0% {
    transform: translateY(0) scale(0.9);
    opacity: 0;
  }
  15% {
    opacity: var(--alpha, 0.8);
  }
  100% {
    transform: translateY(calc(var(--rise, 120px) * -1)) scale(1.05);
    opacity: 0;
  }
}

@keyframes cursorSparkFade {
  0% {
    opacity: 0.98;
    transform: translate(-50%, -50%) rotate(var(--spark-rotate, 0deg)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x, 0px)), calc(-50% + var(--drift-y, -16px))) rotate(calc(var(--spark-rotate, 0deg) + 24deg)) scale(0.28);
  }
}

@media (max-width: 1100px) {
  .hero,
  .events-preview,
  .download-panel,
  .podium-grid,
  .event-grid,
  .about-grid,
  .info-grid,
  .gallery-grid,
  .event-showcase {
    grid-template-columns: 1fr;
  }

  .section-head,
  .ranking-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .language-switcher {
    width: 100%;
    flex-wrap: wrap;
  }

  .social-rail {
    right: 14px;
  }

  .media-wide,
  .media-tall {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .topbar,
  main {
    width: min(100% - 20px, 100%);
  }

  .ticker {
    width: 100%;
  }

  .gallery-lightbox {
    padding: 18px;
  }

  .gallery-lightbox-image {
    min-height: 58vh;
  }

  .gallery-lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 48px;
    height: 48px;
    transform: none;
  }

  .gallery-lightbox-prev {
    left: 18px;
  }

  .gallery-lightbox-next {
    right: 18px;
  }

  .social-rail {
    right: 10px;
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .social-rail-link {
    width: 46px;
    height: 46px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .info-item-list li {
    min-height: 0;
  }

  .info-item-list {
    grid-template-columns: 1fr;
  }

  .info-item-image {
    min-height: 100%;
  }

  .ranking-search {
    width: 100%;
    flex-direction: column;
  }

  .ranking-search input,
  .ranking-search button {
    width: 100%;
  }

  .ranking-table {
    min-width: 760px;
  }

  .ranking-table-wrap {
    overflow-x: auto;
  }
}
