/* ==========================================
   RESET & GLOBAL STYLES
========================================== */

/* Global Reset & Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif; /* Default body font */
}

/* Main Title Typography */
h1, .logo, .section-title h2 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
}

/* Navigation, Buttons & Card Titles (Sports Branding Style) */
nav a, 
.nav-btn, 
.hero-btn, 
.quick-card h3, 
.card-badge,
.sub-tag {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

/* ==========================================
   TYPOGRAPHY
========================================== */

/* Section Title Styling */
.section-title h2 {
  font-size: 3rem;
}

/* Body Styling */
body {
  background-color: #f4f7f9; /* Light grey base background */
}

/* Logo Styling */
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}

.logo:hover {
  opacity: 0.8;
}

.logo span {
    font-family: 'Bebas Neue', sans-serif;
  color: #00e5ff; /* Cyan accent for BASKETBALL */
}

.logo .sub-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: #94a3b8; /* Subtle gray accent for FAN SITE */
  letter-spacing: 1px;
  margin-left: 4px;
}

/* ==========================================
  HEADER & NAVIGATION
========================================== */

/* Header Container */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 40px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 200;
}

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

.nav-toggle {
  display: none;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.2);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Navigation Links */
nav a {
  text-decoration: none;
  color: #333333;
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0 14px;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: #00e5ff; /* Turns cyan on hover or when active */
}

/* Right Action Button */
.nav-btn {
  background-color: #001219; /* Dark black/blue background */
  color: #00e5ff;            /* Cyan text */
  border: 2px solid #00e5ff;  /* Cyan border */
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 900;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background-color: #00e5ff;
  color: #000000;            /* Inverts colors when hovered */
}

/* ==========================================
   HERO SECTION
========================================== */

/* Hero Banner with Bottom Fade */
.hero {
  min-height: 70vh;
  position: relative; /* Needed for positioning elements clean */
  
  /* Top dark overlay + Background Image + Bottom fade to main background color (#0b132b) */
  background: 
linear-gradient(
      to bottom, 
      rgba(11, 19, 43, 0.85) 0%, 
      rgba(11, 19, 43, 0.5) 70%, 
      #f4f7f9 100% /* Fades smoothly into  page background */
    ), 
    url('images/hero_banner.webp');
    
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  display: flex;
  align-items: center;
  padding: 0 10%;
  color: #ffffff;
}

.hero-content {
  max-width: 650px; /* Prevents paragraph text from stretching too wide */
}

/* Typography */
.hero-content .sub-tag {
  color: #00e5ff;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 900;
  margin: 10px 0 15px 0;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-content .disclaimer {
  font-family: sans-serif; /* Makes body text easier to read */
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1d5db; /* Softer light grey for paragraphs */
  margin-bottom: 25px;
}

/* ==========================================
   GENERAL COMPONENTS
========================================== */

/* Footer Styling */
footer {
  width: 100%;
  background-color: #0f1419; /* Dark background to keep it as its own distinct section */
  color: #888888;
  padding: 15px 20px;       /* Small vertical padding makes the height compact */
  margin-top: 80px;          /* Pushes the footer lower down away from content above it */
  border-top: 1px solid #222222;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.75rem;       /* Keeps text small and subtle */
  font-family: sans-serif;
  line-height: 1.4;
}

.footer-content .credits {
  font-size: 0.68rem;
  color: #555555;
  margin-top: 3px;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: #00e5ff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.footer-links a:hover {
  text-decoration: underline;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
}

/* Individual Category Cards */
.category-card {
  flex: 1 1 0px !important; /* Force all 3 cards to take equal width in the row */
  min-width: 0;             /* Prevents cards from overflowing their container */
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 12px;
  padding: 30px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: #00e5ff;
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
}

.category-card:hover .category-icon {
  transform: scale(1.15) rotate(-5deg);
  color: #ffffff;
}

/* Typography */
.category-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.category-card p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.category-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  color: #00e5ff;
  letter-spacing: 1px;
  font-weight: bold;
  margin-top: auto;
  transition: transform 0.2s ease;
}


/* ==========================================
   BIRTHDAY BANNER
========================================== */

.birthday-banner {
  position: relative;
  overflow: hidden;
  color: #f8fafc;
  background:
    radial-gradient(ellipse at 18% 120%, rgba(0, 229, 255, 0.18), transparent 46%),
    radial-gradient(ellipse at 82% -20%, rgba(125, 211, 252, 0.16), transparent 42%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 2px solid #00e5ff;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.12);
}

.birthday-banner[hidden] {
  display: none !important;
}

.birthday-banner-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.birthday-banner-sparkles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00e5ff;
  opacity: 0;
  animation: birthday-twinkle 2.8s ease-in-out infinite;
}

.birthday-banner-sparkles span:nth-child(1) { left: 8%; top: 28%; animation-delay: 0s; }
.birthday-banner-sparkles span:nth-child(2) { left: 18%; top: 68%; width: 4px; height: 4px; background: #fff; animation-delay: 0.4s; }
.birthday-banner-sparkles span:nth-child(3) { left: 36%; top: 22%; animation-delay: 0.9s; }
.birthday-banner-sparkles span:nth-child(4) { left: 52%; top: 74%; width: 3px; height: 3px; background: #7dd3fc; animation-delay: 0.2s; }
.birthday-banner-sparkles span:nth-child(5) { left: 67%; top: 30%; animation-delay: 1.1s; }
.birthday-banner-sparkles span:nth-child(6) { left: 78%; top: 62%; width: 4px; height: 4px; background: #fff; animation-delay: 0.6s; }
.birthday-banner-sparkles span:nth-child(7) { left: 88%; top: 24%; animation-delay: 1.4s; }
.birthday-banner-sparkles span:nth-child(8) { left: 94%; top: 70%; width: 3px; height: 3px; animation-delay: 0.8s; }

@keyframes birthday-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  45% { opacity: 0.95; transform: scale(1); }
}

.birthday-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.birthday-banner-mark {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.22);
  animation: birthday-pulse 2.4s ease-in-out infinite;
}

.birthday-banner-mark-alt {
  animation-delay: 1.2s;
}

.birthday-banner-mark i {
  font-size: 1.2rem;
}

@keyframes birthday-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(0, 229, 255, 0.18); }
  50% { transform: scale(1.06); box-shadow: 0 0 22px rgba(0, 229, 255, 0.4); }
}

.birthday-banner-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
}

