/* ==========================================================================
   FITLEVELING — MEDIEVAL PIXEL ART LANDING PAGE STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=MedievalSharp&family=Press+Start+2P&family=VT323&family=Cinzel+Decorative:wght@700&display=swap');

:root {
  /* Pixel RPG Color Palette */
  --bg-dark: #0c0b12;
  --bg-panel: #161424;
  --bg-panel-light: #201c33;
  --bg-card: #27223e;
  --parchment: #f6edd9;
  --parchment-dark: #dfcfab;
  --parchment-border: #8b6d3b;
  
  --gold-primary: #f59e0b;
  --gold-light: #fcd34d;
  --gold-dark: #b45309;
  --gold-glow: rgba(245, 158, 11, 0.4);

  --mana-blue: #38bdf8;
  --mana-dark: #0284c7;
  --health-green: #22c55e;
  --health-dark: #15803d;
  --danger-red: #ef4444;
  --danger-dark: #b91c1c;
  --royal-purple: #8b5cf6;
  --royal-purple-dark: #5b21b6;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #292524;

  --border-wood: #451a03;
  --border-stone: #334155;
  --border-gold: #d97706;

  /* Typography */
  --font-pixel: 'Press Start 2P', monospace;
  --font-retro: 'VT323', monospace;
  --font-medieval: 'Cinzel Decorative', 'MedievalSharp', serif;
  --font-body: 'MedievalSharp', cursive, serif;

  /* Pixel borders */
  --pixel-border-gold: 4px solid var(--gold-primary);
  --pixel-shadow: 0 4px 0 #000, 0 8px 0 rgba(0,0,0,0.6);
  --pixel-inset: inset -4px -4px 0px 0px rgba(0,0,0,0.5), inset 4px 4px 0px 0px rgba(255,255,255,0.15);
}

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

html {
  scroll-behavior: smooth;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 40%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
    linear-gradient(to bottom, #0c0b12, #13111f 50%, #0c0b12);
  background-attachment: fixed;
}

/* Pixel Background Grid Texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #0f0d1a;
  border-left: 2px solid #232136;
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border: 2px solid var(--gold-light);
  box-shadow: inset -2px -2px 0 #000;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Pixel Typography Utilities */
.font-pixel {
  font-family: var(--font-pixel);
  letter-spacing: -0.5px;
}
.font-retro {
  font-family: var(--font-retro);
  font-size: 1.4rem;
}
.font-medieval {
  font-family: var(--font-medieval);
}

.gold-text {
  color: var(--gold-light);
  text-shadow: 2px 2px 0 #000, 0 0 10px var(--gold-glow);
}

.purple-text {
  color: var(--royal-purple);
  text-shadow: 2px 2px 0 #000;
}

.green-text {
  color: var(--health-green);
  text-shadow: 2px 2px 0 #000;
}

/* Pixel Box Containers */
.pixel-panel {
  background: var(--bg-panel);
  border: 4px solid #4a4468;
  box-shadow: 
    inset -4px -4px 0px 0px #09080e, 
    inset 4px 4px 0px 0px #706897,
    var(--pixel-shadow);
  position: relative;
}

.pixel-panel-gold {
  background: var(--bg-panel);
  border: 4px solid var(--gold-primary);
  box-shadow: 
    inset -4px -4px 0px 0px var(--gold-dark), 
    inset 4px 4px 0px 0px var(--gold-light),
    0 8px 16px rgba(0,0,0,0.8),
    0 0 15px var(--gold-glow);
}

.parchment-panel {
  background: var(--parchment);
  color: var(--text-dark);
  border: 4px solid var(--parchment-border);
  box-shadow: 
    inset -4px -4px 0px 0px #b89f73, 
    inset 4px 4px 0px 0px #fff8e8,
    0 6px 12px rgba(0,0,0,0.6);
  position: relative;
}

/* Medieval Pixel Buttons */
.pixel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-pixel);
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  position: relative;
  transition: transform 0.05s ease, filter 0.2s ease;
  user-select: none;
  text-shadow: 2px 2px 0 #000;
}

.pixel-btn:active {
  transform: translateY(4px);
}

