/* ==========================================================================
   FLOOD SURFER - CINEMATIC LANDING & AUTH PORTAL STYLESHEET
   ========================================================================== */

:root {
  /* Fonts */
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;

  /* Transitions */
  --t-theme: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-speed: 0.4s;
}

/* Night Theme Variables */
body.theme-night {
  --color-bg: #020617;
  --color-surface: rgba(15, 23, 42, 0.65);
  --color-surface-solid: #0f172a;
  --color-border: rgba(30, 41, 59, 0.7);
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-accent: #76ff03; /* Neon Green */
  --color-accent-glow: rgba(118, 255, 3, 0.4);
  --color-secondary: #00e5ff; /* Neon Cyan */
  --color-secondary-glow: rgba(0, 229, 255, 0.4);
  --color-gradient-1: #76ff03;
  --color-gradient-2: #00e5ff;
  --color-card-bg: rgba(15, 23, 42, 0.5);
  --color-input-bg: rgba(2, 6, 23, 0.8);
  --color-shadow: rgba(0, 0, 0, 0.5);
}

/* Day/Sunset Theme Variables */
body.theme-day {
  --color-bg: #07162c; /* Deep warm ocean navy */
  --color-surface: rgba(26, 43, 76, 0.65);
  --color-surface-solid: #132a4a;
  --color-border: rgba(38, 66, 114, 0.7);
  --color-text: #f1f5f9;
  --color-text-muted: #cbd5e1;
  --color-accent: #ff9800; /* Sunset Orange */
  --color-accent-glow: rgba(255, 152, 0, 0.4);
  --color-secondary: #00e5ff; /* Cyan */
  --color-secondary-glow: rgba(0, 229, 255, 0.4);
  --color-gradient-1: #ff9800;
  --color-gradient-2: #ff5722;
  --color-card-bg: rgba(19, 42, 74, 0.5);
  --color-input-bg: rgba(7, 22, 44, 0.8);
  --color-shadow: rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 1s var(--t-theme), color 0.5s ease;
}

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

input, select, button {
  font-family: inherit;
}

/* ==========================================================================
   AMBIENT CINEMATIC BACKGROUND
   ========================================================================== */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.bg-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1s var(--t-theme);
}

.night-bg {
  background: 
    radial-gradient(circle at 80% 20%, rgba(118, 255, 3, 0.08), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.08), transparent 45%),
    #020617;
  opacity: 1;
}

body.theme-day .night-bg {
  opacity: 0;
}

.day-bg {
  background: 
    radial-gradient(circle at 80% 20%, rgba(255, 152, 0, 0.1), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.08), transparent 45%),
    #07162c;
  opacity: 0;
}

body.theme-day .day-bg {
  opacity: 1;
}

.bg-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.3) 0%, rgba(2, 6, 23, 0.85) 80%, #020617 100%);
}

body.theme-day .bg-gradient-overlay {
  background: linear-gradient(180deg, rgba(7, 22, 44, 0.3) 0%, rgba(7, 22, 44, 0.85) 80%, #07162c 100%);
}

.bg-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3 Hand %3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.3s ease, padding 0.3s ease;
}

body.theme-day .main-nav {
  background: rgba(7, 22, 44, 0.2);
}

.main-nav.scrolled {
  padding: 0.85rem 2rem;
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid var(--color-border);
}

body.theme-day .main-nav.scrolled {
  background: rgba(7, 22, 44, 0.85);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  font-size: 1.8rem;
  animation: float 4s ease-in-out infinite;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff, var(--color-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

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

/* Day/Night Custom Toggle Switch */
.theme-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  padding: 2px;
  border-radius: 20px;
  cursor: pointer;
  width: 50px;
  height: 28px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  outline: none;
}

.theme-toggle:hover {
  border-color: var(--color-accent);
}

.toggle-track {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.toggle-thumb {
  width: 22px;
  height: 22px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  transform: translateX(0);
}

body.theme-day .toggle-thumb {
  transform: translateX(22px);
}

.toggle-thumb span {
  font-size: 0.8rem;
}

.icon-day {
  display: none;
}

body.theme-day .icon-day {
  display: block;
}

body.theme-day .icon-night {
  display: none;
}

.nav-cta {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.25rem;
  background: var(--color-accent);
  color: #020617;
  border-radius: 6px;
  box-shadow: 0 4px 15px var(--color-accent-glow);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-accent-glow);
}

.server-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.server-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

.server-dot.offline {
  background-color: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
}

.eyebrow-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.hero-title {
  font-family: var(--font-condensed);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.hero-line-1, .hero-line-2 {
  color: #fff;
}

.accent-gradient {
  background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px var(--color-accent-glow));
}

.hero-desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-accent);
  color: #020617;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 25px var(--color-accent-glow);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px var(--color-accent-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

.play-icon {
  font-size: 0.8rem;
  color: var(--color-accent);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-condensed);
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background-color: var(--color-border);
}

