/* ============================================================
   Story Mode — Modo Historia (Temporada 2 teaser) 2026-05-12
   Prefix: st-*
   Paleta: gold + crimson + black · cinematic epic dark fantasy
   ============================================================ */

.st-hero,
.st-teaser,
.st-callout,
.st-races,
.st-features,
.st-requirements,
.st-footer {
  --st-gold:       #ffc857;
  --st-gold-deep:  #d4a020;
  --st-crimson:    #b41e2e;
  --st-crimson-soft: #ff7a8a;
  --st-bg-1:       rgba(20, 8, 12, 0.94);
  --st-bg-2:       rgba(12, 4, 8, 0.98);
  --st-bg-card:    rgba(26, 12, 18, 0.86);
  --st-bg-hover:   rgba(40, 18, 26, 0.92);
  --st-border:     rgba(212, 175, 55, 0.22);
  --st-border-strong: rgba(212, 175, 55, 0.55);
  --st-text:       #f3e8d5;
  --st-text-dim:   rgba(243, 232, 213, 0.62);
  --st-text-faint: rgba(243, 232, 213, 0.42);
}

/* ============================================================
   HERO — banner épico fullwidth
   ============================================================ */
.st-hero {
  position: relative;
  width: 100%;
  height: clamp(280px, 50vh, 480px);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
  background-color: #0a0408;
  border: 2px solid var(--st-gold-deep);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.7),
    0 0 50px rgba(180, 30, 50, 0.20),
    inset 0 0 80px rgba(0,0,0,0.6);
}
.st-hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 60%, transparent 100%),
    linear-gradient(180deg, rgba(20, 6, 10, 0.35) 0%, rgba(0,0,0,0.78) 90%);
}
.st-hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 40%, rgba(255, 200, 87, 0.10) 0%, transparent 8%),
              radial-gradient(circle at 70% 60%, rgba(255, 200, 87, 0.08) 0%, transparent 6%),
              radial-gradient(circle at 50% 20%, rgba(180, 30, 50, 0.10) 0%, transparent 10%);
  animation: st-particles 18s linear infinite;
}
@keyframes st-particles {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(-10px); opacity: 1; }
}

.st-hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 28px 28px;
  text-align: center;
}
.st-hero-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(180, 30, 50, 0.85), rgba(110, 18, 28, 0.92));
  border: 1px solid rgba(255, 122, 138, 0.6);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  animation: st-tag-pulse 2.4s ease-in-out infinite;
}
@keyframes st-tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 30, 50, 0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(180, 30, 50, 0); }
}

.st-hero-title {
  margin: 0 0 10px;
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffeac0 0%, #ffd24a 40%, #d4a020 80%, #8a5a0a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255, 200, 87, 0.40),
               0 4px 14px rgba(0,0,0,0.85);
}
.st-hero-tagline {
  max-width: 580px;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(14px, 2.4vw, 18px);
  color: rgba(243, 232, 213, 0.86);
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
  line-height: 1.4;
}

/* ============================================================
   Section eyebrow + common
   ============================================================ */
.st-section-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.st-section-eyebrow i { font-size: 14px; }
.st-section-head { margin-bottom: 14px; }
.st-section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--st-gold);
  margin: 0 0 6px;
  text-shadow: 0 0 14px rgba(255, 200, 87, 0.22);
}
.st-section-sub {
  font-size: 13.5px;
  color: var(--st-text-dim);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   TEASER video
   ============================================================ */
.st-teaser {
  background: linear-gradient(180deg, var(--st-bg-1), var(--st-bg-2));
  border: 1px solid var(--st-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.st-teaser-video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #000;
  display: block;
  border: 1px solid var(--st-border-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
.st-teaser-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0408;
  border: 2px dashed var(--st-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-teaser-placeholder-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(180, 30, 50, 0.18), transparent 70%),
    linear-gradient(135deg, #1a0a14 0%, #0a0408 50%, #1a0a14 100%);
  animation: st-placeholder-glow 6s ease-in-out infinite;
}
@keyframes st-placeholder-glow {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
.st-teaser-placeholder-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 16px;
}
.st-teaser-icon {
  font-size: 60px;
  color: var(--st-gold);
  filter: drop-shadow(0 4px 12px rgba(255, 200, 87, 0.35));
  margin-bottom: 10px;
  display: block;
  animation: st-teaser-icon-pulse 3s ease-in-out infinite;
}
@keyframes st-teaser-icon-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.st-teaser-placeholder-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--st-gold);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.st-teaser-placeholder-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--st-text-dim);
}
.st-teaser-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--st-text);
  margin: 14px 0 0;
  text-align: center;
}