.pixel-btn-gold {
  background: var(--gold-primary);
  color: #1f1402;
  text-shadow: none;
  font-weight: bold;
  border: 3px solid #78350f;
  box-shadow: 
    inset -3px -3px 0 #b45309, 
    inset 3px 3px 0 #fef08a,
    0 5px 0 #451a03,
    0 8px 10px rgba(0,0,0,0.5);
}
.pixel-btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 
    inset -3px -3px 0 #d97706, 
    inset 3px 3px 0 #fffbeb,
    0 5px 0 #451a03,
    0 0 15px var(--gold-glow);
}
.pixel-btn-gold:active {
  box-shadow: 
    inset -2px -2px 0 #b45309, 
    inset 2px 2px 0 #fef08a,
    0 1px 0 #451a03;
}

.pixel-btn-purple {
  background: var(--royal-purple);
  color: #fff;
  border: 3px solid #3b0764;
  box-shadow: 
    inset -3px -3px 0 var(--royal-purple-dark), 
    inset 3px 3px 0 #c4b5fd,
    0 5px 0 #2e1065,
    0 8px 10px rgba(0,0,0,0.5);
}
.pixel-btn-purple:hover {
  background: #9333ea;
  box-shadow: 
    inset -3px -3px 0 #6b21a8, 
    inset 3px 3px 0 #ddd6fe,
    0 5px 0 #2e1065,
    0 0 15px rgba(147, 51, 234, 0.4);
}

.pixel-btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 3px solid #64748b;
  box-shadow: 
    inset -3px -3px 0 #1e293b, 
    inset 3px 3px 0 #94a3b8,
    0 5px 0 #0f172a;
}
.pixel-btn-outline:hover {
  background: #334155;
  border-color: var(--gold-primary);
}

.pixel-badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-pixel);
  font-size: 10px;
  background: #111;
  border: 2px solid var(--gold-primary);
  color: var(--gold-light);
  box-shadow: inset -2px -2px 0 #000;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(12, 11, 18, 0.95);
  border-bottom: 4px solid #383152;
  box-shadow: 0 4px 15px rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
  border: 2px solid var(--gold-primary);
  background: #1a162b;
}

.brand-name {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--gold-light);
  text-shadow: 2px 2px 0 #000;
  display: flex;
  flex-direction: column;
}

.brand-subtitle {
  font-family: var(--font-retro);
  font-size: 16px;
  color: var(--mana-blue);
  letter-spacing: 1px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-medieval);
  font-size: 16px;
  font-weight: bold;
  padding: 6px 10px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  text-shadow: 0 0 8px var(--gold-glow);
}

.nav-link:hover::after {
  content: '⚔️';
  position: absolute;
  left: -12px;
  font-size: 10px;
}

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

.audio-toggle-btn {
  background: #1e1b2e;
  border: 2px solid var(--gold-dark);
  color: var(--gold-light);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #4a4468;
}
.audio-toggle-btn:hover {
  background: #2b2742;
  border-color: var(--gold-primary);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 2px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 8px 12px;
  font-family: var(--font-pixel);
  font-size: 14px;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 140px;
  padding-bottom: 70px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-medieval);
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 3px 3px 0 #000, 0 0 20px rgba(139, 92, 246, 0.4);
}

.hero-title span {
  color: var(--gold-light);
  text-shadow: 3px 3px 0 #000, 0 0 20px var(--gold-glow);
}

.hero-description {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-rpg-hud {
  background: rgba(22, 20, 36, 0.85);
  border: 3px solid #4a4468;
  padding: 16px 20px;
  margin-bottom: 30px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
}

.hud-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-pixel);
  font-size: 11px;
}
.hud-stat-row:last-child {
  margin-bottom: 0;
}

.hud-bar-wrap {
  width: 55%;
  height: 14px;
  background: #000;
  border: 2px solid #555;
  position: relative;
  overflow: hidden;
}

.hud-bar-fill {
  height: 100%;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.4);
  transition: width 1s ease;
}

