/* Soporte Tipográfico Local Offline (con fallback automático a Google Fonts) */
@import url('css/tazo.css');
@import url('css/cards.css');

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local('Outfit'),
       url('assets/fonts/Outfit-Variable.ttf') format('truetype-variations'),
       url('assets/fonts/Outfit-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: local('Space Grotesk'),
       url('assets/fonts/SpaceGrotesk-Variable.ttf') format('truetype-variations'),
       url('assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
}

:root {
  --bg-primary: #030712;
  --bg-surface: #0b1329;
  --bg-surface-elevated: #111e38;
  --bg-card-front: #0f172a;
  --bg-card-back: #0b1329;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.25);
  --neon-cyan: #38bdf8;
  --neon-amber: #f59e0b;
  --neon-orange: #f97316;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --card-width: 360px;
  --card-height: 360px;
  --card-radius: 18px;
}

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

/* Accessibility & SEO utility for screen readers and search crawlers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #030712;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* Iluminación Dark Arcade y mesa de juego azul marino profunda */
  background-image:
    radial-gradient(ellipse 85% 60% at 50% 25%, #0c1836 0%, #030712 100%);
  background-attachment: fixed;
}

/* Header */
header {
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.3s ease;
  user-select: none;
}

.brand-icon:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-icon:active {
  transform: translateY(0) scale(0.96);
}

.brand-icon.version-cards {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-icon.version-cards:hover {
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  line-height: 1.2;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.brand-version-tag {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: #e0f2fe;
  color: #0284c7;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

.brand-subline {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: -2px;
  font-weight: 500;
}

.brand-org-link {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.brand-org-link:hover {
  text-decoration: underline;
  color: #0369a1;
}

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

/* Selector Segmentado de Modo de Juego (Arcade Style Switch) */
.game-mode-switch {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tab-btn {
  background: transparent;
  color: #64748b;
  border: none;
  padding: 0.48rem 1rem;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  user-select: none;
}

.tab-btn:hover {
  color: #0f172a;
}

.tab-btn:active {
  transform: scale(0.97);
}

.tab-btn.active {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.icon-btn:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.icon-btn:active {
  transform: translateY(1px) scale(0.96);
}

.icon-btn:focus-visible,
.tab-btn:focus-visible,
.ribbon-pill:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

/* Ribbon Scroll Container con Mascarilla de Desvanecimiento Suave */
.ribbon-wrapper {
  position: relative;
  background: rgba(11, 19, 41, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .ribbon-wrapper {
    mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
  }
}

.category-ribbon {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-ribbon::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1280px) {
  .category-ribbon {
    justify-content: center;
  }
}

/* Píldoras de Baraja (Tazo & Deck Selector Tactile Feel) */
.ribbon-pill {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  user-select: none;
  flex-shrink: 0;
}

.ribbon-pill .pill-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.ribbon-pill:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.ribbon-pill:hover .pill-icon {
  transform: scale(1.1);
}

.ribbon-pill:active {
  transform: translateY(1px) scale(0.97);
}

.ribbon-pill .pill-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.2s ease;
}

/* Identidades Cromáticas Temáticas por Volumen (Píldoras Activas en Modo Claro) */
/* Mazo Maestro (Estuche Completo 576 Cartas) */
.ribbon-pill.pill-master {
  border-color: rgba(245, 158, 11, 0.4);
  background: #fffbeb;
  color: #b45309;
}
.ribbon-pill.pill-master .pill-icon {
  color: #d97706;
}
.ribbon-pill.pill-master.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}
.ribbon-pill.pill-master.active .pill-count {
  background: #f59e0b;
  color: #ffffff;
  font-weight: 800;
}

/* Vol 0: Kernel Foundations */
.ribbon-pill.pill-vol0.active {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}
.ribbon-pill.pill-vol0.active .pill-count {
  background: #0284c7;
  color: #ffffff;
}

/* Vol 1: Hacker Lore */
.ribbon-pill.pill-vol1.active {
  background: #d1fae5;
  border-color: #34d399;
  color: #065f46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
.ribbon-pill.pill-vol1.active .pill-count {
  background: #059669;
  color: #ffffff;
}

/* Vol 2: Hardware */
.ribbon-pill.pill-vol2.active {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}
.ribbon-pill.pill-vol2.active .pill-count {
  background: #d97706;
  color: #ffffff;
}

/* Vol 3: Unix & Networks */
.ribbon-pill.pill-vol3.active {
  background: #ede9fe;
  border-color: #a78bfa;
  color: #5b21b6;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}
.ribbon-pill.pill-vol3.active .pill-count {
  background: #7c3aed;
  color: #ffffff;
}

/* Vol 4: Backend */
.ribbon-pill.pill-vol4.active {
  background: #e0e7ff;
  border-color: #818cf8;
  color: #3730a3;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}
.ribbon-pill.pill-vol4.active .pill-count {
  background: #4f46e5;
  color: #ffffff;
}

/* Vol 5: Cloud & SRE */
.ribbon-pill.pill-vol5.active {
  background: #cffafe;
  border-color: #22d3ee;
  color: #155e75;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}
.ribbon-pill.pill-vol5.active .pill-count {
  background: #0891b2;
  color: #ffffff;
}

/* Vol 6: Python Track */
.ribbon-pill.pill-vol6.active {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e40af;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
.ribbon-pill.pill-vol6.active .pill-count {
  background: #2563eb;
  color: #ffffff;
}

/* Vol 7: Sci-Fi & Pop Culture */
.ribbon-pill.pill-vol7.active {
  background: #fce7f3;
  border-color: #f472b6;
  color: #9d174d;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}
.ribbon-pill.pill-vol7.active .pill-count {
  background: #db2777;
  color: #ffffff;
}

/* Main Area */
main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* ==========================================================================
   HIT-TAZOS TECH: EXACT DARK ARCADE 3D GAMEPLAY STYLING (web-ui-preview.jpg)
   ========================================================================== */

body:has(#view-play.active) {
  overflow: hidden !important;
  height: 100vh !important;
  background: #030712 !important;
}

body:has(#view-play.active) .app-footer,
.app-footer {
  display: none !important;
}

body:has(#view-play.active) main {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: calc(100vh - 56px) !important;
  overflow: hidden !important;
}

#view-play.active {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.brand-version-tag {
  display: none !important;
}

/* 1. Header Minimalista Arcade */
.arcade-header {
  height: 56px;
  background: #030712;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 50;
  user-select: none;
}

.arcade-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.arcade-brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.arcade-title-clean {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin: 0;
  white-space: nowrap;
}

.arcade-nav-center {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Selector Segmentado de Modo de Juego (Juego vs Explorador) */
.arcade-mode-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3px;
  gap: 3px;
}

.arcade-mode-switch .tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.arcade-mode-switch .tab-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.arcade-mode-switch .tab-btn.active {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.55);
}

.arcade-mode-switch .tab-btn svg {
  width: 15px;
  height: 15px;
}

.arcade-hud-center {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.05rem;
}

.hud-stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hud-label-clean {
  color: #ffffff;
  font-weight: 700;
}

.hud-score-item strong {
  color: #38bdf8;
  font-weight: 800;
  font-size: 1.15rem;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.hud-streak-item strong {
  color: #fb923c;
  font-weight: 800;
  font-size: 1.15rem;
  text-shadow: 0 0 10px rgba(251, 146, 60, 0.45);
}

.hud-attempts-item strong {
  color: #38bdf8;
  font-weight: 800;
  font-size: 1.15rem;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.hud-attempts-item strong.attempts-critical {
  color: #ef4444 !important;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.75) !important;
}

.attempt-dots-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0.35rem;
}

.attempt-pip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #bae6fd 0%, #38bdf8 45%, #0284c7 85%, #0369a1 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 0 8px rgba(56, 189, 248, 0.85),
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    inset 0 0 0 2px rgba(2, 132, 199, 0.75);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  position: relative;
}

.attempt-pip.used {
  background: radial-gradient(circle at 40% 35%, #334155 0%, #1e293b 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  opacity: 0.45;
  filter: grayscale(1);
}

.attempt-pip.critical {
  background: radial-gradient(circle at 40% 35%, #fecaca 0%, #ef4444 50%, #b91c1c 100%);
  border-color: #fee2e2;
  box-shadow: 
    0 0 12px rgba(239, 68, 68, 0.95),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 0 0 2px rgba(185, 28, 28, 0.8);
  animation: pulseCritical 0.9s infinite alternate ease-in-out;
}

@keyframes pulseCritical {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.15); filter: brightness(1.3); }
}

.streak-badge-fire {
  color: #fb923c;
  font-weight: 800;
  font-size: 0.92rem;
  margin-left: 0.25rem;
  white-space: nowrap !important;
  display: inline-block !important;
  animation: pulseFire 1.4s infinite alternate ease-in-out;
}

@keyframes pulseFire {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.05); filter: brightness(1.2); }
}

.header-right-arcade {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn-arcade {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  transition: all 0.15s ease;
}

.icon-btn-arcade:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.icon-btn-arcade svg {
  width: 19px;
  height: 19px;
}

/* Botón Destacado de Preventa Físico en Cabecera */
.btn-preorder-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.28));
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 18px;
  color: #6ee7b7;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.32rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
  white-space: nowrap;
}

.btn-preorder-header:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(5, 150, 105, 0.45));
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.4);
  transform: translateY(-1px);
}

.btn-preorder-header svg {
  width: 15px;
  height: 15px;
}

.btn-preorder-header .preorder-badge {
  background: #10b981;
  color: #030712;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.08rem 0.38rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Botón Retorno a Mesa de Juego en Explorador */
.btn-gallery-back-play {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  color: #38bdf8;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-gallery-back-play:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.btn-gallery-back-play svg {
  width: 16px;
  height: 16px;
}

/* Backdrop y Drawer Desplegable */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.arcade-tools-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(9, 16, 31, 0.98);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.arcade-tools-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
}

.drawer-header-icon {
  color: #38bdf8;
  width: 20px;
  height: 20px;
}

.drawer-content {
  flex: 1;
  min-height: 0;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.drawer-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.drawer-mode-switch {
  display: flex;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.drawer-mode-switch .tab-btn {
  flex: 1;
  justify-content: center;
  padding: 0.6rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.drawer-mode-switch .tab-btn.active {
  background: #0ea5e9;
  color: #ffffff;
}

.drawer-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.drawer-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #e2e8f0;
  font-family: var(--font-sans);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
  transform: translateX(3px);
}

.drawer-action-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.drawer-action-primary {
  font-weight: 700;
  font-size: 0.92rem;
}

.drawer-action-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.drawer-action-btn.preorder-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.2));
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.drawer-badge-highlight {
  background: #10b981;
  color: #030712;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
}

.drawer-action-btn.btn-danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
}

.drawer-action-btn.btn-danger:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: #f87171;
  color: #ffffff;
}

.volume-dropdown-wrapper {
  position: relative;
}

.btn-volume-dropdown {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-volume-dropdown:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-volume-dropdown svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.volume-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #09101f;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
  z-index: 100;
  min-width: 250px;
}

.volume-dropdown-menu.show {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.volume-menu-item {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}

.volume-menu-item:hover,
.volume-menu-item.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

@media (max-width: 1100px) {
  .arcade-header {
    padding: 0 1.25rem;
  }
  .arcade-nav-center {
    gap: 1.25rem;
  }
  .arcade-hud-center {
    gap: 1.2rem;
  }
  .header-right-arcade {
    gap: 0.4rem;
  }
}

@media (max-width: 900px) {
  .btn-preorder-header .preorder-badge {
    display: none;
  }
  .arcade-mode-switch {
    display: none;
  }
}

@media (max-width: 768px) {
  .arcade-header {
    height: 48px;
    padding: 0 0.5rem;
    gap: 0.35rem;
  }
  .arcade-brand {
    gap: 0;
    flex-shrink: 0;
  }
  .arcade-brand .brand-title,
  .arcade-brand .brand-version-tag {
    display: none !important;
  }
  .arcade-brand .brand-icon {
    width: 32px;
    height: 32px;
  }
  .arcade-hud-center {
    font-size: 0.78rem;
    gap: 0.45rem;
    margin: 0 auto;
    padding: 0 0.2rem;
  }
  .arcade-hud-center .hud-stat-item {
    gap: 0.2rem;
  }
  .arcade-hud-center .hud-label-clean {
    font-size: 0.70rem;
    color: #94a3b8;
  }
  .header-right-arcade {
    gap: 0.3rem;
    flex-shrink: 0;
  }
  .header-right-arcade .volume-dropdown-wrapper {
    display: none !important;
  }
  .header-right-arcade .icon-btn-arcade {
    width: 32px;
    height: 32px;
  }
  #btn-print,
  #btn-help-toggle,
  .btn-preorder-header {
    display: none !important;
  }
}

/* 2. Mesa Arcade y Cuadrícula de Perspectiva 3D */
.arcade-table-mat {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(circle at 50% 38%, #0d1a38 0%, #030712 75%);
  box-sizing: border-box;
  padding: 1.2rem 2rem 0;
}

.table-perspective-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(460px) rotateX(50deg);
  transform-origin: center bottom;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 55%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 55%, black 20%, transparent 85%);
  z-index: 0;
}

/* 3. Escenario Central con Mazos Laterales */
.arcade-arena-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  width: 100%;
  max-width: 1240px;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

/* 4. Mazos 3D con Grosor Realista de Papel Apilado */
.arcade-deck-3d {
  display: block !important;
  width: 135px;
  height: 185px;
  perspective: 900px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  user-select: none;
}

/* Base / Bahía de contacto en el tablero para los mazos laterales */
.arcade-deck-3d::before {
  content: '';
  position: absolute;
  bottom: -22px;
  left: -10px;
  right: -10px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(ellipse 65% 50% at 50% 50%, rgba(2, 132, 199, 0.22) 0%, rgba(15, 23, 42, 0.7) 48%, transparent 75%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.9),
    inset 0 0 10px rgba(56, 189, 248, 0.1);
  transform: perspective(320px) rotateX(60deg);
  pointer-events: none;
  z-index: 0;
  transition: all 0.3s ease;
}

.arcade-deck-3d:hover::before {
  background: radial-gradient(ellipse 65% 50% at 50% 50%, rgba(56, 189, 248, 0.35) 0%, rgba(15, 23, 42, 0.8) 52%, transparent 80%);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 
    0 14px 28px rgba(0, 0, 0, 0.95),
    0 0 16px rgba(56, 189, 248, 0.3);
}

.deck-3d-stack {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pile-left .deck-3d-stack {
  transform: rotateX(24deg) rotateY(16deg) rotateZ(-5deg);
}

.pile-left:hover .deck-3d-stack {
  transform: rotateX(20deg) rotateY(12deg) rotateZ(-3deg) translateY(-6px);
}

.pile-right .deck-3d-stack {
  transform: rotateX(24deg) rotateY(-16deg) rotateZ(5deg);
}

.pile-right:hover .deck-3d-stack {
  transform: rotateX(20deg) rotateY(-12deg) rotateZ(3deg) translateY(-6px);
}

.deck-top-card-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: #0c1527;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.deck-blueprint-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
  opacity: 0.7;
}

.deck-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
}

.deck-label-main,
.deck-label-sub {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.14em;
  line-height: 1.15;
}

.deck-count-badge {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 0.4rem;
}

.deck-label-discard {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.16em;
}

.deck-paper-edge-layers {
  position: absolute;
  left: 2px;
  right: -6px;
  bottom: -32px;
  height: 36px;
  border-radius: 0 0 14px 14px;
  background: repeating-linear-gradient(to bottom, #dcd2bd 0px, #dcd2bd 1px, #a89a7f 1.5px, #c8bc9f 2px, #dcd2bd 3px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.pile-left.is-empty .deck-paper-edge-layers,
.pile-right.is-empty .deck-paper-edge-layers {
  display: none !important;
}

.pile-left.is-empty .deck-top-card-face,
.pile-right.is-empty .deck-top-card-face {
  opacity: 0.35;
  border-style: dashed;
}

#pile-left-cards,
#pile-right-cards {
  display: none !important;
}

/* ==========================================================================
   HIT-TAZO: MAZOS LATERALES CIRCULARES 3D (TORRE / TUBO DE TAZOS APILADOS)
   ========================================================================== */
body.version-tazo-mode .arcade-deck-3d,
.arcade-arena-stage.is-disc-mode .arcade-deck-3d {
  width: 155px;
  height: 155px;
  border-radius: 50%;
}

body.version-tazo-mode .arcade-deck-3d::before,
.arcade-arena-stage.is-disc-mode .arcade-deck-3d::before {
  bottom: -28px;
  left: -6px;
  right: -6px;
  height: 48px;
  border-radius: 50%;
}

body.version-tazo-mode .arcade-deck-3d .deck-3d-stack,
.arcade-arena-stage.is-disc-mode .arcade-deck-3d .deck-3d-stack {
  width: 155px;
  height: 155px;
  border-radius: 50%;
}

body.version-tazo-mode .pile-left .deck-3d-stack,
.arcade-arena-stage.is-disc-mode .pile-left .deck-3d-stack {
  transform: rotateX(28deg) rotateY(16deg) rotateZ(-5deg);
}

body.version-tazo-mode .pile-left:hover .deck-3d-stack,
.arcade-arena-stage.is-disc-mode .pile-left:hover .deck-3d-stack {
  transform: rotateX(22deg) rotateY(12deg) rotateZ(-3deg) translateY(-8px);
}

body.version-tazo-mode .pile-right .deck-3d-stack,
.arcade-arena-stage.is-disc-mode .pile-right .deck-3d-stack {
  transform: rotateX(28deg) rotateY(-16deg) rotateZ(5deg);
}

body.version-tazo-mode .pile-right:hover .deck-3d-stack,
.arcade-arena-stage.is-disc-mode .pile-right:hover .deck-3d-stack {
  transform: rotateX(22deg) rotateY(-12deg) rotateZ(3deg) translateY(-8px);
}

body.version-tazo-mode .deck-top-card-face,
.arcade-arena-stage.is-disc-mode .deck-top-card-face {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  border: 3.5px solid rgba(56, 189, 248, 0.45) !important;
  background: radial-gradient(circle at 45% 40%, #1e293b 0%, #0c1527 55%, #030712 100%) !important;
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.85),
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.7),
    inset 0 0 0 8px rgba(56, 189, 248, 0.12) !important;
}

body.version-tazo-mode .pile-right .deck-top-card-face,
.arcade-arena-stage.is-disc-mode .pile-right .deck-top-card-face {
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: radial-gradient(circle at 45% 40%, #1e1b4b 0%, #0f172a 55%, #020617 100%) !important;
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.85),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.7),
    inset 0 0 0 8px rgba(148, 163, 184, 0.1) !important;
}

