.page-hero-compact {
  padding: 96px 0 40px;
  border-bottom: 1px solid var(--panel-border);
  background: radial-gradient(circle at 75% 30%, rgba(56, 189, 248, 0.14), transparent 55%);
}

.page-hero-compact h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.page-lead { font-size: 16px; color: var(--text-muted); max-width: 740px; }

.lore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.lore-card h3 { padding: 18px 18px 8px; font-size: 20px; }
.lore-card p { padding: 0 18px 20px; font-size: 14px; color: var(--text-muted); }

/* ПОДСВЕТКА КНОПОК РЕГИОНОВ */
.world-tab.active[data-region="periphery"] {
  background: rgba(217, 91, 22, 0.25);
  border-color: var(--accent-pve);
  color: #fff;
  box-shadow: 0 0 16px rgba(217, 91, 22, 0.3);
}

.world-tab.active[data-region="archipelago"] {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent-pvp);
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

/* ВЫРОВНЕННАЯ ПО ВЫСОТЕ СЕТКА КАРТЫ И ОБЗОРА */
.map-workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 960px) {
  .map-workbench { grid-template-columns: 1.1fr 1.1fr; }
}

.radar-canvas, .location-inspector { height: 430px; }

@media (max-width: 959px) {
  .radar-canvas { height: 360px; }
  .location-inspector { height: auto; }
}

.radar-canvas {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08) 0%, rgba(11, 14, 19, 0.96) 80%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  overflow: hidden;
}

.radar-canvas.mode-pvp {
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.18) 0%, rgba(9, 13, 22, 0.97) 80%),
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
}

.sector-rings {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle, transparent 28%, rgba(56, 189, 248, 0.12) 28.5%, transparent 29%),
    radial-gradient(circle, transparent 54%, rgba(56, 189, 248, 0.12) 54.5%, transparent 55%);
  pointer-events: none;
}

.map-hint-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(15, 17, 21, 0.88); border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8; font-size: 11px; padding: 4px 10px; border-radius: 3px; z-index: 4; pointer-events: none;
}

.map-legend {
  position: absolute; bottom: 12px; left: 14px;
  display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--text-muted);
  background: rgba(15, 17, 21, 0.85); padding: 5px 10px; border-radius: 3px;
  border: 1px solid var(--panel-border); z-index: 4;
}

