/* ==========================================================================
   REVIX AJEDREZ 3D - SPARTACUS: SANGRE Y ARENA
   Theme: Ancient Rome / Gladiator Colosseum / Cinematic Blood & Sand
   ========================================================================== */

:root {
  --gold-primary: #d4af37;
  --gold-light: #f7e28b;
  --gold-dark: #8c701e;
  --crimson-blood: #990f02;
  --crimson-bright: #e52521;
  --crimson-glow: rgba(229, 37, 33, 0.4);
  --sand-stone: #d2b48c;
  --dark-slate: #121316;
  --dark-panel: rgba(18, 19, 23, 0.85);
  --dark-card: rgba(28, 29, 34, 0.9);
  --font-title: 'Cinzel Decorative', 'Cinzel', serif;
  --font-body: 'Marcellus', 'Cinzel', serif;
}

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

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--dark-slate);
  font-family: var(--font-body);
  color: #e8d8c8;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: none;
}

canvas {
  touch-action: none;
  display: block;
}

/* ==========================================================================
   HUD SUPERIOR
   ========================================================================== */
#game-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.7) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  pointer-events: none;
}

#game-header > * {
  pointer-events: auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emblem-crest {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.title-group h1 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  letter-spacing: 4px;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.4);
}

.title-group h2 {
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--crimson-bright);
  font-weight: 600;
  text-transform: uppercase;
}

/* Indicador de Turno */
#turn-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px;
  border-radius: 4px;
  background: rgba(20, 20, 25, 0.85);
  border: 1px solid var(--gold-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(212, 175, 55, 0.15);
  transition: all 0.4s ease;
}

#turn-banner.turn-white {
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

#turn-banner.turn-black {
  border-color: var(--crimson-bright);
  box-shadow: 0 0 20px rgba(229, 37, 33, 0.35);
}

.turn-emblem {
  font-size: 1.6rem;
}

.turn-info {
  display: flex;
  flex-direction: column;
}

.turn-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: #a0988e;
  text-transform: uppercase;
}

.turn-name {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 2px;
  color: #fff;
  font-weight: 700;
}

.turn-timer {
  font-size: 0.8rem;
  color: var(--gold-light);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 12px;
  font-style: italic;
}

.header-right {
  display: flex;
  gap: 10px;
}

.btn-icon {
  width: 42px;
  height: 42px;
  background: rgba(30, 30, 36, 0.85);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-icon:hover {
  background: rgba(50, 45, 30, 0.95);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   PANELES LATERALES HUD Y BOTONES MINIMIZABLES
   ========================================================================== */
.sidebar-toggle-tab {
  position: absolute;
  top: 85px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(18, 19, 24, 0.92);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-family: var(--font-title);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), inset 0 0 10px rgba(212, 175, 55, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  pointer-events: auto;
}

.sidebar-toggle-tab:hover {
  background: rgba(35, 32, 22, 0.98);
  border-color: var(--gold-light);
  box-shadow: 0 4px 22px rgba(212, 175, 55, 0.45), inset 0 0 14px rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.sidebar-toggle-tab.tab-left {
  left: 20px;
  border-radius: 6px;
}

.sidebar-toggle-tab.tab-left.panel-open {
  left: 335px;
  background: linear-gradient(135deg, rgba(140, 20, 20, 0.95) 0%, rgba(40, 20, 20, 0.95) 100%);
  border-color: var(--crimson-bright);
  color: #fff;
}

.sidebar-toggle-tab.tab-right {
  right: 20px;
  border-radius: 6px;
}

.sidebar-toggle-tab.tab-right.panel-open {
  right: 335px;
  background: linear-gradient(135deg, rgba(140, 20, 20, 0.95) 0%, rgba(40, 20, 20, 0.95) 100%);
  border-color: var(--crimson-bright);
  color: #fff;
}

.sidebar-toggle-tab .tab-icon {
  font-size: 1rem;
}

.sidebar-toggle-tab .tab-arrow {
  color: var(--gold-primary);
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.sidebar-toggle-tab.panel-open .tab-arrow {
  color: #fff;
}

.hud-panel {
  position: absolute;
  top: 85px;
  bottom: 25px;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: var(--dark-panel);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 20;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(212, 175, 55, 0.08);
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow-y: auto;
}

#left-sidebar {
  left: 20px;
  transform: translateX(0);
  opacity: 1;
}

#left-sidebar.collapsed {
  transform: translateX(calc(-100% - 40px));
  opacity: 0;
  pointer-events: none;
}

#right-sidebar {
  right: 20px;
  transform: translateX(0);
  opacity: 1;
}

#right-sidebar.collapsed {
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
}

