/* ============================================================
   Tianwar Web - Material Design / Corporate Tech
   Fondo blanco sólido · Tarjetas azul marino · Dorado nítido
   ============================================================ */

:root {
  --bg-base: #ffffff;
  --bg-card: #0f1419;
  --bg-dark: #0a0e14;
  --bg-header: rgba(255, 255, 255, 0.98);

  --text-primary: #0f1419;
  --text-secondary: #4a5568;
  --text-muted: #8b95a5;
  --text-on-dark: #e8eaf0;
  --text-on-dark-muted: #8b95a5;

  --gold: #d4a520;
  --gold-light: #f0c040;
  --gold-dark: #a07810;

  --red: #e0392e;
  --red-light: #ff5040;
  --red-dark: #a02018;

  --blue: #3a7fc2;
  --blue-light: #5a9fe2;
  --blue-dark: #1a4f82;
  --navy: #0f1419;
  --navy-light: #1a2330;

  --border: rgba(15, 20, 25, 0.12);
  --border-gold: rgba(212, 165, 32, 0.4);
  --border-dark: rgba(255, 255, 255, 0.1);

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 0 0 1px rgba(212, 165, 32, 0.3);

  --gradient-gold: linear-gradient(135deg, #f0c040, #d4a520);
  --gradient-navy: linear-gradient(180deg, #0f1419, #0a0e14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #1a1f2e;
  background-image: url('../assets/images/fondo_web.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header fijo ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo {
  width: 36px; height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
}
.brand-text {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--gold-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--gold-dark); }

.btn-cta-sm {
  background: var(--gold-dark);
  color: #fff !important;
  padding: 7px 18px !important;
  border-radius: 4px;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.5px;
}
.btn-cta-sm:hover { background: var(--gold); }

/* ===== v118: JUGAR ONLINE (menú, solo usuarios logeados) =====
   Píldora destacada: gradiente dorado + brillo suave. Inyectada por
   js/main.js cuando existe sesión; abre el juego en ventana emergente. */
.nav-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg, #F6D365 0%, #C8931B 100%);
  color: #3E2700 !important;
  padding: 7px 16px !important;
  border-radius: 999px;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 1px;
  border: 1px solid #FFF3B0;
  box-shadow: 0 3px 12px rgba(201, 162, 39, 0.45);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s !important;
  white-space: nowrap;
  flex-shrink: 0;          /* v119: el CTA nunca se encoge ni envuelve */
  margin-left: 6px;        /* v119: aire extra respecto del enlace previo */
  position: relative;
}
/* v119: separador vertical sutil — distingue el botón dorado del resto
   del menú sin chocar con el logo/título (va al FINAL del menú). */
.nav-play::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(201, 162, 39, 0.35);
}
.nav-play:hover {
  color: #3E2700 !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(201, 162, 39, 0.65);
}
.nav-play-ico {
  font-size: 13px;
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gold-dark);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== v120: MENÚ CON SUBMENÚS =====
   Estructura (la construye js/main.js en todas las páginas):
   .nav-links > a | .nav-drop[.nav-top + .nav-sub] | .nav-play | .btn-cta-sm */
.nav-v120 { gap: 22px; }

.nav-drop { position: relative; }
.nav-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: color 0.15s;
  padding: 8px 0;
  cursor: pointer;
}
.nav-top:hover { color: var(--gold-dark); }
.nav-caret {
  font-size: 9px;
  line-height: 1;
  color: var(--gold-dark);
  transition: transform 0.2s;
  display: inline-block;
}

/* Submenú desplegable (escritorio: hover / foco) */
.nav-sub {
  position: absolute;
  top: calc(100% - 2px);
  left: -14px;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-dark);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(26, 26, 46, 0.16);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 300;
}
.nav-drop:hover .nav-sub,
.nav-drop:focus-within .nav-sub,
.nav-drop.open .nav-sub { display: flex; }
.nav-drop:hover .nav-caret,
.nav-drop:focus-within .nav-caret { transform: rotate(180deg); }

.nav-sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.nav-sub a:hover { background: rgba(201, 162, 39, 0.12); color: var(--gold-dark); }
.nav-sub-ico {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-ext-arrow { color: var(--gold-dark); font-size: 11px; margin-left: auto; }

/* Punta de flecha del submenú (escritorio) */
.nav-sub::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 22px;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,20,25,0.5) 0%, rgba(15,20,25,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
}

.hero-tagline { margin-bottom: 20px; }
.tag-pill {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(212, 165, 32, 0.15);
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
}
.hero-title-en {
  color: var(--gold);
  letter-spacing: 14px;
  text-shadow: none;
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto 36px;
  font-weight: 400;
}
.hero-sub strong { color: var(--gold-light); font-weight: 600; }

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 72px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gold-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--gold); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--gold);
}
.stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
  font-weight: 600;
}

/* ===== Section common ===== */
section { padding: 80px 0; position: relative; background: rgba(26, 31, 46, 0.7); }
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* ===== Features (tarjetas azul marino) ===== */
.features { background: rgba(26, 31, 46, 0.7); }
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-deep); }
.feature-ico {
  font-size: 32px;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(212, 165, 32, 0.1);
  border: 1px solid var(--border-gold);
  margin-bottom: 18px;
  color: var(--gold);
}
.feature-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-on-dark);
  font-weight: 600;
}
.feature-card p { color: var(--text-on-dark-muted); font-size: 14px; line-height: 1.6; }
.feature-card strong { color: var(--gold-light); font-weight: 600; }