.hud-bar-hp {
  background: linear-gradient(to right, #dc2626, #ef4444);
  width: 100%;
}
.hud-bar-mp {
  background: linear-gradient(to right, #0284c7, #38bdf8);
  width: 90%;
}
.hud-bar-xp {
  background: linear-gradient(to right, #d97706, #fbbf24);
  width: 78%;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Phone Mockup Frame */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.pixel-torch {
  position: absolute;
  top: 10%;
  font-size: 24px;
  animation: torchFlicker 0.8s infinite alternate;
}
.torch-left { left: -20px; }
.torch-right { right: -20px; }

@keyframes torchFlicker {
  0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 6px #f59e0b); }
  50% { transform: scale(1.1) translateY(-2px); filter: drop-shadow(0 0 14px #ef4444); }
  100% { transform: scale(0.95) translateY(1px); filter: drop-shadow(0 0 10px #f59e0b); }
}

.phone-frame {
  width: 320px;
  background: #111019;
  border: 8px solid #3c3459;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 
    0 0 0 4px #1a162b,
    0 20px 40px rgba(0,0,0,0.9),
    0 0 30px rgba(139, 92, 246, 0.3);
  position: relative;
}

.phone-screen {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}

.floating-loot-badge {
  position: absolute;
  background: #1a162b;
  border: 3px solid var(--gold-primary);
  padding: 8px 12px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  animation: floatAnim 3s infinite ease-in-out;
}
.loot-1 {
  bottom: 20px;
  left: -30px;
  animation-delay: 0s;
}
.loot-2 {
  top: 40px;
  right: -30px;
  animation-delay: 1.5s;
}

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

/* ==========================================================================
   STATS BAR (BANNER CENTRADO)
   ========================================================================== */
.stats-banner-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto 80px auto;
  padding: 0 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 36px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.stat-icon {
  font-size: 2.2rem;
  background: rgba(0,0,0,0.4);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-dark);
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  color: var(--gold-light);
  line-height: 1.2;
}

.stat-label {
  font-family: var(--font-retro);
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-title {
  font-family: var(--font-medieval);
  font-size: 2.5rem;
  color: #fff;
  margin: 12px 0;
  text-shadow: 2px 2px 0 #000, 0 0 15px rgba(245, 158, 11, 0.3);
}

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

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}
.section-divider::before, .section-divider::after {
  content: '';
  height: 2px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--gold-primary));
}
.section-divider::after {
  background: linear-gradient(to left, transparent, var(--gold-primary));
}

/* ==========================================================================
   FEATURES / PILARES DEL REINO
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    inset -4px -4px 0px 0px #1a162b, 
    inset 4px 4px 0px 0px #a78bfa,
    0 12px 20px rgba(0,0,0,0.8),
    0 0 15px rgba(139, 92, 246, 0.4);
}

.feature-icon-wrap {
  width: 58px;
  height: 58px;
  background: #110e1c;
  border: 3px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow: inset -2px -2px 0 #000;
}

.feature-title {
  font-family: var(--font-medieval);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 12px;
  text-shadow: 1px 1px 0 #000;
}

.feature-desc {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  background: rgba(0,0,0,0.5);
  border: 1px solid #4a4468;
  padding: 3px 8px;
  font-family: var(--font-retro);
  font-size: 1rem;
  color: var(--mana-blue);
}

/* Exercises Demo Showcase */
.exercises-showcase {
  margin-top: 50px;
  padding: 30px;
  background: #12101e;
  border: 4px solid #332d4a;
}

.exercises-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 24px;
}

.exercises-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.exercise-item {
  background: #1b172a;
  border: 2px solid #4a4468;
  padding: 12px;
  text-align: center;
  transition: border-color 0.2s ease;
}
.exercise-item:hover {
  border-color: var(--gold-primary);
}

.exercise-img-wrap {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #090810;
  margin-bottom: 8px;
  border: 1px solid #2d2842;
}

.exercise-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.exercise-name {
  font-family: var(--font-retro);
  font-size: 1.2rem;
  color: #fff;
}

/* ==========================================================================
   BESTIARY & RANKS (TABBED SHOWCASE)
   ========================================================================= */
.tabs-control {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 22px;
  font-family: var(--font-pixel);
  font-size: 12px;
  background: #161424;
  color: var(--text-muted);
  border: 3px solid #4a4468;
  cursor: pointer;
  box-shadow: inset -3px -3px 0 #09080e, 0 4px 0 #000;
  transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--bg-card);
  color: var(--gold-light);
  border-color: var(--gold-primary);
  box-shadow: 
    inset -3px -3px 0 var(--gold-dark), 
    inset 3px 3px 0 var(--gold-light),
    0 4px 0 #000, 
    0 0 15px var(--gold-glow);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Ranks Grid */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rank-card {
  padding: 20px;
  text-align: center;
  background: #171526;
  border: 3px solid #3c3656;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.rank-card:hover {
  transform: scale(1.03);
  border-color: var(--gold-primary);
}

.rank-badge-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.rank-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.rank-req {
  font-family: var(--font-retro);
  font-size: 1.25rem;
  color: var(--mana-blue);
  margin-bottom: 6px;
}

.rank-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Bosses Grid */
.bosses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.boss-card {
  padding: 22px;
  background: #151323;
  border: 3px solid #451a03;
  box-shadow: 
    inset -4px -4px 0 #000, 
    inset 4px 4px 0 #78350f,
    0 6px 12px rgba(0,0,0,0.7);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.boss-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(220, 38, 38, 0.15), transparent 70%);
  pointer-events: none;
}

.boss-badge-tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-pixel);
  font-size: 9px;
  margin-bottom: 8px;
  align-self: flex-start;
  border: 1px solid #78350f;
  background: rgba(0,0,0,0.6);
}

.badge-rank-c { color: var(--health-green); border-color: var(--health-dark); }
.badge-rank-b { color: var(--gold-light); border-color: var(--gold-dark); }
.badge-rank-a { color: var(--danger-red); border-color: var(--danger-dark); }
.badge-rank-s { color: var(--mana-blue); border-color: var(--mana-dark); }
.badge-clan { color: var(--gold-light); border-color: var(--gold-primary); }

.boss-img-wrap {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0812;
  border: 2px solid #4a1d1d;
  margin-bottom: 16px;
  overflow: hidden;
}

.boss-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.8));
  transition: transform 0.3s ease;
}
.boss-card:hover .boss-img-wrap img {
  transform: scale(1.08);
}