.dot-safe, .dot-pve, .dot-pvp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.dot-safe { background: #22c55e; }
.dot-pve { background: #d95b16; }
.dot-pvp { background: #38bdf8; }
.map-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(15, 17, 21, 0.92); color: #fff;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; z-index: 5;
}

.map-pin::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0; animation: radarPing 2.6s infinite; pointer-events: none;
}
@keyframes radarPing { 0% { transform: scale(0.75); opacity: 0.75; } 100% { transform: scale(1.55); opacity: 0; } }

.map-pin::after {
  content: attr(data-tooltip); position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  background: rgba(12, 15, 20, 0.96); border: 1px solid var(--panel-border); color: #fff;
  padding: 4px 8px; border-radius: 3px; font-size: 11px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease; z-index: 10;
}
.map-pin:hover::after { opacity: 1; }

.map-pin.type-safe { border-color: #22c55e; color: #4ade80; }
.map-pin.type-pve { border-color: #d95b16; color: #fb923c; }
.map-pin.type-pvp { border-color: #38bdf8; color: #38bdf8; }
.map-pin:hover, .map-pin.active { transform: translate(-50%, -50%) scale(1.22); z-index: 8; }
.map-pin.type-safe.active { background: #22c55e; color: #090d12; box-shadow: 0 0 18px #22c55e; }
.map-pin.type-pve.active { background: #d95b16; color: #fff; box-shadow: 0 0 18px #d95b16; }
.map-pin.type-pvp.active { background: #38bdf8; color: #090d12; box-shadow: 0 0 18px #38bdf8; }

.location-inspector { display: flex; flex-direction: column; overflow: hidden; }
.inspector-body { padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 10px; }
.inspector-top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.loc-type-badge { font-size: 11px; font-weight: 700; color: var(--accent-pvp); }

.btn-back-zone {
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--panel-border); color: #fff;
  padding: 4px 10px; font-size: 11px; border-radius: 3px; cursor: pointer; transition: 0.2s;
}
.btn-back-zone:hover { border-color: var(--accent-pvp); color: var(--accent-pvp); }

.inspector-body h3 { font-size: 24px; line-height: 1.2; }
.inspector-body p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.loc-loot-box {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--panel-border);
  padding: 12px 14px; border-radius: 3px;
}
.loot-title { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.loc-loot-list { font-size: 12.5px; color: #f1f3f5; display: grid; gap: 6px; }

.location-inspector .window-bar.mode-pve {
  background: rgba(217, 91, 22, 0.22) !important;
  border-bottom-color: rgba(217, 91, 22, 0.55) !important;
  color: #fb923c !important;
}

.location-inspector .window-bar.mode-pvp {
  background: rgba(56, 189, 248, 0.22) !important;
  border-bottom-color: rgba(56, 189, 248, 0.55) !important;
  color: #38bdf8 !important;
}

/* АНОМАЛИИ */
.anomalies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.anomaly-card { padding: 20px; border-left: 3px solid var(--accent-pvp); }
.anomaly-card.anom-grav { border-left-color: #a855f7; }
.anomaly-card.anom-elec { border-left-color: #38bdf8; }
.anomaly-card.anom-psy { border-left-color: #ec4899; }
.anomaly-card.anom-rad { border-left-color: #f59e0b; }
.anomaly-card.anom-fire { border-left-color: #ef4444; }
.anomaly-card.anom-chem { border-left-color: #22c55e; }
.anomaly-card.anom-space { border-left-color: #6366f1; }
.anomaly-card.anom-time { border-left-color: #14b8a6; }
.anomaly-card.anom-rift { border-left-color: #f97316; }

.anom-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.anomaly-card h3 { font-size: 20px; margin-bottom: 8px; }
.anomaly-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.anom-art { font-size: 12px; color: #e2e6ec; background: rgba(255, 255, 255, 0.04); padding: 6px 10px; border-radius: 3px; }
/* 4 СЕЗОНА ЗОНЫ (РАЗДЕЛ 8.4 GDD) */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.season-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.season-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
}

.season-body h3 { font-size: 20px; }
.season-body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.season-effect {
  font-size: 12px;
  color: #e2e6ec;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  padding: 8px 10px;
  border-radius: 3px;
}

/* БЕСТИАРИЙ В СТИЛЕ БУМАЖНЫХ КАРТОЧЕК ДОСТИЖЕНИЙ */
.tier-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tier-btn {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--panel-border); color: var(--text-muted);
  padding: 7px 14px; font-size: 12px; font-weight: 700; border-radius: 3px; cursor: pointer;
}
.tier-btn.active { background: var(--accent-pve); border-color: var(--accent-pve); color: #fff; }

.bestiary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.mutant-card { display: flex; flex-direction: column; overflow: hidden; }
.mutant-card.hidden { display: none; }

.mutant-art-box {
  position: relative;
  height: 235px;
  background: radial-gradient(circle at center, #e5e4df 0%, #c8c6be 100%);
  border-bottom: 2px solid #2a2d34;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.mutant-art-box::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(25, 27, 30, 0.65);
  pointer-events: none;
  z-index: 2;
}

.mutant-art-box img {
  max-height: 205px;
  max-width: 88%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.08);
  z-index: 1;
}

.art-fallback { font-size: 12px; color: #222; font-weight: 700; z-index: 1; }

.tier-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(15, 17, 21, 0.92); border: 1px solid var(--accent-pve);
  color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 2px; z-index: 3;
}
.tier-badge.boss-badge { border-color: #ef4444; color: #fca5a5; }

.mutant-body { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.mutant-body h3 { font-size: 20px; margin-bottom: 8px; }
.mutant-body p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }
.mutant-stats { display: flex; justify-content: space-between; font-size: 11.5px; color: #38bdf8; border-top: 1px solid var(--panel-border); padding-top: 10px; }
