/* ==============================================================
   ENCUENTRA EL CHICKEN - ESTILOS ARCADE CARTOON 3D
   Inspirado 100% en la referencia visual de trilero mediterráneo
   ============================================================== */

:root {
  --color-gold: #ffcb05;
  --color-orange: #ff7b00;
  --color-red: #e61c24;
  --color-dark-red: #8b0c12;
  --color-green: #2ecc40;
  --color-dark-green: #1b7a26;
  --color-wood: #843b12;
  --border-thick: 4px solid #111;
  --font-arcade: 'Luckiest Guy', 'Bungee', Impact, 'Arial Black', sans-serif;
  --font-sub: 'Titan One', 'Arial Black', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background: #11141a;
  overflow: hidden;
  font-family: var(--font-arcade);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==============================================================
   CONTENEDOR DEL JUEGO (16:9 Arcade Adaptativo Puro)
   ============================================================== */
#game-container {
  position: relative;
  width: 100vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  background: #000;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 0 4px #222;
  overflow: hidden;
  border-radius: 12px;
}

/* Pantallas verticales (móviles en vertical, tablets) */
@media (max-aspect-ratio: 16/9) {
  #game-container {
    width: 100vw;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
  }
}

/* Pantallas horizontales (escritorios, móviles apaisados) */
@media (min-aspect-ratio: 16/9) {
  #game-container {
    height: 100vh;
    width: auto;
    aspect-ratio: 16 / 9;
    max-height: 675px;
  }
}

/* ==============================================================
   ESCENARIO FIJO Y PERSONAJE (ARQUITECTURA DE CAPAS)
   - Fondo inmutable: Plaza mediterránea (siempre fija)
   - Personaje en primer plano: El único que cambia de expresión
   - Mesa inmutable: Fija delante del torso del chico
   ============================================================== */
#scene-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/bg_empty_stage.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 1;
}

#character-sprite {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  z-index: 5;
}

#character-sprite.character-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Efecto de luces de sirena de policía */
.police-siren-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  mix-blend-mode: color-dodge;
  transition: opacity 0.2s ease;
}

.police-siren-overlay.active {
  opacity: 0.85;
  animation: policeStrobe 0.22s infinite alternate;
}

@keyframes policeStrobe {
  0% {
    background: radial-gradient(circle at 25% 30%, rgba(255, 0, 50, 0.85) 0%, rgba(255, 0, 50, 0) 70%),
                radial-gradient(circle at 75% 30%, rgba(0, 100, 255, 0.1) 0%, rgba(0, 100, 255, 0) 60%);
    box-shadow: inset 0 0 80px rgba(255, 0, 50, 0.7);
  }
  50% {
    background: transparent;
  }
  100% {
    background: radial-gradient(circle at 75% 30%, rgba(0, 80, 255, 0.85) 0%, rgba(0, 80, 255, 0) 70%),
                radial-gradient(circle at 25% 30%, rgba(255, 0, 50, 0.1) 0%, rgba(255, 0, 50, 0) 60%);
    box-shadow: inset 0 0 80px rgba(0, 80, 255, 0.7);
  }
}

#stage-table {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/fixed_table.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10;
}

/* ==============================================================
   CONTROLES SUPERIORES FLOTANTES (SONIDO Y PANTALLA COMPLETA)
   ============================================================== */
.arcade-top-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}

.arcade-ctrl-btn {
  background: linear-gradient(180deg, #2b354c 0%, #151d2a 100%);
  border: 3px solid #ffde17;
  border-radius: 14px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffde17;
  box-shadow: 0 4px 0 #000, 0 6px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.arcade-ctrl-btn:hover {
  filter: brightness(1.18);
  box-shadow: 0 4px 0 #000, 0 0 14px rgba(255, 222, 23, 0.45);
}

.arcade-ctrl-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #000;
}

.fs-icon,
.ctrl-svg {
  display: block;
  transition: transform 0.15s ease;
}

.arcade-ctrl-btn:active .fs-icon,
.arcade-ctrl-btn:active .ctrl-svg {
  transform: scale(0.9);
}

/* ==============================================================
   CONTROL DE MÚSICA DE FONDO Y SLIDER DE VOLUMEN ARCADE
   ============================================================== */
.music-ctrl-wrap {
  position: relative;
  display: inline-flex;
}

.music-status-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid #111;
  box-shadow: 0 0 6px #22c55e;
  transition: background 0.2s, box-shadow 0.2s;
  pointer-events: none;
}

.music-status-dot.muted {
  background: #ef4444;
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.6);
}

