/* ============================================================
   L2J INTERLUDE x25 - EPIC SERVER WEBSITE
   Design System: Dark Fantasy with Parallax
   Inspired by: Destorus / Lineage 2 Aesthetic
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Colors */
  --gold: #d4a853;
  --gold-light: #f0d68a;
  --gold-dark: #a07830;
  --gold-glow: rgba(212, 168, 83, 0.4);
  --crimson: #c62828;
  --crimson-glow: rgba(198, 40, 40, 0.5);
  --ice-blue: #4fc3f7;
  --ice-glow: rgba(79, 195, 247, 0.4);
  --emerald: #2e7d32;
  --emerald-glow: rgba(46, 125, 50, 0.4);
  --dark-bg: #0a0a0f;
  --dark-card: rgba(12, 12, 20, 0.85);
  --dark-overlay: rgba(0, 0, 0, 0.6);
  --dark-surface: rgba(20, 18, 30, 0.9);
  --text-primary: #e8e0d0;
  --text-secondary: #a09888;
  --text-muted: #605848;
  --border-ornate: rgba(212, 168, 83, 0.3);

  /* Typography */
  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', 'Georgia', serif;
  --font-ui: 'Raleway', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 8vw, 120px);
  --container-max: 1400px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--dark-bg);
}

html::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
html::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--gold-light);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* --- Loading Screen --- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  text-shadow: 0 0 40px var(--gold-glow), 0 0 80px rgba(212, 168, 83, 0.2);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  animation: pulseGlow 2s ease-in-out infinite;
}
.loading-bar-container {
  width: clamp(200px, 40vw, 400px);
  height: 3px;
  background: rgba(212, 168, 83, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--gold-glow);
}
.loading-text {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 40px var(--gold-glow), 0 0 80px rgba(212, 168, 83, 0.2); }
  50% { text-shadow: 0 0 60px var(--gold-glow), 0 0 120px rgba(212, 168, 83, 0.3); }
}

/* --- Top Navigation Bar --- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 3vw, 40px);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--transition-smooth), height var(--transition-smooth);
}
.top-nav.scrolled {
  background: rgba(8, 8, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 60px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px var(--gold-glow);
}
.nav-brand-sub {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--crimson);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(198, 40, 40, 0.15);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid rgba(198, 40, 40, 0.3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition-smooth);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* Ornate CTA Button */
.btn-ornate {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--gold);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-smooth);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.btn-ornate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.1) 0%, transparent 50%, rgba(212, 168, 83, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn-ornate:hover {
  color: var(--dark-bg);
  background: var(--gold);
  box-shadow: 0 0 30px var(--gold-glow), inset 0 0 30px rgba(255,255,255,0.1);
}
.btn-ornate:hover::before {
  opacity: 1;
}

.btn-ornate-crimson {
  border-color: var(--crimson);
  color: #ff6659;
}
.btn-ornate-crimson:hover {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 0 30px var(--crimson-glow);
}

/* Client download dropdown */
.client-links-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin 0.35s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.client-links-dropdown.client-links-open {
  max-height: 220px;
  opacity: 1;
  margin-top: 14px;
}
.client-links-dropdown a {
  display: block;
  color: var(--gold-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 7px 24px;
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 4px;
  background: rgba(212, 168, 83, 0.06);
  transition: all 0.2s ease;
  width: 200px;
  text-align: center;
}
.client-links-dropdown a:hover {
  background: rgba(212, 168, 83, 0.18);
  border-color: var(--gold);
  color: #fff;
}

/* Large CTA */
.btn-ornate-lg {
  font-size: 0.85rem;
  padding: 14px 36px;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition-fast);
}

/* --- Side Navigation (Destorus-style) --- */
.side-nav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px;
}
.side-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 8px 0 0 8px;
  text-decoration: none;
}
.side-nav-item:hover,
.side-nav-item.active {
  background: rgba(212, 168, 83, 0.1);
}
.side-nav-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.side-nav-item:hover .side-nav-label,
.side-nav-item.active .side-nav-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold);
}
.side-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 30, 0.8);
  border: 1px solid var(--border-ornate);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.side-nav-item:hover .side-nav-icon,
