/* ==========================================================================
   SISTEMA DE DISEÑO & VARIABLES (NihonFree)
   ========================================================================== */
:root {
  --bg-dark: #08090f;
  --bg-deep: #030408;
  --panel-bg: rgba(18, 20, 32, 0.6);
  --panel-border: rgba(255, 255, 255, 0.08);
  
  --accent-sakura: #ff7597;      /* Rosa Sakura */
  --accent-sakura-glow: rgba(255, 117, 151, 0.35);
  --accent-cyan: #00f0ff;        /* Cian Neon */
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-purple: #8b5cf6;      /* Violeta Cyberpunk */
  --accent-purple-glow: rgba(139, 92, 246, 0.3);
  
  --text-primary: #f8f9fc;
  --text-secondary: #a0aec0;
  --text-muted: #5e6b7e;
  
  --n5-color: #00f0ff;
  --n4-color: #a855f7;
  --n3-color: #3b82f6;
  --n2-color: #eab308;
  --n1-color: #ef4444;
  
  --font-display: 'Outfit', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --glass-blur: blur(12px);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-display);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Orbes de Fondo Dinámicos */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: floatOrb 15s infinite alternate ease-in-out;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  top: -150px;
  right: -100px;
}

.orb-2 {
  width: 700px;
  height: 700px;
  background: var(--accent-sakura);
  bottom: -200px;
  left: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  top: 40%;
  left: 30%;
  animation-delay: -3s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 50px) scale(1.15); }
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN SUPERIOR (BANNER)
   ========================================================================== */
.main-header {
  width: 100%;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(8, 9, 15, 0.8);
  backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-jp {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #ffffff, var(--accent-sakura));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text .highlight {
  color: var(--accent-sakura);
  position: relative;
}

.badge-status {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   CONTENIDO PRINCIPAL & HERO
   ========================================================================== */
.landing-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.hero-section {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero-title strong {
  background: linear-gradient(to right, #ffffff, var(--accent-sakura));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   CUADRÍCULA DE NIVELES (N5 a N1 select grid)
   ========================================================================== */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
}

@media (max-width: 768px) {
  .levels-grid {
    grid-template-columns: 1fr;
  }
  .landing-content {
    padding: 40px 20px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
}

/* Diseño de Tarjetas de Nivel (Común) */
.level-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.level-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 30px;
}

/* Estilo Tarjeta Activa (N5) */
.level-active {
  cursor: pointer;
}

.level-active .active-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--n5-color);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.level-active:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 240, 255, 0.15), 0 0 30px rgba(0, 240, 255, 0.05);
}

.level-active:hover .btn-play {
  color: #ffffff;
  transform: translateX(5px);
}

/* Brillo en hover de tarjetas activas */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, rgba(0, 240, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.level-active:hover .card-glow {
  opacity: 1;
}

/* Estilo Tarjetas Bloqueadas (N4 - N1) */
.level-locked {
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(40%);
}

.level-locked .locked-badge {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cabecera y Contenido de Tarjetas */
.card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.level-tag {
  font-size: 1.5rem;
  font-weight: 800;
  width: fit-content;
  padding: 2px 14px;
  border-radius: 10px;
  color: #ffffff;
}

.tag-n5 { background: var(--n5-color); box-shadow: 0 4px 14px rgba(0, 240, 255, 0.3); color: #000; }
.tag-n4 { background: var(--n4-color); }
.tag-n3 { background: var(--n3-color); }
.tag-n2 { background: var(--n2-color); color: #000; }
.tag-n1 { background: var(--n1-color); }

.level-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.level-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 30px;
  flex-grow: 1;
}

/* Footer de Tarjetas */
.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  display: flex;
  align-items: center;
}

.btn-play {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--n5-color);
  transition: var(--transition-smooth);
}

.locked-icon {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.main-footer {
  width: 100%;
  border-top: 1px solid var(--panel-border);
  padding: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* ==========================================================================
   BANNER DE MISIONES DIARIAS
   ========================================================================== */
.daily-missions-banner {
  background: linear-gradient(135deg, rgba(255, 117, 151, 0.08), rgba(0, 240, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium), inset 0 0 20px rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.daily-missions-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(255, 117, 151, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.missions-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 30px;
}

.missions-banner-info {
  flex: 1;
}

.missions-banner-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-sakura);
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 117, 151, 0.3);
}

.missions-banner-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.missions-banner-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.missions-banner-progress-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  min-width: 280px;
}

.missions-mini-progress {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mini-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-sakura), var(--accent-cyan));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.mini-progress-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  align-self: flex-end;
}

.btn-banner-link {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  display: inline-block;
}

.btn-banner-link:hover {
  background: linear-gradient(135deg, var(--accent-sakura), var(--accent-cyan));
  border-color: transparent;
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .daily-missions-banner {
    padding: 24px;
  }
  .missions-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .missions-banner-progress-area {
    align-items: stretch;
    min-width: 100%;
  }
  .btn-banner-link {
    width: 100%;
  }
}

