:root {
  --bg-abyss: #06121e;
  --bg-deep: #0b1d30;
  --bg-card: rgba(15, 33, 54, 0.78);
  --border-subtle: rgba(56, 189, 248, 0.16);
}

[x-cloak] {
  display: none !important;
}

body {
  background: radial-gradient(circle at 15% 10%, #0d2b45 0%, #071524 45%, #040c15 100%);
  color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
}

.glass-panel {
  background: rgba(10, 25, 42, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.14);
}

.input-ocean {
  background: rgba(6, 18, 30, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #f8fafc;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-ocean:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

/* Animación suave de respiración para el temporizador */
@keyframes breathePulse {
  0%, 100% {
    transform: scale(0.96);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.18);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 55px rgba(34, 211, 238, 0.42);
  }
}

@keyframes holdGlow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
  }
  50% {
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.5);
  }
}

.timer-ring-breathe {
  animation: breathePulse 5s ease-in-out infinite;
}

.timer-ring-hold {
  animation: holdGlow 3.5s ease-in-out infinite;
}

/* Flash Visuales de Pantalla Completa para Móvil */
@keyframes screenFlashEffect {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

.screen-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  animation: screenFlashEffect 0.6s ease-out forwards;
}

.flash-breathe {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.65) 0%, rgba(6, 182, 212, 0.3) 100%);
}

.flash-hold {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.75) 0%, rgba(217, 119, 6, 0.35) 100%);
}

.flash-warning {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.7) 0%, rgba(185, 28, 28, 0.3) 100%);
}

/* Botones gigantes para pantalla táctil móvil */
.btn-mobile-action {
  min-height: 4.2rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

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

/* Safe area bottom padding for modern phones */
.mobile-safe-bottom {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* Scrollbar limpio */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #06121e;
}
::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}
