:root {
  --bg-primary: #0a0d14;
  --bg-card: #131b2e;
  --bg-card-hover: #1c2742;
  --accent-cyan: #00f0ff;
  --accent-magenta: #ff0055;
  --accent-amber: #ffb703;
  --accent-green: #00f59b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glow: rgba(0, 240, 255, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  padding: 1.25rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Glass & Neon Cards */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.card-glow {
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-amber {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.btn-cyan {
  background: linear-gradient(135deg, #00b4d8, var(--accent-cyan));
  color: #06101e;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-magenta {
  background: linear-gradient(135deg, #d90429, var(--accent-magenta));
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

.btn-amber {
  background: linear-gradient(135deg, #fb8500, var(--accent-amber));
  color: #120e00;
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
}

/* Inputs */
.input-text {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  background: rgba(10, 15, 28, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.85rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  text-transform: uppercase;
}

.input-text:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* Big Room Code Badge */
.room-badge {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.3rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.5rem 1.75rem;
  border-radius: 1rem;
  border: 2px dashed var(--accent-cyan);
  display: inline-block;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* Avatars & Players Grid */
.player-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  background: var(--bg-card-hover);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 1.1rem;
  animation: popIn 0.3s ease-out;
}

.drinks-counter {
  background: var(--accent-magenta);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 800;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(255, 0, 85, 0.3); }
  50% { box-shadow: 0 0 35px rgba(255, 0, 85, 0.8); }
  100% { box-shadow: 0 0 10px rgba(255, 0, 85, 0.3); }
}

.pulse-red {
  animation: pulseGlow 1.5s infinite;
}

/* Trigger Button for Gatillo Rápido */
.trigger-btn {
  width: 100%;
  height: 60vh;
  border-radius: 2rem;
  font-size: 2.2rem;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.1s, transform 0.05s;
}

.trigger-wait {
  background: #1e1e2f;
  color: var(--text-muted);
  border: 4px dashed rgba(255, 255, 255, 0.2);
}

.trigger-go {
  background: var(--accent-green) !important;
  color: #032014 !important;
  box-shadow: 0 0 60px rgba(0, 245, 155, 0.9);
  animation: popIn 0.1s ease-out;
}

/* Pulso Target Zone */
.pulso-arena {
  width: 100%;
  height: 55vh;
  position: relative;
  background: #0f172a;
  border-radius: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  touch-action: none;
}

.pulso-target {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-cyan), #0077b6);
  position: absolute;
  top: 40%;
  left: 40%;
  box-shadow: 0 0 25px var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  color: #000;
  transition: transform 0.05s linear;
}

/* Modal / Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