.side-nav-item.active .side-nav-icon {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Chipscroll canvas in hero */
.hero-chipscroll {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-chipscroll canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-chipscroll-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 10, 15, 0.3) 0%, transparent 30%),
    linear-gradient(to top, var(--dark-bg) 0%, rgba(10, 10, 15, 0.85) 8%, rgba(10, 10, 15, 0.4) 18%, transparent 30%);
  pointer-events: none;
}

/* ── Hero Mode Variants (admin panel config) ── */
/* Framed mode: chipscroll as a compact centered window */
.hero[data-hero-mode="framed"] .hero-chipscroll {
  top: 20%;
  left: 10%;
  right: 10%;
  bottom: 20%;
  border-radius: 20px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(201, 168, 76, 0.08);
}

.hero[data-hero-mode="framed"] .hero-content {
  position: absolute;
  top: 20%;
  left: 10%;
  right: 10%;
  bottom: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  max-width: none;
  overflow: hidden;
}
/* Prevent text jump: disable translateY animation inside framed chipscroll */
.hero[data-hero-mode="framed"] [data-chip-show] {
  transform: none;
  transition: opacity 1s ease;
}
.hero[data-hero-mode="framed"] [data-chip-show].chip-visible {
  transform: none;
}
.hero[data-hero-mode="framed"] .hero-title {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
}
.hero[data-hero-mode="framed"] .hero-subtitle {
  font-size: clamp(0.85rem, 2vw, 1.25rem);
}
.hero[data-hero-mode="framed"] .hero-title span {
  background: linear-gradient(135deg, #f5d98a, #e0b840, #c8960a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(212, 168, 83, 0.5)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}
.hero[data-hero-mode="framed"] .hero-stat-value {
  font-size: clamp(1.2rem, 3vw, 2rem);
}
.hero[data-hero-mode="framed"] .hero-stat-label {
  font-size: 0.55rem;
}

.hero[data-hero-mode="framed"] .hero-chipscroll-overlay {
  background:
    linear-gradient(to bottom, rgba(10, 10, 15, 0.15) 0%, transparent 30%),
    linear-gradient(to top, rgba(10, 10, 15, 0.6) 0%, transparent 25%);
  border-radius: 20px;
}

/* Static mode: hide canvas, show static bg */
.hero[data-hero-mode="static"] .hero-chipscroll canvas {
  display: none;
}

.hero[data-hero-mode="static"] .hero-chipscroll {
  background-image: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Shadow divider between sections */
.section-shadow-divider {
  position: relative;
  z-index: 5;
  height: 240px;
  margin-top: -240px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}
/* Chip-synced hero elements: hidden until chipscroll triggers them */
[data-chip-show] {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
}
[data-chip-show].chip-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.4);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px var(--gold-glow)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 60px);
  margin-bottom: 2.5rem;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
  line-height: 1.2;
}
.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  animation: fadeInUp 0.8s ease 1.5s forwards;
  opacity: 0;
}
.scroll-indicator span {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 11px;
  position: relative;
}
.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Section Common Styles --- */
.section {
  position: relative;
  padding: var(--section-padding) 0;
  overflow: hidden;
}
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark-overlay);
}
.section-content {
  position: relative;
  z-index: 1;
}

/* Ornamental dividers */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 24px;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Section headings */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text-primary);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.section-description {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* --- Boss Showcase Section --- */
.boss-showcase {
  position: relative;
  padding: clamp(30px, 4vw, 60px) 0 var(--section-padding);
  margin-top: -40px;
  overflow: hidden;
}
.boss-showcase .section-content {
  will-change: transform, opacity;
}

/* Full-bleed boss background image */
.boss-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.boss-bg-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 1s ease;
  opacity: 0;
}
.boss-bg-image img.active {
  opacity: 1;
}