/* Hero Character Visual Column */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-char-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--color-shadow);
  border: 1.5px solid var(--color-border);
}

.hero-char-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s var(--t-theme), transform 1s var(--t-theme);
}

.night-char {
  opacity: 1;
}

body.theme-day .night-char {
  opacity: 0;
  transform: scale(0.95) rotate(-2deg);
}

.day-char {
  opacity: 0;
  transform: scale(0.95) rotate(2deg);
}

body.theme-day .day-char {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.char-glow-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4);
}

.night-ring {
  border: 1px solid rgba(118, 255, 3, 0.2);
  opacity: 1;
}

body.theme-day .night-ring { opacity: 0; }

.day-ring {
  border: 1px solid rgba(255, 152, 0, 0.2);
  opacity: 0;
}

body.theme-day .day-ring { opacity: 1; }

/* Floating Cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: hoverFloat 6s ease-in-out infinite;
}

.fc-icon {
  font-size: 1.4rem;
}

.fc-text {
  display: flex;
  flex-direction: column;
}

.fc-val {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.fc-lbl {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.float-card-1 {
  top: 10%;
  left: -15%;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 20%;
  right: -10%;
  animation-delay: 2s;
}

.float-card-3 {
  bottom: -5%;
  left: 5%;
  animation-delay: 4s;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.scroll-arrow {
  width: 2px;
  height: 25px;
  background-color: var(--color-border);
  position: relative;
  overflow: hidden;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: var(--color-accent);
  animation: scrollDown 2.5s infinite;
}

/* ==========================================================================
   MISSION PROTOCOLS SECTION
   ========================================================================== */
.missions-section {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-inner {
  width: 100%;
}

.section-tag {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-condensed);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 3.5rem;
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mission-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background-color 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.mission-card:hover::before {
  background: var(--color-accent);
}

.protocol-number {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.mission-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.mission-card:hover .mission-icon-wrap {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #020617;
  transform: scale(1.05);
}

.mission-icon {
  font-size: 1.5rem;
}

.mission-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}

.mission-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.mission-arrow {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.mission-card:hover .mission-arrow {
  transform: translateX(5px);
  color: var(--color-accent);
}

/* Featured Mission Card specific */
.featured-card {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   CHARACTERS SECTION
   ========================================================================== */
.characters-section {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 720px;
  margin-top: -2.5rem;
  margin-bottom: 4rem;
}

.char-roster {
  display: grid;
  grid-template-columns: 1fr 1fr 0.6fr;
  gap: 2.5rem;
}

.char-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.char-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.char-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.1;
  overflow: hidden;
}

.char-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.char-card:hover .char-card-img {
  transform: scale(1.05);
}

.char-rarity-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.char-rarity-badge.legend {
  background: #ff9800;
  color: #020617;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

.char-rarity-badge.epic {
  background: #00e5ff;
  color: #020617;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.char-card-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.char-class-tag {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.char-name {
  font-family: var(--font-condensed);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1;
}

.char-lore {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.char-stats-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.01);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.02);
}

.char-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cs-label {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  width: 50px;
}

.cs-bar {
  flex-grow: 1;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.cs-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 4px;
}

.char-card[data-avatar="a10"] .cs-fill {
  background: var(--color-secondary);
}

.char-ability {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.ability-icon {
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.ability-text {
  display: flex;
  flex-direction: column;
}

.ability-name {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.ability-desc {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

.char-select-btn {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: #fff;
  border-radius: 8px;
  padding: 0.85rem;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.char-select-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #020617;
  box-shadow: 0 5px 15px var(--color-accent-glow);
}

.ajami-btn:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #020617;
  box-shadow: 0 5px 15px var(--color-secondary-glow);
}

/* More cards teaser styling */
.more-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.01), rgba(255,255,255,0.03));
  border-style: dashed;
}

.more-card-inner {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.more-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.more-icons span {
  font-size: 1.8rem;
  animation: float 4s ease-in-out infinite;
}

.more-icons span:nth-child(even) {
  animation-delay: 2s;
}

.more-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
}

.more-card p {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   CTA BAND SECTION
   ========================================================================== */
.cta-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(118, 255, 3, 0.05), rgba(0, 229, 255, 0.05));
  border: 1px solid var(--color-border);
  padding: 4rem;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

body.theme-day .cta-inner {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.05), rgba(0, 229, 255, 0.05));
}

.cta-text-col {
  max-width: 600px;
}