/* Cabecera interna del panel con botón cerrar */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 4px;
}

.panel-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.82rem;
  letter-spacing: 2px;
  color: var(--gold-light);
  font-weight: 700;
}

.panel-close-btn {
  background: rgba(40, 20, 20, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.panel-close-btn:hover {
  background: var(--crimson-blood);
  border-color: var(--crimson-bright);
  color: #fff;
  transform: scale(1.1);
}

/* Tarjetas de Legión */
.legion-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.legion-card.active {
  border-color: var(--gold-primary);
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.2), 0 0 15px rgba(0, 0, 0, 0.8);
}

.legion-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legion-badge {
  font-size: 1.5rem;
}

.legion-details h3 {
  font-family: var(--font-title);
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: var(--gold-light);
}

.legion-role {
  font-size: 0.75rem;
  color: #9f9689;
}

.captured-box {
  background: rgba(10, 10, 12, 0.6);
  border-radius: 4px;
  padding: 6px 10px;
  min-height: 48px;
}

.graveyard-title {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: #7d756b;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.graveyard-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 1.15rem;
}

.graveyard-pieces span {
  display: inline-block;
  transition: transform 0.2s;
}

.graveyard-pieces span:hover {
  transform: scale(1.3);
}

.arena-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--crimson-bright);
  font-weight: 700;
  text-align: center;
}

.arena-divider::before,
.arena-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 37, 33, 0.5), transparent);
}

/* Botones Romanos */
.btn-roman {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  border: 1px solid var(--gold-primary);
  position: relative;
  overflow: hidden;
}

.btn-roman.primary {
  background: linear-gradient(135deg, #8a1010 0%, #4a0606 100%);
  color: #fff;
  border-color: var(--crimson-bright);
  box-shadow: 0 4px 15px rgba(229, 37, 33, 0.4);
}

.btn-roman.primary:hover {
  background: linear-gradient(135deg, #b01515 0%, #630808 100%);
  box-shadow: 0 4px 25px rgba(229, 37, 33, 0.7);
  transform: translateY(-2px);
}

.btn-roman.secondary {
  background: rgba(30, 30, 36, 0.8);
  color: var(--gold-light);
  border-color: var(--gold-dark);
}

.btn-roman.secondary:hover {
  background: rgba(45, 40, 25, 0.9);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

/* Panel Derecho: Crónica y Opciones */
.panel-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold-light);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.moves-log-container {
  flex: 1;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(10, 10, 12, 0.7);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.moves-log-container::-webkit-scrollbar {
  width: 5px;
}

.moves-log-container::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

.log-entry {
  line-height: 1.35;
  color: #c5bba8;
}

.log-entry.battle {
  color: #ff7875;
  font-weight: 700;
  border-left: 2px solid var(--crimson-bright);
  padding-left: 6px;
}

.log-entry.system {
  color: var(--gold-light);
  font-style: italic;
  font-size: 0.75rem;
}

.controls-section {
  margin-top: auto;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.roman-select {
  font-family: var(--font-body);
  background: rgba(20, 20, 25, 0.9);
  color: var(--gold-light);
  border: 1px solid var(--gold-dark);
  border-radius: 3px;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
  max-width: 160px;
}

.roman-select:focus {
  border-color: var(--gold-primary);
}

.roman-slider {
  accent-color: var(--crimson-bright);
  cursor: pointer;
}

/* ==========================================================================
   CINEMÁTICA DE COMBATE SPARTACUS (LETTERBOX + BATTLE OVERLAY)
   ========================================================================== */
.battle-cinematic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.5s ease;
}

.battle-cinematic.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Barras Cinemáticas estilo Película (Letterbox) */
.cinematic-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 11vh;
  background-color: #000;
  z-index: 101;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-bar {
  top: 0;
  transform: translateY(0);
}

.bottom-bar {
  bottom: 0;
  transform: translateY(0);
}

.battle-cinematic.hidden .top-bar {
  transform: translateY(-100%);
}

.battle-cinematic.hidden .bottom-bar {
  transform: translateY(100%);
}

/* Viñeta de Sangre en pantalla */
.blood-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 40%, rgba(138, 16, 16, 0.6) 95%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 102;
}

.blood-vignette.active {
  opacity: 1;
  animation: pulse-blood 1s infinite alternate;
}

@keyframes pulse-blood {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.03); opacity: 0.9; }
}