/* Overlays for readability */
.boss-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.boss-bg-overlay--gradient-lr {
  background: linear-gradient(to right, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.55) 45%, transparent 100%);
}
.boss-bg-overlay--gradient-tb {
  background: linear-gradient(to top, rgba(10, 10, 15, 0.85) 0%, transparent 30%),
              linear-gradient(to bottom, rgba(10, 10, 15, 1) 0%, rgba(10, 10, 15, 0.8) 10%, rgba(10, 10, 15, 0.3) 25%, transparent 40%);
}
.boss-bg-overlay--darken {
  background: rgba(0, 0, 0, 0.15);
}
.boss-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
}
.boss-tab {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 24px 14px;
  background: transparent;
  border: 1px solid rgba(212, 168, 83, 0.15);
  cursor: pointer;
  transition: color var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth), box-shadow var(--transition-smooth);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  overflow: hidden;
}
.boss-tab:hover {
  color: var(--text-secondary);
  border-color: var(--border-ornate);
}
.boss-tab.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* Progress bar inside each tab */
.boss-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  box-shadow: 0 0 8px var(--gold-glow);
  transition: width 0.1s linear;
  pointer-events: none;
}
.boss-tab:not(.active) .boss-tab-progress {
  width: 0 !important;
  opacity: 0;
}
.boss-tab.active .boss-tab-progress {
  opacity: 1;
}

.boss-panel {
  position: absolute;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  max-width: 600px;
  visibility: hidden;
}
.boss-panel.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.boss-panel.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}
.boss-info {
  padding: 20px 0;
}
.boss-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-primary);
  margin-bottom: 4px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}
.boss-epithet {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 20px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.boss-lore {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: #c8c0b0;
  line-height: 1.9;
  margin-bottom: 24px;
  max-width: 520px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.boss-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.boss-stat-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 168, 83, 0.15);
  padding: 16px;
  text-align: center;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.boss-stat-card .value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
}
.boss-stat-card .label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Features Section --- */
.features-section {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0f0c1a 50%, var(--dark-bg) 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  position: relative;
  background: var(--dark-card);
  border: 1px solid rgba(212, 168, 83, 0.08);
  padding: clamp(20px, 2.5vw, 32px);
  transition: all var(--transition-smooth);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.feature-card:hover {
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-icon {
  font-size: 1.5rem;
  display: inline-flex;
  width: 44px;
  height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.15);
}
.feature-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--gold-glow));
}
.feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
}
.feature-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Server Rates Section --- */
.rates-section {
  position: relative;
}
.rates-bg-effect {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 168, 83, 0.03) 0%, transparent 70%);
}
.rates-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
}
.rate-item {
  background: var(--dark-card);
  border: 1px solid rgba(212, 168, 83, 0.08);
  padding: 16px 8px;
  text-align: center;
  transition: all var(--transition-smooth);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.rate-item:hover {
  border-color: rgba(212, 168, 83, 0.25);
  transform: translateY(-2px);
}
.rate-value {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--gold);
  text-shadow: 0 0 15px var(--gold-glow);
}
.rate-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Rates section compact */
.rates-section {
  padding-top: clamp(40px, 5vw, 70px);
  padding-bottom: clamp(40px, 5vw, 70px);
}

/* --- Events Section --- */
.events-section {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #100a14 50%, var(--dark-bg) 100%);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.event-card {
  position: relative;
  background: var(--dark-card);
  border: 1px solid rgba(212, 168, 83, 0.08);
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.event-card:hover {
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.4);
}
.event-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(30, 20, 50, 0.9), rgba(50, 30, 20, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.event-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--dark-card));
}
.event-card-body {
  padding: 20px 24px 24px;
}
.event-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.event-card-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.event-card-schedule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 10px;
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 3px;
}

/* --- NFT Marketplace Teaser Section --- */
:root {
  --solana-purple: #9945ff;
  --solana-green: #14f195;
  --solana-glow: rgba(153, 69, 255, 0.4);
  --solana-green-glow: rgba(20, 241, 149, 0.3);
}

.nft-teaser {
  position: relative;
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0818 30%, #10081e 60%, var(--dark-bg) 100%);
  overflow: hidden;
}

/* Background effects */
.nft-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.nft-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: nftOrbFloat 10s ease-in-out infinite;
}
.nft-orb--1 {
  width: 400px;
  height: 400px;
  background: var(--solana-purple);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}
.nft-orb--2 {
  width: 300px;
  height: 300px;
  background: var(--solana-green);
  bottom: 10%;
  right: 5%;
  animation-delay: -3s;
}
.nft-orb--3 {
  width: 200px;
  height: 200px;
  background: var(--gold);
  top: 50%;
  left: 40%;
  animation-delay: -6s;
  opacity: 0.08;
}

