/* ==========================================================================
   PANS & DUNGEONS - OFFICIAL WEBSITE STYLESHEET
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #0b0c10;
  --bg-card: rgba(22, 25, 37, 0.75);
  --bg-card-hover: rgba(30, 35, 52, 0.9);
  --bg-glass: rgba(18, 21, 31, 0.65);
  
  --primary-gold: #f59e0b;
  --primary-amber: #d97706;
  --primary-light: #fef3c7;
  --tavern-orange: #f97316;
  
  --crimson: #e11d48;
  --crimson-glow: rgba(225, 29, 72, 0.35);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.3);
  --emerald: #10b981;
  --purple: #8b5cf6;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(245, 158, 11, 0.4);
  
  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  --font-comic: 'MedievalSharp', cursive;
  
  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.25;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0c10;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.55);
}

.btn-accent {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.btn-outline:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fff;
  border-color: #fef08a;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-crimson {
  background: rgba(225, 29, 72, 0.18);
  color: #fb7185;
  border: 1px solid rgba(225, 29, 72, 0.4);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(11, 12, 16, 0.96);
  border-bottom-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.8);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.5));
}

.nav-brand .amp {
  color: var(--primary-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gold);
  border-radius: 2px;
}

.highlight-link {
  color: #fbbf24;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition-fast);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  padding: 8.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 25%, rgba(245, 158, 11, 0.12) 0%, rgba(11, 12, 16, 0.95) 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.title-sub {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--primary-gold);
  margin-bottom: 0.5rem;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #d1d5db;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

/* Highlights Bar */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.8rem;
  box-shadow: var(--shadow-card);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
}

.highlight-icon {
  font-size: 1.8rem;
}

.highlight-text strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
}

.highlight-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero Image Preview Container */
.hero-image-container {
  position: relative;
  z-index: 2;
  max-width: 1050px;
  width: 100%;
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.hero-card-glow {
  position: absolute;
  top: -10%;
  left: 10%;
  width: 80%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-main-img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image-container:hover .hero-main-img {
  transform: scale(1.02);
}

.hero-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.95), transparent);
  font-size: 0.92rem;
  color: #e5e7eb;
  font-weight: 500;
  text-align: left;
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURES / ABOUT
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 1.4rem;
}

.feature-icon-wrapper.gold { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.feature-icon-wrapper.crimson { background: rgba(225, 29, 72, 0.15); border: 1px solid rgba(225, 29, 72, 0.3); }
.feature-icon-wrapper.amber { background: rgba(217, 119, 6, 0.15); border: 1px solid rgba(217, 119, 6, 0.3); }
.feature-icon-wrapper.cyan { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); }
.feature-icon-wrapper.green { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.feature-icon-wrapper.purple { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); }

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   TIMELINE / CORE LOOP
   ========================================================================== */

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-gold), var(--crimson));
  z-index: 0;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  z-index: 1;
}

.timeline-badge {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #11141f;
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.timeline-content {
  flex-grow: 1;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-content {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

.highlight-phase .timeline-content {
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.2);
}

.highlight-phase .timeline-badge {
  border-color: var(--crimson);
  color: var(--crimson);
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.4);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-location {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-phase {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-muted);
}

.timeline-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   CLASSES ROSTER
   ========================================================================== */

.class-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-gold);
  color: #0b0c10;
  border-color: var(--primary-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-bottom: 4rem;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.class-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.class-card-header {
  padding: 1.2rem 1.4rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.class-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.class-badge.tank { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.class-badge.melee { background: rgba(225, 29, 72, 0.2); color: #fb7185; border: 1px solid rgba(225, 29, 72, 0.4); }
.class-badge.range { background: rgba(6, 182, 212, 0.2); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.4); }
.class-badge.support { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.4); }

.class-emoji {
  font-size: 1.6rem;
}

.class-card-body {
  padding: 1.4rem;
  flex-grow: 1;
}

.class-name {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.class-parent {
  font-size: 0.82rem;
  color: var(--primary-gold);
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
}

.class-weapons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.weapon-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #e5e7eb;
}

.class-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.class-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #d1d5db;
}

.stat-bar {
  width: 55%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-gold), var(--crimson));
  border-radius: 9999px;
}

.class-footer {
  padding: 0.8rem 1.4rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: #fbbf24;
  font-weight: 500;
}

/* Spotlight Card */
.class-spotlight {
  background: linear-gradient(135deg, rgba(26, 29, 44, 0.85), rgba(16, 18, 28, 0.85));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
}

.spotlight-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-img {
  width: 100%;
  height: auto;
  display: block;
}

.spotlight-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary-gold);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.spotlight-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.spotlight-info p {
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.spotlight-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.spotlight-feature strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.spotlight-feature span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MINIGAME: D&D DICE ROLLER
   ========================================================================== */

.dice-arena-card {
  background: radial-gradient(circle at 50% 30%, rgba(35, 30, 20, 0.7) 0%, rgba(15, 17, 24, 0.95) 75%);
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.2);
  padding: 2.5rem;
}