.birthday-banner-kicker {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  padding: 3px 12px;
  border-radius: 4px;
}

.birthday-banner-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.35rem;
  line-height: 0.92;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
}

.birthday-banner-title span {
  color: #00e5ff;
}

.birthday-banner-names {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #cbd5e1;
}

.birthday-banner-names a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: #e2e8f0;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.birthday-banner-names a:hover {
  background: #00e5ff;
  color: #0f172a;
  border-color: #00e5ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 229, 255, 0.35);
}

@media (max-width: 640px) {
  .birthday-banner-inner {
    padding: 14px 16px;
    gap: 10px;
  }

  .birthday-banner-mark-alt {
    display: none;
  }

  .birthday-banner-mark {
    width: 40px;
    height: 40px;
  }

  .birthday-banner-title {
    font-size: 1.7rem;
    letter-spacing: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .birthday-banner-sparkles span,
  .birthday-banner-mark {
    animation: none;
  }
}

body.zone-mode-active .birthday-banner {
  background:
    radial-gradient(ellipse at 18% 120%, rgba(56, 189, 248, 0.2), transparent 46%),
    #030712;
  border-bottom-color: #38bdf8;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.14);
}

body.zone-mode-active .birthday-banner-mark {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
}

body.zone-mode-active .birthday-banner-kicker,
body.zone-mode-active .birthday-banner-title span {
  color: #38bdf8;
}

body.zone-mode-active .birthday-banner-kicker {
  background: rgba(56, 189, 248, 0.12);
}

body.zone-mode-active .birthday-banner-names a {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
}

body.zone-mode-active .birthday-banner-names a:hover {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

/* ==========================================
   HOME PAGE
========================================== */

/* Typography */
.section-title {
  text-align: left;
  margin-bottom: 40px;
  margin-top: 40px;
  margin-left: 10px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 900;
  color: #111111;
  letter-spacing: -0.5px;
}

.section-title p {
  font-family: sans-serif;
  font-size: 0.85rem;
  color: #666666;
  margin-top: 5px;
}

/* Quick Cards Horizontal Scroll Container */
.quick-cards-grid {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px 25px 5px;
  scroll-snap-type: x mandatory;
}

.quick-cards-grid::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

.quick-cards-grid::-webkit-scrollbar-thumb {
  background: #00e5ff;       /* Cyan scrollbar thumb matching your theme */
  border-radius: 10px;
}

/* Quick Card Poster Styling */
.quick-card {
  position: relative;
  min-width: 250px;
  height: 350px; /* Gives the card a tall poster ratio */
  border-radius: 12px;
  overflow: hidden; /* Clips image within rounded corners */
  background-color: #0f172a;
  text-decoration: none;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Keep cards legible when optional artwork has not been added yet. */
.image-unavailable-container {
  background: linear-gradient(145deg, #0f172a, #1e293b);
}

.image-unavailable {
  opacity: 0;
}

.image-unavailable-container::after {
  content: 'IMAGE COMING SOON';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.card-img-wrapper.image-unavailable-container::after {
  inset: 0 12px 42%;
  z-index: 1;
  pointer-events: none;
  text-align: center;
}

.quick-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 2px;
}

.quick-card p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

/* Hover Effects (Zoom image & glow border) */
.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 229, 255, 0.2);
  border-color: #00e5ff;
}

.quick-card:hover .card-img {
  transform: scale(1.08); /* Subtle image zoom on hover */
}

/* Image & Gradient Overlay */
.card-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #0f172a, #1e293b);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills card without stretching */
  transition: transform 0.4s ease;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark gradient that fades text up smoothly from bottom */
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
}

/* Card Text Content (Layered over image) */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #888888;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-link {
  font-size: 0.75rem;
  font-weight: 800;
  color: #00e5ff;
  transition: color 0.2s ease;
}

/* "See All Characters" Special Card */
.see-all-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 2px dashed #00e5ff; /* Dashed border to look like an action slot */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.see-all-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.see-all-icon {
  font-size: 2rem;
  color: #00e5ff;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.see-all-card h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.see-all-card p {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Hover effect for See All Card */
.see-all-card:hover {
  border-style: solid;
  background: #00e5ff;
  border-color: #00e5ff;
}

.see-all-card:hover .see-all-icon,
.see-all-card:hover h3,
.see-all-card:hover p {
  color: #0f172a; /* Switches text color dark when card turns cyan */
}

.see-all-card:hover .see-all-icon {
  transform: translateX(6px); /* Arrow shifts right on hover */
}

/* ==========================================
  PLAYER & TEAM PAGES
========================================== */

/* Characters Main Header */
.characters-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 60px 20px 40px 20px;
  text-align: center;
  border-bottom: 2px solid #00e5ff;
  margin-top: 0px; /* Space below header nav */
  margin-bottom: 30px;
}

.characters-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.characters-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: #ffffff;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 8px;
}

.characters-hero h1 span {
  color: #00e5ff;
}

.hero-description {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0 auto;
}

/* Hide Class for Filtered Out Cards */
.filter-card.hide-card {
  display: none !important;
}

/* Custom Filter Container */
.filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 950px;
  margin: 35px auto;
  padding: 24px;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Individual Filter Group */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 180px; /* Responsive sizing */
  min-width: 160px;
}