@keyframes nftOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.1); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.nft-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(153, 69, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 69, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

/* Layout */
.nft-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

/* Badge */
.nft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--solana-green);
  padding: 6px 14px;
  border: 1px solid rgba(20, 241, 149, 0.25);
  border-radius: 20px;
  background: rgba(20, 241, 149, 0.06);
  margin-bottom: 24px;
}
.nft-badge-icon {
  color: var(--solana-purple);
  font-size: 0.9rem;
}

/* Title */
.nft-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}
.nft-title-accent {
  background: linear-gradient(135deg, var(--solana-purple), var(--solana-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nft-description {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 480px;
}

/* Feature list */
.nft-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.nft-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.nft-feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(153, 69, 255, 0.08);
  border: 1px solid rgba(153, 69, 255, 0.15);
  border-radius: 10px;
}
.nft-feature-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nft-feature-item strong {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nft-feature-item span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* CTA */
.nft-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-ornate-solana {
  border-color: var(--solana-purple);
  color: var(--solana-purple);
}
.btn-ornate-solana:hover {
  background: var(--solana-purple);
  color: #fff;
  box-shadow: 0 0 30px var(--solana-glow);
}
.nft-cta-hint {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* NFT Cards showcase */
.nft-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.nft-cards-stack {
  position: relative;
  width: 280px;
  height: 420px;
  perspective: 1000px;
}
.nft-card {
  position: absolute;
  width: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(153, 69, 255, 0.2);
  background: rgba(16, 12, 28, 0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.nft-card:hover {
  transform: translateY(-8px) scale(1.03) !important;
  border-color: rgba(153, 69, 255, 0.5);
  box-shadow: 0 16px 50px rgba(153, 69, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 10 !important;
}
.nft-card--1 {
  top: 0;
  left: 20px;
  z-index: 3;
  transform: rotate(-2deg);
}
.nft-card--2 {
  top: 40px;
  left: 50px;
  z-index: 2;
  transform: rotate(3deg);
  border-color: rgba(212, 168, 83, 0.15);
}
.nft-card--3 {
  top: 80px;
  left: 0;
  z-index: 1;
  transform: rotate(-4deg);
  border-color: rgba(20, 241, 149, 0.15);
}

.nft-card-inner {
  padding: 0;
}
.nft-card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.1), rgba(20, 241, 149, 0.05));
  position: relative;
}
.nft-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(16, 12, 28, 0.95));
}
.nft-card-details {
  padding: 16px 18px 20px;
}
.nft-card-rarity {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}
.nft-rarity-legendary {
  color: #ffa726;
  background: rgba(255, 167, 38, 0.12);
  border: 1px solid rgba(255, 167, 38, 0.25);
}
.nft-rarity-epic {
  color: var(--solana-purple);
  background: rgba(153, 69, 255, 0.12);
  border: 1px solid rgba(153, 69, 255, 0.25);
}
.nft-rarity-rare {
  color: var(--solana-green);
  background: rgba(20, 241, 149, 0.12);
  border: 1px solid rgba(20, 241, 149, 0.25);
}
.nft-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.nft-card-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--solana-green);
}
.nft-sol-icon {
  color: var(--solana-purple);
  font-size: 1rem;
}

/* Item icons in NFT cards */
.nft-card-image img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(212, 168, 83, 0.4));
  transition: transform 0.4s ease, filter 0.4s ease;
  z-index: 2;
}

.nft-card:hover .nft-card-image img {
  transform: scale(1.1) rotate(3deg);
  filter: drop-shadow(0 0 25px rgba(212, 168, 83, 0.6));
}

.nft-chain-badge {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 8px 20px;
  border: 1px solid rgba(153, 69, 255, 0.1);
  border-radius: 20px;
  background: rgba(153, 69, 255, 0.04);
  margin-top: 100px;
}
.nft-chain-badge span {
  color: var(--solana-purple);
}

/* NFT Responsive */
@media (max-width: 1024px) {
  .nft-layout {
    grid-template-columns: 1fr;
  }
  .nft-showcase {
    margin-top: 40px;
  }
}