/* ===== Features Gallery (3 columnas, estilo profesional) ===== */
.features-gallery-section { padding: 80px 0; background: rgba(26, 31, 46, 0.85); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.features-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.fg-card {
  position: relative;
  background: linear-gradient(160deg, rgba(35, 42, 64, 0.95) 0%, rgba(22, 26, 40, 0.98) 100%);
  border: 1px solid rgba(212, 165, 32, 0.25);
  border-radius: 14px;
  padding: 32px 26px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.fg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4a520 0%, #f0c040 50%, #d4a520 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.fg-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 192, 64, 0.6);
  box-shadow: 0 12px 40px rgba(212, 165, 32, 0.18);
}
.fg-card:hover::before { transform: scaleX(1); }
.fg-ico {
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 165, 32, 0.22), rgba(212, 165, 32, 0.06));
  border: 1px solid rgba(212, 165, 32, 0.4);
  margin-bottom: 18px;
}
.fg-ico .material-symbols-outlined {
  font-size: 30px;
  color: #f0c040;
  font-variation-settings: 'wght' 500;
}
.fg-title {
  font-family: 'Cinzel', serif;
  font-size: 19px;
  font-weight: 700;
  color: #f5f6fa;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.fg-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: #a8b0c2;
  margin-bottom: 16px;
  flex-grow: 1;
}
.fg-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #d4a520;
  letter-spacing: 0.3px;
  transition: color 0.2s, transform 0.2s;
}
.fg-card:hover .fg-link { color: #f0c040; transform: translateX(4px); }

@media (max-width: 900px) {
  .features-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-gallery { grid-template-columns: 1fr; }
  .features-gallery-section { padding: 56px 0; }
  .fg-card { padding: 24px 22px 22px; }
}

/* ===== Characters preview ===== */
.characters-preview { background: rgba(26, 31, 46, 0.7); }
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
.char-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.char-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  color: var(--text-on-dark);
}
.char-card:hover { transform: translateY(-4px); }
.char-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.char-emoji { font-size: 64px; }
.char-card h4 {
  font-family: 'Inter', sans-serif;
  padding: 12px 12px 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
}
.char-tag {
  display: block;
  padding: 0 12px 14px;
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  font-weight: 600;
}
.more-chars {
  text-align: center;
  color: var(--text-muted);
  margin-top: 36px;
  font-size: 14px;
}
.more-chars a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.more-chars a:hover { text-decoration: underline; }

/* ===== Levels ===== */
.levels-section { background: rgba(26, 31, 46, 0.7); }
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
.levels-list {
  max-width: 760px;
  margin: 0 auto;
}
.level-row {
  display: grid;
  grid-template-columns: 50px 140px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 6px;
  margin-bottom: 8px;
  color: var(--text-on-dark);
}
.level-row:hover { box-shadow: var(--shadow-card); }
.level-row-final {
  border: 1px solid var(--border-gold);
}
.level-rank {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
}
.level-name {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-on-dark);
}
.level-row-final .level-name { color: var(--gold-light); }
.level-desc { color: var(--text-on-dark-muted); font-size: 13px; }

/* ===== Download ===== */
.download-section { background: rgba(26, 31, 46, 0.7); }
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.download-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.2s;
}
.download-card:hover { transform: translateY(-3px); }
.dl-ico { font-size: 48px; margin-bottom: 16px; }
.download-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-on-dark);
}
.download-card p {
  color: var(--text-on-dark-muted);
  margin-bottom: 22px;
  font-size: 13px;
  min-height: 40px;
}
.download-card .btn-primary,
.download-card .btn-secondary { width: 100%; justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-gold);
  padding: 48px 0 24px;
  color: var(--text-on-dark-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  width: 44px; height: 44px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 6px;
}
.footer-desc { color: var(--text-on-dark-muted); font-size: 13px; max-width: 260px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col a {
  display: block;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== Responsive ===== */
/* v120: con los submenús el menú horizontal es más corto (6 items),
   pero en pantallas medianas se compacta para que JUGAR ONLINE
   (solo presente logeado) nunca empuje el menú contra el logo. */
@media (max-width: 1200px) {
  .nav-links { gap: 14px; }
  .nav-v120 { gap: 13px; }
  .nav-play { padding: 6px 12px !important; font-size: 11px !important; }
  .nav-play::before { left: -11px; }
}
/* v120: el menú horizontal colapsa (hamburguesa) desde 1024px. En el
   panel vertical los submenús se despliegan tocando su título (los
   ítems finales cierran el panel al navegar). */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-play { justify-content: center; width: 100%; margin-left: 0; flex-shrink: 1; }
  .nav-play::before { display: none; }

  /* Panel móvil del menú v120 */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.985);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 22px 20px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow: 0 24px 40px rgba(26, 26, 46, 0.18);
    gap: 4px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 250;
  }
  .nav-links.open > a,
  .nav-links.open .nav-top {
    padding: 12px 6px;
    font-size: 15px;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-links.open .nav-top { justify-content: space-between; }
  .nav-links.open .nav-caret { font-size: 11px; transition: transform 0.2s; }
  .nav-links.open .nav-drop.open .nav-caret { transform: rotate(180deg); }

  /* Submenú vertical dentro del panel (no absoluto) */
  .nav-links.open .nav-sub {
    position: static;
    display: none;
    background: rgba(201, 162, 39, 0.06);
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    padding: 4px 0 4px 10px;
    min-width: 0;
  }
  .nav-links.open .nav-sub::before { display: none; }
  .nav-links.open .nav-drop.open .nav-sub { display: flex; }
  .nav-links.open .nav-sub a { padding: 10px 12px; font-size: 14px; }
  .nav-links.open .btn-cta-sm {
    text-align: center;
    margin-top: 10px;
    padding: 12px 18px !important;
    font-size: 14px !important;
  }
}
@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .char-grid { grid-template-columns: repeat(3, 1fr); }
  .level-row { grid-template-columns: 40px 1fr; }
  .level-row .level-desc { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
}