/* Popover del controlador de volumen */
.music-volume-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2.5px solid #ffde17;
  border-radius: 16px;
  padding: 10px 14px 12px 14px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.85),
    0 0 16px rgba(255, 222, 23, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 175px;
  z-index: 120;
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.music-volume-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Flechita decorativa del panel */
.music-volume-panel::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 17px;
  width: 10px;
  height: 10px;
  background: #1e293b;
  border-left: 2.5px solid #ffde17;
  border-top: 2.5px solid #ffde17;
  transform: rotate(45deg);
}

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

.music-panel-title {
  font-family: var(--font-arcade);
  font-size: 11px;
  color: #ffde17;
  letter-spacing: 1px;
}

.music-volume-pct {
  font-family: var(--font-arcade);
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.music-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-mute-icon-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid #ffde17;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffde17;
  outline: none;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.music-mute-icon-btn:hover {
  background: rgba(255, 222, 23, 0.2);
}

.music-mute-icon-btn:active {
  transform: scale(0.92);
}

/* Slider de volumen personalizado Arcade */
.arcade-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}

.arcade-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffde17 0%, #f59e0b 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 8px rgba(255, 222, 23, 0.6);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.arcade-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 12px rgba(255, 222, 23, 0.9);
}

.arcade-volume-slider::-webkit-slider-thumb:active {
  transform: scale(1.22);
}

.arcade-volume-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffde17 0%, #f59e0b 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* ==============================================================
   SISTEMA DE PANTALLAS
   ============================================================== */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  display: none;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* ==============================================================
   PANTALLA 1: INICIO
   ============================================================== */
.start-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 35px 24px;
}

/* El título se sitúa a la derecha alta en el cielo para no tapar la cara */
.title-container {
  position: absolute;
  top: 6%;
  right: 4%;
  max-width: 34%;
  text-align: right;
  z-index: 20;
  animation: floatTitle 3s ease-in-out infinite;
}