/* --- Quick Start Section --- */
.quickstart-section {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0d0b18 50%, var(--dark-bg) 100%);
}
.quickstart-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.quickstart-step {
  position: relative;
  background: var(--dark-card);
  border: 1px solid rgba(212, 168, 83, 0.08);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-smooth);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.quickstart-step:hover {
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-4px);
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.launcher-size-hint {
  display: block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* --- Lore Section (Parallax Story) --- */
.lore-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.lore-section::before,
.lore-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}
.lore-section::before {
  top: 0;
  background: linear-gradient(to bottom, var(--dark-bg) 0%, transparent 100%);
}
.lore-section::after {
  bottom: 0;
  background: linear-gradient(to top, var(--dark-bg) 0%, transparent 100%);
}
.lore-parallax-bg {
  position: absolute;
  inset: -20%;
  background: linear-gradient(180deg,
    var(--dark-bg) 0%,
    #1a1025 15%,
    #251530 30%,
    #1a1025 50%,
    #150d1e 70%,
    var(--dark-bg) 100%
  );
  will-change: transform;
}
.lore-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(198, 40, 40, 0.05) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(79, 195, 247, 0.03) 0%, transparent 60%);
}
.lore-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.lore-text {
  max-width: 500px;
}
/* Lore text fade-in: ONLY opacity, zero movement */
.lore-fade {
  opacity: 0;
  transition: opacity 1.5s ease;
}
.lore-fade.visible {
  opacity: 1;
}
.lore-quote {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-primary);
  line-height: 1.9;
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 16px;
}
.lore-attribution {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.lore-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.lore-chipscroll-frame {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 168, 76, 0.08);
}
.lore-chipscroll-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* --- No Wipe Banner --- */
.no-wipe-banner {
  position: relative;
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
}
.no-wipe-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.03), transparent);
}
.no-wipe-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-primary);
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(212, 168, 83, 0.2);
}
.no-wipe-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid rgba(212, 168, 83, 0.08);
  padding: 60px 0 30px;
  background: linear-gradient(180deg, var(--dark-bg), #050508);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-brand .footer-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}
.footer-bottom {
  border-top: 1px solid rgba(212, 168, 83, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-legal {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* --- Scroll-triggered animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-fade-up {
  opacity: 0;
  transform: none;
  transition: opacity 1.5s ease;
}
.reveal.reveal-fade-up.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Floating particles background --- */
.particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1);
  }
}

/* --- Mobile Navigation Drawer --- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-smooth);
}
.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
}
.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.mobile-drawer-content {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: rgba(12, 10, 20, 0.98);
  border-left: 1px solid rgba(212, 168, 83, 0.1);
  padding: 80px 32px 32px;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}
.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}
.mobile-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.mobile-drawer-close:hover {
  background: rgba(212, 168, 83, 0.1);
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
}
.mobile-nav-links .nav-icon {
  font-size: 1.1rem;
}

/* --- Responsive --- */

/* Tablet landscape */
@media (max-width: 1024px) {
  .lore-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .lore-visual {
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
  }
  .lore-text {
    max-width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .side-nav {
    display: none;
  }
  .scroll-indicator {
    display: none;
  }
  /* Framed hero on tablet: reduce inset, more top space for navbar */
  .hero[data-hero-mode="framed"] .hero-chipscroll {
    top: 12%;
    left: 10%;
    right: 10%;
    bottom: 8%;
  }
  .hero[data-hero-mode="framed"] .hero-content {
    top: 12%;
    left: 10%;
    right: 10%;
    bottom: 8%;
  }
}

/* Tablet portrait & small tablets */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  /* Hide nav-actions on mobile, content is in hamburger drawer */
  .nav-actions {
    display: none;
  }
  .top-nav {
    height: 56px;
    padding: 0 16px;
  }
  .top-nav.scrolled {
    height: 48px;
  }
  .nav-brand-name {
    font-size: 1.1rem;
  }
  .nav-brand-sub {
    font-size: 0.55rem;
    padding: 1px 6px;
  }
  /* Hero */
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(12px, 3vw, 24px);
  }
  .hero-stat-value {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
  .hero-stat-label {
    font-size: 0.6rem;
  }
  .hero-cta {
    gap: 12px;
  }
  .hero-cta .btn-ornate {
    font-size: 0.75rem;
    padding: 12px 24px;
  }
  /* Fixed hero height on mobile - svh is stable during iOS address bar changes */
  .hero[data-hero-mode="framed"] {
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }
  /* Framed hero on mobile: 16:9 centered with margin:auto (no transform) */
  .hero[data-hero-mode="framed"] .hero-chipscroll {
    top: 0;
    bottom: 0;
    left: 5%;
    right: 5%;
    margin: auto 0;
    transform: none;
    aspect-ratio: 16 / 9;
    max-height: 90%;
    border-radius: 12px;
  }
  .hero[data-hero-mode="framed"] .hero-chipscroll-overlay {
    border-radius: 12px;
  }
  /* Content: exact same positioning as chipscroll so they're always aligned */
  .hero[data-hero-mode="framed"] .hero-content {
    top: 0;
    bottom: 0;
    left: 5%;
    right: 5%;
    margin: auto 0;
    transform: none;
    aspect-ratio: 16 / 9;
    max-height: 90%;
    padding: 10% 16px 4px;
  }
  .hero[data-hero-mode="framed"] .hero-eyebrow {
    margin-bottom: 0.4rem;
  }
  .hero[data-hero-mode="framed"] .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  .hero[data-hero-mode="framed"] .hero-subtitle {
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    margin-bottom: 1rem;
  }
  .hero[data-hero-mode="framed"] .hero-stat-value {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }
  .hero[data-hero-mode="framed"] .hero-stat-label {
    font-size: 0.5rem;
  }
  .hero[data-hero-mode="framed"] .hero-stats {
    margin-bottom: 1rem;
  }
  .hero[data-hero-mode="framed"] .hero-cta .btn-ornate {
    font-size: 0.65rem;
    padding: 8px 16px;
  }
  /* Boss section */
  .boss-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }
  .boss-tab {
    font-size: 0.7rem;
    padding: 8px 14px;
    clip-path: none;
    border-radius: 4px;
  }
  .boss-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .boss-name {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
  .boss-epithet {
    font-size: clamp(0.75rem, 2vw, 1rem);
  }
  .boss-lore {
    font-size: 0.85rem;
    line-height: 1.6;
  }
  .boss-info {
    max-width: 100%;
  }
  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: clamp(16px, 3vw, 24px);
  }
  .feature-card-header {
    gap: 10px;
  }
  .feature-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.2rem;
  }
  .feature-title {
    font-size: 1rem;
  }
  .feature-desc {
    font-size: 0.9rem;
  }
  /* Rates grid */
  .rates-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .rate-card {
    padding: 12px 6px;
  }
  /* Events grid */
  .events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* Lore section */
  .lore-visual {
    display: flex;
    width: 90%;
    max-width: none;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
  }
  .lore-chipscroll-frame {
    border-radius: 10px;
  }
  .lore-quote {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  }
  /* Quickstart */
  .quickstart-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .quickstart-step {
    padding: 24px 16px;
  }
  /* NFT */
  .nft-layout {
    grid-template-columns: 1fr;
  }
  .nft-cards-stack {
    width: 220px;
    transform: scale(0.85);
  }
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-brand {
    text-align: center;
  }
  .footer-brand .footer-desc {
    max-width: 100%;
    margin: 0 auto;
  }
  .footer-col {
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  /* Section spacing */
  .section-header {
    margin-bottom: clamp(24px, 4vw, 48px);
  }
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
  .section-description {
    font-size: 0.9rem;
  }
  /* Client links dropdown */
  .client-links-dropdown a {
    width: 100%;
    max-width: 200px;
  }
  /* Shadow divider smaller on mobile */
  .section-shadow-divider {
    height: 120px;
    margin-top: -120px;
  }
}