.dice-table {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 2rem;
  align-items: stretch;
}

/* Character Sheet */
.hero-sheet {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}

.sheet-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sheet-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  border: 2px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.sheet-header h4 {
  font-size: 1.15rem;
}

.sheet-sub {
  font-size: 0.8rem;
  color: var(--primary-gold);
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex-grow: 1;
}

.stat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.stat-pill.updated {
  border-color: var(--primary-gold);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.stat-val {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.sheet-gold {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.sheet-gold strong {
  color: #fbbf24;
}

/* Rolling Zone */
.dice-roll-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
}

.dice-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.die-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.die {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.die.d6 {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 3px solid #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.die.d4 {
  background: linear-gradient(135deg, #7c2d12, #451a03);
  border: 3px solid #fb923c;
  color: #fdba74;
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.25);
}

.die.d-chaos {
  background: linear-gradient(135deg, #831843, #500724);
  border: 3px solid #f43f5e;
  color: #fda4af;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.4);
}

.die.rolling {
  animation: rollShake 0.6s ease-in-out infinite alternate;
}

@keyframes rollShake {
  0% { transform: rotate(-15deg) scale(0.95); }
  100% { transform: rotate(15deg) scale(1.08); }
}

.die-plus {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-gold);
}

.die-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.die-result-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  min-height: 1.5rem;
}

/* Chaos Toggle */
.chaos-toggle-wrapper {
  margin-bottom: 1.8rem;
}

.chaos-toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  user-select: none;
}

.chaos-toggle input {
  display: none;
}

.slider {
  width: 46px;
  height: 24px;
  background-color: #374151;
  border-radius: 9999px;
  position: relative;
  transition: 0.3s;
}

.slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.chaos-toggle input:checked + .slider {
  background-color: var(--crimson);
}

.chaos-toggle input:checked + .slider::before {
  transform: translateX(22px);
}

.toggle-text {
  font-size: 0.92rem;
  color: #d1d5db;
}

.btn-roll {
  width: 100%;
  max-width: 360px;
  padding: 1.1rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.roll-banner {
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: #e5e7eb;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Roll History */
.roll-history {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}

.roll-history h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  max-height: 260px;
  flex-grow: 1;
  padding-right: 0.4rem;
}

.history-item {
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  border-left: 3px solid var(--primary-gold);
}

.history-item.crit { border-left-color: #10b981; }
.history-item.fumble { border-left-color: #e11d48; }

.history-empty {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 2rem;
}

.btn-reset {
  margin-top: 1rem;
  align-self: center;
}

/* ==========================================================================
   STATUS EFFECTS MATRIX
   ========================================================================== */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}

.status-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.status-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.status-card.negative { border-left: 4px solid var(--crimson); }
.status-card.positive { border-left: 4px solid var(--emerald); }

.status-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.status-icon.red { background: rgba(225, 29, 72, 0.2); }
.status-icon.green { background: rgba(16, 185, 129, 0.2); }
.status-icon.purple { background: rgba(139, 92, 246, 0.2); }
.status-icon.yellow { background: rgba(234, 179, 8, 0.2); }
.status-icon.gray { background: rgba(107, 114, 128, 0.2); }
.status-icon.orange { background: rgba(249, 115, 22, 0.2); }
.status-icon.cyan { background: rgba(6, 182, 212, 0.2); }
.status-icon.amber { background: rgba(245, 158, 11, 0.2); }
.status-icon.emerald { background: rgba(16, 185, 129, 0.2); }

.status-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.status-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.status-badge.neg { background: rgba(225, 29, 72, 0.15); color: #fb7185; }
.status-badge.pos { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

.status-effect {
  font-size: 0.92rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.status-visual {
  background: rgba(0, 0, 0, 0.28);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: auto;
}

.vis-tag {
  display: block;
  font-weight: 700;
  color: var(--primary-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.status-visual p {
  color: #9ca3af;
  font-style: italic;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.95) 15%, rgba(11, 12, 16, 0.4) 60%, transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.gallery-zoom-icon {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.4rem;
  background: rgba(0, 0, 0, 0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.gallery-overlay p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.8rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--primary-gold);
}

.lightbox-content {
  max-width: 1050px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 78vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-subtle);
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: #d1d5db;
  text-align: center;
}

/* ==========================================================================
   TECHNICAL SPECS & ROADMAP
   ========================================================================== */

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-bottom: 3.5rem;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
}

.spec-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.92rem;
}

.spec-card code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--primary-gold);
}

/* Roadmap */
.roadmap-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 3.5rem;
}

.roadmap-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.8rem;
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.roadmap-step {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.4rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--border-subtle);
}

.roadmap-step.done { border-left-color: var(--emerald); }
.roadmap-step.in-progress { border-left-color: var(--primary-gold); background: rgba(245, 158, 11, 0.08); }
.roadmap-step.pending { border-left-color: var(--text-dim); }

.step-indicator {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.roadmap-step.done .step-indicator { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.roadmap-step.in-progress .step-indicator { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.step-info strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.step-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* GDD Banner */
.gdd-download-banner {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.gdd-banner-text h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.gdd-banner-text p {
  color: #d1d5db;
  font-size: 0.95rem;
  max-width: 680px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: #06070a;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: var(--primary-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mini-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .class-spotlight {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .dice-table {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 16, 0.98);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .nav-menu.open {
    transform: translateY(0);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-highlights {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-badge {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   BETA SIGNUP SECTION (NETLIFY FORMS)
   ========================================================================== */

.beta-section {
  background: radial-gradient(circle at 50% 20%, rgba(225, 29, 72, 0.12) 0%, rgba(11, 12, 16, 0.98) 75%);
}

.beta-card {
  background: linear-gradient(135deg, rgba(26, 29, 44, 0.92), rgba(16, 18, 28, 0.95));
  border: 2px solid rgba(225, 29, 72, 0.45);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(225, 29, 72, 0.2);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.beta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-gold), var(--crimson), var(--primary-gold));
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #d1d5db;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.15rem;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.input-wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
}

.input-wrapper select option {
  background: #11141f;
  color: #fff;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
  background: rgba(0, 0, 0, 0.65);
}

.form-terms {
  margin-bottom: 2rem;
  text-align: left;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.terms-checkbox input {
  margin-top: 0.25rem;
  accent-color: var(--crimson);
  width: 18px;
  height: 18px;
}

.form-submit-wrapper {
  display: flex;
  justify-content: center;
}

.btn-submit-beta {
  width: 100%;
  max-width: 440px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.beta-success-card {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.beta-success-card .success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.beta-success-card h3 {
  font-size: 1.8rem;
  color: #34d399;
  margin-bottom: 0.8rem;
}

.beta-success-card p {
  font-size: 1.05rem;
  color: #d1d5db;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.success-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a7f3d0;
}

.beta-link-nav {
  color: #fb7185 !important;
  font-weight: 700;
}

/* ==========================================================================
   DONATIONS & CROWDFUNDING SECTION
   ========================================================================== */

.donations-section {
  background: radial-gradient(circle at 50% 25%, rgba(245, 158, 11, 0.1) 0%, rgba(11, 12, 16, 0.98) 70%);
}

.donation-link-nav {
  color: #fbbf24 !important;
  font-weight: 700;
}

/* Goal Tracker Card */
.goal-tracker-card {
  background: linear-gradient(135deg, rgba(30, 27, 20, 0.85), rgba(18, 20, 30, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.goal-title-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.goal-icon {
  font-size: 2.2rem;
  background: rgba(245, 158, 11, 0.15);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.goal-title-group h4 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.goal-title-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.goal-numbers {
  text-align: right;
}

.goal-current {
  display: block;
  font-size: 2rem;
  font-family: var(--font-heading);
  color: #fbbf24;
  line-height: 1;
}

.goal-target {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.goal-progress-bar {
  width: 100%;
  height: 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
  position: relative;
}

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #f59e0b, #ef4444);
  border-radius: 9999px;
  position: relative;
  transition: width 1s ease;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.goal-sparkle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: #fff;
  border-radius: 50%;
  filter: blur(2px);
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.goal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #d1d5db;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Tiers Grid */
.donation-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.tier-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.tier-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.15);
}

.tier-card.featured {
  border-color: var(--primary-gold);
  background: linear-gradient(135deg, rgba(32, 28, 20, 0.9), rgba(18, 21, 32, 0.9));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.2);
}

.tier-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0c10;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.tier-card-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.tier-icon {
  font-size: 3rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.tier-name {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.tier-price {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
}

.tier-frequency {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
}

.tier-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tier-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.tier-perks {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: #e5e7eb;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.tier-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
}

.perk-check {
  color: #34d399;
  font-weight: 800;
  flex-shrink: 0;
}

.tier-card-footer {
  margin-top: auto;
}

.tier-card-footer .btn {
  width: 100%;
}

/* Action Card & Gateways */
.donation-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .donation-action-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.custom-amount-zone h4,
.donation-gateways h4 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.custom-amount-zone p,
.donation-gateways p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.quick-amounts {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.btn-amount {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-amount:hover,
.btn-amount.active {
  background: var(--primary-gold);
  color: #0b0c10;
  border-color: var(--primary-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.custom-input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.amount-input-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 140px;
}

.currency-symbol {
  position: absolute;
  left: 0.9rem;
  font-size: 1.2rem;
  color: var(--primary-gold);
  font-weight: 700;
}

.amount-input-box input {
  width: 100%;
  padding: 0.8rem 0.8rem 0.8rem 2.4rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-body);
}

.amount-tip {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Gateway Buttons */
.gateway-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.gateway-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  background: rgba(0, 0, 0, 0.3);
}

.gateway-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gateway-btn.kofi:hover {
  background: rgba(255, 95, 95, 0.15);
  border-color: #ff5f5f;
}

.gateway-btn.paypal:hover {
  background: rgba(0, 112, 186, 0.15);
  border-color: #0070ba;
}

.gateway-btn.patreon:hover {
  background: rgba(255, 66, 77, 0.15);
  border-color: #ff424d;
}

.gw-icon {
  font-size: 1.6rem;
}

.gw-info strong {
  display: block;
  font-size: 0.98rem;
  color: #fff;
}

.gw-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stripe-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0;
  justify-content: flex-start;
}

.trust-item {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.donation-sim-trigger {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.donation-guarantee-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 800px;
  margin: 0 auto;
}

/* Celebration Toast Notification */
.donation-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, rgba(26, 21, 46, 0.98), rgba(15, 17, 26, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.donation-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.donation-toast-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.donation-toast-body h5 {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
  color: #fbbf24;
}

.donation-toast-body p {
  margin: 0;
  font-size: 0.84rem;
  color: #d1d5db;
  line-height: 1.35;
}

.donation-toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0 0.3rem;
  margin-left: auto;
  line-height: 1;
}

.donation-toast-close:hover {
  color: #fff;
}

/* Discord Community Button */
.btn-discord {
  background: #5865f2;
  color: #fff;
  border: 1px solid rgba(88, 101, 242, 0.4);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-discord:hover {
  background: #4752c4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

.gateway-btn.stripe-main {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.22), rgba(11, 12, 16, 0.8));
  border: 1px solid rgba(99, 91, 255, 0.55);
  box-shadow: 0 4px 15px rgba(99, 91, 255, 0.2);
}

.gateway-btn.stripe-main:hover {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.35), rgba(20, 24, 38, 0.9));
  border-color: #635bff;
  box-shadow: 0 8px 25px rgba(99, 91, 255, 0.4);
}

.gw-badge-active {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: #635bff;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq-section {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 12, 16, 0.8) 50%, transparent 100%);
  padding: 80px 0;
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
}

.faq-item:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.faq-item.active {
  border-color: var(--primary-gold);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-gold);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--primary-gold);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 28px 24px 28px;
}

/* ==========================================================================
   PRESS KIT SECTION
   ========================================================================== */
.press-section {
  padding: 80px 0;
  position: relative;
}

.press-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.press-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--primary-gold), var(--cyan));
}

.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .press-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.factsheet-box {
  background: rgba(11, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
}

.factsheet-box h4 {
  font-family: var(--font-heading);
  color: var(--primary-gold);
  margin-bottom: 16px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.factsheet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
}

.factsheet-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.factsheet-list li span:first-child {
  color: var(--text-muted);
}

.factsheet-list li span:last-child {
  color: var(--text-main);
  font-weight: 600;
}

.press-download-cta {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-press-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ==========================================================================
   STEAM WISHLIST BANNER & LANGUAGE TOGGLE
   ========================================================================== */
.steam-wishlist-banner {
  margin: 36px auto 0;
  max-width: 960px;
  background: linear-gradient(135deg, rgba(23, 29, 37, 0.95) 0%, rgba(11, 20, 30, 0.9) 100%);
  border: 1px solid #1b2838;
  border-left: 4px solid #66c0f4;
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 25px rgba(102, 192, 244, 0.15);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.steam-wishlist-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.8), 0 0 35px rgba(102, 192, 244, 0.25);
  border-color: #66c0f4;
}

.steam-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.steam-badge-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #171a21, #1b2838);
  border: 1px solid #66c0f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #66c0f4;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(102, 192, 244, 0.3);
}

.steam-status-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #66c0f4;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.steam-banner-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.steam-banner-desc {
  font-size: 0.95rem;
  color: #8f98a0;
  margin: 0;
}

.btn-steam {
  background: linear-gradient(90deg, #1999ff 0%, #1075c7 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 15px rgba(25, 153, 255, 0.4);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-steam:hover {
  background: linear-gradient(90deg, #38abff 0%, #1999ff 100%);
  box-shadow: 0 6px 25px rgba(25, 153, 255, 0.6);
  transform: translateY(-2px);
}

.btn-lang-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-lang-toggle:hover {
  border-color: var(--primary-gold);
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-gold);
}

@media (max-width: 850px) {
  .steam-wishlist-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .steam-banner-left {
    flex-direction: column;
    gap: 12px;
  }
  .btn-steam {
    width: 100%;
    justify-content: center;
  }
}