/* ============================================================
   CALLOUT
   ============================================================ */
.st-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(180, 30, 50, 0.08), rgba(28, 12, 18, 0.92));
  border: 1px solid var(--st-border-strong);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  overflow: hidden;
}
.st-callout-img {
  border-radius: 11px;
  background-size: cover;
  background-position: center;
  background-color: #0a0408;
  min-height: 200px;
  border: 1px solid var(--st-border);
}
.st-callout-img.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--st-gold);
  font-size: 60px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(180, 30, 50, 0.25), rgba(8, 4, 8, 0.95));
}
.st-callout-body { display: flex; flex-direction: column; justify-content: center; }
.st-callout-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-crimson-soft);
  font-weight: 700;
  margin-bottom: 6px;
}
.st-callout-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--st-gold);
  margin: 0 0 10px;
  line-height: 1.2;
  text-shadow: 0 0 14px rgba(255, 200, 87, 0.20);
}
.st-callout-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--st-text);
  margin: 0;
}
.st-callout-text b { color: var(--st-gold); font-weight: 700; }

/* CTA "Entrar al Modo Historia" — solo si engine_unlocked */
.st-engine-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #ffd991 0%, #d4a020 60%, #8a5a0a 100%);
  color: #2a1700;
  border: 1px solid rgba(255,200,87,0.7);
  border-radius: 11px;
  font-family: 'Cinzel', serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.55), 0 0 22px rgba(255,200,87,0.30);
  transition: transform .15s, filter .15s;
  animation: st-engine-pulse 2.6s ease-in-out infinite;
}
.st-engine-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.st-engine-btn i { font-size: 16px; }
.st-engine-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.2;
}
.st-engine-btn-title { font-size: 13px; font-weight: 800; }
.st-engine-btn-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(42,23,0,0.75);
  text-transform: none;
}
@keyframes st-engine-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,0.55), 0 0 22px rgba(255,200,87,0.30); }
  50%      { box-shadow: 0 8px 22px rgba(0,0,0,0.55), 0 0 34px rgba(255,200,87,0.55); }
}
/* 2026-05-12: estado "beta completada" — reemplaza el botón cuando el char terminó */
.st-engine-done {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(95,214,132,0.18), rgba(33,60,40,0.5));
  border: 1px solid rgba(95,214,132,0.45);
  border-radius: 11px;
  color: #c0f0d0;
}
.st-engine-done > i {
  font-size: 24px;
  color: #5fd684;
  filter: drop-shadow(0 0 8px rgba(95,214,132,0.5));
}
.st-engine-done-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #5fd684;
}
.st-engine-done-sub {
  font-size: 11px;
  color: rgba(232,227,245,0.7);
  margin-top: 2px;
}

/* ============================================================
   RAZAS grid
   ============================================================ */
.st-races { margin-bottom: 18px; }
.st-races-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.st-race-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--st-border);
  background: #0a0408;
  cursor: default;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.st-race-card:hover {
  transform: translateY(-3px);
  border-color: var(--st-gold);
  box-shadow: 0 12px 28px rgba(0,0,0,0.55), 0 0 22px rgba(255,200,87,0.18);
}
.st-race-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform .3s ease;
}
.st-race-card:hover .st-race-img { transform: scale(1.06); }
.st-race-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.92) 100%);
}
.st-race-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 12px 12px;
  z-index: 1;
}
.st-race-name {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-gold);
  margin-bottom: 3px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}