/* Mobile phone */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .hero-subtitle {
    font-size: clamp(0.8rem, 3vw, 1rem);
    margin-bottom: 1.2rem;
  }
  .hero-stats {
    gap: 10px;
  }
  .hero-stat-value {
    font-size: clamp(1rem, 6vw, 1.5rem);
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-cta .btn-ornate {
    width: 80%;
    max-width: 280px;
    text-align: center;
  }
  /* Framed hero: 16:9 on small phone */
  .hero[data-hero-mode="framed"] .hero-chipscroll {
    left: 3%;
    right: 3%;
    border-radius: 8px;
  }
  .hero[data-hero-mode="framed"] .hero-content {
    left: 3%;
    right: 3%;
    padding: 8px 10px;
  }
  .hero[data-hero-mode="framed"] .hero-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }
  .hero[data-hero-mode="framed"] .hero-subtitle {
    font-size: clamp(0.6rem, 2.5vw, 0.85rem);
    margin-bottom: 0.6rem;
  }
  .hero[data-hero-mode="framed"] .hero-stat-value {
    font-size: clamp(0.8rem, 4.5vw, 1.2rem);
  }
  .hero[data-hero-mode="framed"] .hero-eyebrow {
    font-size: 0.55rem;
    margin-bottom: 0.5rem;
  }
  .hero[data-hero-mode="framed"] .hero-stats {
    margin-bottom: 0.6rem;
    gap: 8px;
  }
  .hero[data-hero-mode="framed"] .hero-cta .btn-ornate {
    font-size: 0.6rem;
    padding: 6px 14px;
  }
  /* Rates 2-col */
  .rates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .rate-card {
    padding: 10px 4px;
  }
  /* Boss section */
  .boss-tabs {
    gap: 2px;
  }
  .boss-tab {
    font-size: 0.65rem;
    padding: 6px 10px;
    clip-path: none;
    border-radius: 4px;
  }
  .boss-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .boss-stat-card {
    padding: 10px 8px;
  }
  .boss-stat-card .value {
    font-size: 0.9rem;
  }
  .boss-stat-card .label {
    font-size: 0.55rem;
  }
  .boss-lore {
    font-size: 0.8rem;
    -webkit-line-clamp: 6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Features */
  .feature-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  /* Quickstart */
  .step-number {
    font-size: 1.5rem;
  }
  /* NFT cards */
  .nft-cards-stack {
    width: 200px;
    transform: scale(0.8);
  }
  /* Register modal */
  .register-modal {
    width: 96vw;
    padding: 24px 16px;
    clip-path: none;
    border-radius: 8px;
  }
  .register-input {
    clip-path: none;
    border-radius: 4px;
  }
  /* Top nav: already compact from 768px breakpoint */
  /* Footer */
  .footer-brand {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  display: flex;
  border: 1px solid var(--border-ornate);
  border-radius: 4px;
  overflow: hidden;
}
.lang-btn {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lang-btn:not(:last-child) {
  border-right: 1px solid var(--border-ornate);
}
.lang-btn:hover {
  color: var(--text-secondary);
  background: rgba(212, 168, 83, 0.05);
}
.lang-btn.active {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
}


/* ============================================================
   REGISTER MODAL
   ============================================================ */
.register-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: registerOverlayIn 0.3s ease;
}

@keyframes registerOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.register-modal {
  position: relative;
  width: min(480px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(12, 10, 20, 0.98);
  border: 1px solid var(--border-ornate);
  padding: clamp(24px, 4vw, 40px);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 168, 83, 0.08);
  animation: registerModalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes registerModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.register-modal::-webkit-scrollbar { width: 4px; }
.register-modal::-webkit-scrollbar-track { background: transparent; }
.register-modal::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

.register-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1;
}
.register-modal-close:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
}