.boss-name {
  font-family: var(--font-medieval);
  font-size: 1.35rem;
  color: #f87171;
  text-shadow: 1px 1px 0 #000;
  margin-bottom: 4px;
}

.boss-type {
  font-family: var(--font-retro);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.boss-stats {
  background: rgba(0,0,0,0.5);
  border: 1px solid #3d2323;
  padding: 10px;
  margin-bottom: 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
}

.boss-stat-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.boss-stat-line:last-child {
  margin-bottom: 0;
}

.boss-lore {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.45;
  flex-grow: 1;
}

/* ==========================================================================
   SISTEMA DE NOBLEZA, ARCAS REALES & ALTA CORTE
   ========================================================================== */
.nobility-intro-panel {
  padding: 24px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(22, 20, 36, 0.95) 0%, rgba(37, 27, 54, 0.9) 100%);
  border: 4px solid var(--gold-primary);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset 0 0 20px rgba(245, 158, 11, 0.15);
}

.nobility-intro-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.nobility-intro-icon-wrap {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0a17;
  border: 3px solid var(--gold-light);
  box-shadow: 0 0 15px var(--gold-glow);
}

.nobility-intro-icon-wrap img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
}

.nobility-intro-title {
  font-family: var(--font-medieval);
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 6px;
  text-shadow: 2px 2px 0 #000;
}

