:root {
  --bg-dark: #090d14;
  --panel-bg: rgba(15, 21, 32, 0.90);
  --panel-border: rgba(234, 179, 8, 0.24);
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --gold: #eab308;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --danger: #ef4444;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  user-select: none;
}

#canvas-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Barra de Evaluación Táctica en Vivo */
.eval-bar-wrapper {
  position: fixed;
  left: 18px;
  top: 78px;
  bottom: 62px;
  width: 28px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.eval-bar-track {
  flex: 1;
  width: 16px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.eval-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 100%);
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.eval-score-text {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Consolas', monospace;
  color: var(--gold);
  background: rgba(15, 21, 32, 0.9);
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

/* Barra Superior */
.top-bar {
  position: fixed;
  top: 14px;
  left: 16px;
  right: 374px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-stage {
  background: rgba(234, 179, 8, 0.16);
  color: var(--gold);
  border: 1px solid rgba(234, 179, 8, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.brand h1 {
  font-size: 0.96rem;
  font-weight: 700;
}

.view-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.view-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.view-btn.active {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #090d14;
  box-shadow: 0 2px 12px rgba(234, 179, 8, 0.35);
}

.view-btn.secondary {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 7px 7px 0;
  padding-left: 10px;
}

/* Grupo superior derecho: Jugador, Ranking y Turno */
.top-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.user-pill-btn:hover {
  border-color: var(--gold);
  background: rgba(234, 179, 8, 0.14);
}

.ranking-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.16);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.ranking-pill-btn:hover {
  background: var(--gold);
  color: #090d14;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-pill.in-check {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.turn-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.turn-dot.white {
  background: #f8fafc;
  box-shadow: 0 0 6px #ffffff;
}

.turn-dot.black {
  background: #334155;
  border: 1px solid #94a3b8;
}

/* Panel Lateral Derecho */
.side-panel {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 348px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--panel-bg);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
}

.mode-tab {
  padding: 7px 8px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.mode-tab.active {
  background: linear-gradient(135deg, #eab308 0%, #d97706 100%);
  color: #090d14;
}

.panel-card {
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.panel-card.compact {
  padding: 9px 12px;
}

.panel-card.flex-grow {
  flex: 1;
  min-height: 0;
}

/* Escalera de Rivales "Enfrenta a IA San Juan" */
.boss-ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.ladder-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.ladder-step .step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.ladder-step .step-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ladder-step.cleared {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.ladder-step.cleared .step-num {
  background: #22c55e;
  color: #052e16;
}

.ladder-step.cleared .step-name {
  color: #86efac;
}

.ladder-step.active {
  border-color: var(--gold);
  background: rgba(234, 179, 8, 0.16);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

.ladder-step.active .step-num {
  background: var(--gold);
  color: #090d14;
}

.ladder-step.active .step-name {
  color: var(--text-main);
}

.ladder-step.locked {
  opacity: 0.48;
}

/* Tarjeta del Avatar / Director Técnico */
.avatar-box {
  display: flex;
  gap: 11px;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-portrait {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(234, 179, 8, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.avatar-portrait.reacting {
  animation: avatarPulse 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-initials {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: avatarBreathe 3.2s ease-in-out infinite;
}

@keyframes avatarBreathe {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.045) translateY(-1.5px);
  }
}

@keyframes avatarPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12) rotate(-2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.avatar-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.avatar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.avatar-title-row h3 {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
}

.avatar-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
}

.avatar-dialogue {
  margin-top: 3px;
  font-size: 0.75rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.32;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 8px;
  border-radius: 7px;
  border-left: 3px solid var(--gold);
}

.campaign-rule-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
  color: #cbd5e1;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  padding: 6px 9px;
  border-radius: 8px;
}

.btn-resign {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-resign:hover {
  background: rgba(239, 68, 68, 0.38);
}

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

.card-header h2 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Selector de 5 Niveles de IA */
.tag-elo {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.18);
  color: var(--gold);
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.ai-level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.lvl-btn {
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.lvl-btn.active {
  background: var(--accent);
  color: #06131f;
  border-color: transparent;
}

.lvl-btn.extreme {
  grid-column: span 2;
}

.lvl-btn.extreme.active {
  background: linear-gradient(135deg, #f43f5e 0%, #eab308 100%);
  color: #090d14;
}

.ai-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.btn-hint {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.12);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.preset-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#preset-select {
  width: 100%;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 15, 26, 0.9);
  color: var(--text-main);
  font-size: 0.78rem;
  outline: none;
}

.playback-bar {
  display: grid;
  grid-template-columns: 36px 36px 1fr 36px;
  gap: 5px;
}

.ctrl-btn {
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.ctrl-btn.primary {
  background: var(--accent);
  color: #06131f;
  border-color: transparent;
}

.ctrl-btn.playing {
  background: #f59e0b;
  color: #1c1302;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
}

.quick-move-form {
  display: flex;
  gap: 6px;
}

#quick-move-input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 15, 26, 0.85);
  color: var(--text-main);
  font-size: 0.79rem;
  outline: none;
}

.btn-send {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: rgba(234, 179, 8, 0.2);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.move-feedback {
  font-size: 0.73rem;
  padding: 4px 8px;
  border-radius: 6px;
}

.move-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.move-feedback.ok {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.hidden {
  display: none !important;
}

.move-counter {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.captured-tray {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 8px;
  border-radius: 8px;
  min-height: 32px;
}

.captured-row {
  font-size: 0.9rem;
  line-height: 1.1;
  min-height: 13px;
  letter-spacing: 1px;
}

.move-history {
  flex: 1;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 6px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.empty-history {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  margin: auto 0;
  padding: 8px;
  line-height: 1.38;
}

.history-row {
  display: grid;
  grid-template-columns: 30px 1fr 1fr;
  align-items: center;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.history-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.06);
}

.history-num {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.history-move {
  font-family: 'Consolas', monospace;
  font-weight: 600;
  color: var(--text-main);
}

.history-move.latest {
  color: var(--gold);
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.69rem;
  color: var(--text-muted);
  padding: 2px 6px;
}

.floating-help {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 10;
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.floating-help b {
  color: var(--gold);
}

/* =====================================================================
   MENÚ DE INICIO / INICIO DE SESIÓN Y SALÓN DE LA FAMA SARMIENTO
====================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 9, 16, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.welcome-card {
  background: linear-gradient(165deg, rgba(19, 27, 42, 0.97) 0%, rgba(11, 16, 26, 0.98) 100%);
  border: 1px solid rgba(234, 179, 8, 0.38);
  border-radius: 18px;
  padding: 24px;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

.ranking-only-card {
  max-width: 620px;
}

.welcome-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.welcome-header h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.welcome-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 560px;
}

.welcome-bosses-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mini-boss-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.mini-boss-card.final-boss {
  border-color: rgba(234, 179, 8, 0.55);
  background: rgba(234, 179, 8, 0.08);
}

.mini-boss-card img {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.mini-boss-card .mini-lvl {
  font-size: 0.66rem;
  color: var(--gold);
  font-weight: 700;
}

.mini-boss-card strong {
  font-size: 0.8rem;
  color: var(--text-main);
}

.welcome-body-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: stretch;
}

.login-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.login-box h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 2px;
}

.login-box label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.login-box input,
.login-box select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
}

.login-box input:focus,
.login-box select:focus {
  border-color: var(--gold);
}

.btn-start-challenge {
  margin-top: auto;
  padding: 11px 14px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #090d14;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.35);
  transition: transform 0.15s ease;
}

.btn-start-challenge:hover {
  transform: translateY(-1px);
}

.welcome-Leaderboard {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.leaderboard-header h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.ranking-list {
  flex: 1;
  max-height: 190px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-list.tall {
  max-height: 250px;
}

.ranking-list.compact-list {
  max-height: 140px;
}

.ranking-empty {
  margin: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 18px 12px;
  line-height: 1.45;
}

.ranking-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.ranking-item.top-1 {
  border-color: rgba(234, 179, 8, 0.5);
  background: rgba(234, 179, 8, 0.12);
}

.rank-pos {
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  color: var(--gold);
}

.rank-player {
  display: flex;
  flex-direction: column;
}

.rank-player strong {
  color: var(--text-main);
  font-size: 0.83rem;
}

.rank-player span {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.rank-stats {
  text-align: right;
  font-family: 'Consolas', monospace;
  font-size: 0.75rem;
  color: #86efac;
  font-weight: 700;
}

.btn-close-modal {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-box {
  background: #131b29;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 22px;
  width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.campaign-result-box .result-badge {
  align-self: center;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.result-badge.win {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.result-badge.loss {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.campaign-result-box p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.btn-campaign-action {
  padding: 10px 16px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #090d14;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}

.promo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.promo-buttons button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
}

.promo-buttons button:hover {
  background: var(--gold);
  color: #090d14;
}

@media (max-width: 900px) {
  .top-bar {
    right: 16px;
    flex-wrap: wrap;
  }
  .side-panel {
    top: auto;
    left: 14px;
    right: 14px;
    height: 290px;
    width: auto;
  }
  .welcome-bosses-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .welcome-body-grid {
    grid-template-columns: 1fr;
  }
  .eval-bar-wrapper,
  .floating-help {
    display: none;
  }
}