.filter-group label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  color: #00e5ff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Styled Select Dropdown */
.filter-group select {
  appearance: none; /* Removes default ugly browser arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #0b132b;
  /* Custom Cyan Chevron Arrow */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2300e5ff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 38px 12px 16px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dropdown Options (Inside the list) */
.filter-group select option {
  background-color: #0b132b;
  color: #ffffff;
  padding: 10px;
}

/* Hover & Focus Effects */
.filter-group select:hover {
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.filter-group select:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Reset Button Styling */
.reset-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  height: 43px; /* Matches height of selects */
}

.reset-btn:hover {
  background: #00e5ff;
  color: #0b132b;
  border-color: #00e5ff;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* Filter Box Title */
.filter-header {
  width: 100%;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  padding-bottom: 8px;
}

.filter-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #ffffff;
  letter-spacing: 2px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Centered & Compact Search Input Field */
.search-group {
  flex: 0 1 320px; /* Constrains max width so it doesn't take up full row */
  width: 100%;
  margin: 0 auto 10px auto; /* Centers horizontally with bottom margin */
}

.search-group input {
  background-color: #0b132b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.25s ease;
  width: 100%;
  text-align: center; /* Centers the placeholder and typed text */
}

.search-group input::placeholder {
  color: #64748b;
}

.search-group input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* No Results Error Message */
.no-results-message {
  grid-column: 1 / -1; /* Spans across the full width of the grid */
  text-align: center;
  padding: 40px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  margin: 20px 0;
}

.no-results-message h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #ef4444;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.no-results-message p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Full Character Directory Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 25px;
  margin-top: 40px;
}



/* Adds 60 pixels of space underneath every section */
section {
  margin-bottom: 40px;
}


/* ==========================================
   CHARACTER PROFILE HUD LAYOUT
========================================== */

.hud-container {
  max-width: 1200px;
  margin: 20px auto 60px auto;
  padding: 0 20px;
}

/* Back Link Button */
.back-link {
  font-family: 'Montserrat', sans-serif; 
  font-size: 0.9rem; 
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: #898a8b;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  justify-self: start;
  white-space: nowrap;
}


.back-link:hover {
  background: #334155;
  color: #ffffff;
  border-color: #475569;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* Top HUD Banner Header */
.hud-top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.hud-title {
  text-align: center;
}

.hud-title h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: #cacbcf;
  margin: 0;
  letter-spacing: 2px;
}

.hud-title h1 span {
  color: #94a3b8;
}

.hud-badge {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  color: #cbd5e1;
  letter-spacing: 2px;
  display: block;
}

.hud-team-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  margin: 4px 0 0 0;
}

/* HUD Main Overlay Stage */
.hud-stage {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 620px;
  margin-top: 10px;
  overflow: visible;
  border-radius: 16px;
  padding: 20px;
}

/* Floating Panels */
.hud-panel {
  position: relative;
  z-index: 2;
  background: rgba(22, 26, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  width: 280px;
}

.hud-left {
  margin-right: auto;
}

.hud-right {
  margin-left: auto;
}

.hud-stage-dual {
  min-height: 0;
  align-items: flex-start;
  overflow: visible;
}

.hud-dual-attributes {
  width: 300px;
}

.hud-dual-attributes .panel-title + .panel-title,
.hud-dual-attributes .stat-list-compact + .panel-title {
  margin-top: 18px;
}

.hud-dual-attributes .hexagon-chart-box {
  width: 180px;
  height: 180px;
  margin: 16px auto 10px;
}

.hud-dual-attributes .coach-radar {
  margin: 22px auto 12px;
}

/* Side-by-side portrait panel + vital stats (staff pages) */
.hud-stage-duo {
  justify-content: center;
  align-items: stretch;
  min-height: 0;
  gap: 24px;
  overflow: visible;
}

.hud-stage-duo .hud-panel {
  margin: 0;
}

.hud-portrait-panel {
  width: min(360px, 100%);
  padding: 12px;
  display: flex;
  align-items: stretch;
}

.hud-portrait-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  display: block;
}

.family-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 8px 0 28px;
}

.family-photo-slot {
  background: rgba(22, 26, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.family-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.family-description {
  background: rgba(22, 26, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 22px 24px;
  color: #f8fafc;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.family-description p {
  margin: 0 0 12px 0;
}

.family-description p:last-child {
  margin-bottom: 0;
}

.extra-cast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}

.extra-cast-card {
  display: flex;
  flex-direction: column;
  background: rgba(22, 26, 33, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.extra-cast-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
}

.extra-cast-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(15, 23, 42, 0.7);
  overflow: hidden;
}

.extra-cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.extra-cast-body {
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex: 1;
}

.extra-cast-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  color: #e2e8f0;
  letter-spacing: 1px;
  margin: 0 0 8px 0;
  line-height: 1.15;
}

.extra-cast-body p {
  margin: 0;
  color: #cbd5e1;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
}

.panel-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #e2e8f0;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* ==========================================
   CENTRAL CHARACTER & SKILLS OVERLAY
========================================== */

.hud-center-character {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  box-sizing: border-box;
}

.center-pose-img {
  height: 112%;
  max-height: 640px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 14px rgba(186, 198, 214, 0.45))
    drop-shadow(0 0 32px rgba(148, 163, 184, 0.28))
    drop-shadow(0 12px 36px rgba(0, 0, 0, 0.4));
  opacity: 0.95;
}

.character-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 48%,
    rgba(226, 232, 240, 0.55) 0%,
    rgba(148, 163, 184, 0.38) 18%,
    rgba(100, 116, 139, 0.2) 42%,
    rgba(51, 65, 85, 0.08) 64%,
    rgba(15, 17, 21, 0) 82%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  filter: blur(18px);
}

/* Compact Special Skills Overlay */
.skills-overlay {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
  background: rgba(18, 20, 26, 0.92);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 20px;
  padding: 6px 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  max-width: 85%;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto;
}

.skill-pill-btn {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.4);
  padding: 5px 10px;
  border-radius: 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.skill-pill-btn:hover {
  background: #334155;
  color: #38bdf8;
  border-color: #475569;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   LEFT PANEL (ATTRIBUTES / RADAR)
========================================== */

.hexagon-chart-box {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 20px auto;
}

.radar-svg {
  width: 100%;
  height: 100%;
}

.radar-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.radar-axis {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.radar-data-fill {
  fill: rgba(148, 163, 184, 0.2);
  stroke: #cbd5e1;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

.hexagon-label {
  position: absolute;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  color: #94a3b8;
  letter-spacing: 1px;
}

.hexagon-label.top { top: -10px; left: 50%; transform: translateX(-50%); }
.hexagon-label.top-right { top: 35px; right: -20px; }
.hexagon-label.bottom-right { bottom: 8px; right: 5px; }
.hexagon-label.bottom { bottom: -10px; left: 50%; transform: translateX(-50%); }
.hexagon-label.bottom-left { bottom: 20px; left: 0px; }
.hexagon-label.top-left { top: 30px; left: -30px; }

.coach-radar {
  margin: 28px auto 24px;
}

.coach-radar .hexagon-label {
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.coach-radar .hexagon-label.top {
  top: -12px;
}

.coach-radar .hexagon-label.top-right {
  top: 40px;
  right: -28px;
}

.coach-radar .hexagon-label.bottom-right {
  bottom: 10px;
  right: 10px;
}

.coach-radar .hexagon-label.bottom-left {
  bottom: 20px;
  left: -0px;
}

.coach-radar .hexagon-label.top-left {
  top: 40px;
  left: -22px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 6px;
  align-items: center;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
}


.stat-row strong {
  color: #e2e8f0;
}

/* ==========================================
   RIGHT PANEL (VITAL STATS)
========================================== */

.vital-stats-panel-list {
  display: flex;
  flex-direction: column;
  gap:0px;
}

.vital-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 8px;
}

.vital-panel-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  color: #94a3b8;
  letter-spacing: 1px;
}

.vital-panel-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
}

.vital-stats-refined {
  gap: 8px;
}

.vital-stats-refined .vital-panel-row {
  padding: 10px 12px;
}

.vital-panel-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.vital-panel-stack .vital-panel-label {
  letter-spacing: 1.2px;
}

.vital-panel-stack .vital-panel-value {
  text-align: left;
  line-height: 1.45;
  font-weight: 600;
}

.vital-panel-quote {
  font-style: italic;
  font-weight: 600;
  color: #f1f5f9;
}

/* ==========================================
   FULL-WIDTH TRIVIA SECTION
========================================== */

.trivia-section {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 30px !important;
  clear: both !important;
  box-sizing: border-box;
  background: rgba(22, 26, 33, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px;
  padding: 24px;
}

.trivia-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; 
  gap: 16px;
}

.trivia-list li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  border-radius: 8px;
  line-height: 1.5;
}

