/* ==========================================================================
   X3 CLAN — ROBLOX RIVALS
   Hero: Full-Bleed Kinetic Monochrome Marquee (Anton + Official X3 Split Assets)
   Body: High-Contrast Foreign Studio Editorial (SF Pro / Pretendard Variable)
   ========================================================================== */

:root {
  --bg-obsidian: #0a0a0a;
  --bg-black: #000000;
  --bg-surface: #111111;
  --bg-card-dark: #141414;

  --fg-white: #ffffff;
  --fg-black: #000000;
  --fg-secondary: #a1a1a6;
  --fg-muted: #6e6e73;
  --fg-dim: #2c2c2e;

  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.24);
  --hairline-dark: rgba(0, 0, 0, 0.12);

  --font-hero: "Anton", Impact, sans-serif;
  --font-sans: "SF Pro Display", "SF Pro Text", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 1360px;
  --container-pad: clamp(20px, 4.5vw, 56px);
  --header-h: 64px;
  --ease-snap: cubic-bezier(0.2, 0, 0, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--fg-white);
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--fg-white);
  line-height: 1.6;
  overflow-x: clip;
  word-break: keep-all;
}

body.drawer-open {
  overflow: hidden;
}

::selection {
  background: var(--fg-white);
  color: var(--fg-black);
}

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--fg-white);
  outline-offset: 3px;
}

code {
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg-white);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  position: relative;
  padding: clamp(96px, 12vw, 176px) 0;
}

/* ==========================================================================
   SHARED EDITORIAL TYPOGRAPHY & BUTTONS
   ========================================================================== */

.section-head {
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.editorial-title {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(3rem, 5.8vw, 5.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--fg-white);
}

.btn-solid-white,
.btn-solid-black,
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease-snap),
              color 0.16s var(--ease-snap),
              border-color 0.16s var(--ease-snap),
              opacity 0.16s ease;
}

.btn-solid-white {
  background: var(--fg-white);
  color: var(--fg-black);
  border: 1px solid var(--fg-white);
}

.btn-solid-white:hover {
  background: transparent;
  color: var(--fg-white);
}

.btn-solid-black {
  background: var(--fg-black);
  color: var(--fg-white);
  border: 1px solid var(--fg-black);
}

.btn-solid-black:hover {
  background: transparent;
  color: var(--fg-black);
}

.btn-outline-white {
  background: transparent;
  color: var(--fg-white);
  border: 1px solid var(--hairline-strong);
}

.btn-outline-white:hover {
  background: var(--fg-white);
  color: var(--fg-black);
  border-color: var(--fg-white);
}

.btn-arrow {
  display: inline-block;
  font-weight: 400;
  transition: transform 0.2s var(--ease-snap);
}

.btn-solid-white:hover .btn-arrow,
.btn-solid-black:hover .btn-arrow,
.btn-nav-discord:hover .btn-arrow {
  transform: translate(3px, -3px);
}

.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

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