.cta-title {
  font-family: var(--font-condensed);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   AUTH SECTION
   ========================================================================== */
.auth-section-wrap {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.auth-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.auth-intro {
  display: flex;
  flex-direction: column;
}

.auth-section-title {
  font-family: var(--font-condensed);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 0.9;
  color: #fff;
  margin-bottom: 1.5rem;
}

.auth-intro-desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

/* Auth Live Character Preview Card */
.auth-char-preview {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 20px;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.acp-avatar {
  font-size: 2.2rem;
  background: var(--color-card-bg);
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
}

.acp-info {
  display: flex;
  flex-direction: column;
}

.acp-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}

.acp-type {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Authentic Form Card container */
.auth-card {
  background: var(--color-surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: 0 30px 60px var(--color-shadow);
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--color-border);
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 1.25rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  position: relative;
}

.auth-tab.active {
  color: #fff;
  background: var(--color-card-bg);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
}

.auth-body {
  padding: 2.5rem;
  position: relative;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-form.hide {
  display: none;
}

/* Custom alert box */
.alert-box {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid #f43f5e;
  color: #fca5a5;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.alert-box.success {
  background: rgba(118, 255, 3, 0.1);
  border-color: var(--color-accent);
  color: #a3e635;
}

.alert-box.hide {
  display: none;
}

/* Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.input-group label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.input-group input, .input-group select {
  background-color: var(--color-input-bg);
  border: 1.5px solid var(--color-border);
  color: #fff;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.input-group input:focus, .input-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
}

/* Avatar Picker Custom styles */
.avatar-picker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.avatar-picker-label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.avatar-grid-new {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.avatar-grid-new::-webkit-scrollbar {
  width: 4px;
}

.avatar-grid-new::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.avatar-item-new {
  background: var(--color-input-bg);
  border: 1.5px solid var(--color-border);
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-item-new:hover {
  border-color: var(--color-text-muted);
}

.avatar-item-new.selected {
  background: rgba(118, 255, 3, 0.08);
  border-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
  transform: scale(1.05);
}

body.theme-day .avatar-item-new.selected {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px var(--color-secondary-glow);
}

.auth-submit-btn {
  background: var(--color-accent);
  border: none;
  color: #020617;
  border-radius: 12px;
  padding: 1.1rem;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 6px 20px var(--color-accent-glow);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--color-accent-glow);
}

.auth-submit-btn.register-btn {
  background: var(--color-secondary);
  box-shadow: 0 6px 20px var(--color-secondary-glow);
}

.auth-submit-btn.register-btn:hover {
  box-shadow: 0 10px 25px var(--color-secondary-glow);
}

/* Success Overlay */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-surface-solid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  animation: fadeIn 0.3s forwards;
  z-index: 5;
}

.success-overlay.hide {
  display: none;
}

.success-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

.success-overlay h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.success-overlay p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 280px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(2, 6, 23, 0.4);
  padding: 5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 6rem;
}

.footer-brand .brand-name {
  background: none;
  -webkit-text-fill-color: initial;
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #020617;
  transform: translateY(-2px);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 2rem;
}

.dev-config-trigger {
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s ease;
}

.dev-config-trigger:hover {
  color: #fff;
}

/* ==========================================================================
   DEVELOPER CONFIG PANEL
   ========================================================================== */
.dev-panel {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 360px;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 1000;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.dev-panel.hide {
  display: none;
}

.dev-panel-header {
  padding: 1.25rem;
  background: rgba(0,0,0,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.dev-panel-header h4 {
  font-family: var(--font-title);
  color: #fff;
  font-weight: 700;
}

.dev-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dev-close-btn:hover {
  color: #fff;
}

.dev-panel-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dev-panel-body p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.dev-save-btn {
  background: var(--color-border);
  border: 1px solid var(--color-border);
  color: #fff;
  border-radius: 8px;
  padding: 0.85rem;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dev-save-btn:hover {
  background: var(--color-text-muted);
  color: #020617;
}

/* ==========================================================================
   TRAILER MODAL
   ========================================================================== */
.trailer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.trailer-modal.hide {
  display: none;
}

.trailer-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #020617;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.8);
}

.trailer-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.5);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.trailer-close:hover {
  background: #fff;
  color: #020617;
}

.trailer-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
}

.trailer-placeholder span {
  font-size: 4rem;
}

.trailer-placeholder p {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.trailer-placeholder small {
  color: var(--color-text-muted);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes hoverFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 120%; }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
  .char-roster {
    grid-template-columns: 1fr 1fr;
  }
  .more-card {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .hero-text-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual-col {
    order: -1;
  }
  .missions-grid {
    grid-template-columns: 1fr;
  }
  .auth-section-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .auth-intro {
    text-align: center;
    align-items: center;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: 1rem;
  }
  .nav-links {
    display: none; /* simple hidden layout for mobile to save complexity */
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .char-roster {
    grid-template-columns: 1fr;
  }
  .more-card {
    grid-column: span 1;
  }
  .cta-inner {
    flex-direction: column;
    padding: 2.5rem;
    text-align: center;
    gap: 2.5rem;
  }
  .cta-title {
    font-size: 2.5rem;
  }
  .auth-section-title {
    font-size: 3.2rem;
  }
}