.st-race-arc {
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.85);
}
.st-race-teaser {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: rgba(243, 232, 213, 0.78);
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
}

/* ============================================================
   FEATURES grid
   ============================================================ */
.st-features { margin-bottom: 18px; }
.st-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.st-feature {
  background: linear-gradient(180deg, var(--st-bg-card), rgba(20, 10, 14, 0.96));
  border: 1px solid var(--st-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.st-feature:hover {
  transform: translateY(-2px);
  border-color: var(--st-border-strong);
}
.st-feature-ic {
  width: 44px; height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  color: var(--st-gold);
  filter: drop-shadow(0 0 10px rgba(255, 200, 87, 0.3));
}
.st-feature-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--st-gold);
  margin-bottom: 4px;
}
.st-feature-body {
  font-size: 12.5px;
  color: var(--st-text-dim);
  line-height: 1.4;
}

/* ============================================================
   REQUIREMENTS
   ============================================================ */
.st-requirements {
  background: linear-gradient(180deg, var(--st-bg-card), rgba(20, 10, 14, 0.96));
  border: 1px solid var(--st-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.st-req-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.st-req-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--st-border);
  font-size: 13.5px;
  color: var(--st-text);
  line-height: 1.4;
}
.st-req-line i {
  color: var(--st-gold);
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}
.st-req-line b { color: var(--st-gold); font-weight: 700; }

/* ============================================================
   END CARD — "Continuará en Temporada 2" con marco dorado
   ============================================================ */
.st-endcard {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
  background-color: #0a0408;
  border: 2px solid var(--st-gold-deep);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.75),
    0 0 40px rgba(180, 30, 50, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.st-endcard-inner {
  position: relative;
  z-index: 1;
  padding: 18px 22px;
  max-width: 80%;
}
.st-endcard-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 232, 213, 0.72);
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.85);
}
.st-endcard-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 6.5vw, 46px);
  font-weight: 900;
  letter-spacing: 0.10em;
  line-height: 1;
  background: linear-gradient(180deg, #ffeac0 0%, #ffd24a 50%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(255, 200, 87, 0.35);
  margin-bottom: 6px;
}
.st-endcard-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(11px, 2.4vw, 14px);
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--st-crimson-soft);
  text-shadow: 0 2px 6px rgba(0,0,0,0.85);
  font-weight: 600;
}

/* ============================================================
   FOOTER coming soon
   ============================================================ */
.st-footer {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(180, 30, 50, 0.18), transparent 70%),
    linear-gradient(180deg, var(--st-bg-card), rgba(20, 10, 14, 0.96));
  border: 1px solid var(--st-border-strong);
  border-radius: 14px;
  padding: 24px 18px;
  margin-bottom: 18px;
  text-align: center;
}
.st-footer-icon {
  font-size: 42px;
  color: var(--st-gold);
  filter: drop-shadow(0 0 12px rgba(255, 200, 87, 0.4));
  margin-bottom: 8px;
  display: block;
  animation: st-hourglass 4s ease-in-out infinite;
}
@keyframes st-hourglass {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(180deg); }
}
.st-footer-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--st-gold);
  margin-bottom: 6px;
}
.st-footer-body {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--st-text-dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 720px) {
  .st-callout {
    grid-template-columns: 1fr;
  }
  .st-callout-img {
    min-height: 160px;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 480px) {
  .st-hero { height: clamp(240px, 42vh, 380px); }
  .st-hero-content { padding: 18px 18px 22px; }
  .st-races-grid { grid-template-columns: 1fr 1fr; }
  .st-teaser, .st-requirements, .st-footer { padding: 14px; }
}