/* ==========================================================================
   1. STICKY MINIMAL NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-bottom-color: var(--hairline);
}

.header-inner {
  width: 100%;
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand-logo {
  height: 22px;
  width: auto;
  fill: var(--fg-white);
  display: block;
  transition: opacity 0.16s ease;
}

.brand-link:hover .brand-logo {
  opacity: 0.78;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
  justify-self: center;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg-secondary);
  padding: 6px 0;
  transition: color 0.16s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--fg-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease-snap);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--fg-white);
}

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

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

.btn-nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: var(--fg-white);
  color: var(--fg-black);
  border: 1px solid var(--fg-white);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.14s var(--ease-snap), color 0.14s var(--ease-snap);
}

.btn-nav-discord:hover {
  background: transparent;
  color: var(--fg-white);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 36px;
  border: 1px solid var(--hairline-strong);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg-white);
  transition: transform 0.2s var(--ease-snap);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 0%;
  background: var(--fg-white);
  pointer-events: none;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 95;
  background: var(--bg-obsidian);
  border-top: 1px solid var(--hairline);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-smooth), opacity 0.25s ease;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-inner {
  height: 100%;
  padding: 36px var(--container-pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-hero);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--fg-white);
}

.mobile-discord-cta {
  width: 100%;
  min-height: 54px;
}

/* ==========================================================================
   2. HERO SECTION (100vh Fullscreen Infinite Alternating Marquee — Kept Intact)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-obsidian);
  display: grid;
  grid-template-rows: var(--header-h) 1fr;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 96px 96px;
}

.hero-wall-wrap {
  grid-row: 2;
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(8px, 1.4svh, 20px) 0;
}

.hero-wall {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(4px, 0.8svh, 14px);
  user-select: none;
}

.hero-row {
  --row-gap: clamp(12px, 1.15vw, 28px);
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: var(--font-hero);
  font-size: clamp(54px, min(10.6vw, 22.6svh), 380px);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--fg-white);
}

.hero-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hero-row-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--row-gap);
  padding-right: var(--row-gap);
}

.hero-word {
  display: inline-block;
  line-height: 0.86;
  padding-top: 0.03em;
}

/* Borderless High-Contrast Monochrome Graphic Badges */
.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.71em;
  aspect-ratio: 146 / 100;
  flex-shrink: 0;
  border: none;
  outline: none;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.12s var(--ease-snap),
              transform 0.16s var(--ease-snap);
}

.hero-badge--wide {
  aspect-ratio: 290 / 175;
}

.hero-badge svg,
.hero-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.hero-badge:hover {
  filter: invert(1);
  transform: scale(1.045);
}

.hero-badge--image:hover {
  filter: none;
}

.hero-badge--image .badge-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.12s var(--ease-snap);
}

.hero-badge--image:hover .badge-img-hover {
  opacity: 1;
}

/* ==========================================================================
   3. MANIFESTO & PHILOSOPHY (Antigravity Kinetic Editorial)
   ========================================================================== */

.section-about {
  background: var(--bg-obsidian);
}

.manifesto-wrap {
  max-width: 1120px;
  margin-bottom: clamp(88px, 11vw, 152px);
}

.manifesto-text {
  margin: 0;
  font-size: clamp(1.85rem, 3.9vw, 3.75rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.035em;
  color: var(--fg-dim);
}

.reveal-token {
  color: var(--fg-dim);
  transition: color 0.16s linear;
}

.reveal-token.is-lit {
  color: var(--fg-white);
}

.pillars-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.pillar-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(24px, 4.5vw, 68px);
  align-items: start;
  padding: clamp(48px, 6.5vw, 88px) 0;
  border-bottom: 1px solid var(--hairline);
}

.pillar-index {
  font-family: var(--font-hero);
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  padding-top: 6px;
}

.pillar-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 540px;
}

.pillar-title {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(3rem, 5.2vw, 5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--fg-white);
}

.pillar-text {
  margin: 0;
  font-size: clamp(1.04rem, 1.35vw, 1.24rem);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: -0.015em;
  color: var(--fg-dim);
}

/* Clean Borderless Monochrome Editorial Graphic Plate */
.pillar-graphic {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-black);
  overflow: hidden;
  transition: filter 0.2s var(--ease-snap), transform 0.35s var(--ease-smooth);
}

.pillar-graphic:hover {
  filter: invert(1);
  transform: scale(1.015);
}

.pillar-graphic svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   4. HIGHLIGHTS (Borderless Antigravity Cinema Showcase)
   ========================================================================== */

.section-clips {
  background: #060606;
  border-top: 1px solid var(--hairline);
}

.cinema-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-black);
  overflow: hidden;
}

.cinema-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.cinema-poster-split {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    116.28deg,
    #161616 0%,
    #161616 49.96%,
    #060606 50.04%,
    #060606 100%
  );
}

.cinema-poster-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.poster-x3-svg {
  width: min(46%, 420px);
  height: auto;
  fill: rgba(255, 255, 255, 0.06);
}

.cinema-poster-ui {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.play-intro-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--fg-white);
  color: var(--fg-black);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease-smooth), background-color 0.16s ease, color 0.16s ease;
}