/* ==========================================================================
   CINEMÁTICA DE COMBATE MORTAL KOMBAT x SPARTACUS (SIN PAUSAS)
   ========================================================================== */
.battle-cinematic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.battle-cinematic.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Barras Cinemáticas (Letterbox sutil para máxima visibilidad) */
.cinematic-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 5vh;
  background-color: #000;
  z-index: 101;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-bar {
  top: 0;
  transform: translateY(0);
}

.bottom-bar {
  bottom: 0;
  transform: translateY(0);
}

.battle-cinematic.hidden .top-bar {
  transform: translateY(-100%);
}

.battle-cinematic.hidden .bottom-bar {
  transform: translateY(100%);
}

/* Canvas de Sangre en Lente de Cámara (Mortal Kombat Camera Lens Splatter) */
.blood-screen-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 103;
}

/* Destello de impacto X-Ray */
.impact-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  pointer-events: none;
  opacity: 0;
  z-index: 104;
  transition: opacity 0.05s ease-out;
}

.impact-flash.active-white {
  opacity: 0.85;
}

.impact-flash.active-red {
  background: #8b0000;
  opacity: 0.85;
}

.impact-flash.active-xray {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(220, 20, 20, 0.88) 45%, rgba(10, 0, 0, 0.98) 100%);
  mix-blend-mode: hard-light;
  opacity: 0.95;
  filter: contrast(300%) brightness(1.2);
}

/* Viñeta de Sangre */
.blood-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 35%, rgba(180, 0, 0, 0.7) 95%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 102;
}

.blood-vignette.active {
  opacity: 1;
  animation: pulse-blood 0.5s infinite alternate;
}

@keyframes pulse-blood {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.02); opacity: 1; }
}

/* HUD DE PELEA MORTAL KOMBAT */
.mk-battle-hud {
  position: absolute;
  top: 6vh;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 105;
  pointer-events: none;
}