.register-modal-header {
  text-align: center;
  margin-bottom: 28px;
}
.register-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--text-primary);
  margin-bottom: 6px;
}
.register-modal-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Form */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.register-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.register-field label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.register-input {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: rgba(20, 18, 30, 0.8);
  border: 1px solid rgba(212, 168, 83, 0.15);
  padding: 12px 16px;
  outline: none;
  transition: all var(--transition-fast);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.register-input::placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.register-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 168, 83, 0.15);
  background: rgba(20, 18, 30, 1);
}
.register-input--valid {
  border-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald-glow);
}
.register-input--error {
  border-color: var(--crimson);
  box-shadow: 0 0 10px rgba(198, 40, 40, 0.2);
}
.register-field-hint {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.register-field-error {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--crimson);
  min-height: 16px;
}

/* Submit */
.register-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 0.85rem;
}
.register-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.register-submit:disabled:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: none;
}

/* Account links */
.register-links {
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
}
.register-link {
  color: var(--gold);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.register-link:hover {
  opacity: 1;
  text-decoration: underline;
}
.register-link-separator {
  color: var(--gold);
  opacity: 0.3;
  margin: 0 0.5rem;
}

/* Messages */
.register-message {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-align: center;
  padding: 0;
  min-height: 0;
  transition: all var(--transition-fast);
  line-height: 1.5;
}
.register-message--error {
  color: var(--crimson);
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.2);
  padding: 10px 16px;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}
.register-message--success {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.2);
  padding: 10px 16px;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}

