/* Páginas de lore e mapa — mesmo universo visual que game.css */
.topbar-start {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.brand a {
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--parchment);
  text-decoration: none;
  opacity: 0.75;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  opacity: 1;
  border-bottom-color: rgba(212, 166, 75, 0.45);
}

.site-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.lore-main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
}

.lore-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  color: var(--gold);
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.lore-page-lead {
  text-align: center;
  opacity: 0.78;
  line-height: 1.55;
  margin: 0 auto 2rem;
  max-width: 38rem;
  font-size: 0.95rem;
}

.clan-lore-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 166, 75, 0.12);
}

.clan-lore-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.clan-lore-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.clan-lore-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: 0.03em;
}

.clan-lore-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
}

.clan-lore-meta {
  font-size: 0.85rem;
  opacity: 0.82;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.clan-lore-meta strong {
  color: var(--gold);
  font-weight: 600;
}

.clan-lore-raca {
  font-size: 0.82rem;
  opacity: 0.72;
  font-style: italic;
  margin: 0 0 1rem;
  line-height: 1.5;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border-left: 3px solid rgba(212, 166, 75, 0.35);
}

.clan-lore-body p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

.clan-lore-body p:last-child {
  margin-bottom: 0;
}

/* Mapa mundi */
.map-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 0;
  min-height: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1rem 1.25rem;
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 50vh) auto;
  }
}

.globe-wrap {
  position: relative;
  min-height: min(72vh, 640px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 166, 75, 0.18);
  background: radial-gradient(ellipse 80% 80% at 40% 30%, #1a2840 0%, #06080d 70%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
}

.globe-canvas-host {
  position: absolute;
  inset: 0;
}

.globe-canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.globe-hint {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
  pointer-events: none;
  white-space: nowrap;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 1px solid rgba(212, 166, 75, 0.12);
  min-height: 0;
}

@media (max-width: 900px) {
  .map-sidebar {
    border-left: none;
    border-top: 1px solid rgba(212, 166, 75, 0.12);
    padding: 1rem 0 0;
    max-height: 42vh;
  }
}

.map-sidebar h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin: 0 0 0.25rem;
  letter-spacing: 0.06em;
}

.map-clan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.map-clan-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: var(--parchment);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.map-clan-btn:hover {
  background: rgba(212, 166, 75, 0.08);
  border-color: rgba(212, 166, 75, 0.25);
}

.map-clan-btn.is-active {
  border-color: rgba(212, 166, 75, 0.5);
  background: rgba(212, 166, 75, 0.12);
}

.map-clan-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.map-clan-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(212, 166, 75, 0.35);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
}

.map-detail {
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 166, 75, 0.15);
  font-size: 0.82rem;
  line-height: 1.5;
}

.map-detail h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  color: var(--gold);
}

.map-detail p {
  margin: 0;
  opacity: 0.88;
}

.map-detail__fig {
  margin: 0 0 0.5rem;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 166, 75, 0.2);
  max-width: 100%;
}

.map-detail__fig img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ——— Página ranking.html ——— */
.ranking-table-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.ranking-table th,
.ranking-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(212, 166, 75, 0.15);
}

.ranking-table th {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

.ranking-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.2);
}