@keyframes floatTitle {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.main-title {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  text-transform: uppercase;
}

.title-encuentra {
  font-size: clamp(24px, 3.8vw, 48px);
  color: #fffb14;
  letter-spacing: 2px;
  -webkit-text-stroke: 3px #1a0a00;
  text-shadow: 
    0 5px 0 #b34a00,
    0 9px 0 #5c2000,
    0 12px 14px rgba(0, 0, 0, 0.8);
}

.title-chicken {
  font-size: clamp(30px, 4.8vw, 62px);
  color: #ffffff;
  letter-spacing: 2px;
  -webkit-text-stroke: 3.5px #111;
  text-shadow: 
    0 6px 0 #e67e22,
    0 10px 0 #b34a00,
    0 14px 0 #5c2000,
    0 16px 20px rgba(0, 0, 0, 0.9);
}

.start-action {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
}

/* ==============================================================
   BOTONES ARCADE 3D GENERALES
   ============================================================== */
.btn-arcade {
  font-family: var(--font-arcade);
  font-size: clamp(18px, 2.5vw, 32px);
  letter-spacing: 1.5px;
  color: #fff;
  border: 4px solid #111;
  border-radius: 18px;
  cursor: pointer;
  outline: none;
  position: relative;
  text-transform: uppercase;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-text-stroke: 1.5px #111;
  text-shadow: 0 3px 0 rgba(0,0,0,0.5);
}

.btn-arcade:hover {
  filter: brightness(1.1);
}

.btn-arcade:active {
  transform: translateY(6px);
}

/* Botón "A POR EL CHICKEN" */
.btn-start {
  background: linear-gradient(180deg, #38ef55 0%, #17b333 60%, #0e7d23 100%);
  box-shadow: 0 8px 0 #094a15, 0 14px 20px rgba(0, 0, 0, 0.6);
  padding: 16px 45px;
  animation: pulseButton 2s infinite ease-in-out;
}

.btn-start:active {
  box-shadow: 0 2px 0 #094a15, 0 6px 10px rgba(0, 0, 0, 0.6);
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.btn-start.speaking {
  pointer-events: none;
  filter: brightness(0.92);
  animation: none;
  opacity: 0.85;
}

/* Botón de escape de la policía */
.btn-police {
  background: linear-gradient(180deg, #ff2a2a 0%, #b30000 50%, #7a0000 100%) !important;
  border: 4px solid #fff !important;
  color: #fff !important;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 8px 0 #4a0000, 0 14px 20px rgba(0, 0, 0, 0.8) !important;
  padding: 14px 30px !important;
  animation: policeButtonPulse 0.4s infinite alternate !important;
  font-size: clamp(16px, 2.2vw, 24px) !important;
  cursor: pointer;
  z-index: 30;
}

@keyframes policeButtonPulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 8px 0 #4a0000; }
  100% { transform: scale(1.05); box-shadow: 0 0 35px rgba(0, 100, 255, 0.9), 0 8px 0 #002266; }
}

/* Cubos volcados/tumbados al huir de la policía */
.cup-wrapper.cup-tumbled-0 .cup-body {
  transform: translateY(-8px) translateX(-22px) rotate(-78deg) !important;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
.cup-wrapper.cup-tumbled-0 .cup-shadow {
  transform: translateX(-50%) translateY(8px) scale(0.8, 0.45) rotate(-20deg) !important;
}

.cup-wrapper.cup-tumbled-1 .cup-body {
  transform: translateY(-5px) translateX(25px) rotate(82deg) !important;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
.cup-wrapper.cup-tumbled-1 .cup-shadow {
  transform: translateX(-50%) translateY(8px) scale(0.85, 0.45) rotate(25deg) !important;
}

.cup-wrapper.cup-tumbled-2 .cup-body {
  transform: translateY(-12px) translateX(-18px) rotate(-70deg) !important;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
.cup-wrapper.cup-tumbled-2 .cup-shadow {
  transform: translateX(-50%) translateY(8px) scale(0.8, 0.45) rotate(-18deg) !important;
}

/* Interior hueco del cubo visible al tumbarse */
.cup-interior-rim {
  display: none;
  position: absolute;
  bottom: 0;
  left: 8%;
  width: 84%;
  height: 32px;
  background: radial-gradient(ellipse at center, #110303 0%, #3b0808 65%, #660e0e 100%);
  border: 3.5px solid #000;
  border-radius: 50%;
  box-shadow: inset 0 6px 14px #000;
  z-index: 5;
}

.cup-wrapper[class*="cup-tumbled"] .cup-interior-rim {
  display: block;
}

/* ==============================================================
   PANTALLA 2: SELECCIÓN DE NIVEL
   ============================================================== */
.level-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px 40px 20px;
}

.level-title {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(20px, 3.2vw, 38px);
  color: #ffde17;
  letter-spacing: 2px;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 2.5px #1a0800;
  text-shadow: 
    0 4px 0 #b34b00,
    0 7px 0 #4f1e00,
    0 10px 14px rgba(0,0,0,0.7);
  z-index: 20;
}

.difficulty-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin-top: auto;
  margin-bottom: 25px;
}

.btn-diff {
  flex: 1;
  max-width: 260px;
  min-height: 120px;
  padding: 16px 12px;
  flex-direction: column;
  gap: 4px;
}

.btn-easy {
  background: linear-gradient(180deg, #34d399 0%, #10b981 60%, #059669 100%);
  box-shadow: 0 8px 0 #046345, 0 12px 18px rgba(0,0,0,0.5);
}
.btn-easy:active {
  box-shadow: 0 2px 0 #046345;
}

.btn-medium {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%);
  box-shadow: 0 8px 0 #92400e, 0 12px 18px rgba(0,0,0,0.5);
}
.btn-medium:active {
  box-shadow: 0 2px 0 #92400e;
}

.btn-hard {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 60%, #dc2626 100%);
  box-shadow: 0 8px 0 #891616, 0 12px 18px rgba(0,0,0,0.5);
}
.btn-hard:active {
  box-shadow: 0 2px 0 #891616;
}

.diff-name {
  font-size: clamp(22px, 3vw, 32px);
}

.diff-stars {
  font-size: 24px;
  color: #fff94f;
  letter-spacing: 4px;
  -webkit-text-stroke: 1px #000;
  text-shadow: 0 2px 0 #000;
}

.diff-desc {
  font-family: var(--font-sub);
  font-size: clamp(12px, 1.4vw, 15px);
  color: #fff;
  opacity: 0.95;
  -webkit-text-stroke: 0px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  margin-top: 4px;
}

.btn-back {
  background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  box-shadow: 0 6px 0 #111827, 0 10px 14px rgba(0,0,0,0.5);
  padding: 10px 24px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-back:active {
  box-shadow: 0 2px 0 #111827;
}

/* ==============================================================
   PANTALLA 3: JUEGO PRINCIPAL
   ============================================================== */
#screen-game {
  justify-content: space-between;
}

/* HUD Superior */
.game-hud {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 20px;
  pointer-events: none;
}

.hud-left {
  margin-left: 172px;
}

.game-hud * {
  pointer-events: auto;
}

.btn-hud {
  font-family: var(--font-arcade);
  font-size: clamp(12px, 1.5vw, 16px);
  background: rgba(18, 20, 24, 0.85);
  color: #ffde17;
  border: 3px solid #ffcc00;
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
  box-shadow: 0 4px 0 #000, 0 6px 12px rgba(0,0,0,0.5);
  transition: transform 0.1s;
}
.btn-hud:active {
  transform: translateY(2px);
}

/* Marcador Arcade estilo Panel 7 & 8 */
.hud-scoreboard {
  background: rgba(22, 24, 30, 0.92);
  border: 3.5px solid #222;
  outline: 2px solid #eab308;
  border-radius: 14px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 220px;
  box-shadow: 0 6px 0 #000, 0 10px 20px rgba(0,0,0,0.7);
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.5px;
}

.score-win .score-label { color: #4ade80; }
.score-win .score-value { color: #facc15; font-size: 18px; }

.score-lose .score-label { color: #f87171; }
.score-lose .score-value { color: #ffffff; font-size: 18px; }

.score-streak .score-label { color: #38bdf8; }
.score-streak .score-value { color: #facc15; font-size: 18px; }

/* Bocadillo / Cartel de Mensaje Comic */
.comic-bubble {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  border: 3.5px solid #111;
  border-radius: 16px;
  padding: 5px 20px;
  text-align: center;
  box-shadow: 0 4px 0 rgba(0,0,0,0.8), 0 8px 16px rgba(0,0,0,0.8);
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

@keyframes popIn {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

#comic-text {
  font-size: clamp(14px, 1.8vw, 22px);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Modificadores de color del bocadillo según estado */
.comic-bubble.bubble-ready {
  background: linear-gradient(180deg, #fff34d 0%, #ffc400 50%, #f59e0b 100%);
  box-shadow: 0 8px 0 #92400e, 0 12px 25px rgba(0,0,0,0.8);
}
.comic-bubble.bubble-ready #comic-text {
  color: #ffffff;
  -webkit-text-stroke: 2.5px #111;
  text-shadow: 0 4px 0 #92400e, 0 6px 12px rgba(0,0,0,0.8);
}

.comic-bubble.bubble-win {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
  box-shadow: 0 8px 0 #046345, 0 12px 25px rgba(0,0,0,0.8);
}
.comic-bubble.bubble-win #comic-text {
  color: #ffffff;
  -webkit-text-stroke: 2.5px #111;
  text-shadow: 0 4px 0 #046345, 0 6px 12px rgba(0,0,0,0.8);
}

.comic-bubble.bubble-lose {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  box-shadow: 0 8px 0 #891616, 0 12px 25px rgba(0,0,0,0.8);
}
.comic-bubble.bubble-lose #comic-text {
  color: #ffffff;
  -webkit-text-stroke: 2.5px #111;
  text-shadow: 0 4px 0 #891616, 0 6px 12px rgba(0,0,0,0.8);
}

/* ==============================================================
   MESA INTERACTIVA CON LOS CUBOS Y EL CHICKEN
   ============================================================== */
#table-stage {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48%; /* Abarca la mesa de madera en la parte inferior */
  z-index: 15;
  pointer-events: none;
}

/* Slots de posición fija horizontal: 22%, 50%, 78% */
.cup-slot {
  position: absolute;
  bottom: 14%;
  width: clamp(110px, 16vw, 175px);
  height: clamp(125px, 18vw, 200px);
  transform: translateX(-50%);
  pointer-events: none;
}

#slot-0 { left: 22%; }
#slot-1 { left: 50%; }
#slot-2 { left: 78%; }

/* El Chicken (bolsita) */
.the-chicken {
  position: absolute;
  bottom: 14%;
  transform: translateX(-50%);
  width: clamp(70px, 10vw, 110px);
  height: clamp(85px, 12vw, 135px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 16;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.the-chicken.visible {
  opacity: 1;
}

.chicken-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.7));
  transform-origin: bottom center;
}

/* Animación de destellos cartoon al revelarse */
.the-chicken.revealed .chicken-img {
  animation: chickenPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chickenPop {
  0% { transform: scale(0.6) translateY(20px); }
  60% { transform: scale(1.15) translateY(-10px); }
  100% { transform: scale(1) translateY(0); }
}

.sparkles-burst {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  pointer-events: none;
  display: none;
}

.the-chicken.revealed .sparkles-burst {
  display: block;
}

.sparkle {
  position: absolute;
  font-size: 26px;
  animation: sparkleAnim 0.9s ease-out infinite alternate;
}

.s1 { top: 0; left: 10%; animation-delay: 0.1s; }
.s2 { top: 10%; right: 10%; animation-delay: 0.3s; font-size: 32px; }
.s3 { bottom: 20%; left: 0%; animation-delay: 0.2s; font-size: 30px; }
.s4 { bottom: 10%; right: 5%; animation-delay: 0.4s; }
.s5 { top: 40%; left: -15%; animation-delay: 0.25s; font-size: 24px; }

@keyframes sparkleAnim {
  0% { transform: scale(0.6) rotate(0deg); opacity: 0.6; }
  100% { transform: scale(1.3) rotate(35deg); opacity: 1; }
}

/* ==============================================================
   LOS 3 CUBOS ROJOS INTERACTIVOS
   ============================================================== */
.cup-wrapper {
  position: absolute;
  bottom: 14%;
  transform: translateX(-50%);
  width: clamp(110px, 16vw, 175px);
  height: clamp(125px, 18vw, 200px);
  z-index: 20;
  cursor: default;
  pointer-events: none;
  /* Animación de deslizamiento suave entre slots */
  transition: left 0.35s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.35s ease;
}

/* Cuando es interactivo para que el usuario elija */
.cup-wrapper.clickable {
  cursor: pointer;
  pointer-events: auto;
}

.cup-wrapper.clickable:hover .cup-body {
  transform: translateY(-8px) scale(1.03);
  filter: drop-shadow(0 15px 12px rgba(255, 60, 60, 0.4));
}

/* Sombra de contacto sobre la madera */
.cup-shadow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(30, 10, 5, 0.75) 0%, rgba(30, 10, 5, 0) 70%);
  border-radius: 50%;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 1;
}

.cup-body {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
  z-index: 2;
}

.cup-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.5));
}

/* Animación cuando el cubo se levanta */
.cup-wrapper.lifted .cup-body {
  transform: translateY(-95px) rotate(-8deg);
}

#cup-0.lifted .cup-body {
  transform: translateY(-95px) rotate(-12deg);
}

#cup-1.lifted .cup-body {
  transform: translateY(-95px) rotate(-5deg);
}

#cup-2.lifted .cup-body {
  transform: translateY(-95px) rotate(12deg);
}

.cup-wrapper.lifted .cup-shadow {
  transform: translateX(-50%) scale(0.45);
  opacity: 0.22;
  filter: blur(6px);
}

/* ==============================================================
   PANEL INFERIOR (BOTÓN SIGUIENTE RONDA)
   ============================================================== */
.game-bottom-panel {
  position: absolute;
  bottom: 22px;
  right: 28px;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  transition: all 0.3s ease;
}

.game-bottom-panel.police-mode {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
}

.btn-next {
  background: linear-gradient(180deg, #34d399 0%, #10b981 60%, #059669 100%);
  box-shadow: 0 8px 0 #046345, 0 14px 20px rgba(0, 0, 0, 0.6);
  padding: 14px 34px;
  font-size: clamp(16px, 2.2vw, 26px);
  animation: pulseButton 1.8s infinite ease-in-out;
}
.btn-next:active {
  box-shadow: 0 2px 0 #046345;
}

/* ==============================================================
   CANVAS DE CONFETI PARA VICTORIAS
   ============================================================== */
#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

/* ==============================================================
   BLOQUEADOR DE ORIENTACIÓN: OBLIGATORIO JUGAR EN HORIZONTAL
   Solo se ejecuta y muestra el juego cuando el móvil está horizontal
   ============================================================== */
.rotate-device-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 999999;
  background: radial-gradient(circle at 50% 36%, #1e293d 0%, #101626 55%, #080c14 100%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
  overflow: hidden;
}

/* Fondo decorativo con luces arcade vibrantes */
.rotate-device-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 25% 20%, rgba(255, 203, 5, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(230, 28, 36, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.rotate-card {
  position: relative;
  background: linear-gradient(180deg, #1f283a 0%, #111724 100%);
  border: 4px solid #ffde17;
  border-radius: 28px;
  padding: 30px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 340px;
  width: 88vw;
  box-shadow: 
    0 16px 45px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(255, 222, 23, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  animation: cardFadeIn 0.35s ease-out;
}

.rotate-badge-top {
  font-family: var(--font-arcade);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #ffde17;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 222, 23, 0.5);
  padding: 4px 14px;
  border-radius: 12px;
  text-transform: uppercase;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Contenedor de la animación del dispositivo */
.rotate-anim-wrap {
  position: relative;
  width: 160px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

/* El teléfono arcade que rota de vertical a horizontal a 90 grados */
.rotate-phone-device {
  width: 64px;
  height: 108px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 4px solid #ffffff;
  border-radius: 20px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(56, 189, 248, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  position: relative;
  z-index: 2;
  transform-origin: center center;
  animation: phoneRotateSpin 3s infinite cubic-bezier(0.68, -0.2, 0.27, 1.25);
}

.phone-camera-notch {
  width: 18px;
  height: 3.5px;
  background: #ffffff;
  border-radius: 2px;
}

.phone-screen-inner {
  width: 100%;
  flex: 1;
  margin: 4px 0;
  background: linear-gradient(180deg, #38bdf8 0%, #7dd3fc 62%, #22c55e 63%, #15803d 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.phone-character-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.phone-home-indicator {
  width: 20px;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
}

/* Flecha de rotación orbital */
.rotate-arrow-circle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.rotate-arrow-svg {
  width: 155px;
  height: 155px;
  animation: arrowPulse 3s infinite ease-in-out;
  filter: drop-shadow(0 0 12px rgba(255, 222, 23, 0.85));
}

@keyframes phoneRotateSpin {
  0%, 18% {
    transform: rotate(0deg) scale(1);
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.5);
  }
  44%, 80% {
    transform: rotate(90deg) scale(1.12);
    border-color: #ffde17;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 222, 23, 0.75);
  }
  96%, 100% {
    transform: rotate(0deg) scale(1);
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.5);
  }
}

@keyframes arrowPulse {
  0%, 18% {
    opacity: 0.92;
    transform: scale(0.98);
  }
  44%, 80% {
    opacity: 1;
    transform: scale(1.06);
  }
  96%, 100% {
    opacity: 0.92;
    transform: scale(0.98);
  }
}

/* Título Arcade */
.rotate-title {
  font-family: var(--font-arcade);
  font-size: clamp(20px, 5.8vw, 27px);
  color: #ffde17;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
  -webkit-text-stroke: 1.5px #111;
  text-shadow: 
    0 4px 0 #b34b00,
    0 8px 16px rgba(0, 0, 0, 0.85);
}

/* Subtítulo */
.rotate-subtitle {
  font-family: var(--font-arcade);
  font-size: clamp(12px, 3.2vw, 13.5px);
  color: #ffffff;
  letter-spacing: 0.8px;
  line-height: 1.35;
  margin: 0;
  max-width: 280px;
  text-transform: uppercase;
  -webkit-text-stroke: 0.6px #111;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Píldora de instrucción */
.rotate-hint-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffde17 0%, #f59e0b 100%);
  color: #111;
  border: 2.5px solid #ffffff;
  font-family: var(--font-arcade);
  font-size: clamp(11.5px, 3vw, 13px);
  letter-spacing: 0.8px;
  padding: 10px 22px;
  border-radius: 24px;
  margin-top: 4px;
  box-shadow: 0 4px 0 #92400e, 0 8px 16px rgba(0, 0, 0, 0.55);
  animation: pillBounce 2s infinite ease-in-out;
  -webkit-text-stroke: 0px;
}

@keyframes pillBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px) scale(1.02); }
}

.rotate-icon-pulse {
  display: inline-block;
  animation: spinIcon 2.4s infinite linear;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==============================================================
   REGLAS DE ORIENTACIÓN: BLOQUEO EN VERTICAL / ACTIVACIÓN EN HORIZONTAL
   ============================================================== */
@media screen and (orientation: portrait) and (max-width: 1024px) {
  .rotate-device-overlay {
    display: flex !important;
  }
  #game-container {
    display: none !important;
  }
}

@media screen and (orientation: landscape), screen and (min-width: 1025px) {
  .rotate-device-overlay {
    display: none !important;
  }
}

/* ==============================================================
   RESPONSIVE MÓVIL EN VERTICAL (PORTRAIT)
   ============================================================== */
@media (max-width: 768px) {
  #game-container {
    width: 100vw;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
  }

  /* Pantalla Inicio */
  .start-content {
    padding: 8px 12px 14px 12px;
  }

  .title-container {
    top: 3%;
    right: 4%;
    max-width: 48%;
    text-align: right;
  }

  .title-encuentra {
    font-size: clamp(12px, 3.2vw, 20px);
    letter-spacing: 1px;
    -webkit-text-stroke: 1px #111;
    text-shadow: 0 2px 0 #b34a00, 0 3px 0 #5c2000, 0 5px 6px rgba(0,0,0,0.8);
  }

  .title-chicken {
    font-size: clamp(15px, 4.2vw, 26px);
    letter-spacing: 1px;
    -webkit-text-stroke: 1.4px #111;
    text-shadow: 0 2px 0 #e67e22, 0 3px 0 #b34a00, 0 4px 0 #5c2000, 0 6px 8px rgba(0,0,0,0.9);
  }

  .start-action {
    bottom: clamp(6px, 2vh, 18px);
  }

  .btn-start {
    padding: 8px 20px;
    font-size: clamp(13px, 3.8vw, 19px);
    border-width: 3px;
    border-radius: 14px;
    box-shadow: 0 5px 0 #0f7a26, 0 8px 14px rgba(0,0,0,0.6);
  }

  /* Pantalla Selección de Nivel */
  .level-content {
    padding: 10px 10px 12px 10px;
  }

  .level-title {
    top: 4px;
    font-size: clamp(14px, 3.8vw, 22px);
    -webkit-text-stroke: 1.2px #111;
  }

  .difficulty-buttons {
    gap: 6px;
    margin-top: auto;
    margin-bottom: 6px;
    padding: 0 4px;
    width: 96%;
    max-width: 96%;
  }

  .btn-diff {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    padding: 4px 3px;
    border-radius: 10px;
    border-width: 2px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.5), 0 5px 8px rgba(0,0,0,0.4);
  }

  .diff-name {
    font-size: clamp(11px, 2.8vw, 14px);
  }

  .diff-stars {
    font-size: clamp(8px, 2vw, 12px);
    letter-spacing: 1px;
  }

  .diff-desc {
    font-size: clamp(6.5px, 1.8vw, 8.5px);
    margin-top: 1px;
    white-space: normal;
    text-align: center;
    line-height: 1.1;
  }

  .btn-back {
    padding: 4px 12px;
    font-size: 10px;
    border-radius: 8px;
    border-width: 2px;
    margin-bottom: 2px;
  }

  /* Pantalla Juego Principal */
  .game-hud {
    padding: 4px 8px;
  }

  .hud-left {
    margin-left: 34px;
  }

  .btn-hud {
    padding: 3px 6px;
    font-size: 9px;
    border-width: 2px;
    border-radius: 6px;
  }

  .arcade-sound-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
    top: 4px;
    left: 6px;
    border-width: 2.5px;
  }

  .hud-scoreboard {
    min-width: 95px;
    padding: 3px 6px;
    gap: 1px;
    border-width: 2px;
    border-radius: 8px;
  }

  .score-item {
    font-size: 7.5px;
  }
  .score-item .score-value {
    font-size: 9.5px;
  }

  /* Bocadillo cómic alto en el cielo: NUNCA tapa la cara */
  .comic-bubble {
    top: 4px;
    padding: 3px 10px;
    border-width: 2px;
    border-radius: 8px;
    max-width: 50%;
  }

  .comic-bubble #comic-text,
  .comic-bubble.bubble-ready #comic-text,
  .comic-bubble.bubble-win #comic-text,
  .comic-bubble.bubble-lose #comic-text {
    font-size: clamp(8.5px, 2.4vw, 11.5px);
    letter-spacing: 0.6px;
    -webkit-text-stroke: 0.6px #111;
    text-shadow: 0 1px 0 rgba(0,0,0,0.7);
  }

  /* Cubos y Chicken */
  .cup-wrapper {
    width: clamp(65px, 16vw, 115px);
    height: clamp(75px, 18vw, 135px);
    bottom: 12%;
  }

  .the-chicken {
    width: clamp(40px, 10vw, 75px);
    height: clamp(50px, 12vw, 95px);
    bottom: 12%;
  }

  .cup-wrapper.lifted .cup-body {
    transform: translateY(-55px) rotate(-8deg);
  }
  #cup-0.lifted .cup-body {
    transform: translateY(-55px) rotate(-10deg);
  }
  #cup-1.lifted .cup-body {
    transform: translateY(-55px) rotate(-5deg);
  }
  #cup-2.lifted .cup-body {
    transform: translateY(-55px) rotate(10deg);
  }

  /* Botones de acción inferior */
  .game-bottom-panel {
    bottom: 6px;
    right: 8px;
    z-index: 50;
  }

  .game-bottom-panel.police-mode {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    width: 94%;
    bottom: 6px;
  }

  .btn-next {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 8px;
    border-width: 2px;
  }

  .btn-police {
    width: auto;
    max-width: 96%;
    padding: 6px 12px !important;
    font-size: clamp(9px, 2.5vw, 12px) !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px !important;
    border-width: 2px !important;
    white-space: nowrap !important;
    justify-content: center !important;
    -webkit-text-stroke: 0.6px #111 !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.7) !important;
  }
}