body.version-tazo-mode .deck-paper-edge-layers,
.arcade-arena-stage.is-disc-mode .deck-paper-edge-layers {
  left: 0 !important;
  right: 0 !important;
  bottom: -32px !important;
  height: 38px !important;
  border-radius: 0 0 50% 50% / 0 0 24px 24px !important;
  background: repeating-linear-gradient(to bottom, #38bdf8 0px, #0284c7 2px, #0f172a 2.5px, #1e293b 4.5px, #38bdf8 5px) !important;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.95) !important;
}

body.version-tazo-mode .pile-right .deck-paper-edge-layers,
.arcade-arena-stage.is-disc-mode .pile-right .deck-paper-edge-layers {
  background: repeating-linear-gradient(to bottom, #475569 0px, #334155 2px, #0f172a 2.5px, #1e293b 4.5px, #475569 5px) !important;
}

body.version-tazo-mode .deck-blueprint-lines,
.arcade-arena-stage.is-disc-mode .deck-blueprint-lines {
  border-radius: 50% !important;
  mask-image: radial-gradient(circle at 50% 50%, black 60%, transparent 95%) !important;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 60%, transparent 95%) !important;
}

/* 5. Chasis de la Tarjeta Central Horizontal Biselada */
.arcade-card-stage {
  width: 580px;
  max-width: 90vw;
  height: 260px;
  position: relative;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: width 0.3s ease, height 0.3s ease;
}

.arcade-card-stage.is-disc-mode,
.arcade-card-stage:has(.disc-physical),
.arcade-card-stage:has(.tazo-disc) {
  height: 340px;
}

.arcade-card-stage .disc-physical,
.arcade-card-stage .tazo-physical,
.arcade-card-stage .tazo-disc,
.arcade-card-stage .disc {
  width: 340px !important;
  height: 340px !important;
  min-width: 340px !important;
  min-height: 340px !important;
  max-width: 340px !important;
  max-height: 340px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  margin: 0 auto !important;
  flex-shrink: 0 !important;
}

.arcade-card-stage .hittazos-card-3d {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  border-radius: 28px !important;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.arcade-card-stage .card-sheet {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 28px !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
}

.arcade-card-stage .sheet-front.hittazos-matte-card {
  background: linear-gradient(145deg, #18233c 0%, #0a101e 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.25), 
    inset 0 -2px 6px rgba(0, 0, 0, 0.7), 
    0 24px 50px rgba(0, 0, 0, 0.8) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 2rem 3rem !important;
}

.arcade-card-stage .card-topbar-minimal,
.arcade-card-stage .card-footbar-minimal {
  display: none !important;
}

.arcade-card-stage .clue-stage-pure {
  margin: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100%;
}

.arcade-card-stage .clue-quote {
  font-family: var(--font-display, 'Outfit', -apple-system, sans-serif) !important;
  font-size: 1.68rem !important;
  font-weight: 700 !important;
  line-height: 1.36 !important;
  color: #ffffff !important;
  text-align: center !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  letter-spacing: -0.01em !important;
}

.arcade-card-stage .clue-quote strong {
  color: var(--card-accent, var(--hittazos-bg, #38bdf8)) !important;
  font-weight: 800 !important;
  text-shadow: 0 0 16px color-mix(in srgb, var(--card-accent, var(--hittazos-bg, #38bdf8)) 50%, transparent) !important;
}

.arcade-card-stage .sheet-back.hittazos-matte-card {
  background: linear-gradient(145deg, #18233c 0%, #0a101e 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.25), 
    inset 0 -2px 6px rgba(0, 0, 0, 0.7), 
    0 24px 50px rgba(0, 0, 0, 0.8) !important;
  transform: rotateY(180deg);
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 1.8rem 2.2rem !important;
}

.arcade-card-stage .back-author-title {
  color: #94a3b8 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.arcade-card-stage .year-digits-hero {
  font-size: 3.4rem !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.6) !important;
  letter-spacing: 0.05em !important;
}

.arcade-card-stage .year-mystery-box {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.2rem 0;
}

.arcade-card-stage .year-center-stage.is-hidden .year-mystery-box {
  display: flex !important;
  animation: pulseMystery 2.6s infinite ease-in-out;
}

.arcade-card-stage .year-mystery-digits {
  font-family: var(--font-display, 'Space Grotesk', sans-serif) !important;
  font-size: 3.6rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.16em !important;
  line-height: 1 !important;
  color: #38bdf8 !important;
  text-shadow: 
    0 0 18px rgba(56, 189, 248, 0.85),
    0 0 36px rgba(56, 189, 248, 0.45) !important;
  text-align: center !important;
  opacity: 0.95 !important;
  margin-left: 0.16em;
}

.arcade-card-stage .year-reveal-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: rgba(15, 23, 42, 0.94) !important;
  color: #f8fafc !important;
  padding: 0.32rem 0.95rem !important;
  border-radius: 9999px !important;
  border: 1.5px solid #38bdf8 !important;
  font-family: var(--font-sans, 'Outfit', sans-serif) !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 
    0 0 16px rgba(56, 189, 248, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.arcade-card-stage .year-center-stage:hover .year-reveal-badge {
  background: #0284c7 !important;
  border-color: #7dd3fc !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 
    0 0 24px rgba(56, 189, 248, 0.85),
    0 6px 16px rgba(0, 0, 0, 0.7) !important;
}

.arcade-card-stage .back-trivia-phrase {
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  color: #cbd5e1 !important;
  text-align: center !important;
  max-width: 480px !important;
}

.arcade-card-stage .back-trivia-phrase strong {
  color: var(--card-accent, var(--hittazos-bg, #38bdf8)) !important;
  font-weight: 700 !important;
}

/* 6. Arc Chrono Dial & Botón LANZAR TIRO */
.arc-dial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  margin-top: -12px;
}

.arc-action-bottom,
.arc-action-top {
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  z-index: 10;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-slam-arc {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24) 0%, rgba(234, 88, 12, 0.4) 100%) !important;
  backdrop-filter: blur(8px) !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 
    0 0 20px rgba(245, 158, 11, 0.45),
    inset 0 1px 2px rgba(254, 240, 138, 0.4) !important;
  border-radius: 9999px !important;
  color: #fffbeb !important;
  font-family: var(--font-display, 'Outfit', sans-serif) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.1em !important;
  padding: 0.52rem 2.2rem !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-slam-arc:hover:not(:disabled) {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  color: #0f172a !important;
  border-color: #fef08a !important;
  box-shadow: 
    0 0 32px rgba(245, 158, 11, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px) scale(1.02);
}

.btn-slam-arc:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.btn-slam-arc:disabled {
  opacity: 0.4 !important;
  border-color: #64748b !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

.chrono-arc-container {
  width: 560px;
  max-width: 92vw;
  height: 112px;
  position: relative;
}

.arc-dial-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.arc-rail-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4;
  stroke-linecap: round;
}

.arc-tick {
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke 0.12s ease, filter 0.12s ease;
}

.arc-tick.tick-cyan {
  stroke: #38bdf8;
  stroke-width: 7;
  filter: drop-shadow(0 0 7px rgba(56, 189, 248, 1));
}

.arc-tick.tick-amber {
  stroke: #f59e0b;
  stroke-width: 8;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 1));
}

.arc-tick.tick-inactive {
  stroke: #22324e;
  stroke-width: 6;
}

.arc-knob-pill {
  fill: url(#amber-knob-gradient);
  stroke: #ffffff;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 1));
  cursor: grab;
}

.arc-knob-group:hover .arc-knob-pill {
  filter: drop-shadow(0 0 18px rgba(245, 158, 11, 1));
}

.arc-knob-notch {
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 1.5;
}

.arc-year-display-wrap {
  margin-top: -24px;
  margin-bottom: 0.15rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.arc-selected-year {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.arc-rail-label {
  fill: #cbd5e1 !important;
  font-family: var(--font-display, 'Outfit', sans-serif) !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9)) !important;
}

.guess-feedback-row {
  min-height: 24px;
  margin-top: 4px;
}

.guess-result-pill {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   HIT-TAZOS TECH: ARQUITECTURA TAZO CIRCULAR 3D (DISCO NOVENTERO COLECCIONABLE)
   ========================================================================== */

/* ==========================================================================
   PILAS DE CARTAS LATERALES DE ESCRITORIO (MODO JUEGO, N=5)
   ========================================================================== */

/* Oculto por defecto en móviles y tablets */
.desktop-card-pile {
  display: none !important;
}

@media (min-width: 1024px) {
  .disc-arena-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 1180px;
  }

  .desktop-card-pile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 210px;
    user-select: none;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }

  .desktop-card-pile:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 4px;
    border-radius: 12px;
  }

  .desktop-card-pile:not(.is-empty):hover {
    transform: translateY(-6px);
  }

  .desktop-card-pile.is-empty {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
  }
}

.pile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-family: 'Space Grotesk', var(--font-display);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  color: #ffffff !important;
  font-size: 0.72rem !important;
}

.pile-badge-text {
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
}

.pile-badge-count {
  font-size: 0.72rem !important;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  min-width: 20px;
  text-align: center;
}

.pile-cards-wrapper {
  position: relative;
  width: 175px;
  height: 175px;
  perspective: 1000px;
  overflow: visible;
}

.pile-card {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  /* Canto físico prominente de cartulina marfil 350g */
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  border-left: 1.5px solid rgba(255, 255, 255, 0.35);
  border-right: 4.5px solid #ece8dc;
  border-bottom: 5px solid #d6cfc0;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translate3d(var(--tx, 0), var(--ty, 0), var(--z, 0)) rotate(var(--rot, 0deg));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, filter 0.35s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.pile-card.pile-card-under {
  filter: brightness(0.92) contrast(1.06);
}

.pile-card-under-edge {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
  pointer-events: none;
}

.pile-under-tag {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: 'Space Grotesk', var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
}

.pile-under-deck-line {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  pointer-events: none;
}

/* Formato Circular si es Hit-Tazo (Piezas de polímero/cerámica real) */
.deck-stack-disc,
.pile-cards-wrapper.is-disc .pile-card {
  border-radius: 50% !important;
  /* Color del tazo según la tarjeta física de la pila */
  background: radial-gradient(
    circle at 38% 30%,
    color-mix(in srgb, var(--tazo-color, var(--card-bg, #e86328)) 85%, #ffffff) 0%,
    var(--tazo-color, var(--card-bg, #e86328)) 50%,
    color-mix(in srgb, var(--tazo-color, var(--card-bg, #e86328)) 80%, #000000) 88%,
    #0f172a 100%
  ) !important;
  border: 2px solid color-mix(in srgb, var(--tazo-color, var(--card-bg, #e86328)) 45%, #ffffff) !important;
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.25),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.5),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.35) !important;
}

.pile-cards-wrapper.is-disc .pile-card-under {
  border-color: color-mix(in srgb, var(--tazo-color, var(--card-bg, #e86328)) 40%, #ffffff) !important;
  box-shadow:
    0 2px 5px rgba(15, 23, 42, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

/* Expansión física al pasar el cursor (Hover Stack Effect) */
.desktop-card-pile:not(.is-empty):hover .pile-card {
  transform: translate3d(var(--htx, var(--tx, 0)), var(--hty, var(--ty, 0)), calc(var(--z, 0) + 12px)) rotate(var(--hrot, var(--rot, 0deg)));
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.65),
    0 4px 8px rgba(0, 0, 0, 0.45);
}

.desktop-card-pile:not(.is-empty):hover .pile-card.pile-card-top {
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.7),
    0 6px 14px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pile-empty-slot {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
}

.pile-cards-wrapper.is-disc .pile-empty-slot {
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.55) !important;
  border: 2px dashed #cbd5e1 !important;
  color: #94a3b8 !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.pile-empty-slot i {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

/* Cara Posterior de Mazo de Robo (Hit-Cards) */
.pile-deckback-inner {
  width: 100%;
  height: 100%;
  background: #090d16;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pile-deckback-border {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.15) 0%, transparent 80%);
}

.pile-deckback-icon {
  width: 26px;
  height: 26px;
  color: #38bdf8;
}

.pile-deckback-text {
  font-family: 'Space Grotesk', var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e2e8f0;
}

/* Cara Posterior de Mazo de Robo (Hit-Tazo) */
.pile-tazoback-rim {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(100, 116, 139, 0.35);
  pointer-events: none;
}

.pile-tazoback-core {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.pile-tazo-icon {
  width: 28px;
  height: 28px;
  color: #0284c7;
}

.pile-tazo-text {
  font-family: 'Space Grotesk', var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Cara Anterior Mini (Hit-Cards) */
.pile-faceup-inner {
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #111111;
  text-align: left;
}

.pile-faceup-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  opacity: 0.85;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 3px;
}

.pile-faceup-domain {
  text-transform: uppercase;
}

.pile-faceup-author {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  margin: auto 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pile-faceup-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.pile-faceup-year {
  font-family: 'Space Grotesk', var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.85);
  color: #f8fafc;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.pile-clock-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Cara Anterior Mini (Hit-Tazo) */
.pile-tazofaceup-core {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 12px;
  box-sizing: border-box;
  text-align: center;
}

.pile-tazofaceup-author {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pile-tazo-year {
  font-family: 'Space Grotesk', var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.pile-tazo-id {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Permite que el disco vuele hacia afuera sin recortarse con un scrollbar */
.disc-arena-stage,
.tazo-arena-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.2rem auto 0.8rem auto;
  perspective: 1400px;
  overflow: visible !important;
}

/* Escenario y Contenedor de Mesa */
.disc-stage,
.tazo-stage,
.disc-container,
.tazo-container,
.card-perspective-stage {
  width: min(360px, 88vw);
  height: min(360px, 88vw);
  aspect-ratio: 1 / 1;
  perspective: 1200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.2rem auto 0.8rem auto;
  user-select: none;
  cursor: pointer;
  z-index: 2;
  touch-action: pan-y;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible !important;
}

/* Sombra de contacto elíptica centrada y localizada bajo la pieza física */
.disc-stage::after,
.tazo-stage::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 74%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.16) 0%, rgba(15, 23, 42, 0.04) 50%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.disc-stage:active,
.tazo-stage:active,
.card-perspective-stage:active {
  cursor: grabbing;
}

.disc-stage:hover,
.tazo-stage:hover,
.card-perspective-stage:hover {
  transform: translateY(-4px);
}

/* ==========================================================================
   ANATOMÍA Y RENDERIZADO MODULAR: HIT-TAZO Y HIT-CARDS
   Los estilos dedicados residen en web/css/tazo.css y web/css/cards.css
   ========================================================================== */

/* ==========================================================================
   CHRONO-DIAL & LANZADOR DE TIRO (CONTROL LÚDICO SIN FORMULARIOS)
   ========================================================================== */

.dial-launcher-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 1.1rem auto 0.6rem auto;
  width: 100%;
  max-width: 480px;
  padding: 0 1rem;
  box-sizing: border-box;
}

.dial-value-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #0284c7;
  padding: 0.35rem 1.6rem;
  border-radius: 14px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 0 20px rgba(2, 132, 199, 0.12);
}

.badge-title {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
}

.badge-year {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 2.3rem;
  font-weight: 900;
  color: #0284c7;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.dial-slider-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.slider-boundary-year {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.disc-year-slider,
.tazo-year-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
  outline: none;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: ew-resize;
}

.disc-year-slider::-webkit-slider-thumb,
.tazo-year-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0284c7 80%);
  border: 3px solid #ffffff;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.65),
    0 0 14px rgba(56, 189, 248, 0.8);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.disc-year-slider::-webkit-slider-thumb:active,
.tazo-year-slider::-webkit-slider-thumb:active {
  transform: scale(1.22);
  cursor: grabbing;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(56, 189, 248, 0.95);
}

.disc-year-slider::-moz-range-thumb,
.tazo-year-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0284c7 80%);
  border: 3px solid #ffffff;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.65),
    0 0 14px rgba(56, 189, 248, 0.8);
  cursor: grab;
}

.dial-action-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-slam {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #ffffff;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 5px 18px rgba(217, 119, 6, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.btn-slam:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(217, 119, 6, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-slam:active {
  transform: translateY(1px) scale(0.98);
}

.btn-slam:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-slam i,
.btn-slam svg {
  width: 18px;
  height: 18px;
}

.disc-nav-cluster,
.tazo-nav-cluster {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.5rem auto 1.2rem auto;
}

.btn-nav-disc,
.btn-nav-tazo {
  padding: 0.42rem 0.85rem;
  font-size: 0.78rem;
  border-radius: 10px;
}

.guess-result-pill {
  min-height: 24px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex: 1;
}

/* Fila que contiene el resultado + tracker de intentos */
.guess-feedback-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 28px;
  padding: 0 0.2rem;
  width: 100%;
}

/* Control Buttons */
.action-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  border: none;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 12px;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.45);
}

.btn-flip-cta {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.65rem 1.3rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-flip-cta:hover {
  background: #ffffff;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-flip-cta:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  user-select: none;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
  transform: translateY(1px);
}

/* Bandeja de Línea de Tiempo del Jugador (Carril de Mesa 3D y Rack Físico) */
.timeline-shelf {
  width: 100%;
  max-width: 960px;
  background: rgba(11, 19, 41, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  padding: 1.15rem 1.4rem;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  margin-top: 1.5rem;
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.shelf-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.2;
}

.shelf-title-wrap i,
.shelf-title-wrap svg {
  color: #f59e0b;
}

/* Contador en el estante con brillo sutil */
#shelf-counter {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.shelf-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.shelf-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #f59e0b, #10b981);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shelf-cards-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.75rem 0.8rem 1rem 0.8rem;
  min-height: 120px;
  align-items: center;
  position: relative;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.shelf-cards-row::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Riel de línea de tiempo detrás de las cartas (oculto para no interferir con las fichas) */
.shelf-cards-row::before {
  display: none !important;
}

/* Tarjeta Vertical en Rack 3D (Estilo web-ui-preview.jpg) */
.shelf-rack-card {
  flex: 0 0 136px;
  height: 142px;
  background: linear-gradient(165deg, #111d38 0%, #080e1e 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7rem 0.55rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.shelf-rack-card:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: #38bdf8;
  box-shadow: 0 14px 26px rgba(56, 189, 248, 0.35);
}

.shelf-rack-card.active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px #f59e0b, 0 12px 24px rgba(245, 158, 11, 0.4);
}

.shelf-rack-year-badge {
  border: 2px solid #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  color: #fef08a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
  border-radius: 7px;
  padding: 0.15rem 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.shelf-rack-card:nth-child(even) .shelf-rack-year-badge {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  color: #e0f2fe;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.shelf-rack-title {
  font-size: 0.76rem;
  color: #cbd5e1;
  text-align: center;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: auto;
  width: 100%;
}

.shelf-rack-title strong {
  color: #f8fafc;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.shelf-rack-title span {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   HIT-TAZO: FICHAS / DISCOS CIRCULARES EN LA LÍNEA DE TIEMPO (ESTANTE)
   ========================================================================== */
.shelf-tazo-disc-chip {
  flex: 0 0 118px !important;
  width: 118px !important;
  height: 118px !important;
  max-width: 118px !important;
  max-height: 118px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: radial-gradient(
    circle at 50% 45%,
    color-mix(in srgb, var(--tazo-color, #e86328) 85%, #000000 15%) 0%,
    color-mix(in srgb, var(--tazo-color, #e86328) 95%, #000000 5%) 55%,
    color-mix(in srgb, var(--tazo-color, #e86328) 60%, #000000 40%) 100%
  ) !important;
  border: 3.5px solid color-mix(in srgb, var(--tazo-color, #e86328) 70%, #ffffff 30%) !important;
  box-shadow: 
    0 10px 22px rgba(0, 0, 0, 0.75),
    inset 0 1.5px 3px rgba(255, 255, 255, 0.45),
    inset 0 -2.5px 5px rgba(0, 0, 0, 0.6),
    inset 0 0 0 6px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.55rem 0.6rem !important;
  position: relative !important;
  box-sizing: border-box !important;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease !important;
  overflow: hidden !important;
}

.shelf-tazo-disc-chip:hover {
  transform: translateY(-8px) scale(1.08) !important;
  border-color: #fef08a !important;
  box-shadow: 
    0 16px 30px rgba(0, 0, 0, 0.85),
    0 0 20px color-mix(in srgb, var(--tazo-color, #38bdf8) 65%, transparent) !important;
}

.shelf-tazo-disc-chip.active {
  transform: translateY(-8px) scale(1.12) !important;
  border-color: #f59e0b !important;
  box-shadow: 
    0 0 0 3px #f59e0b, 
    0 14px 28px rgba(245, 158, 11, 0.6) !important;
}

/* Micro muescas CNC perimetrales en los tazos del estante */
.shelf-tazo-notches {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
}

.shelf-tazo-notches span {
  position: absolute;
  background: #0f172a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.shelf-tazo-notches span:nth-child(1) { top: 2px; left: calc(50% - 1px); width: 2px; height: 5px; }
.shelf-tazo-notches span:nth-child(2) { bottom: 2px; left: calc(50% - 1px); width: 2px; height: 5px; }
.shelf-tazo-notches span:nth-child(3) { left: 2px; top: calc(50% - 1px); width: 5px; height: 2px; }
.shelf-tazo-notches span:nth-child(4) { right: 2px; top: calc(50% - 1px); width: 5px; height: 2px; }

.shelf-tazo-year-badge {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.08rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  background: rgba(15, 23, 42, 0.78);
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 0.3rem;
  z-index: 2;
}

.shelf-tazo-title {
  font-size: 0.68rem;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  z-index: 2;
  width: 90%;
}

.shelf-tazo-title strong {
  color: #ffffff;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.shelf-tazo-title span {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.shelf-card-chip,
.shelf-disc-chip,
.shelf-tazo-chip {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--disc-color, var(--tazo-color, #0ea5e9)) 0%, #0369a1 85%);
  border: 3px solid #ffffff;
  box-shadow: 
    0 4px 10px rgba(15, 23, 42, 0.18), 
    0 0 0 2px #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.shelf-card-chip:hover,
.shelf-disc-chip:hover,
.shelf-tazo-chip:hover {
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28), 0 0 0 2px #0f172a;
}

.shelf-card-chip.active,
.shelf-disc-chip.active,
.shelf-tazo-chip.active {
  transform: translateY(-4px) scale(1.15);
  box-shadow: 
    0 0 0 3px #38bdf8, 
    0 8px 20px rgba(56, 189, 248, 0.45),
    0 0 0 1px #0f172a;
}

.shelf-year,
.shelf-disc-year,
.shelf-tazo-year {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.85rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.shelf-id,
.shelf-disc-id,
.shelf-tazo-id {
  font-family: var(--font-mono, monospace);
  font-size: 0.52rem;
  color: #fef08a;
  font-weight: 700;
  margin-top: 2px;
}

.shelf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-shelf-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-shelf-reset:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.btn-shelf-reset i,
.btn-shelf-reset svg {
  width: 12px;
  height: 12px;
}

/* Fullscreen FX Canvas */
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.shelf-empty-prompt {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  width: 100%;
  padding: 1rem;
}

/* Gallery / Explorer Mode */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  background: rgba(14, 18, 30, 0.85);
  padding: 1.1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-field-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-field:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.search-icon-slot {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.dropdown-cluster {
  display: flex;
  gap: 0.75rem;
}

.select-control {
  background: #111524;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-control:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   HIT-TAZOS TECH: MODO ABANICO Y CANTO APILADO (FANNING TRACK & CANTO BAR)
   ========================================================================== */

:root {
  --fan-card-size: 260px;
}

/* Toggle de Disposición (Abanico vs Cuadrícula) */
.gallery-layout-toggle {
  display: inline-flex;
  align-items: center;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.gallery-layout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  color: #a1a1aa;
  padding: 6px 14px;
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gallery-layout-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.gallery-layout-btn.active {
  background: #27272a;
  color: #38bdf8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gallery-layout-btn svg {
  width: 14px;
  height: 14px;
}

/* Sección de Abanico */
.gallery-fan-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* Barra Panorámica del Canto Apilado */
.canto-preview {
  width: 100%;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.canto-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.canto-label-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.canto-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e4e4e7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Plus Jakarta Sans', var(--font-sans);
}

.canto-label svg {
  width: 15px;
  height: 15px;
  color: #38bdf8;
}

.canto-sublabel {
  font-size: 0.72rem;
  color: #71717a;
  font-family: var(--font-sans);
}

.fan-color-controls {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  background: #121214;
  padding: 4px 8px;
  border-radius: 9px;
  border: 1px solid #27272a;
}

.fan-controls-caption {
  font-size: 0.72rem;
  color: #71717a;
  font-weight: 600;
  margin-right: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-fan-mode {
  background: transparent;
  border: none;
  color: #a1a1aa;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Plus Jakarta Sans', var(--font-sans);
}

.btn-fan-mode:hover {
  color: #ffffff;
}

.btn-fan-mode.active {
  background: #27272a;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.canto-bar {
  display: flex;
  width: 100%;
  height: 42px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
  border: 1px solid #3f3f46;
  background: #09090b;
}

.canto-slice {
  flex: 1;
  height: 100%;
  transition: transform 0.12s ease, filter 0.12s ease;
  cursor: pointer;
  min-width: 1px;
}

.canto-slice:hover {
  transform: scaleY(1.3);
  filter: brightness(1.25);
  z-index: 20;
}

.canto-slice.active-canto-target {
  filter: brightness(1.4) drop-shadow(0 0 6px #fff);
  transform: scaleY(1.35);
  z-index: 25;
}

/* Pista Horizontal en Abanico ("Fanning Track") */
.fanning-scroll-wrapper {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 3.5rem 1.5rem 4.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 #18181b;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.fanning-scroll-wrapper.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
}

.fanning-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.fanning-scroll-wrapper::-webkit-scrollbar-track {
  background: #18181b;
  border-radius: 4px;
}

.fanning-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

.fanning-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

.fanning-track {
  display: flex;
  align-items: flex-end;
  height: calc(var(--fan-card-size, 260px) + 70px);
  padding-left: 30px;
  padding-right: 140px;
  width: max-content;
}

/* Tarjeta Cuadrada en Abanico */
.card.card-fan {
  width: var(--fan-card-size, 260px);
  height: var(--fan-card-size, 260px);
  border-radius: 28px;
  margin-left: -215px;
  padding: 1.4rem 1.3rem 1.1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), -4px 0 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
  overflow: hidden;
  flex-shrink: 0;
  outline: none;
}

.card.card-fan:hover,
.card.card-fan:focus-visible {
  transform: translateY(-40px) scale(1.04);
  margin-right: 90px;
  z-index: 99999 !important;
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Textura micro-rugosa de papel mate 350g */
.card.card-fan::before {
  content: "";
  position: absolute;
  inset: 0;
  filter: url(#paper-grain);
  opacity: 0.13;
  pointer-events: none;
  mix-blend-mode: multiply;
  border-radius: inherit;
  z-index: 1;
}

.card-fan-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-fan-face {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-fan .card-fan-front {
  display: flex;
}

.card-fan .card-fan-back {
  display: none;
}

.card-fan.is-flipped .card-fan-front {
  display: none;
}

.card-fan.is-flipped .card-fan-back {
  display: flex;
}

.card-header-author {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  color: #111111;
  text-align: center;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.card-year-center {
  font-family: 'Space Grotesk', var(--font-display);
  font-size: 4.4rem;
  font-weight: 800;
  color: #111111;
  text-align: center;
  letter-spacing: -2px;
  line-height: 0.9;
  margin: auto 0;
}

.card-fan-bottom-area {
  display: flex;
  flex-direction: column;
}

.card-description {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.35;
  padding: 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-footer {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Grotesk', var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.6);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 0.55rem;
}

.card-fan-front-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
  padding-bottom: 0.4rem;
}

.card-fan-front-top .group-badge-tiny {
  color: #111111;
  font-weight: 800;
  font-size: 0.68rem;
}

.card-fan-front-top .category-badge-tiny {
  color: #333333;
  font-size: 0.64rem;
}

.card-fan-clue {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.45;
  color: #111111;
  margin: auto 0;
  text-align: left;
}

.card-fan-clue strong {
  font-weight: 800;
  color: #000000;
}

@media (max-width: 900px) {
  :root {
    --fan-card-size: 220px;
  }
  .card.card-fan {
    margin-left: -175px;
    padding: 1.1rem 1.0rem 0.9rem;
  }
  .card.card-fan:hover {
    margin-right: 75px;
  }
  .card-year-center {
    font-size: 3.6rem;
  }
  .card-header-author {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  :root {
    --fan-card-size: 190px;
  }
  .card.card-fan {
    margin-left: -145px;
    padding: 0.9rem 0.8rem 0.7rem;
    border-radius: 20px;
  }
  .card.card-fan:hover {
    margin-right: 60px;
  }
  .card-year-center {
    font-size: 3.0rem;
  }
  .card-header-author {
    font-size: 0.78rem;
  }
  .card-description {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
  }
}

.cards-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem 2rem;
  justify-items: center;
}

.catalog-card-cell {
  width: var(--card-width, 360px);
  height: var(--card-height, 360px);
  perspective: 1600px;
  position: relative;
  display: flex;
  justify-content: center;
}

.catalog-card-cell .disc-year-hero,
.catalog-card-cell .tazo-year-hero {
  cursor: inherit;
}

.catalog-card-cell .disc-year-hero:hover,
.catalog-card-cell .tazo-year-hero:hover {
  transform: none;
}

/* Print Rules */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
}

/* Modal de Impresión y Ayuda */
.print-modal {
  margin: auto;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  max-width: 540px;
  width: 90vw;
  padding: 0;
  outline: none;
  color: #0f172a;
}

.print-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.print-modal-content {
  display: flex;
  flex-direction: column;
}

.print-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.print-modal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.print-modal-title svg {
  width: 22px;
  height: 22px;
  color: #0284c7;
}

.print-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.print-modal-close:hover {
  color: #0f172a;
}

.print-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ==========================================================================
   MODAL DE IMPRESIÓN Y DESCARGAS (DISEÑO ESCANEABLE DE ALTO CONTRASTE)
   ========================================================================== */

.print-modal .print-modal-content {
  max-width: 680px;
}

.print-modal-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.2rem 1.5rem;
}

.print-section-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.print-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display, sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.print-section-title svg {
  width: 17px;
  height: 17px;
  color: #0284c7;
}

.print-section-desc {
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

/* Grilla Compacta de Descarga de PDFs (2 columnas) */
.pdf-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

/* Fila de descarga individual con alto contraste */
.pdf-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pdf-compact-row:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.08);
}

.pdf-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.pdf-row-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pdf-vol-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 800;
  background: #e0f2fe;
  color: #0284c7;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
}

.pdf-specs-text {
  font-size: 0.66rem;
  color: #64748b;
  white-space: nowrap;
}

/* Título de volumen: Negro oscuro sobre fondo blanco, 100% legible */
.pdf-row-title {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.pdf-row-action {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.pdf-compact-row:hover .pdf-row-action {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.pdf-row-action svg {
  width: 14px;
  height: 14px;
}

/* Adaptación para pantallas de smartphone */
@media (max-width: 640px) {
  .pdf-compact-grid {
    grid-template-columns: 1fr;
  }
}

.print-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Contenedor del modal de ayuda estilizado */
.help-modal .print-modal-content {
  max-width: 620px;
}

.help-grid-modern {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
  padding: 1rem 1.4rem;
}

.help-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.help-section-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

/* Tarjetas de pasos 1, 2, 3 */
.step-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #334155;
}

.step-card strong {
  color: #0f172a;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.key-inline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

/* Fila de píldoras de puntuación */
.score-pills-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
}

.score-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.score-val {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
}

.score-desc {
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 2px;
}

.score-chip.exact {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.score-chip.near {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.score-chip.cost {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* Grupo de atajos compacto */
.shortcut-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shortcut-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #334155;
}

.keys-box {
  display: flex;
  gap: 3px;
  align-items: center;
}

.keys-box kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  background: #ffffff;
  color: #0f172a;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1.5px 0 #cbd5e1;
  min-width: 18px;
  text-align: center;
}

.btn-play-understood {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .help-grid-modern {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 0.8rem 1rem;
  }
}

/* ==========================================================================
   MODAL DE SELECCIÓN DE VERSIÓN: HIT-TAZO VS HIT-CARDS
   ========================================================================== */

.version-modal .print-modal-content {
  max-width: 680px;
  background: #0b0f19;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.15);
}

.version-modal .print-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
}

.version-modal .print-modal-title {
  color: #f8fafc;
  font-size: 1.25rem;
}

.version-modal-intro {
  text-align: center;
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.version-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 620px) {
  .version-options-grid {
    grid-template-columns: 1fr;
  }
}

.version-option-card {
  position: relative;
  background: rgba(30, 41, 59, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  user-select: none;
}

.version-option-card:hover {
  transform: translateY(-4px);
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.5);
}

.version-option-card.active-version {
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.22);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.28), 0 10px 24px rgba(0, 0, 0, 0.4);
}

.version-option-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.version-option-card.active-version .version-option-badge {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.version-option-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.version-option-card:hover .version-option-icon {
  transform: scale(1.1) rotate(6deg);
}

.version-icon-tazo {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.4);
}

.version-icon-cards {
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
}

.version-option-icon svg {
  width: 34px;
  height: 34px;
}

.version-option-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.version-option-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 0.65rem;
}

.version-option-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 1.2rem;
  flex: 1;
}

.version-option-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-choose-tazo {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: white;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.btn-choose-tazo:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.5);
}

.btn-choose-cards {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-choose-cards:hover {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

.version-modal-footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.version-modal-footer-note strong {
  color: #94a3b8;
}

/* Contenedor de hojas de impresión para vista en pantalla */
.print-sheets-container {
  display: none;
}

/* ==========================================================================
   Dúplex Precision Print Engine (Milimétricamente Frente y Reverso)
   Tamaño: Carta / Letter (8.5 x 11 pulg / 215.9mm x 279.4mm)
   6 cartas por pliego (2 columnas x 3 filas de 65mm x 65mm)
   ========================================================================== */
@media print {
  @page {
    size: letter portrait;
    margin: 0; /* Sin márgenes del navegador para registro exacto */
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  header,
  .ribbon-wrapper,
  nav.category-ribbon,
  #fx-canvas,
  .hud-bar,
  .arena-wrapper,
  .gallery-toolbar,
  .cards-catalog-grid,
  .view-section,
  dialog {
    display: none !important;
  }

  main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .print-sheets-container {
    display: block !important;
  }

  /* Pliego Carta (8.5 x 11 pulg: 215.9mm x 279.4mm) */
  .print-sheet {
    width: 215.9mm;
    height: 279.4mm;
    box-sizing: border-box;
    page-break-after: always;
    break-after: page;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10mm 15mm; /* Centrado geométrico absoluto */
    position: relative;
    overflow: hidden;
  }

  .sheet-meta-header {
    position: absolute;
    top: 5mm;
    left: 15mm;
    right: 15mm;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 7pt;
    color: #64748b;
  }

  /* Cuadrícula 2 columnas x 3 filas = 6 cartas de 65mm x 65mm (130mm x 195mm) */
  .print-grid-6 {
    display: grid !important;
    grid-template-columns: 65mm 65mm !important;
    grid-template-rows: repeat(3, 65mm) !important;
    gap: 0 !important;
    width: 130mm !important;
    height: 195mm !important;
    margin: auto !important;
    box-sizing: border-box;
  }

  .print-card-box {
    width: 65mm !important;
    height: 65mm !important;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .print-crop-border {
    border: 0.5pt solid rgba(0, 0, 0, 0.25) !important;
  }

  /* Marcas de corte en las esquinas */
  .crop-mark {
    position: absolute;
    pointer-events: none;
    z-index: 10;
  }

  /* Cara Impresa dentro de la celda de corte */
  .print-card-face {
    width: 100% !important;
    height: 100% !important;
    padding: 3.5mm 4mm 3mm 4mm !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    position: relative;
  }

  /* Frente impreso (Cita / Pista) */
  .print-face-front {
    background: var(--hittazos-front-bg, var(--card-front-bg, #111827)) !important;
    color: #ffffff !important;
  }

  .print-face-front .card-topbar-minimal {
    font-size: 6.5pt !important;
  }

  .print-face-front .group-badge-tiny svg {
    width: 9px !important;
    height: 9px !important;
  }

  .print-face-front .category-badge-tiny {
    font-size: 6pt !important;
  }

  .print-face-front .clue-stage-pure {
    padding: 1.5mm 0 !important;
  }

  .print-face-front .clue-quote {
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
  }

  .print-face-front .clue-quote code {
    font-size: 7.5pt !important;
    padding: 0.5mm 1mm !important;
  }

  .print-face-front .card-footbar-minimal {
    padding-top: 1mm !important;
  }

  .print-face-front .corner-meta-left,
  .print-face-front .corner-meta-right {
    font-size: 4pt !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.15) !important;
  }

  .print-face-front .flip-pill {
    display: none !important;
  }

  /* Reverso impreso (Año centrado, Creador arriba, Lore abajo) */
  .print-face-back {
    background: var(--hittazos-bg, var(--card-bg, #f59e0b)) !important;
    color: #111111 !important;
  }

  .print-face-back .card-back-top {
    min-height: 5mm !important;
    padding: 0 !important;
  }

  .print-face-back .back-author-title {
    font-size: 8.5pt !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: #111111 !important;
  }

  .print-face-back .year-center-stage {
    margin: 1mm 0 !important;
    cursor: default !important;
    transform: none !important;
  }

  .print-face-back .year-digits-hero {
    font-size: 34pt !important;
    font-weight: 900 !important;
    line-height: 0.9 !important;
    color: #111111 !important;
  }

  .print-face-back .card-back-bottom {
    min-height: 8mm !important;
    padding: 0 !important;
  }

  .print-face-back .back-trivia-phrase {
    font-size: 6.8pt !important;
    line-height: 1.25 !important;
    color: #111111 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .print-face-back .card-footbar-minimal {
    padding-top: 1mm !important;
  }

  .print-face-back .corner-meta-left,
  .print-face-back .corner-meta-right {
    font-size: 4pt !important;
    font-weight: 500 !important;
    color: rgba(0, 0, 0, 0.25) !important;
  }
}

/* Application Footer */
.app-footer {
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary, #334155);
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-version {
  color: #0284c7;
  font-family: var(--font-mono);
  font-weight: 700;
}

.footer-link {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.footer-sep {
  color: rgba(0, 0, 0, 0.2);
}

/* Guía táctil de gestos y atajos de teclado */
.mobile-gesture-guide {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  user-select: none;
}

.gesture-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.gesture-item svg,
.gesture-item i {
  width: 13px;
  height: 13px;
  color: #38bdf8;
}

.gesture-sep {
  opacity: 0.4;
}

.kbd-shortcut-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.65;
  font-weight: 500;
  margin-left: 0.2rem;
}

/* ==========================================================================
   HIT-TAZOS TECH: MOBILE FIRST RESPONSIVE ARCHITECTURE & TOUCH ERGONOMICS
   Optimizaciones avanzadas para smartphones (320px - 768px)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    /* Reducir el diámetro del disco para que todo el juego quepa sin scroll vertical */
    --card-width: min(255px, 68vw, 32vh);
    --card-height: min(255px, 68vw, 32vh);
    --card-radius: 16px;
  }

  html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
  }

  main {
    padding: 0.4rem 0.6rem 1.2rem 0.6rem;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* 1. HEADER COMPACTO EN UNA SOLA FILA */
  header {
    padding: 0.4rem 0.8rem;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
  }

  .brand {
    gap: 0.4rem;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .brand-title {
    font-size: 0.95rem;
    color: #0f172a;
  }

  .brand-subline,
  .brand-version-tag {
    display: none !important;
  }

  .nav-actions {
    gap: 0.35rem;
    margin-left: auto;
  }

  /* Selector de vista compacto */
  .game-mode-switch {
    padding: 2px;
    border-radius: 10px;
  }

  .tab-btn {
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
    gap: 0.25rem;
    border-radius: 8px;
  }

  .tab-btn span {
    display: none; /* Solo íconos en móvil para no desbordar */
  }

  .utility-actions {
    gap: 0.25rem;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  /* Ribbon de volumen táctil con desplazamiento por inercia */
  .ribbon-wrapper {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e2e8f0;
  }

  .category-ribbon {
    padding: 0.35rem 0.65rem;
    gap: 0.35rem;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .ribbon-pill {
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    gap: 0.3rem;
  }

  .ribbon-pill .pill-icon {
    width: 12px;
    height: 12px;
  }

  .ribbon-pill .pill-count {
    font-size: 0.62rem;
    padding: 0.08rem 0.3rem;
  }

  /* 2. HUD SUPERIOR ULTRA-COMPACTO */
  .hud-bar {
    max-width: 330px;
    padding: 0.25rem 0.65rem;
    font-size: 0.68rem;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
    justify-content: space-around;
    box-sizing: border-box;
    border-radius: 12px;
  }

  .hud-item {
    font-size: 0.68rem;
    gap: 0.2rem;
  }

  .hud-item i,
  .hud-item svg {
    width: 12px;
    height: 12px;
  }

  .hud-attempts-item {
    padding: 0.12rem 0.45rem;
    gap: 0.25rem;
  }

  .attempt-visual-dots {
    gap: 3.5px;
  }

  .attempt-pip {
    width: 8.5px;
    height: 8.5px;
  }

  /* 3. ESCENARIO DEL DISCO Y PROPORCIONES */
  .arcade-table-mat {
    height: 100% !important;
    min-height: 0 !important;
    padding: 0.35rem 0.5rem 0.35rem 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.2rem !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .arena-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.2rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .disc-arena-stage,
  .tazo-arena-stage,
  .arcade-arena-stage {
    order: 1 !important;
    flex: 1 1 auto !important;
    margin: 0 auto !important;
    gap: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 0 !important;
  }

  .arcade-deck-3d,
  .desktop-card-pile {
    display: none !important;
  }

  /* Tamaño adaptable del escenario del disco / carta en móvil */
  .arcade-card-stage.is-disc-mode,
  .arcade-card-stage:has(.disc-physical),
  .arcade-card-stage:has(.tazo-disc),
  .disc-stage,
  .tazo-stage {
    width: min(280px, 76vw, 36vh) !important;
    height: min(280px, 76vw, 36vh) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
  }

  .arcade-card-stage .disc-physical,
  .arcade-card-stage .tazo-physical,
  .arcade-card-stage .tazo-disc,
  .arcade-card-stage .disc,
  .disc-physical,
  .tazo-physical,
  .disc,
  .tazo-disc {
    width: min(280px, 76vw, 36vh) !important;
    height: min(280px, 76vw, 36vh) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  /* Modo Hit-Cards rectangular en móvil */
  .arcade-card-stage:not(.is-disc-mode):not(:has(.disc-physical)):not(:has(.tazo-disc)) {
    width: min(340px, 92vw) !important;
    height: min(210px, 28vh) !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  .arcade-card-stage .sheet-front.hittazos-matte-card,
  .arcade-card-stage .sheet-back.hittazos-matte-card {
    padding: 0.85rem 1rem !important;
  }

  .arcade-card-stage .clue-quote {
    font-size: clamp(0.92rem, 3.6vw, 1.1rem) !important;
    line-height: 1.32 !important;
  }

  .arcade-card-stage .back-author-title {
    font-size: 0.82rem !important;
  }

  .arcade-card-stage .year-digits-hero {
    font-size: 2.5rem !important;
  }

  .arcade-card-stage .year-mystery-digits {
    font-size: 2.2rem !important;
  }

  .arcade-card-stage .back-trivia-phrase {
    font-size: 0.78rem !important;
    line-height: 1.28 !important;
  }

  /* Núcleo central del disco con más aire para el texto y sin desbordar el arco */
  .disc-core-front,
  .tazo-core-front {
    width: 71% !important;
    height: 71% !important;
    padding: 0.35rem 0.45rem !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
  }

  .disc-hito-prose,
  .tazo-hito-prose {
    font-size: clamp(0.70rem, 2.3vw, 0.82rem) !important;
    line-height: 1.26 !important;
    max-width: 90% !important;
    max-height: 92% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Texto en el aro curvado */
  .ring-label, .ring-sub {
    font-family: var(--font-sans, 'Outfit', sans-serif) !important;
    font-size: 8px !important;
    letter-spacing: 0.4px !important;
    font-weight: 800 !important;
    fill: #ffffff !important;
    opacity: 0.95 !important;
  }

  .kbd-shortcut-hint {
    display: none;
  }

  /* 4. CHRONO-DIAL Y LANZADOR MÓVIL */
  .dial-launcher-wrapper,
  .arc-dial-wrapper {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 340px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.12rem !important;
    margin: 0 auto !important;
    padding: 0 0.4rem !important;
    box-sizing: border-box !important;
  }

  .chrono-arc-container {
    width: 100% !important;
    max-width: 320px !important;
    height: 84px !important;
    position: relative !important;
  }

  .chrono-arc-container .arc-dial-svg {
    max-width: 310px !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .arc-rail-label {
    font-size: 14px !important;
  }

  .arc-year-display-wrap {
    margin-top: -16px !important;
    margin-bottom: 0.1rem !important;
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .arc-selected-year {
    font-size: 1.85rem !important;
  }

  .dial-action-row,
  .arc-action-bottom {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.1rem !important;
    z-index: 10 !important;
  }

  .btn-slam,
  .btn-slam-arc {
    width: auto !important;
    min-width: 175px !important;
    max-width: 240px !important;
    padding: 0.44rem 1.6rem !important;
    font-size: 0.88rem !important;
    border-radius: 9999px !important;
    margin: 0 auto !important;
  }

  .guess-feedback-row {
    min-height: 20px !important;
    margin-top: 2px !important;
  }

  .guess-result-pill {
    font-size: 0.78rem !important;
    padding: 0.2rem 0.65rem !important;
  }

  /* 5. BANDEJA DE LÍNEA DE TIEMPO (ESTANTE INFERIOR) */
  .timeline-shelf,
  .timeline-shelf-arcade,
  #timeline-shelf {
    order: 3 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 360px !important;
    padding: 0.35rem 0.55rem !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    margin: auto auto 0.25rem auto !important;
    background: rgba(11, 19, 41, 0.78) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  }

  .shelf-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.72rem !important;
  }

  .shelf-title-wrap {
    font-size: 0.76rem !important;
    gap: 0.35rem !important;
  }

  #shelf-counter {
    font-size: 0.70rem !important;
    color: #38bdf8 !important;
  }

  .shelf-progress-track {
    display: none !important;
  }

  .shelf-cards-row {
    min-height: 66px !important;
    padding: 0.25rem 0.75rem !important;
    gap: 0.55rem !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .shelf-cards-row::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .shelf-cards-row::before {
    display: none !important;
  }

  /* Fichas Tazo en estante móvil */
  .shelf-tazo-disc-chip {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    border-width: 2px !important;
    padding: 0.15rem !important;
  }

  .shelf-tazo-year-badge {
    font-size: 0.72rem !important;
    padding: 1px 4px !important;
    margin-bottom: 2px !important;
    border-radius: 4px !important;
  }

  .shelf-tazo-title {
    font-size: 0.52rem !important;
    line-height: 1.1 !important;
  }

  .shelf-tazo-title span,
  .shelf-rack-title span,
  .shelf-tazo-domain {
    display: none !important;
  }

  /* Fichas Tarjeta en estante móvil */
  .shelf-rack-card {
    flex: 0 0 68px !important;
    width: 68px !important;
    height: 76px !important;
    min-width: 68px !important;
    padding: 0.3rem 0.2rem !important;
  }

  .shelf-rack-year-badge {
    font-size: 0.76rem !important;
    padding: 1px 4px !important;
    margin-bottom: 2px !important;
  }

  .shelf-rack-title {
    font-size: 0.54rem !important;
    line-height: 1.15 !important;
  }
}

/* Teléfonos y vistas de baja altura (<= 640px de altura, como 455x554 o landscape) */
@media (max-height: 640px) and (max-width: 768px) {
  .arcade-header {
    height: 42px !important;
  }

  .arcade-table-mat {
    padding: 0.2rem 0.4rem !important;
    gap: 0.12rem !important;
    justify-content: space-between !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .arcade-card-stage.is-disc-mode,
  .arcade-card-stage:has(.disc-physical),
  .arcade-card-stage:has(.tazo-disc),
  .disc-stage,
  .tazo-stage,
  .arcade-card-stage .disc-physical,
  .arcade-card-stage .tazo-physical,
  .arcade-card-stage .tazo-disc,
  .arcade-card-stage .disc,
  .disc-physical,
  .tazo-physical,
  .disc,
  .tazo-disc {
    width: min(215px, 62vw, 36vh) !important;
    height: min(215px, 62vw, 36vh) !important;
  }

  .arcade-card-stage,
  .arcade-card-stage .hittazos-card-3d {
    height: min(150px, 25vh) !important;
    min-height: 130px !important;
  }

  .arcade-card-stage .clue-quote {
    font-size: clamp(0.76rem, 2.5vh, 0.92rem) !important;
    line-height: 1.25 !important;
  }

  .disc-hito-prose,
  .tazo-hito-prose {
    font-size: clamp(0.66rem, 2.1vh, 0.78rem) !important;
    line-height: 1.22 !important;
    max-width: 90% !important;
    max-height: 92% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .chrono-arc-container {
    height: 68px !important;
  }

  .chrono-arc-container .arc-dial-svg {
    max-width: 270px !important;
  }

  .arc-year-display-wrap {
    margin-top: -14px !important;
  }

  .arc-selected-year {
    font-size: 1.6rem !important;
  }

  .btn-slam,
  .btn-slam-arc {
    padding: 0.35rem 1.4rem !important;
    font-size: 0.82rem !important;
    margin: 0 auto !important;
  }

  .guess-feedback-row {
    min-height: 18px !important;
    margin-top: 1px !important;
  }

  .timeline-shelf,
  .timeline-shelf-arcade,
  #timeline-shelf {
    margin: 0.2rem auto 0.35rem auto !important;
    padding: 0.25rem 0.4rem !important;
  }

  .shelf-cards-row {
    min-height: 52px !important;
  }

  .shelf-tazo-disc-chip {
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
  }

  .shelf-rack-card {
    flex: 0 0 58px !important;
    width: 58px !important;
    height: 60px !important;
    min-width: 58px !important;
    padding: 0.2rem 0.15rem !important;
  }

  .shelf-rack-title span {
    display: none !important;
  }

  .shelf-rack-title strong {
    font-size: 0.55rem !important;
    line-height: 1.15 !important;
    -webkit-line-clamp: 2 !important;
  }
}

  /* 6. CONTROLES RÁPIDOS INFERIORES EN UNA SOLA FILA */
  .disc-nav-cluster,
  .tazo-nav-cluster {
    order: 6;
    margin: 0.15rem auto 0.4rem auto;
    gap: 0.25rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    max-width: 350px;
  }

  .btn-nav-disc,
  .btn-nav-tazo {
    padding: 0.28rem 0.45rem;
    font-size: 0.68rem;
    gap: 0.2rem;
    border-radius: 8px;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
  }

  .btn-nav-disc i,
  .btn-nav-tazo i,
  .btn-nav-disc svg,
  .btn-nav-tazo svg {
    width: 13px;
    height: 13px;
  }

  /* Galería / Explorador en móvil */
  .gallery-toolbar {
    padding: 0.75rem;
    gap: 0.55rem;
    flex-direction: column;
    align-items: stretch;
  }

  .search-field-wrap {
    min-width: 100%;
  }

  .dropdown-cluster {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .select-control {
    width: 100%;
    font-size: 0.78rem;
    padding: 0.5rem 0.6rem;
  }

  .cards-catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    justify-items: center;
    padding: 0 0.2rem;
  }

  .catalog-card-cell {
    width: var(--card-width);
    height: var(--card-height);
  }

  /* Modales en móvil */
  .print-modal {
    width: 95vw;
    max-height: 88vh;
    border-radius: 16px;
    overflow-y: auto;
  }

  .print-modal-header {
    padding: 0.85rem 1.1rem;
  }

  .print-modal-title {
    font-size: 1rem;
  }

  .print-modal-body {
    padding: 1rem;
    gap: 1rem;
  }

  .help-modal .print-modal-content {
    max-width: 100%;
  }

  .help-grid,
  .help-grid-modern {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .app-footer {
    padding: 0.85rem 0.75rem;
    font-size: 0.72rem;
  }
}

/* Teléfonos compactos (iPhone SE, pantallas <= 380px o <= 700px de altura) */
@media (max-width: 380px), (max-height: 700px) and (max-width: 768px) {
  :root {
    --card-width: min(255px, calc(100vw - 20px), 37vh);
    --card-height: min(255px, calc(100vw - 20px), 37vh);
  }

  header {
    padding: 0.35rem 0.5rem;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .tab-btn {
    padding: 0.28rem 0.48rem;
    font-size: 0.7rem;
  }

  .icon-btn {
    width: 28px;
    height: 28px;
  }

  .nudge-btn.step-small,
  .nudge-btn.step-big {
    width: 32px;
    height: 36px;
    font-size: 0.76rem;
  }

  .console-input.chrono-digit-display {
    width: 78px;
    font-size: 1.35rem;
  }

  .btn-submit-guess {
    height: 38px;
    font-size: 0.84rem;
  }

  .dropdown-cluster {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CALLOUTS & BOTONES DE PREVENTA FÍSICA Y PROYECTO LIBRE
   ========================================================================== */

/* Botón en la barra de cabecera */
.btn-preorder-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  height: 38px;
  box-sizing: border-box;
  padding: 0.38rem 0.85rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-preorder-header:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}

.btn-preorder-header svg {
  width: 14px;
  height: 14px;
}

.preorder-badge {
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tarjeta destacada en Modal de Impresión */
.preorder-callout-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.callout-badge-open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 800;
  color: #059669;
  background: #d1fae5;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}

.callout-badge-open svg {
  width: 12px;
  height: 12px;
}

.callout-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

.callout-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.callout-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}

.callout-desc strong {
  color: #0f172a;
}

.callout-preorder-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.85rem 1rem;
  border-radius: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.preorder-box-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
}

.preorder-box-text strong {
  color: #0f172a;
  font-size: 0.84rem;
}

.preorder-box-text span {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.3;
}

.btn-preorder-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-preorder-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.5);
}

.btn-preorder-cta svg {
  width: 14px;
  height: 14px;
}

.preorder-channel-btns {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.btn-preorder-cta.btn-preorder-wa {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
}

.btn-preorder-cta.btn-preorder-wa:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.45);
}

.btn-preorder-cta.btn-preorder-email {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
}

.btn-preorder-cta.btn-preorder-email:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}

/* Banner de Preventa dentro del Modal de Versiones */
.version-preorder-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-top: 0.6rem;
}

.version-preorder-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.version-preorder-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.version-preorder-info strong {
  font-family: var(--font-display);
  color: #f8fafc;
  font-size: 0.82rem;
}

.version-preorder-info span {
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.25;
}

.version-preorder-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-version-preorder {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #38bdf8;
  color: #0f172a !important;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-version-preorder:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
}

.btn-version-preorder.btn-version-wa {
  background: #10b981;
  color: #ffffff !important;
}

.btn-version-preorder.btn-version-wa:hover {
  background: #34d399;
}

.btn-version-preorder.btn-version-email {
  background: #38bdf8;
  color: #0f172a !important;
}

.btn-version-preorder.btn-version-email:hover {
  background: #7dd3fc;
}

.btn-version-preorder svg {
  width: 12px;
  height: 12px;
}

/* Pie de Modal de Ayuda y Preventa */
.help-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.help-preorder-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #64748b;
}

.help-preorder-note svg {
  width: 14px;
  height: 14px;
  color: #0284c7;
  flex-shrink: 0;
}

.help-preorder-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-preorder-link:hover {
  color: #0369a1;
}

@media (max-width: 640px) {
  .btn-preorder-header {
    height: 30px;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    border-radius: 8px;
  }
  .preorder-label {
    display: none;
  }
  .callout-preorder-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-preorder-cta {
    justify-content: center;
  }
  .help-footer-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.75rem;
  }
}
