/* Hydra World Atlas — immersive, low-clutter map presentation. */
.map-page {
  --atlas-gold: #d9b674;
  --atlas-gold-bright: #f2d9a2;
  --atlas-edge: rgba(211, 174, 108, .27);
  padding: 7px 0 25px;
}
.atlas-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 3.4vw, 34px) 18px 19px;
  border: 1px solid rgba(207,170,105,.2);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(210,169,101,.19), transparent 58%),
    linear-gradient(180deg, rgba(28,34,35,.98), rgba(17,23,25,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 22px 55px rgba(0,0,0,.18);
  text-align: center;
}
.atlas-intro::before, .atlas-intro::after {
  position: absolute;
  z-index: -1;
  top: -104%;
  left: 50%;
  width: min(70vw, 820px);
  aspect-ratio: 1;
  border: 1px solid rgba(215,177,109,.075);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}
.atlas-intro::before { box-shadow: 0 0 0 28px rgba(215,177,109,.018), 0 0 0 72px rgba(215,177,109,.014); }
.atlas-intro::after { top: -88%; width: min(53vw, 600px); border-style: dashed; opacity: .5; }
.atlas-kicker {
  margin-bottom: 3px;
  color: #c4a66f;
  font: 700 9px/1.5 var(--mono, ui-monospace, monospace);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.atlas-heading { position: relative; z-index: 1; width: min(100%, 790px); margin: 0 auto 2px; gap: clamp(6px, 2vw, 20px); }
.atlas-heading .hof-flour { width: clamp(70px, 13vw, 142px); color: #d9b46f; }
.atlas-heading .hof-t { gap: 2px; }
.atlas-heading .hof-title { font-size: clamp(29px, 4.5vw, 42px); letter-spacing: .01em; }
.atlas-heading .hof-sub { font-size: clamp(8px, 1.1vw, 10px); letter-spacing: clamp(1.4px, .3vw, 2.8px); }
.atlas-lede { position: relative; max-width: 600px; margin: 8px auto 13px; color: #aab4b3; font-size: 12px; line-height: 1.65; }
.atlas-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 11px; color: #9ca7a6; font: 9px/1.5 var(--mono, ui-monospace, monospace); }
.atlas-live { display: inline-flex; align-items: center; gap: 8px; color: #e0d4b9; letter-spacing: .08em; }
.atlas-live .map-live-dot { width: 7px; height: 7px; }
.atlas-live .map-live-dot.is-live, .map-frame-status .map-live-dot.is-live { animation: atlasSignal 2.5s ease-in-out infinite; }
.atlas-meta-divider { width: 3px; height: 3px; border-radius: 50%; background: #836e4b; }
@keyframes atlasSignal { 0%,100% { box-shadow: 0 0 0 3px rgba(133,209,161,.12),0 0 8px rgba(133,209,161,.32); } 50% { box-shadow: 0 0 0 5px rgba(133,209,161,.08),0 0 15px rgba(133,209,161,.65); } }

.atlas-realm-bar {
  display: grid;
  grid-template-columns: minmax(130px, .68fr) minmax(0, 2.3fr);
  align-items: center;
  gap: 15px;
  padding: 12px;
  margin: 13px 0 11px;
  border: 1px solid rgba(192,164,115,.17);
  border-radius: 11px;
  background: linear-gradient(100deg, rgba(30,37,37,.98), rgba(22,29,30,.97));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.atlas-realm-label { display: flex; flex-direction: column; gap: 4px; padding-left: 5px; }
.atlas-realm-label .showcase-kicker { color: #d4b574; font-size: 8px; letter-spacing: .15em; }
.atlas-realm-label small { color: #899493; font-size: 9px; }
.atlas-realm-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.atlas-realm-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid rgba(169,156,124,.18);
  border-radius: 8px;
  color: #aab3af;
  background: rgba(17,23,24,.58);
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.atlas-realm-tab:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(223,187,119,.48); color: #f0e4c9; }
.atlas-realm-tab.active { border-color: rgba(224,188,120,.61); color: #f4dfb2; background: linear-gradient(115deg, rgba(113,88,48,.28), rgba(49,48,38,.42)); box-shadow: inset 0 0 0 1px rgba(224,188,120,.08), 0 0 22px rgba(215,177,109,.07); }
.atlas-realm-tab > i { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border: 1px solid rgba(215,177,109,.2); border-radius: 8px; color: #d6b46e; background: rgba(215,177,109,.08); font-size: 17px; font-style: normal; }
.atlas-realm-tab span b, .atlas-realm-tab span small { display: block; }
.atlas-realm-tab span b { color: inherit; font-size: 11px; line-height: 1.2; }
.atlas-realm-tab span small { margin-top: 3px; color: #83908d; font: 7px/1.1 var(--mono, ui-monospace, monospace); letter-spacing: .1em; }
.atlas-realm-tab.active span small { color: #bca574; }
.atlas-realm-tab:disabled { opacity: .45; cursor: not-allowed; }

.atlas-map-frame { overflow: hidden; border: 1px solid rgba(204,171,111,.36); border-radius: 12px; background: #111719; box-shadow: 0 28px 75px rgba(0,0,0,.29), 0 0 0 4px rgba(215,177,109,.035); }
.atlas-map-frame .map-frame-top { min-height: 55px; padding: 8px 14px; border-bottom-color: rgba(204,171,111,.19); background: linear-gradient(90deg,#1d2525,#191f21 55%,#202321); }
.atlas-map-frame .map-frame-brand { font-size: 9px; letter-spacing: .14em; }
.atlas-map-frame .map-frame-brand img { width: 29px; height: 29px; filter: drop-shadow(0 0 9px rgba(215,177,109,.2)); }
.atlas-map-frame .map-frame-status { gap: 8px; font-size: 9px; letter-spacing: .04em; }
.atlas-map-frame .map-frame-tools { gap: 6px; }
.atlas-map-frame .map-frame-tools button, .atlas-map-frame .map-frame-tools a { border-color: rgba(213,177,113,.28); background: rgba(27,34,34,.9); transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.atlas-map-frame .map-frame-tools button:hover:not(:disabled), .atlas-map-frame .map-frame-tools a:hover { transform: translateY(-1px); border-color: rgba(241,213,154,.65); color: #ffe3a9; background: #30342f; }
.atlas-map-frame iframe { display: block; width: 100%; height: min(76vh, 920px); min-height: 560px; border: 0; background: #101617; }
.atlas-map-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 3px 0; color: #7f8b89; font: 8px/1.5 var(--mono, ui-monospace, monospace); letter-spacing: .04em; }
.atlas-map-foot > span:first-child { display: flex; align-items: center; gap: 8px; }
.atlas-map-foot > span:first-child > span { color: #b79a64; }
.atlas-foot-key { color: #c6a565; font-style: normal; font-weight: 700; letter-spacing: .11em; }
@media (max-width: 760px) {
  .atlas-realm-bar { grid-template-columns: 1fr; gap: 9px; }
  .atlas-realm-label { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .atlas-map-frame iframe { min-height: 520px; height: 72vh; }
}
@media (max-width: 540px) {
  .map-page { padding-top: 2px; }
  .atlas-intro { padding: 21px 12px 17px; border-radius: 12px; }
  .atlas-kicker { font-size: 7px; letter-spacing: .14em; }
  .atlas-heading { gap: 3px; }
  .atlas-heading .hof-flour { width: 43px; }
  .atlas-heading .hof-title { font-size: clamp(20px, 5.8vw, 28px); }
  .atlas-heading .hof-sub { font-size: 7px; letter-spacing: 1px; }
  .atlas-heading .hof-crown { font-size: 8px; }
  .atlas-heading .hof-crown b { font-size: 11px; }
  .atlas-lede { margin: 7px auto 11px; font-size: 10px; }
  .atlas-meta { gap: 7px; font-size: 7px; }
  .atlas-realm-bar { padding: 8px; }
  .atlas-realm-label { padding: 0 3px; }
  .atlas-realm-label small { font-size: 8px; }
  .atlas-realm-tabs { gap: 5px; }
  .atlas-realm-tab { justify-content: center; min-height: 44px; gap: 6px; padding: 6px 4px; }
  .atlas-realm-tab > i { flex-basis: 24px; width: 24px; height: 24px; border-radius: 7px; font-size: 14px; }
  .atlas-realm-tab span b { font-size: 9px; }
  .atlas-realm-tab span small { font-size: 6px; letter-spacing: .03em; }
  .atlas-map-frame .map-frame-top { flex-wrap: wrap; gap: 7px; padding: 8px 9px; }
  .atlas-map-frame .map-frame-brand { font-size: 7px; }
  .atlas-map-frame .map-frame-status { margin-left: auto; font-size: 7px; }
  .atlas-map-frame .map-frame-tools { width: 100%; justify-content: flex-end; }
  .atlas-map-frame iframe { min-height: 460px; height: 68vh; }
  .atlas-map-foot { align-items: flex-start; flex-direction: column; gap: 4px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-live .map-live-dot.is-live, .map-frame-status .map-live-dot.is-live { animation: none; }
  .atlas-realm-tab, .atlas-map-frame .map-frame-tools button, .atlas-map-frame .map-frame-tools a { transition: none; }
}