.nobility-intro-text {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.nobility-strata-wrapper {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.stratum-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stratum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: #151224;
  border-left: 6px solid var(--gold-primary);
  border-bottom: 2px solid #2f2a48;
}

.stratum-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stratum-badge {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.badge-stratum-vasallaje {
  background: #334155;
  color: #cbd5e1;
  border: 1px solid #64748b;
}

.badge-stratum-fijo {
  background: #14532d;
  color: #86efac;
  border: 1px solid #22c55e;
}

.badge-stratum-corte {
  background: #581c87;
  color: #d8b4fe;
  border: 1px solid #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.badge-stratum-trono {
  background: #78350f;
  color: #fef08a;
  border: 1px solid var(--gold-light);
  box-shadow: 0 0 12px var(--gold-glow);
  animation: pulseGoldGlow 2s infinite ease-in-out;
}

@keyframes pulseGoldGlow {
  0%, 100% { box-shadow: 0 0 8px var(--gold-glow); }
  50% { box-shadow: 0 0 20px rgba(253, 224, 71, 0.7); }
}

.stratum-name {
  font-family: var(--font-medieval);
  font-size: 1.3rem;
  color: var(--gold-light);
}

.stratum-seat-info {
  font-family: var(--font-retro);
  font-size: 1.25rem;
  color: var(--mana-blue);
}

.nobility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nobility-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.nobility-grid-1 {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

.nobility-card {
  padding: 20px;
  text-align: center;
  background: #171427;
  border: 3px solid #3c3558;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.nobility-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px rgba(0,0,0,0.8), 0 0 12px var(--gold-glow);
}

.nobility-card-throne {
  background: linear-gradient(180deg, #26193d 0%, #151124 100%);
  border: 4px solid var(--gold-light);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.2);
}

.nobility-card-throne:hover {
  border-color: #fff;
  box-shadow: 0 0 35px rgba(253, 224, 71, 0.7), inset 0 0 25px rgba(253, 224, 71, 0.3);
}

.nobility-badge-wrap {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

.nobility-badge-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
  transition: transform 0.3s ease;
}

.nobility-card:hover .nobility-badge-img {
  transform: scale(1.1);
}

.nobility-rank-level {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--mana-blue);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.nobility-rank-title {
  font-family: var(--font-medieval);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.nobility-gender-sub {
  font-family: var(--font-retro);
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.nobility-offering-box {
  width: 100%;
  padding: 8px 12px;
  background: #0d0b16;
  border: 1px solid #363050;
  border-radius: 4px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nobility-offering-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-muted);
}

.nobility-offering-value {
  font-family: var(--font-retro);
  font-size: 1.35rem;
  color: var(--gold-light);
  font-weight: bold;
}

.nobility-seat-tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-pixel);
  font-size: 8.5px;
  margin-bottom: 12px;
  border-radius: 2px;
}

.seat-open {
  background: rgba(34, 197, 94, 0.15);
  color: var(--health-green);
  border: 1px solid var(--health-dark);
}

.seat-competitive {
  background: rgba(139, 92, 246, 0.2);
  color: #d8b4fe;
  border: 1px solid var(--royal-purple);
}

.seat-supreme {
  background: rgba(245, 158, 11, 0.25);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.nobility-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-top: auto;
}

.nobility-coronation-banner {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(90deg, #1b122e 0%, #2f1947 50%, #1b122e 100%);
  border: 4px solid var(--gold-light);
  box-shadow: 0 8px 30px rgba(0,0,0,0.8), 0 0 20px var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.coronation-content {
  flex: 1;
  min-width: 280px;
}

.coronation-badge {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--gold-light);
  margin-bottom: 8px;
  display: inline-block;
}

.coronation-title {
  font-family: var(--font-medieval);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
}

.coronation-text {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.coronation-perks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.coronation-perk-item {
  padding: 10px 16px;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--gold-dark);
  font-family: var(--font-retro);
  font-size: 1.25rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   SCREENSHOTS GALLERY
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 16px;
  font-family: var(--font-pixel);
  font-size: 11px;
  background: #141220;
  border: 2px solid #3e3758;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: #25203b;
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  background: #100e1a;
  border: 3px solid #3c3459;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  aspect-ratio: 9 / 16;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 24px rgba(0,0,0,0.8), 0 0 15px var(--gold-glow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 11, 18, 0.95) 0%, rgba(12, 11, 18, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.gallery-title {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.gallery-tag {
  font-family: var(--font-retro);
  font-size: 1.1rem;
  color: var(--mana-blue);
}

/* ==========================================================================
   APP SPECS & TECHNICAL ARCHITECTURE
   ========================================================================== */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.spec-card {
  padding: 28px;
}

.spec-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid #3c3459;
  padding-bottom: 12px;
}

.spec-header-icon {
  font-size: 28px;
}

.spec-title {
  font-family: var(--font-medieval);
  font-size: 1.5rem;
  color: var(--gold-light);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spec-bullet {
  color: var(--gold-primary);
  font-family: var(--font-pixel);
  font-size: 10px;
  margin-top: 6px;
}

.spec-text strong {
  color: #fff;
  font-family: var(--font-body);
  font-weight: bold;
}

.spec-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 2px;
}

/* ==========================================================================
   POLICIES & LEGAL PARCHMENT SECTION
   ========================================================================== */
.policies-wrapper {
  background: var(--parchment);
  color: var(--text-dark);
  border: 6px solid var(--parchment-border);
  box-shadow: 
    inset -6px -6px 0px 0px #b89f73, 
    inset 6px 6px 0px 0px #fff8e8,
    0 12px 30px rgba(0,0,0,0.8);
  padding: 40px;
  position: relative;
}

.policies-wrapper::before {
  content: '📜';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  background: var(--parchment);
  border: 3px solid var(--parchment-border);
  padding: 4px 12px;
  border-radius: 8px;
}

.policy-nav-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid #b89f73;
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.policy-tab-btn {
  background: #e4d3b1;
  border: 2px solid var(--parchment-border);
  padding: 8px 16px;
  font-family: var(--font-medieval);
  font-size: 1.1rem;
  font-weight: bold;
  color: #451a03;
  cursor: pointer;
  transition: all 0.2s ease;
}

.policy-tab-btn.active, .policy-tab-btn:hover {
  background: #fff9ed;
  border-color: #78350f;
  color: #78350f;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.policy-tab-pane {
  display: none;
}
.policy-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.policy-article {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #c4af89;
}
.policy-article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-article-title {
  font-family: var(--font-medieval);
  font-size: 1.25rem;
  color: #78350f;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-article-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #292524;
}

.policy-article-body p {
  margin-bottom: 10px;
}
.policy-article-body p:last-child {
  margin-bottom: 0;
}

.policy-highlight-box {
  background: rgba(245, 158, 11, 0.15);
  border-left: 4px solid #b45309;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   DOWNLOAD / CTA BANNER SECTION
   ========================================================================== */
.cta-section {
  padding: 90px 0;
  text-align: center;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, #1c1830 0%, #291e4a 50%, #17142b 100%);
  border: 4px solid var(--gold-primary);
  padding: 50px 30px;
  box-shadow: 
    inset -4px -4px 0 #0c0a17, 
    inset 4px 4px 0 var(--gold-light),
    0 15px 35px rgba(0,0,0,0.8),
    0 0 25px var(--gold-glow);
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-family: var(--font-medieval);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 16px;
}

.cta-desc {
  max-width: 650px;
  margin: 0 auto 32px;
  font-size: 1.2rem;
  color: #cbd5e1;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #08070d;
  border-top: 4px solid #231f38;
  padding: 50px 0 30px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}
.footer-link:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 2px solid #1a1728;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-retro);
  font-size: 1.15rem;
}

/* ==========================================================================
   MODAL LIGHTBOX
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.lightbox-container {
  max-width: 900px;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  border: 4px solid var(--gold-primary);
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9), 0 0 20px var(--gold-glow);
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-height: 72vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--gold-light);
  margin-top: 14px;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--danger-dark);
  color: #fff;
  border: 2px solid #fff;
  width: 32px;
  height: 32px;
  font-family: var(--font-pixel);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1e1b2e;
  border: 2px solid var(--gold-primary);
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}
.lightbox-nav-prev { left: -60px; }
.lightbox-nav-next { right: -60px; }

/* ==========================================================================
   MODAL: FORMULARIO SÉ UN BETA TESTER
   ========================================================================== */
.tester-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
.tester-modal.active {
  display: flex !important;
  animation: fadeIn 0.2s ease;
}

.tester-modal-box {
  max-width: 680px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
  margin: auto;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(245, 158, 11, 0.3);
}

.tester-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--danger-dark);
  color: #fff;
  border: 2px solid var(--gold-light);
  width: 36px;
  height: 36px;
  font-family: var(--font-pixel);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 10;
}
.tester-close-btn:hover {
  transform: scale(1.1);
  background: var(--danger-red);
}