.trivia-list strong {
  color: #ffffff;
}


/* ==========================================
  ZONE MODE
========================================== */

/* Zone Mode Button Styling */
.zone-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d2d2d2;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.zone-toggle-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* 1. Deep Court Background */
body.zone-mode-active {
  background-color: #030712 !important;
  transition: background-color 0.4s ease;
}

/* 2. Intense Full-Screen Edge Aura */
body.zone-mode-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999; /* Sits over the viewport edges */
  
  /* Thick Electric Blue Border + Heavy Inset Glow */
  border: 4px solid #38bdf8;
  box-shadow: 
    inset 0 0 80px 20px rgba(56, 189, 248, 0.75),
    0 0 30px 10px rgba(56, 189, 248, 0.5);
  
  animation: intenseZonePulse 2s infinite alternate ease-in-out;
}

/* 3. Dynamic Breathing Voltage Pulse */
@keyframes intenseZonePulse {
  0% {
    border-color: #38bdf8;
    box-shadow: 
      inset 0 0 60px 15px rgba(56, 189, 248, 0.6),
      0 0 20px 5px rgba(56, 189, 248, 0.4);
  }
  50% {
    border-color: #7dd3fc; /* Bright cyan flash */
    box-shadow: 
      inset 0 0 110px 30px rgba(56, 189, 248, 0.9),
      0 0 45px 15px rgba(125, 211, 252, 0.7);
  }
  100% {
    border-color: #0284c7;
    box-shadow: 
      inset 0 0 80px 20px rgba(56, 189, 248, 0.75),
      0 0 30px 10px rgba(56, 189, 248, 0.5);
  }
}

/* 4. Panel Borders & Button Glow Boost */
body.zone-mode-active .hud-panel,
body.zone-mode-active .character-card {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4) !important;
}

body.zone-mode-active #zoneToggleBtn {
  background: #38bdf8 !important;
  color: #0f172a !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.9) !important;
  font-weight: 700;
}


/* ===================================================
   DREAM TEAM BUILDER 
   =================================================== */
.cta-builder-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #ff5722, #e64a19);
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
  transition: all 0.3s ease;
}

.cta-builder-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.7);
  background: linear-gradient(135deg, #f4511e, #d84315);
}

/* Zone Mode Accent Shift */
body.zone-mode-active .cta-builder-btn {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
  color: #0f172a;
}

body.zone-mode-active .cta-builder-btn:hover {
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.8);
}

.back-btn-wrapper {
  padding: 20px 0 10px 0; /* Keeps it comfortably away from screen top/edges */
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  
  /* Styling & Visibility */
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 87, 34, 0.4);
  border-radius: 8px;
  color: #ffffff;
  
  /* Typography */
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.back-btn i {
  font-size: 1.2rem;
  color: #ff5722;
  transition: transform 0.25s ease;
}

/* Hover Effect */
.back-btn:hover {
  background: #ff5722;
  border-color: #ff5722;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.back-btn:hover i {
  color: #ffffff;
  transform: translateX(-4px); /* Moves arrow slightly left */
}

/* Zone Mode Colors */
body.zone-mode-active .back-btn {
  border-color: rgba(56, 189, 248, 0.4);
}

body.zone-mode-active .back-btn i {
  color: #38bdf8;
}