.play-intro-btn:hover {
  transform: translate(-50%, -50%) scale(1.045);
  background: var(--fg-black);
  color: var(--fg-white);
}

.play-triangle {
  font-size: 0.78rem;
}

.cinema-caption-bar {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cinema-title {
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg-white);
}

.cinema-duration {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--fg-secondary);
  font-variant-numeric: tabular-nums;
}

.cinema-player-mount {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--bg-black);
}

.cinema-player-mount iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-setup-notice {
  width: 100%;
  height: 100%;
  padding: 32px;
  background: #090909;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.video-setup-notice h4 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.video-setup-notice p {
  margin: 0;
  max-width: 480px;
  font-size: 0.94rem;
  color: var(--fg-secondary);
}

/* Minimalist Hairline Clip Switcher */
.clip-tabs {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.clip-tab {
  text-align: left;
  padding: 18px 0 8px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--fg-muted);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.clip-tab:hover {
  border-top-color: rgba(255, 255, 255, 0.45);
  color: var(--fg-secondary);
}

.clip-tab.is-active {
  border-top-color: var(--fg-white);
  color: var(--fg-white);
}

.clip-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

.clip-tab-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   5. ROSTER (Full-Width Foreign Studio Index Rows)
   ========================================================================== */

.section-roster {
  background: var(--bg-obsidian);
  border-top: 1px solid var(--hairline);
}

.roster-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.filter-btn {
  position: relative;
  padding: 6px 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg-muted);
  transition: color 0.16s ease;
}

.filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--fg-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-snap);
}

.filter-btn:hover {
  color: var(--fg-secondary);
}

.filter-btn.is-active {
  color: var(--fg-white);
}

.filter-btn.is-active::after {
  transform: scaleX(1);
}

.roster-list {
  border-top: 1px solid var(--hairline);
}

.roster-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(110px, 0.55fr) minmax(0, 1.2fr);
  align-items: baseline;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 32px) 16px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.16s var(--ease-snap), color 0.16s var(--ease-snap);
}

.roster-row:hover {
  background: var(--fg-white);
  color: var(--fg-black);
}

.roster-nick {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  transition: transform 0.22s var(--ease-smooth);
}

.roster-row:hover .roster-nick {
  transform: translateX(10px);
}

.roster-role {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--fg-secondary);
  transition: color 0.16s ease;
}

.roster-row:hover .roster-role {
  color: #333333;
}

.roster-weapons {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--fg-secondary);
  text-align: right;
  letter-spacing: -0.01em;
  transition: color 0.16s ease;
}

.roster-row:hover .roster-weapons {
  color: var(--fg-black);
}

/* ==========================================================================
   6. SPLIT ACTION PANELS (For Players / For Clans)
   ========================================================================== */

.section-apply {
  background: #060606;
  border-top: 1px solid var(--hairline);
}

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

.dual-card {
  padding: clamp(40px, 5.5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
}

.dual-card-light {
  background: var(--fg-white);
  color: var(--fg-black);
}

.dual-card-dark {
  background: var(--bg-card-dark);
  color: var(--fg-white);
}

.dual-card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dual-label {
  font-family: var(--font-hero);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.5;
}

.dual-heading {
  margin: 0;
  font-size: clamp(1.75rem, 2.9vw, 2.55rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.dual-lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  opacity: 0.72;
}

.dual-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid currentColor;
  border-top-color: var(--hairline);
}

.dual-card-light .dual-list {
  border-top-color: var(--hairline-dark);
}

.dual-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.5;
}

.dual-card-light .dual-list li {
  border-bottom-color: var(--hairline-dark);
}

.dual-card-foot a {
  min-height: 52px;
  padding: 0 28px;
}

/* ==========================================================================
   7. RULES & LATEST (Asymmetric Editorial Layout)
   ========================================================================== */

.section-rules {
  background: var(--bg-obsidian);
  border-top: 1px solid var(--hairline);
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.rules-aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.rules-intro {
  margin: 18px 0 0;
  max-width: 300px;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--fg-secondary);
}

.rules-list {
  border-top: 1px solid var(--hairline);
}