.tester-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.tester-modal-header .pixel-badge {
  font-size: 12px;
  padding: 6px 14px;
  letter-spacing: 1px;
}

.tester-modal-title {
  font-family: var(--font-medieval);
  font-size: 1.95rem;
  color: var(--gold-light);
  margin: 12px 0 6px;
  text-shadow: 2px 2px 0 #000;
  line-height: 1.25;
}

.tester-modal-subtitle {
  font-family: var(--font-medieval);
  font-size: 1.2rem;
  color: var(--mana-blue);
  letter-spacing: 0.5px;
}

.tester-info-card {
  background: #110e20;
  border: 2px solid #5a5080;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.tester-info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.05rem;
  color: #f1f5f9;
  line-height: 1.55;
}

.tester-info-text {
  flex: 1;
}

.tester-info-heading {
  color: #fcd34d;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1.35;
  font-family: inherit;
}

.tester-info-row p {
  margin: 0;
  color: #e2e8f0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.tester-info-row p strong {
  color: #fcd34d;
  font-weight: 700;
  display: inline;
  font-size: inherit;
  margin: 0;
}

.tester-info-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.tester-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fcd34d;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.pixel-input, .pixel-textarea {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.15rem;
  padding: 13px 16px;
  background: #090812;
  border: 2px solid #5a5080;
  color: #ffffff;
  outline: none;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.pixel-input:focus, .pixel-textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.pixel-input::placeholder, .pixel-textarea::placeholder {
  color: #64748b;
  font-size: 1.05rem;
}

.pixel-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  color: #38bdf8;
  line-height: 1.4;
  font-weight: 500;
}