/* Barras de Vida estilo Fighting Game */
.mk-health-bars {
  width: 90%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.mk-fighter {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attacker-side .mk-name {
  text-align: left;
  color: var(--gold-light);
}

.defender-side .mk-name {
  text-align: right;
  color: #ff9999;
}

.mk-name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 2px;
  font-weight: 800;
  text-shadow: 0 2px 6px #000, 0 0 10px rgba(0,0,0,0.9);
  text-transform: uppercase;
}

.mk-health-bar-outer {
  height: 22px;
  background: rgba(10, 10, 15, 0.85);
  border: 2px solid var(--gold-primary);
  transform: skewX(-14deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), inset 0 0 8px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  position: relative;
}

.mk-health-bar-inner {
  height: 100%;
  width: 100%;
  transition: width 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.attacker-hp {
  background: linear-gradient(90deg, #ffcc00 0%, #22c55e 100%);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.defender-hp {
  background: linear-gradient(90deg, #22c55e 0%, #ffcc00 100%);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  float: right;
}

.defender-hp.critical {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.9) !important;
}

.mk-center-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mk-dragon-crest {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 12px #ff4500);
  animation: dragon-glow 1s infinite alternate;
}

@keyframes dragon-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 8px #ff4500); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 16px #ff0000); }
}

.mk-round-tag {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--gold-light);
  font-weight: 900;
}

/* Anuncios Centrales (FIGHT! / FINISH HIM! / FATALITY!) */
.mk-announcement-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.mk-banner {
  font-family: var(--font-title);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  user-select: none;
}

.mk-banner.hidden {
  display: none !important;
}

/* FIGHT! Banner */
.mk-fight {
  font-size: 4rem;
  letter-spacing: 10px;
  color: #ffde59;
  text-shadow: 0 0 30px #ff3b00, 0 4px 15px #000, 0 0 60px #ff1100;
  animation: mk-fight-zoom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes mk-fight-zoom {
  0% { transform: scale(0.2); opacity: 0; }
  70% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* FINISH HIM! Banner */
.mk-finish {
  font-size: 3.5rem;
  letter-spacing: 8px;
  color: #ff1f1f;
  text-shadow: 0 0 30px #ff0000, 0 4px 15px #000;
  animation: mk-finish-pulse 0.25s infinite alternate;
}

@keyframes mk-finish-pulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.06); opacity: 1; text-shadow: 0 0 45px #ff0000, 0 0 80px #990000; }
}

/* FATALITY! Banner */
.mk-fatality {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: mk-fatality-slam 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fatality-title {
  font-size: 5.5rem;
  line-height: 1;
  letter-spacing: 16px;
  color: #ff0515;
  text-shadow: 0 0 40px #ff0000, 0 8px 25px #000, 0 0 90px #8b0000, 0 0 130px #ff1a1a;
  animation: fatality-blood-pulse 1.2s infinite alternate;
}

@keyframes fatality-blood-pulse {
  0% {
    text-shadow: 0 0 40px #ff0000, 0 8px 25px #000, 0 0 90px #8b0000;
    transform: scale(1);
  }
  100% {
    text-shadow: 0 0 60px #ff3333, 0 12px 35px #000, 0 0 130px #ff0000, 0 0 170px #500;
    transform: scale(1.03);
    filter: drop-shadow(0 15px 12px rgba(220, 0, 0, 0.95));
  }
}

.fatality-sub {
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 6px;
  color: #f7e28b;
  margin-top: 14px;
  text-shadow: 0 2px 10px #000, 0 0 20px rgba(247, 226, 139, 0.8);
}

@keyframes mk-fatality-slam {
  0% { transform: scale(3) rotate(-3deg); opacity: 0; }
  60% { transform: scale(0.92) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Contador de Combo Flotante */
.mk-combo-box {
  position: absolute;
  top: 34vh;
  left: 8%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 15, 20, 0.7);
  padding: 8px 18px;
  border-radius: 4px;
  border-left: 4px solid var(--crimson-bright);
  animation: combo-hit-punch 0.15s ease-out;
}

.mk-combo-box.hidden {
  display: none !important;
}

.combo-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  line-height: 1;
  color: #ffde59;
  text-shadow: 0 0 20px #ff5500, 0 3px 10px #000;
}

.combo-text-group {
  display: flex;
  flex-direction: column;
}

.combo-hits-label {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
}

.combo-rating {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff3b3b;
  text-transform: uppercase;
}

@keyframes combo-hit-punch {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   ALERTAS Y MODALES
   ========================================================================== */
.alert-banner {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(138, 16, 16, 0.9) 20%, rgba(138, 16, 16, 0.9) 80%, transparent);
  border-top: 1px solid var(--crimson-bright);
  border-bottom: 1px solid var(--crimson-bright);
  padding: 8px 40px;
  z-index: 50;
  transition: all 0.3s ease;
}

.alert-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  pointer-events: none;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-text {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Modales */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-box {
  background: var(--dark-panel);
  padding: 30px;
  border-radius: 6px;
  width: 440px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  position: relative;
}

.roman-border {
  border: 2px solid var(--gold-primary);
  outline: 1px solid var(--gold-dark);
  outline-offset: 4px;
}

.modal-wreath {
  font-size: 2.2rem;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--gold-light);
}

.modal-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d8cebf;
}

.modal-stats {
  display: flex;
  gap: 20px;
  background: rgba(10, 10, 12, 0.7);
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.85rem;
  color: var(--gold-light);
}

.help-box {
  width: 540px;
  text-align: left;
  max-height: 80vh;
  overflow-y: auto;
}

.help-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.help-content ul {
  padding-left: 20px;
}

.help-content li {
  margin-bottom: 6px;
}

.roman-hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}

.settings-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #e0d5c5;
}

/* Audio Starter Prompt */
.audio-prompt {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 25, 0.9);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  z-index: 50;
  animation: pulse-border 2s infinite;
  cursor: pointer;
}