/* ==============================================================
   RESPONSIVE MÓVIL EN HORIZONTAL (LANDSCAPE)
   Aprovecha el 100% de la altura y pantalla completa
   ============================================================== */
@media (orientation: landscape) and (max-height: 600px), (orientation: landscape) and (pointer: coarse) {
  html, body {
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
  }

  #game-container {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }

  .rotate-device-overlay {
    display: none !important;
  }

  .start-content {
    padding: 8px 16px 14px 16px;
  }

  .title-container {
    top: 4%;
    right: max(env(safe-area-inset-right, 4%), 4%);
    max-width: 40%;
  }

  .title-encuentra {
    font-size: clamp(16px, 4vw, 28px);
    -webkit-text-stroke: 1.5px #111;
  }

  .title-chicken {
    font-size: clamp(20px, 5.2vw, 38px);
    -webkit-text-stroke: 2px #111;
  }

  .start-action {
    bottom: max(env(safe-area-inset-bottom, 12px), 12px);
  }

  .btn-start {
    padding: 8px 24px;
    font-size: 16px;
    border-width: 3px;
  }

  /* Nivel landscape */
  .level-content {
    padding: 8px 14px 10px 14px;
  }

  .level-title {
    top: max(env(safe-area-inset-top, 6px), 6px);
    font-size: 19px;
    -webkit-text-stroke: 1.5px #111;
  }

  .difficulty-buttons {
    gap: 12px;
    margin-bottom: 8px;
    max-width: 620px;
  }

  .btn-diff {
    min-height: 52px;
    padding: 5px 8px;
    border-radius: 10px;
  }

  .diff-name {
    font-size: 14px;
  }

  .diff-stars {
    font-size: 12px;
  }

  .diff-desc {
    font-size: 9px;
  }

  .btn-back {
    padding: 6px 18px;
    font-size: 12px;
    margin-bottom: max(env(safe-area-inset-bottom, 6px), 6px);
  }

  /* HUD en horizontal */
  .game-hud {
    padding: 4px 12px;
  }

  .arcade-top-controls {
    top: max(env(safe-area-inset-top, 8px), 8px);
    left: max(env(safe-area-inset-left, 10px), 10px);
    gap: 8px;
    z-index: 100;
  }

  .arcade-ctrl-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border-width: 2.5px;
  }

  .fs-icon,
  .ctrl-svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
  }

  .hud-left {
  margin-left: 144px;
  display: flex;
  align-items: center;
}

  .level-indicator-badge {
    height: 38px;
    padding: 0 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
  }

  .hud-scoreboard {
    min-width: 124px;
    padding: 4px 10px;
    gap: 2px;
    margin-right: max(env(safe-area-inset-right, 10px), 10px);
    margin-top: 0;
  }

  .score-item {
    font-size: 8.5px;
  }

  .score-item .score-value {
    font-size: 11px;
  }

  .comic-bubble {
    top: max(env(safe-area-inset-top, 6px), 6px);
    padding: 4px 14px;
    border-width: 2.5px;
    border-radius: 12px;
    max-width: 44%;
  }

  .comic-bubble #comic-text,
  .comic-bubble.bubble-ready #comic-text,
  .comic-bubble.bubble-win #comic-text,
  .comic-bubble.bubble-lose #comic-text {
    font-size: clamp(10px, 1.8vw, 13px);
    letter-spacing: 0.8px;
    -webkit-text-stroke: 0.8px #111;
    text-shadow: 0 1px 0 rgba(0,0,0,0.7);
  }

  .cup-wrapper {
    width: clamp(75px, 14vw, 125px);
    height: clamp(85px, 16vw, 140px);
    bottom: 11%;
  }

  .the-chicken {
    width: clamp(48px, 9vw, 85px);
    height: clamp(58px, 11vw, 105px);
    bottom: 11%;
  }

  .cup-wrapper.lifted .cup-body {
    transform: translateY(-55px) rotate(-8deg);
  }
  #cup-0.lifted .cup-body {
    transform: translateY(-55px) rotate(-10deg);
  }
  #cup-2.lifted .cup-body {
    transform: translateY(-55px) rotate(10deg);
  }

  .game-bottom-panel {
    bottom: max(env(safe-area-inset-bottom, 10px), 10px);
    right: max(env(safe-area-inset-right, 14px), 14px);
    z-index: 50;
  }

  .game-bottom-panel.police-mode {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    bottom: max(env(safe-area-inset-bottom, 10px), 10px);
  }

  .btn-next {
    padding: 6px 18px;
    font-size: 14px;
    border-radius: 10px;
  }

  .btn-police {
    padding: 6px 18px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    -webkit-text-stroke: 0.8px #111 !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.7) !important;
  }
}