.tester-error-box {
  background: rgba(239, 68, 68, 0.25);
  border: 2px solid var(--danger-red);
  color: #fecaca;
  padding: 14px 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
}

.tester-submit-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-top: 8px;
  cursor: pointer;
}

.tester-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tester-success-box {
  text-align: center;
  padding: 24px 12px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 12px;
  animation: pulseGoldGlow 2s infinite ease-in-out;
}

.success-title {
  font-family: var(--font-medieval);
  font-size: 1.75rem;
  color: #fcd34d;
  margin-bottom: 14px;
  font-weight: 700;
}

.success-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.2rem;
  color: #f1f5f9;
  line-height: 1.6;
  margin-bottom: 14px;
}

.success-sub {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (ADVANCED MOBILE OPTIMIZATIONS)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-hud-wrap, .hero-cta-group {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ranks-grid, .nobility-grid, .nobility-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .bosses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Container & Global Spacing */
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 28px;
  }
  
  .section-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  
  .section-subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  /* Navigation & Header */
  .topbar {
    min-height: 64px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(15, 13, 26, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 4px solid var(--gold-primary);
    flex-direction: column;
    padding: 20px 16px;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.9);
    z-index: 9999;
  }
  
  .nav-links.open {
    display: flex;
    animation: fadeIn 0.2s ease;
  }
  
  .nav-link {
    font-size: 1.15rem;
    padding: 10px 14px;
    width: 100%;
    border-left: 3px solid transparent;
    display: block;
  }
  
  .nav-link:hover, .nav-link.active {
    border-left-color: var(--gold-primary);
    background: rgba(245, 158, 11, 0.1);
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 18px;
    padding: 6px 12px;
  }

  /* Hero Section */
  .hero {
    padding-top: 90px;
    padding-bottom: 40px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 2px 2px 0 #000;
  }
  
  .hero-description {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  
  .hero-rpg-hud {
    padding: 14px 16px;
    margin-bottom: 22px;
  }
  
  .hud-stat-row {
    font-size: 9.5px;
    margin-bottom: 6px;
  }
  
  .hud-bar-wrap {
    width: 48%;
    height: 12px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-cta-group .pixel-btn {
    width: 100%;
    font-size: 12px;
    padding: 14px;
    justify-content: center;
    text-align: center;
  }
  
  .phone-frame {
    max-width: 290px;
    width: 100%;
    border-width: 6px;
    border-radius: 24px;
    padding: 8px;
    margin: 0 auto;
  }
  
  .pixel-torch {
    display: none;
  }
  
  .floating-loot-badge {
    display: none;
  }

  /* Stats Grid Banner */
  .stats-banner-wrap {
    margin: 10px auto 40px auto;
    padding: 0 12px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  
  .stat-item {
    gap: 12px;
    justify-content: flex-start;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }

  /* Features & Grids */
  .features-grid, .ranks-grid, .nobility-grid, .nobility-grid-3, .bosses-grid, .exercises-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 20px 16px;
  }
  
  .exercises-showcase {
    margin-top: 30px;
    padding: 18px 14px;
  }
  
  .exercises-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .exercise-img-wrap {
    height: 75px;
  }

  /* Tabs Control */
  .tabs-control {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
  }
  
  .tab-btn {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 11px;
  }

  /* Nobility Tab */
  .nobility-intro-panel {
    padding: 18px 14px;
    margin-bottom: 24px;
  }
  
  .nobility-intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 14px;
  }
  
  .nobility-intro-icon-wrap img {
    width: 72px;
    height: 72px;
  }
  
  .nobility-card, .nobility-card-throne {
    padding: 18px 14px;
  }

  /* Gallery & Lightbox */
  .gallery-filters {
    gap: 6px;
    justify-content: center;
  }
  
  .filter-btn {
    padding: 8px 12px;
    font-size: 9.5px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .lightbox-modal {
    padding: 10px;
  }
  
  .lightbox-container {
    width: 100%;
  }
  
  .lightbox-img-wrap {
    max-height: 65vh;
  }
  
  .lightbox-img-wrap img {
    max-height: 60vh;
  }
  
  .lightbox-close-btn {
    top: -36px;
    right: 0;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  
  .lightbox-nav-prev { left: 4px; }
  .lightbox-nav-next { right: 4px; }

  /* Tech Specs & Policies */
  .spec-card {
    padding: 18px 14px;
  }
  
  .policies-wrapper {
    padding: 18px 14px;
  }
  
  .policy-nav-tabs {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
  }
  
  .policy-tab-btn {
    width: 100%;
    font-size: 11px;
    padding: 11px 12px;
    text-align: center;
  }
  
  .policy-article {
    padding: 16px 12px;
    margin-bottom: 14px;
  }

  /* CTA Section & Footer */
  .cta-section {
    padding: 40px 0;
  }
  
  .cta-box {
    padding: 26px 16px;
  }
  
  .cta-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }
  
  .cta-desc {
    font-size: 1.02rem;
    margin-bottom: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .cta-buttons .pixel-btn {
    width: 100%;
    font-size: 12px;
    padding: 14px;
    justify-content: center;
    text-align: center;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer-logo-row {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 0.9rem;
  }

  /* Beta Tester Modal on Mobile */
  .tester-modal {
    padding: 10px;
  }
  
  .tester-modal-box {
    padding: 24px 16px;
    max-height: 94vh;
  }
  
  .tester-close-btn {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  
  .tester-modal-title {
    font-size: 1.55rem;
  }
  
  .tester-modal-subtitle {
    font-size: 1.05rem;
  }
  
  .tester-info-card {
    padding: 14px 12px;
    gap: 12px;
    margin-bottom: 18px;
  }
  
  .tester-info-row {
    gap: 12px;
  }
  
  .tester-info-icon {
    font-size: 22px;
  }
  
  .tester-info-heading {
    font-size: 1.05rem;
  }
  
  .tester-info-row p {
    font-size: 0.95rem;
  }
  
  .pixel-input {
    font-size: 16px;
    padding: 12px 14px;
  }
  
  .tester-submit-btn {
    font-size: 14px;
    padding: 15px;
  }
  
  .success-title {
    font-size: 1.45rem;
  }
  
  .success-desc {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  /* Ultra-compact screen tuning (320px - 480px) */
  .topbar .container {
    padding: 0 10px;
    gap: 6px;
  }
  
  .brand-name span:first-child {
    font-size: 12px;
  }
  
  .brand-subtitle {
    font-size: 10px;
  }
  
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  
  .audio-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  
  .nav-actions .pixel-btn-gold {
    font-size: 9.5px;
    padding: 8px 10px;
    letter-spacing: -0.5px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-badge-wrap .pixel-badge {
    font-size: 8.5px;
    padding: 5px 8px;
  }
  
  .hud-stat-row {
    font-size: 8.5px;
  }
  
  .hud-bar-wrap {
    width: 40%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .exercises-grid {
    grid-template-columns: 1fr;
  }
  
  .pixel-btn {
    font-size: 11px;
    padding: 12px 16px;
  }
  
  .tester-modal-title {
    font-size: 1.35rem;
  }
  
  .tester-modal-box {
    padding: 20px 12px;
  }
}