.audio-prompt.hidden {
  display: none;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ==========================================================================
   MEDIA QUERIES RESPONSIVE (Móviles, Tablets y Pantallas Táctiles)
   ========================================================================== */

/* Tablets (hasta 900px) */
@media (max-width: 900px) {
  .hud-panel {
    width: 250px;
    padding: 12px;
  }
  .title-group h1 {
    font-size: 1.15rem;
  }
  .title-group h2 {
    display: none;
  }
  .battle-versus-title {
    font-size: 1.3rem;
  }
}

/* Smartphones y Tablets en Vertical (hasta 768px) */
@media (max-width: 768px) {
  #game-header {
    height: 56px;
    padding: 0 10px;
  }

  .header-left {
    gap: 8px;
  }

  .emblem-crest {
    font-size: 1.35rem;
  }

  .title-group h1 {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }

  .title-group h2 {
    display: none;
  }

  /* Indicador de Turno Flotante Compacto bajo la Cabecera */
  #turn-banner {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 95vw;
    padding: 4px 12px;
    gap: 8px;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.85);
  }

  .turn-emblem {
    font-size: 1.15rem;
  }

  .turn-label {
    display: none;
  }

  .turn-name {
    font-size: 0.78rem;
    letter-spacing: 1px;
  }

  .turn-timer {
    font-size: 0.7rem;
    padding-left: 8px;
  }

  /* Botones del Header más compactos para dedos en móvil */
  .header-right {
    gap: 5px;
  }

  .btn-icon {
    width: 35px;
    height: 35px;
    font-size: 0.95rem;
  }

  .online-indicator {
    padding: 3px 8px;
    font-size: 0.65rem;
    letter-spacing: 1px;
  }

  /* Pestañas flotantes para abrir paneles laterales */
  .sidebar-toggle-tab {
    top: 104px;
    padding: 6px 10px;
    font-size: 0.68rem;
  }

  .sidebar-toggle-tab.tab-left {
    left: 8px;
  }

  .sidebar-toggle-tab.tab-right {
    right: 8px;
  }

  /* Al abrir el panel en móvil, ocultar la pestaña para que no estorbe (se cierra con el botón ✕) */
  .sidebar-toggle-tab.panel-open {
    display: none !important;
  }

  /* Paneles laterales estilo Drawer flotante en móvil */
  .hud-panel {
    top: 60px;
    bottom: 12px;
    width: min(320px, calc(100vw - 20px));
    z-index: 60;
  }

  #left-sidebar {
    left: 10px;
  }

  #right-sidebar {
    right: 10px;
  }

  /* HUD de Pelea Mortal Kombat adaptado a pantallas táctiles */
  .mk-battle-hud {
    top: 4vh;
    width: 96%;
  }

  .mk-health-bars {
    gap: 8px;
  }

  .mk-health-bar-outer {
    height: 16px;
  }

  .mk-name {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .mk-dragon-crest {
    font-size: 1.35rem;
  }

  .mk-round-tag {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
  }

  .mk-fight {
    font-size: 2.6rem;
    letter-spacing: 5px;
  }

  .mk-finish {
    font-size: 2.2rem;
    letter-spacing: 3px;
  }

  .fatality-title {
    font-size: 2.6rem;
    letter-spacing: 5px;
  }

  .fatality-sub {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
  }

  .mk-combo-box {
    transform: scale(0.8);
    right: 6px;
    bottom: 35px;
  }
}

/* Teléfonos Pequeños (hasta 480px) */
@media (max-width: 480px) {
  .title-group h1 {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .emblem-crest {
    font-size: 1.2rem;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }

  .turn-name {
    font-size: 0.72rem;
  }

  .turn-timer {
    font-size: 0.65rem;
  }

  .modal-box {
    padding: 18px 12px;
    width: 95vw;
  }

  .room-actions-row {
    flex-direction: column;
  }

  .challenge-actions {
    flex-direction: column;
  }

  .challenge-actions .btn-roman {
    width: 100%;
  }
}

/* Modo Horizontal en Teléfonos y Pantallas Bajas (Landscape) */
@media (max-height: 520px) and (orientation: landscape) {
  #game-header {
    height: 44px;
    padding: 0 max(12px, env(safe-area-inset-left));
  }

  .title-group h1 {
    font-size: 0.85rem;
  }

  #turn-banner {
    position: static;
    transform: none;
    padding: 2px 10px;
    font-size: 0.72rem;
  }

  .hud-panel {
    top: 48px;
    bottom: 6px;
    width: min(290px, 45vw);
  }

  .sidebar-toggle-tab {
    top: 52px;
    padding: 4px 8px;
    font-size: 0.62rem;
  }

  .mk-battle-hud {
    top: 2vh;
  }

  .mk-health-bar-outer {
    height: 12px;
  }

  .mk-fight {
    font-size: 2rem;
  }

  .fatality-title {
    font-size: 2.2rem;
  }
}