.rule-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}

.rule-num {
  font-family: var(--font-hero);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  padding-top: 2px;
}

.rule-title {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--fg-white);
}

.rule-detail {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--fg-secondary);
}

/* Latest Newsroom 3-Column Row */
.updates-block {
  margin-top: clamp(96px, 12vw, 160px);
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.update-item {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease;
}

.update-item:hover {
  border-top-color: var(--fg-white);
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.update-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.025em;
  color: var(--fg-white);
}

.update-summary {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.68;
  color: var(--fg-secondary);
}

/* ==========================================================================
   8. MONUMENTAL MINIMAL FINALE & FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-black);
  border-top: 1px solid var(--hairline);
}

.finale-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(104px, 13vw, 176px) 0;
  background: var(--bg-black);
  border-bottom: 1px solid var(--hairline);
}

.finale-diagonal-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    116.28deg,
    #ffffff 0%,
    #ffffff 12%,
    #0a0a0a 12.06%,
    #0a0a0a 87.94%,
    #ffffff 88%,
    #ffffff 100%
  );
  opacity: 0.96;
}

.finale-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.finale-watermark-svg {
  width: min(84vw, 960px);
  height: auto;
  fill: rgba(255, 255, 255, 0.055);
}

.finale-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.finale-headline {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(3.2rem, 8.2vw, 7.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--fg-white);
}

.finale-sub {
  margin: 0;
  max-width: 500px;
  font-size: clamp(0.96rem, 1.35vw, 1.12rem);
  font-weight: 300;
  color: var(--fg-secondary);
}

.finale-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-finale-cta {
  min-height: 54px;
  padding: 0 34px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-width: 2px;
}

.btn-copy-invite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  background: transparent;
  color: var(--fg-white);
  border: 1px solid var(--hairline-strong);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.btn-copy-invite:hover {
  border-color: var(--fg-white);
  background: rgba(255, 255, 255, 0.08);
}

/* Minimal Single-Line Footer Bar */
.footer-bar {
  padding: 28px 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  height: 17px;
  width: auto;
  fill: var(--fg-white);
}

.footer-copy {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--fg-secondary);
  transition: color 0.16s ease;
}

.footer-links a:hover,
.back-to-top {
  color: var(--fg-white);
}

/* Toast Notification */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  padding: 13px 20px;
  background: var(--fg-white);
  color: var(--fg-black);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .pillar-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 24px;
  }

  .pillar-graphic {
    grid-column: 1 / -1;
  }

  .rules-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .rules-aside {
    position: static;
  }

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

  .finale-diagonal-bg {
    background: linear-gradient(
      116.28deg,
      #ffffff 0%,
      #ffffff 6%,
      #0a0a0a 6.06%,
      #0a0a0a 93.94%,
      #ffffff 94%,
      #ffffff 100%
    );
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-wall-wrap {
    padding: 16px 0;
  }

  .hero-wall {
    justify-content: center;
    gap: clamp(10px, 2svh, 18px);
  }

  .hero-row {
    --row-gap: 12px;
    font-size: clamp(58px, 18.5vw, 132px);
  }

  .pillar-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pillar-index {
    padding-top: 0;
  }

  .roster-row {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 20px 12px;
    margin: 0 -12px;
  }

  .roster-weapons {
    grid-column: 1 / -1;
    text-align: left;
  }

  .clip-tabs,
  .dual-cards,
  .updates-grid {
    grid-template-columns: 1fr;
  }

  .play-intro-btn {
    padding: 12px 24px;
    font-size: 0.88rem;
  }

  .finale-diagonal-bg {
    background: linear-gradient(
      116.28deg,
      #ffffff 0%,
      #ffffff 3.5%,
      #0a0a0a 3.56%,
      #0a0a0a 96.44%,
      #ffffff 96.5%,
      #ffffff 100%
    );
  }
}

@media (max-width: 420px) {
  .btn-nav-discord {
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .hero-row {
    font-size: clamp(46px, 16vw, 74px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal-token {
    color: var(--fg-white) !important;
    transition: none;
  }
}
