/* The atlas fills the space remaining beneath the real navbar height. */
body.atlas-fullscreen {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.atlas-fullscreen > nav { flex: 0 0 auto; z-index: 10; }
.atlas-fullscreen__main { position: relative; min-height: 0; min-width: 0; overflow: hidden; }
.atlas-fullscreen .flash-message { max-width: calc(100vw - 2rem); }
.world-atlas {
  --atlas-gold: #e8c58b;
  position: relative;
  isolation: isolate;
  container-type: size;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #f4f0e6;
  background: #176d92;
}
.atlas-fullscreen__main > .world-atlas { position: absolute; inset: 0; }
.world-atlas__viewport, .world-atlas__markers { position: absolute; inset: 0; }
.world-atlas__viewport { cursor: grab; background: var(--atlas-fallback) center / contain no-repeat; }
.world-atlas__viewport:active { cursor: grabbing; }
.world-atlas__viewport canvas { width: 100%; height: 100%; display: block; touch-action: none; image-rendering: auto; }
.world-atlas__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.world-atlas__vignette, .world-atlas__coordinates { display: none; }
.world-atlas__markers { pointer-events: none; }
/* The original links also work before loading, without JS, and after WebGL loss. */
.world-atlas:not(.is-ready) .world-atlas__markers {
  inset: 50% auto auto 50%;
  width: min(100cqw, 177.777778cqh);
  height: auto;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
}
.world-atlas__marker {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  white-space: nowrap;
  text-decoration: none;
  color: #ffebbe;
  border: 0;
  background: none;
  padding: 5px 12px;
  cursor: pointer;
  will-change: transform;
  text-shadow: 0 2px 2px #273a51, 0 0 7px #273a51a0;
}
.world-atlas:not(.is-ready) .world-atlas__marker { transform: translate(-50%, -20%); }
.world-atlas:not(.is-ready) .world-atlas__marker--continent { left: 35%; top: 8%; }
.world-atlas:not(.is-ready) .world-atlas__marker--spawn { left: 49%; top: 40.5%; }
.world-atlas:not(.is-ready) .world-atlas__marker--iles { left: 81%; top: 10.5%; }
.world-atlas__marker[hidden] { display: none; }
.world-atlas__marker-name { font-size: clamp(21px, 3vw, 48px); letter-spacing: 1px; }
.world-atlas__marker-name small { font-family: Nunito, sans-serif; font-size: 14px; color: #ffe5a9; margin-left: 7px; }
.world-atlas__marker-dot { order: 2; width: 5px; height: 5px; transform: rotate(45deg); background: #f3d496; box-shadow: 0 0 12px #fff1c5; margin: 8px 0 0; }
.world-atlas__marker-detail {
  order: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 5px 10px;
  margin-top: 6px;
  background: #123b5cd9;
  border: 1px solid #ffedb561;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
}
.world-atlas__marker:is(:hover, :focus-visible, .is-active) .world-atlas__marker-detail { opacity: 1; transform: translateY(0); }
.world-atlas__marker--continent { cursor: default; }
.world-atlas__marker--continent .world-atlas__marker-detail { opacity: 1; }
.world-atlas__live-dot { width: 5px; height: 5px; border-radius: 50%; background: #92e4b3; }
.world-atlas__tools {
  position: absolute;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  gap: 5px;
  padding: 6px;
  background: #153b60ba;
  border: 1px solid #ffecb24d;
  border-radius: 30px;
  backdrop-filter: blur(12px);
}
.world-atlas__tools[hidden], .world-atlas__loading[hidden] { display: none; }
.world-atlas__tools button { border: 0; background: transparent; color: #dcc8a6; font-size: 23px; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; transition: background .2s; }
.world-atlas__tools button:hover { background: #c7a46c25; }
.world-atlas__tools > span { width: 1px; background: #afc4d026; margin: 7px 1px; }
.world-atlas__tools button:last-child { font-size: 15px; }
.world-atlas :is(a, button, canvas):focus-visible { outline: 2px solid #f3d496; outline-offset: -3px; border-radius: 6px; }
.world-atlas__loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--atlas-gold);
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  pointer-events: none;
  padding: 15px 24px;
  border-radius: 15px;
  background: #143f67d9;
  backdrop-filter: blur(8px);
}
.world-atlas__loader { font-size: 50px; animation: atlas-breathe 2s ease-in-out infinite; }
@keyframes atlas-breathe { 50% { opacity: .3; transform: rotate(90deg); } }
@media (max-width: 600px) {
  .world-atlas__marker { padding: 6px 5px; min-height: 44px; }
  .world-atlas__marker-name { font-size: 18px; letter-spacing: 0; }
  .world-atlas__marker-name small, .world-atlas__marker-dot { display: none; }
  .world-atlas__marker-detail { margin-top: 2px; padding: 2px 5px; font-size: 9px; }
  .world-atlas__tools { right: 12px; gap: 0; padding: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-atlas *, .world-atlas *::before { animation: none !important; transition: none !important; }
}

.world-atlas.is-fallback .world-atlas__loader { display: none; }