/* ==========================================================================
   COLISEO ONLINE & CHAT MULTIJUGADOR P2P (WebRTC)
   ========================================================================== */

/* Botón Online Destacado en Header */
.btn-online-highlight {
  border-color: #3b82f6 !important;
  color: #60a5fa !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.btn-online-highlight:hover {
  background: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.7);
  transform: scale(1.08);
}

/* Indicador de Estado Online en HUD */
.online-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(10, 25, 47, 0.85);
  border: 1px solid #3b82f6;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-title);
  letter-spacing: 1.5px;
  color: #93c5fd;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
  transition: all 0.3s ease;
}

.online-indicator.hidden {
  display: none;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #34d399; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Badge de Mensajes no Leídos en Pestaña Flotante */
.chat-unread-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--crimson-bright);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid #fff;
  box-shadow: 0 0 8px rgba(229, 37, 33, 0.8);
  animation: bounce-badge 0.8s infinite alternate ease-in-out;
}

.chat-unread-badge.hidden {
  display: none;
}

@keyframes bounce-badge {
  0% { transform: scale(1); }
  100% { transform: scale(1.18); }
}

/* Sección de Chat en Sidebar Derecho */
.chat-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 14px;
}

.chat-messages-container {
  height: 140px;
  max-height: 180px;
  overflow-y: auto;
  background: rgba(10, 11, 14, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.chat-messages-container::-webkit-scrollbar {
  width: 5px;
}
.chat-messages-container::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

.chat-msg {
  line-height: 1.35;
  word-break: break-word;
  animation: fadeInMsg 0.25s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.system {
  color: #a39e93;
  font-style: italic;
  font-size: 0.76rem;
  text-align: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.chat-msg.self {
  color: #f7e28b;
  text-align: right;
}

.chat-msg.opponent {
  color: #fca5a5;
  text-align: left;
}

.chat-msg-sender {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-right: 5px;
  display: inline-block;
}

.chat-msg.self .chat-msg-sender {
  color: var(--gold-primary);
}

.chat-msg.opponent .chat-msg-sender {
  color: var(--crimson-bright);
}

.chat-msg-time {
  font-size: 0.65rem;
  color: #71717a;
  margin-left: 6px;
}

/* Fila de Input de Chat */
.chat-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.roman-input {
  background: rgba(14, 15, 18, 0.9);
  border: 1px solid var(--gold-dark);
  color: #f5eedc;
  padding: 8px 12px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.roman-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.chat-input {
  flex: 1;
  font-size: 0.82rem;
  padding: 6px 10px;
}

.btn-chat-send {
  padding: 6px 12px !important;
  font-size: 0.9rem;
}

/* ==========================================================================
   MODAL LOBBY ONLINE DEL COLISEO
   ========================================================================== */
.online-modal-box {
  width: 680px;
  max-width: 95vw;
}

.online-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.online-panels-container {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

@media (max-width: 640px) {
  .online-panels-container {
    flex-direction: column;
  }
}

.online-card {
  flex: 1;
  background: rgba(15, 17, 22, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease;
}

.online-card:hover {
  border-color: var(--gold-primary);
}

.online-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 8px;
}

.online-card-header .card-icon {
  font-size: 1.4rem;
}

.online-card-header h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.card-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Visualizador de Código de Sala */
.room-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 4px;
  border: 1px dashed var(--gold-primary);
}

.room-code-label {
  font-size: 0.75rem;
  color: #a1a1aa;
  letter-spacing: 1px;
}

.room-code-badge {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.room-actions-row {
  display: flex;
  gap: 8px;
}

.room-actions-row .btn-roman {
  flex: 1;
  padding: 6px 8px;
  font-size: 0.75rem;
}

.btn-action-full {
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.online-divider-vertical {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  color: var(--gold-dark);
  font-weight: bold;
}

.join-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-large {
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font-title);
  font-weight: 700;
}

.host-status-box,
.join-status-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.host-status-box.hidden,
.join-status-box.hidden {
  display: none;
}

.spinner-flame {
  display: inline-block;
  animation: rotateFlame 2s infinite ease-in-out;
}

@keyframes rotateFlame {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(15deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ==========================================================================
   MODAL DE RETO ENTRANTE (Aceptar / Rechazar)
   ========================================================================== */
.challenge-box {
  width: 480px;
  border-color: var(--crimson-bright) !important;
  box-shadow: 0 0 35px rgba(229, 37, 33, 0.5), inset 0 0 15px rgba(229, 37, 33, 0.2) !important;
  animation: pulse-challenge 2s infinite ease-in-out;
}

@keyframes pulse-challenge {
  0% { box-shadow: 0 0 25px rgba(229, 37, 33, 0.4); }
  50% { box-shadow: 0 0 45px rgba(229, 37, 33, 0.7); }
  100% { box-shadow: 0 0 25px rgba(229, 37, 33, 0.4); }
}

.challenge-arena-banner {
  background: rgba(153, 15, 2, 0.3);
  border: 1px solid var(--crimson-bright);
  border-radius: 4px;
  padding: 10px;
  margin: 12px 0 18px 0;
  font-family: var(--font-title);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.challenge-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.challenge-actions .btn-roman {
  min-width: 140px;
  padding: 10px 18px;
}

.gold-text {
  color: var(--gold-light);
  font-family: var(--font-title);
}

/* ==========================================================================
   VISTA GUIADA INTERACTIVA (TOUR TUTORIAL - 3 VECES POR DÍA)
   ========================================================================== */
.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.tour-overlay.hidden {
  display: none;
}

/* Foco de Luz / Spotlight en el elemento objetivo */
.tour-spotlight {
  position: absolute;
  border-radius: 6px;
  box-shadow: 0 0 0 9999px rgba(8, 9, 12, 0.8), 0 0 20px rgba(212, 175, 55, 0.8);
  border: 2px solid var(--gold-primary);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2001;
  animation: pulse-spotlight 2s infinite ease-in-out;
}

@keyframes pulse-spotlight {
  0% { border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 0 0 9999px rgba(8, 9, 12, 0.82), 0 0 10px rgba(212, 175, 55, 0.5); }
  50% { border-color: rgba(247, 226, 139, 1); box-shadow: 0 0 0 9999px rgba(8, 9, 12, 0.82), 0 0 25px rgba(212, 175, 55, 0.9); }
  100% { border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 0 0 9999px rgba(8, 9, 12, 0.82), 0 0 10px rgba(212, 175, 55, 0.5); }
}

/* Caja del Paso del Tour */
.tour-box {
  position: absolute;
  width: 440px;
  max-width: 90vw;
  background: rgba(18, 19, 24, 0.96);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 22px 24px;
  z-index: 2005;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  backdrop-filter: blur(10px);
  animation: tourFadeIn 0.3s ease-out;
}

@keyframes tourFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.tour-step-badge {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 2px;
  padding: 3px 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  color: var(--gold-light);
  font-weight: 700;
}

.tour-daily-counter {
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
}

.tour-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #f7e28b;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tour-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e2e8f0;
}

/* Indicadores de Puntos del Progreso */
.tour-progress-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.tour-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

/* Botones de Acción del Tour */
.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 14px;
}

.btn-tour-skip {
  padding: 8px 14px !important;
  font-size: 0.78rem !important;
  color: #cbd5e1 !important;
}

.tour-nav-group {
  display: flex;
  gap: 8px;
}

.tour-nav-group .btn-roman {
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
}

/* Selector Rápido de Modo en Lobby Online */
.online-quick-modes {
  background: rgba(10, 11, 14, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-modes-label {
  font-family: var(--font-title);
  font-size: 0.78rem;
  color: #94a3b8;
  letter-spacing: 1px;
}

.quick-modes-buttons {
  display: flex;
  gap: 10px;
}

.quick-modes-buttons .btn-roman {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .tour-box {
    width: 92vw !important;
    padding: 16px !important;
    left: 4% !important;
    transform: none !important;
  }
  .tour-title {
    font-size: 1rem !important;
  }
  .tour-desc {
    font-size: 0.82rem !important;
  }
  .quick-modes-buttons {
    flex-direction: column;
  }
}

/* Marca de Agua Oficial Creathe */
.arena-watermark {
  position: absolute;
  bottom: 8px;
  right: 14px;
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: rgba(212, 175, 55, 0.4);
  pointer-events: none;
  z-index: 5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}
