/* fight: pausa. Opciones a la izquierda (SEGUIR arriba, SALIR abajo) y la lista de golpes del luchador a la derecha.
   Estética del HUD del combate: placas oscuras con filo dorado/rojo, sombras duras (sin desenfoque) y entrada
   rápida al abrir (el velo se funde, el título cae, los paneles entran de los lados). Las opciones se vuelven a
   pintar con cada tecla (renderPause), así que no llevan animación de entrada propia: solo la elegida late. */
#pause { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5;
         background:
           repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px),
           repeating-linear-gradient(135deg, rgba(255,216,74,.035) 0 10px, transparent 10px 24px),
           rgba(5,7,16,.82);
         animation: pause-veil .18s steps(4) both; }
#pause.hidden { display: none; }
#pause::before, #pause::after { content: ''; position: absolute; left: 0; right: 0; height: 4px; pointer-events: none;
                                background: linear-gradient(#e8412c 0 50%, #ffd84a 50% 75%, transparent 75%); }
#pause::before { top: 0; }
#pause::after { bottom: 0; transform: scaleY(-1); }
.pause-box { display: flex; gap: 18px; width: min(1100px, 94vw); max-height: 88vh; }
.pause-left { display: flex; flex-direction: column; gap: 14px; width: min(340px, 34vw); flex: none; animation: pause-in-l .22s steps(5) both; }
.pause-left h2 { position: relative; margin: 0; padding: 4px 0 10px; font-size: clamp(16px, 3vw, 28px); font-weight: normal; color: #ffd84a; letter-spacing: 3px;
                 text-shadow: 3px 3px 0 #b3261e, 5px 5px 0 #000; animation: pause-drop .26s steps(5) both; }
.pause-left h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
                        background: linear-gradient(90deg, #e8412c 0 30%, #ffd84a 30% 60%, transparent 60%) 0 0 / 100% 2px no-repeat,
                                    linear-gradient(90deg, #2d3b66, transparent) 0 3px / 100% 1px no-repeat; }
.pause-items { display: flex; flex-direction: column; gap: 8px; }
.pause-items button { position: relative; font: inherit; font-size: 9px; text-align: left; padding: 11px 12px 11px 22px; color: #c9d3ee; background: rgba(10,14,32,.88);
                      border: 2px solid #2d3b66; box-shadow: inset 0 2px 0 #1a2142, inset 0 -2px 0 #0a0e1f, 3px 3px 0 #000; cursor: pointer; letter-spacing: 1px;
                      transition: transform .08s steps(2), background-color .08s steps(2); }
/* marcador de la elegida: flecha de píxeles a la izquierda que empuja */
.pause-items button::before { content: ''; position: absolute; left: 8px; top: 50%; width: 6px; height: 8px; margin-top: -4px; opacity: 0;
                              background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.pause-items button.on, .pause-items button:hover { color: #1a1a1a; background: #ffd84a; border-color: #000; transform: translateX(4px);
                                                    box-shadow: inset 0 2px 0 #fff3b0, inset 0 -2px 0 #c08a1a, 3px 3px 0 #000; }
.pause-items button.on::before, .pause-items button:hover::before { opacity: 1; animation: pause-nudge .6s steps(2) infinite; }
.pause-items button.on .k, .pause-items button:hover .k { color: #1a1a1a; border-color: #1a1a1a; }
.pause-items button:active { transform: translate(5px, 1px); }
.pause-items button.primary { font-size: clamp(11px, 1.3vw, 14px); text-align: center; padding: 15px 22px; color: #fff; background: #1b4fa8; border-color: #5ab4ff;
                              box-shadow: inset 0 2px 0 #4a8ae8, inset 0 -2px 0 #123a7a, 3px 3px 0 #000; }
.pause-items button.primary.on, .pause-items button.primary:hover { color: #1a1a1a; background: #ffd84a; border-color: #000;
                                                                    box-shadow: inset 0 2px 0 #fff3b0, inset 0 -2px 0 #c08a1a, 3px 3px 0 #000; }
/* SALIR AL MENÚ: pegado abajo de la columna aunque haya que desplazarla (en el entrenamiento hay 8 opciones y en un
   móvil en horizontal se salía de la pantalla: como app instalada no había otra forma de volver al menú) */
.pause-items button.danger { position: sticky; bottom: 0; z-index: 1; margin-top: 10px; text-align: center; color: #ffb0a8; background: rgb(60,12,16); border-color: #b3261e;
                             box-shadow: inset 0 2px 0 #5a1a20, inset 0 -2px 0 #2a0608, 3px 3px 0 #000; }
.pause-items button.danger.on, .pause-items button.danger:hover { color: #fff; background: #d8362a; border-color: #000;
                                                                  box-shadow: inset 0 2px 0 #ff7a6a, inset 0 -2px 0 #8a1a10, 3px 3px 0 #000; }
.pause-help { font-size: 7px; color: #9fb3e6; line-height: 2; text-shadow: 2px 2px 0 #000; padding-top: 4px; border-top: 1px dashed #2d3b66; }
.pause-moves { position: relative; flex: 1; overflow-y: auto; background: rgba(10,14,32,.9); border: 2px solid #2d3b66; padding: 12px 16px;
               box-shadow: inset 0 2px 0 #1a2142, 4px 4px 0 #000; animation: pause-in-r .24s steps(5) both;
               scrollbar-width: thin; scrollbar-color: #ffd84a #10152b; }
.pause-moves::-webkit-scrollbar { width: 8px; }
.pause-moves::-webkit-scrollbar-track { background: #10152b; }
.pause-moves::-webkit-scrollbar-thumb { background: #ffd84a; border: 2px solid #10152b; }
.pause-moves h3 { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #ffd84a; letter-spacing: 2px; margin: 12px 0 6px; font-weight: normal;
                  text-shadow: 2px 2px 0 #000; }
.pause-moves h3::before { content: ''; width: 6px; height: 6px; flex: none; background: #e8412c; box-shadow: 2px 2px 0 #000; }
.pause-moves h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #2d3b66, transparent); }
.pause-moves .char-head { padding-bottom: 8px; border-bottom: 2px solid #1a2142; }
.pause-moves .moves > span:nth-child(4n+1), .pause-moves .moves > span:nth-child(4n+2) { background: rgba(255,255,255,.025); }
.pause-moves ul { margin: 0 0 8px; padding-left: 18px; font-size: 9px; color: #c9d3ee; line-height: 1.9; }
.pause-moves li::marker { color: #ffd84a; }

@keyframes pause-veil { from { opacity: 0; } to { opacity: 1; } }
@keyframes pause-in-l { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pause-in-r { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pause-drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pause-nudge { 50% { transform: translateX(2px); } }

@media (prefers-reduced-motion: reduce) {
  #pause, .pause-left, .pause-left h2, .pause-moves, .pause-items button::before { animation: none !important; }
  .pause-items button { transition: none; }
}
