/* Mortales page */
.mortales-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}
.radar-card {
  background: white;
  border: 4px solid var(--slate);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}
.alert-banner {
  padding: 16px 20px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  border-bottom: 4px solid var(--slate);
  transition: background 0.5s, color 0.5s;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.distance-display {
  text-align: center;
  padding: 28px 20px 16px;
}
.distance-display .label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.distance-display .value {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  margin: 8px 0;
  text-shadow: 2px 2px 0 var(--peach-2);
}
.distance-display .sub {
  font-size: 0.95rem;
  color: var(--slate-light);
  font-weight: 600;
}
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}
.meta-box {
  background: var(--peach);
  border: 3px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: 12px;
  text-align: center;
}
.meta-box .k { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-light); display: block; }
.meta-box .v { font-weight: 800; font-size: 1rem; margin-top: 4px; display: block; }
.meta-box .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* Brujula visual */
.compass {
  width: 140px; height: 140px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid var(--slate);
  background: conic-gradient(from 0deg, #FFF7ED, #FFE4B5, #FFF7ED, #FECACA, #FFF7ED);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.08);
}
.compass .needle {
  position: absolute;
  width: 4px;
  height: 70px;
  background: linear-gradient(to bottom, var(--red) 50%, var(--slate) 50%);
  border-radius: 999px;
  border: 2px solid var(--slate);
  top: 50%;
  left: 50%;
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(var(--angle, 0deg));
  transition: transform 1s ease;
}
.compass .center {
  width: 18px; height: 18px;
  background: var(--slate);
  border-radius: 50%;
  border: 2px solid white;
  z-index: 2;
}
.compass .label-n { position: absolute; top: 6px; font-weight: 800; font-size: 0.9rem; color: var(--red); }
.compass .label-s { position: absolute; bottom: 6px; font-weight: 800; font-size: 0.7rem; color: var(--slate-light); }

/* Lista mortales */
.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  margin: 8px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .count { background: var(--yellow); border: 2px solid var(--slate); border-radius: 999px; padding: 2px 10px; font-size: 0.9rem; }

.mortals-list {
  display: grid;
  gap: 10px;
}
.mortal-card {
  background: white;
  border: 3px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 3px 3px 0 var(--slate);
}
.mortal-card.infected {
  background: #FFF1F2;
  border-color: #991B1B;
}
.mortal-card .name { font-weight: 800; font-size: 1.05rem; }
.mortal-card .meta { font-size: 0.85rem; color: var(--slate-light); }
.mortal-card .right { text-align: right; }

.win-banner {
  background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow));
  border: 4px solid var(--slate);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  animation: win-pop 0.5s ease;
}
.win-banner h2 { font-size: 1.6rem; text-shadow: 2px 2px 0 white; }
.win-banner p { font-weight: 700; margin-top: 8px; }
@keyframes win-pop { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: white;
  border: 4px solid var(--slate);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.modal h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal p { color: var(--slate-light); font-weight: 600; margin-bottom: 16px; }
.modal input {
  width: 100%;
  padding: 12px 16px;
  border: 3px solid var(--slate);
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.modal .btn-primary { width: 100%; }
.mini-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.mini-actions button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--slate);
  background: white;
  font-weight: 700;
  cursor: pointer;
}
.mini-actions button.primary { background: var(--yellow); }

.hidden { display: none !important; }