body.zone-mode-active .back-btn:hover {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

body.zone-mode-active .back-btn:hover i {
  color: #0f172a;
}

/* Bottom Navigation Actions */
.builder-bottom-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Full-Width Centered Stats Banner */
.team-stats-banner {
  width: 100%;
  margin-bottom: 40px;
  padding: 25px 40px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-label {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: #94a3b8;
  letter-spacing: 1.5px;
}

.stat-value {
  font-family: 'Bebas Neue', cursive;
  font-size: 3.2rem;
  line-height: 1;
}

.offense-val { color: #ff5722; }
.defense-val { color: #38bdf8; }
.synergy-val { color: #22c55e; }

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
}

/* Slot Styling */
.builder-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  cursor: pointer;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.builder-slot:hover {
  border-color: #ff5722;
  transform: translateY(-5px);
}

body.zone-mode-active .builder-slot:hover {
  border-color: #38bdf8;
}

.slot-badge {
  background: #ff5722;
  color: #fff;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  padding: 2px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

body.zone-mode-active .slot-badge {
  background: #38bdf8;
  color: #0f172a;
}

.select-player-btn {
  margin-top: 15px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Oswald', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.builder-slot:hover .select-player-btn {
  background: #ff5722;
  border-color: #ff5722;
}

body.zone-mode-active .builder-slot:hover .select-player-btn {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
}

/* ===================================================
   COMMUNITY POLL STYLING
=================================================== */

.poll-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 5px;
}

.poll-subtitle {
  color: #94a3b8;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.poll-option input[type="radio"] {
  accent-color: #ff5722;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

body.zone-mode-active .poll-option input[type="radio"] {
  accent-color: #38bdf8;
}

.option-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #f8fafc;
}

/* Poll Results Progress Bars */
.result-item {
  margin-bottom: 18px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #f8fafc;
}

.result-bar-bg {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.result-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5722, #f4511e);
  border-radius: 10px;
  transition: width 0.8s ease-in-out;
}

body.zone-mode-active .result-bar-fill {
  background: linear-gradient(90deg, #38bdf8, #0284c7);
}

/* ==========================================
  TEAMS
========================================== */

/* Container Box Styling */
.hexagon-chart-box-team {
  position: relative;
  width: 280px;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Radar SVG Elements */
.radar-svg-team {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.radar-grid-team {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
  stroke-dasharray: 2 2; /* Dotted guide lines */
}

.radar-axis-team {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

/* Label Placement & Typography */
.hexagon-label-team {
  position: absolute;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
}

.hexagon-label-team.top { top: 8px; left: 50%; transform: translateX(-50%);}
.hexagon-label-team.top-right { top: 22%; right: 15px; }
.hexagon-label-team.bottom-right { bottom: 10%; right: 20px; }
.hexagon-label-team.bottom-left { bottom: 15%; left: 40px; }
.hexagon-label-team.top-left { top: 22%; left: 8px; }

/* Stat List Styling */
.stat-list-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 0px;
}

/* Ensure the container takes up the full width minus padding */
.container {
  width: 100%;
  max-width: 1000px; /* Adjust this number to your preferred maximum width */
  margin: 0 auto 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ==========================================
  POLL
========================================== */

/* Ensure every poll card stretches to fill the container consistently */
.poll-card {
  width: 100%;
  box-sizing: border-box;
  background: #161920; /* Matches your dark HUD theme */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 28px;
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Ensure radio options grid stretches uniformly across the card */
.poll-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

/* Option labels span evenly */
.poll-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.poll-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================
  QUIZ
========================================== */

/* Container */
.quiz-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Header */
.quiz-header {
  text-align: center;
  margin-bottom: 20px;
}

.quiz-header h1 {
  font-size: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fbbf24;
}

.subtitle {
  color: #cbd5e1; /* Brightened slightly */
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Cards */
.quiz-card, 
.results-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.question-number {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 12px;
}

.question-text {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #ffffff; /* Bright white for primary text */
  margin-bottom: 24px;
}

.option-btn {
  background: #0f172a;
  border: 1px solid #475569;
  color: #f1f5f9; /* High contrast text */
  padding: 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.option-btn:hover {
  background: #334155;
  border-color: #fbbf24;
}

/* Results */
.results-header {
  text-align: center;
  margin-bottom: 20px;
}

.results-header h2 {
  font-size: 1rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.character-name {
  font-size: 2.25rem;
  margin: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.character-title {
  font-size: 1rem;
  color: #cbd5e1;
  font-style: italic;
}

.character-desc {
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.6;
  margin-bottom: 24px;
  background: #0f172a;
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid #fbbf24;
}

.results-card h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-label {
  width: 110px;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.score-bar-bg {
  flex-grow: 1;
  height: 8px;
  background-color: #0f172a;
  border-radius: 999px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.score-val {
  width: 36px;
  font-size: 0.85rem;
  text-align: right;
  color: #cbd5e1;
  flex-shrink: 0;
}

.restart-btn {
  width: 100%;
  padding: 14px;
  background: #fbbf24;
  color: #0f172a;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.restart-btn:hover {
  opacity: 0.9;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* ===================================================
   QUIZ STYLES
=================================================== */

.quiz-card-styled {
  width: 100%;
  max-width: 680px;
  padding: 32px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.quiz-page-container {
  padding-top: 36px;
  padding-bottom: 12px;
}

.quiz-stage {
  min-height: auto;
  flex-direction: column;
  align-items: center;
}

.quiz-progress {
  max-width: 680px;
  margin-bottom: 20px;
}

.quiz-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.question-number {
  font-family: 'Oswald', sans-serif;
  color: #64748b;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.question-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 24px;
  line-height: 1.35;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option-btn {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.quiz-option-btn:hover {
  background: #e2e8f0;
  border-color: #38bdf8;
  color: #0284c7;
  transform: translateY(-2px);
}

.quiz-nav-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quiz-nav-btn:hover:not(:disabled) {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.quiz-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.progress-container {
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  height: 8px;
  background-color: #1e293b;
  margin-bottom: 24px;
}

.progress-bar {
  width: 8.33%;
  background: #38bdf8;
  height: 10px;
  transition: width 0.3s ease;
}

/* ===================================================
   QUIZ RESULTS BUTTONS
  =================================================== */

.quiz-results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
  width: 100%;
}

.quiz-results-card {
  text-align: center;
}

.quiz-results-kicker,
.quiz-results-section-title {
  font-family: 'Oswald', sans-serif;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-results-kicker {
  font-size: 1rem;
  margin: 0;
}

.character-name,
.quiz-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  margin: 10px 0;
}

.quiz-score {
  color: #0284c7;
}

.character-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.character-desc,
.quiz-results-message {
  font-family: 'Montserrat', sans-serif;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.character-desc {
  background: #f8fafc;
  border-left: 4px solid #38bdf8;
  border-radius: 6px;
  padding: 16px;
}

.quiz-results-section-title {
  color: #0f172a;
  font-size: 1.1rem;
  margin-bottom: 12px;
  text-align: left;
}

@media (max-width: 600px) {
  .quiz-card-styled {
    padding: 24px 18px;
  }

  .quiz-results-actions {
    flex-direction: column;
  }
}

.quiz-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 14px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

/* Primary Action Button (Retake / Take Quiz Again) */
.quiz-action-btn.primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.quiz-action-btn.primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

/* Secondary Action Button (Quiz Hub) */
.quiz-action-btn.secondary {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
}

.quiz-action-btn.secondary:hover {
  background: #1e293b;
  border-color: #64748b;
  color: #38bdf8;
  transform: translateY(-2px);
}

/* Button Active Press State */
.quiz-action-btn:active {
  transform: translateY(0);
}

/* Compact profile pages used for the extended character roster. */
.profile-content {
  display: grid;
  gap: 24px;
  width: 100%;
}

.profile-summary {
  border-left: 4px solid #ef4444;
  color: #cbd5e1;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.profile-detail-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 18px;
}

.profile-detail-card h3,
.profile-interview h3 {
  color: #f8fafc;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.profile-detail-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
}

.profile-interview-blank {
  min-height: 150px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 8px;
}

/* ===================================================
   ROUND-ROBIN CROSS-TABLE STYLES
=================================================== */

.table-responsive {
  overflow-x: auto;
  margin-top: 20px;
}

.league-cross-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  border: 2px solid #0f172a;
}

.league-cross-table th, 
.league-cross-table td {
  border: 1px solid #cbd5e1;
  text-align: center;
  padding: 14px 10px;
  min-width: 120px;
}

.league-cross-table thead th {
  background: #0f172a;
  color: #f8fafc;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.league-cross-table .team-header {
  background: #1e293b;
  color: #f8fafc;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: left;
  padding-left: 16px;
}

.league-cross-table .team-header.winner-team {
  border-left: 4px solid #38bdf8;
  color: #38bdf8;
}

.league-cross-table .blank-cell {
  background: #f1f5f9 linear-gradient(to top right, transparent 49%, #94a3b8 49%, #94a3b8 51%, transparent 51%);
}

.score-cell {
  transition: background-color 0.2s ease;
}

.score-cell .score {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.score-cell .status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Win / Loss / Draw Cell Highlights */
.score-cell.win {
  background: #f0fdf4;
}
.score-cell.win .status {
  background: #dcfce7;
  color: #15803d;
}

.score-cell.loss {
  background: #fef2f2;
}
.score-cell.loss .status {
  background: #fee2e2;
  color: #b91c1c;
}

.score-cell.draw {
  background: #f0f9ff;
}
.score-cell.draw .status {
  background: #e0f2fe;
  color: #0369a1;
}

.league-summary-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.summary-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 6px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

[hidden] {
  display: none !important;
}

/* ==========================================
   HUD PAGE + PROFILE SECTIONS
========================================== */

.hud-container {
  --accent: #38bdf8;
}

.hud-section {
  width: 100%;
  box-sizing: border-box;
  margin-top: 30px;
}

.media-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.info-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 6px;
}

.info-card-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.info-card-value {
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
}

.prose-block {
  background: rgba(15, 23, 42, 0.4);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  color: #f8fafc;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
}

.prose-block p {
  margin: 0 0 12px 0;
  color: #f8fafc;
  font-size: 0.95rem;
  line-height: 1.7;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.stack,
.qna-dialogue-list,
.interview-dialogue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quote-block,
.qna-item,
.note-block {
  border-left: 3px solid var(--accent);
  background: rgba(15, 23, 42, 0.4);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
}

.quote-block p {
  margin: 0;
  color: #f8fafc;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

.qna-item {
  padding: 12px 16px;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.qna-q {
  margin: 0 0 6px 0;
  color: var(--accent);
  font-weight: 700;
}

.qna-a {
  margin: 0;
  color: #f8fafc;
}

.note-kicker {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
}

.gallery-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-card-frame {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.gallery-card-frame img,
.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-card-meta {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-card-title {
  font-size: 0.8rem;
  color: #f8fafc;
  font-weight: 600;
  display: block;
}

.gallery-card-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.panel-title-muted {
  color: #94a3b8;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.hud-banner-panel {
  width: 100%;
  text-align: center;
  padding: 16px;
}

.banner-frame {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1115;
}

.banner-caption {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  color: #64748b;
  letter-spacing: 2px;
  display: block;
  margin-top: 12px;
  text-transform: uppercase;
}

/* ==========================================
   POLL RESULT BARS (JS-BUILT)
========================================== */

.status-check {
  color: #22c55e;
}

.status-choice {
  color: #38bdf8;
}

.result-name.is-user-choice {
  font-weight: 700;
  color: #38bdf8;
}

.result-you {
  color: #38bdf8;
  font-size: 0.8rem;
  margin-left: 6px;
}

.result-bar-fill.is-user-choice {
  background: #38bdf8;
}

.compare .stat-placeholder,
.stat-placeholder {
  color: #94a3b8;
}

/* ==========================================
   DREAM TEAM BUILDER
========================================== */

.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}

.builder-slot {
  min-height: 280px;
  justify-content: center;
}

.builder-slot-art {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.builder-slot-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-slot.is-filled {
  border-style: solid;
  border-color: rgba(255, 87, 34, 0.6);
}

.clear-player-btn {
  margin-top: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.builder-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.builder-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.builder-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 24px));
  max-height: 80vh;
  overflow: auto;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.builder-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.builder-modal-header h2 {
  font-family: 'Oswald', sans-serif;
  color: #f8fafc;
  letter-spacing: 1px;
}

.builder-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #f8fafc;
  cursor: pointer;
}

.builder-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.builder-player-option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  cursor: pointer;
}

.builder-player-option:hover:not(:disabled) {
  border-color: #38bdf8;
}

.builder-player-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.builder-player-option img,
.builder-player-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
  flex-shrink: 0;
}

.builder-player-placeholder {
  display: grid;
  place-items: center;
  font-family: 'Oswald', sans-serif;
}

.builder-player-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.builder-player-copy em {
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: normal;
}

.builder-empty {
  color: #94a3b8;
}

.extra-card-soon {
  cursor: default;
  opacity: 0.72;
}

.extra-card-soon:hover {
  transform: none;
}

.extra-card-icon {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
}

.extra-card-icon i {
  font-size: 3.2rem;
}

.extra-card-icon-poll {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.extra-card-icon-poll i { color: #c084fc; }

.extra-card-icon-clover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.extra-card-icon-clover i { color: #4ade80; }

.extra-card-icon-food {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.extra-card-icon-food i { color: #fb923c; }

.extra-card-icon-contact {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.extra-card-icon-contact i { color: #22d3ee; }

.extra-card-icon-fanart {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.28) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.extra-card-icon-fanart i { color: #f9a8d4; }

.extra-card-icon-forum {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.extra-card-icon-forum i { color: #fbbf24; }

.hub-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #00e5ff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hub-back-link:hover {
  text-decoration: underline;
}

.contact-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.contact-panel {
  background: #161920;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.contact-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-heading i {
  color: #00e5ff;
}

.contact-copy,
.contact-list,
.contact-disclaimer,
.contact-status {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
}

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

.contact-list li + li {
  margin-top: 8px;
}

.contact-email-display {
  margin: 16px 0 0;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  color: #f8fafc;
}

.contact-email-display a {
  color: #00e5ff;
  text-decoration: none;
  word-break: break-all;
}

.contact-email-display a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 2px solid rgba(0, 229, 255, 0.45);
  outline-offset: 1px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-actions .cta-builder-btn {
  margin-top: 0;
}

.contact-mail-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-mail-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.contact-status {
  min-height: 1.4em;
  color: #7dd3fc;
  margin: 0;
}

.contact-disclaimer {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.contact-disclaimer a {
  color: #00e5ff;
}

.fanart-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}

.fanart-section-head .contact-copy {
  margin: 0;
}

.fanart-status {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.fanart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.fanart-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fanart-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 10px 24px rgba(0, 229, 255, 0.12);
}

.fanart-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #0f172a;
  display: block;
}

.fanart-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 14px;
}

.fanart-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fanart-card-meta strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.4px;
  color: #f8fafc;
}

.fanart-card-meta span,
.fanart-card-meta em {
  font-size: 0.8rem;
  color: #94a3b8;
}

.fanart-card-meta em {
  font-style: normal;
  color: #7dd3fc;
}

.fanart-card-desc {
  margin: 4px 0 0;
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fanart-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.8);
  color: #cbd5e1;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.fanart-like-btn i {
  color: #94a3b8;
}

.fanart-like-btn:hover,
.fanart-like-btn:focus-visible {
  border-color: rgba(244, 114, 182, 0.55);
  color: #fce7f3;
  outline: none;
}

.fanart-like-btn.is-liked {
  border-color: rgba(244, 114, 182, 0.6);
  background: rgba(244, 114, 182, 0.12);
  color: #fce7f3;
}

.fanart-like-btn.is-liked i {
  color: #f472b6;
}

.fanart-like-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.fanart-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(2, 6, 23, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 24px;
  gap: 12px;
}

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

.fanart-lightbox.is-open {
  display: flex !important;
}

.fanart-lightbox img {
  max-width: min(960px, 100%);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.fanart-lightbox-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: #e2e8f0;
}

.fanart-lightbox-meta p {
  margin: 0;
}

.fanart-lightbox-desc {
  max-width: min(640px, 92vw);
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.fanart-lightbox-meta .fanart-like-btn {
  margin-top: 4px;
}

.fanart-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  cursor: pointer;
}

body.fanart-lightbox-open {
  overflow: hidden;
}

#fanartSubmitBtn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.forum-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 60px;
}

.forum-status {
  min-height: 1.3em;
  margin: 0;
  color: #7dd3fc;
  font-size: 0.95rem;
}

.forum-auth:has(.forum-signed-in) {
  padding: 16px 28px;
}

.forum-setup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px 16px 4px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
}

.forum-setup .cta-builder-btn {
  margin-top: 0;
  width: fit-content;
  text-decoration: none;
}

.forum-setup .contact-list {
  margin: 0;
}

.forum-setup .contact-list a,
.forum-setup .contact-copy a {
  color: #00e5ff;
}

.forum-setup .forum-text-btn {
  margin-top: 4px;
}

.forum-signed-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.forum-signed-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.forum-signed-in .contact-copy {
  margin: 0;
}

.forum-as-name {
  color: #00e5ff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.4px;
}

.forum-auth-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 8px;
}

.forum-auth-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.55);
  color: #94a3b8;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.forum-auth-tab:hover,
.forum-auth-tab.is-active {
  border-color: rgba(0, 229, 255, 0.55);
  color: #e0f2fe;
}

.forum-auth-tab.is-active {
  background: rgba(0, 229, 255, 0.12);
}

.forum-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.forum-auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.forum-auth-actions .contact-status {
  margin: 0;
  flex: 1;
  min-width: 180px;
}

.forum-auth-actions .cta-builder-btn {
  margin-top: 0;
}

.forum-posting-as {
  margin: 0;
  color: #7dd3fc;
  font-size: 0.85rem;
}

.forum-composer-locked {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
  color: #cbd5e1;
}

.forum-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.forum-toolbar .cta-builder-btn,
.forum-page .contact-form .cta-builder-btn,
.forum-chat-actions .cta-builder-btn {
  margin-top: 0;
}

.forum-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #00e5ff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.forum-text-btn:hover {
  text-decoration: underline;
}

.forum-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 229, 255, 0.55);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  color: #e0f2fe;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.forum-back-btn:hover,
.forum-back-btn:focus-visible {
  transform: translateX(-2px);
  border-color: #00e5ff;
  background: rgba(0, 229, 255, 0.22);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.28);
  outline: none;
}

.forum-board-list,
.forum-thread-list,
.forum-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forum-board-row,
.forum-thread-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.forum-board-row:hover,
.forum-thread-row:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 8px 18px rgba(0, 229, 255, 0.1);
}

.forum-board-copy,
.forum-thread-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.forum-board-copy strong,
.forum-thread-main strong {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.4px;
  color: #f8fafc;
}

.forum-board-copy span,
.forum-thread-main span,
.forum-board-count,
.forum-thread-count {
  font-size: 0.85rem;
  color: #94a3b8;
}

.forum-board-count,
.forum-thread-count {
  flex-shrink: 0;
  font-style: normal;
  color: #7dd3fc;
}

.forum-pill {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.forum-pill-mute {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.forum-post {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
}

.forum-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.forum-post-meta strong {
  color: #00e5ff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.4px;
}

.forum-post-body {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.forum-comment-log {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 8px 0 18px;
}

.forum-comment {
  min-width: 0;
}

.forum-comment.is-op {
  padding: 14px 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
}

.forum-comment-title {
  margin: 0 0 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
  color: #f8fafc;
}

.forum-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.forum-comment-meta strong {
  color: #00e5ff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.4px;
}

.forum-comment-replies {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 0 8px;
  padding: 4px 0 0 14px;
  border-left: 2px solid rgba(0, 229, 255, 0.35);
}

.forum-comment.is-hidden {
  opacity: 0.55;
}

.forum-comment-actions,
.forum-report-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.forum-report-form {
  width: 100%;
}

.forum-report-form .forum-chat-name {
  flex: 1;
  min-width: 180px;
}

.forum-mod-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
  color: #67e8f9;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}

.forum-mod-btn:hover,
.forum-mod-btn:focus-visible {
  background: rgba(0, 229, 255, 0.18);
  outline: none;
}

.forum-mod-btn.is-danger {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
}

.forum-mod-btn.is-danger:hover,
.forum-mod-btn.is-danger:focus-visible {
  background: rgba(185, 28, 28, 0.45);
}

.mod-queue {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mod-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.5);
}

.mod-item-meta {
  color: #94a3b8;
  font-size: 0.8rem;
}

.mod-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.mod-fanart-thumb {
  width: 100%;
  max-width: 280px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  background: #0f172a;
}

.forum-comment-replies .forum-comment-replies {
  border-left-color: rgba(148, 163, 184, 0.4);
}

.forum-chat-shell {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  padding-bottom: 20px;
}

.forum-chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 58vh;
  min-height: 320px;
  overflow-y: auto;
  padding: 12px 8px 16px;
  margin: 8px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.45);
}

.forum-chat-empty {
  margin: auto;
  color: #94a3b8;
  text-align: center;
}

.forum-chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 86%;
}

.forum-chat-msg.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.forum-chat-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.16);
  color: #00e5ff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
}

.forum-chat-bubble {
  min-width: 0;
  padding: 10px 12px 8px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-chat-msg.is-mine .forum-chat-bubble {
  border-radius: 14px 14px 4px 14px;
  background: rgba(8, 51, 68, 0.95);
  border-color: rgba(0, 229, 255, 0.28);
}

.forum-chat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.forum-chat-meta strong {
  color: #00e5ff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.4px;
}

.forum-chat-topic,
.forum-chat-reply-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: #7dd3fc;
}

.forum-chat-reply-btn {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #67e8f9;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}

.forum-chat-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.1);
  color: #e0f2fe;
  font-size: 0.85rem;
}

.forum-reply-bar[hidden] {
  display: none !important;
}

.forum-reply-bar .forum-text-btn {
  margin: 0;
}

.forum-chat-fields {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
}

.forum-chat-name,
.forum-chat-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
}

.forum-chat-input {
  resize: vertical;
  min-height: 44px;
}

.forum-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.forum-chat-actions .contact-status {
  margin: 0;
}

@media (max-width: 640px) {
  .forum-board-row,
  .forum-thread-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-chat-fields {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   ZONE MODE CHROME
========================================== */

html.zone-mode-active,
html.zone-mode-active body,
body.zone-mode-active {
  background-color: #030712;
}

body.zone-mode-active header {
  background: #030712;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.12);
}

body.zone-mode-active .logo {
  color: #f8fafc;
}

body.zone-mode-active nav a {
  color: #e2e8f0;
}

body.zone-mode-active nav a:hover,
body.zone-mode-active nav a.active {
  color: #38bdf8;
}

body.zone-mode-active .nav-toggle {
  background: #38bdf8;
  color: #0f172a;
}

body.zone-mode-active .characters-hero,
body.zone-mode-active .hero {
  border-bottom-color: #38bdf8;
}

body.zone-mode-active .quick-card,
body.zone-mode-active .category-card,
body.zone-mode-active .poll-card,
body.zone-mode-active .contact-panel,
body.zone-mode-active .fanart-card,
body.zone-mode-active .forum-board-row,
body.zone-mode-active .forum-thread-row,
body.zone-mode-active .forum-post,
body.zone-mode-active .quiz-card-styled {
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
}

body.zone-mode-active .section-title h2 {
  color: #f8fafc;
}
#backToTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 12px 18px;
  border-radius: 24px;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
}

#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#backToTopBtn:hover {
  transform: translateY(-3px);
  background: #334155;
  color: #ffffff;
}
/* ==========================================
   RESPONSIVE HEADER + HUD
========================================== */

@media (max-width: 1280px) {
  header {
    flex-wrap: wrap;
    padding: 14px 18px;
  }

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

  .header-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  header.nav-open .header-actions {
    display: flex;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  nav a {
    margin: 0;
    padding: 10px 4px;
  }

  .zone-toggle-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: clip;
  }

  header {
    padding: 12px 16px;
  }

  .logo {
    font-size: 1.25rem;
    min-width: 0;
  }

  .logo .sub-logo {
    display: none;
  }

  .container,
  .hud-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .characters-hero {
    padding: 36px 16px 28px;
  }

  .characters-hero h1 {
    letter-spacing: 1px;
    word-break: break-word;
  }

  .filter-wrapper {
    margin: 20px 16px;
    padding: 16px;
    gap: 14px;
  }

  .filter-group,
  .search-group {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  .reset-btn {
    align-self: stretch;
    width: 100%;
    height: auto;
    justify-content: center;
  }

  .directory-grid {
    gap: 16px;
    margin-top: 24px;
  }

  .directory-grid .quick-card {
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 260px;
  }

  .hud-top-bar {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
    justify-items: center;
  }

  .hud-title h1 {
    font-size: 2rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .hud-team-tag {
    overflow-wrap: anywhere;
  }

  .hud-stage {
    flex-direction: column;
    min-height: 0;
    align-items: stretch;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .family-photos {
    grid-template-columns: 1fr;
  }

  .extra-cast {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hud-center-character {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    height: auto;
    min-height: 240px;
    order: -1;
    pointer-events: auto;
  }

  .center-pose-img {
    height: 280px;
    max-height: 280px;
  }

  .character-aura {
    width: 260px;
    height: 260px;
  }

  .hud-panel.hud-left,
  .hud-panel.hud-right,
  .hud-panel {
    width: 100%;
    margin: 0;
    padding: 16px;
  }

  .skills-overlay {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    margin-top: 12px;
  }

  .hexagon-label.top-right,
  .hexagon-label.bottom-right {
    right: 0;
  }

  .hexagon-label.top-left,
  .hexagon-label.bottom-left {
    left: 0;
  }

  .vital-panel-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
  }

  .vital-panel-value {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .hud-container [style*="minmax(280px"],
  .hud-container [style*="minmax(240px"],
  .hud-container [style*="minmax(220px"],
  .hud-container [style*="minmax(180px"] {
    grid-template-columns: 1fr !important;
  }

  .hero {
    min-height: 50vh;
    padding: 40px 6%;
  }

  .hero-content h1,
  .characters-hero h1 {
    font-size: 2.2rem;
  }

  .team-stats-banner {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .stat-divider {
    width: 60%;
    height: 1px;
  }

  .poll-card {
    padding: 20px 16px;
  }

  footer {
    padding: 16px;
    margin-top: 48px;
  }
}

@media (max-width: 600px) {
  .hud-title h1 {
    font-size: 1.7rem;
  }

  .characters-hero h1,
  .hero-content h1 {
    font-size: 1.85rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .hexagon-chart-box,
  .hexagon-chart-box-team {
    width: 170px;
    height: 170px;
  }

  .hexagon-label,
  .hexagon-label-team {
    font-size: 0.55rem;
  }

  .center-pose-img {
    height: 230px;
    max-height: 230px;
  }

  .quick-cards-grid .quick-card {
    min-width: 210px;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  body.zone-mode-active::before {
    box-shadow: inset 0 0 40px 8px rgba(56, 189, 248, 0.35);
  }
}

