/* the world map: a parchment atlas in a gilt frame, the side panel of what is there now */
.page-hero.compact { padding: clamp(100px, 12vw, 150px) 0 clamp(28px, 4vw, 44px); }
.page-hero.compact h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.atlas-page { width: min(100% - 2 * var(--gut), 1560px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.atlas-view { position: relative; height: min(78vh, 860px); min-height: 460px; overflow: hidden; background: #1b140d; touch-action: none; user-select: none; }
.atlas-view canvas { display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.atlas-view canvas.drag { cursor: grabbing; }
.atlas-view::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px 24px rgba(20, 12, 6, .8), inset 0 0 0 1px rgba(0, 0, 0, .6); }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: italic 1.4rem var(--voice); color: var(--gold); background: #120d09; z-index: 3; }
.map-loading[hidden] { display: none; }
.map-ctrl { position: absolute; right: 16px; top: 16px; z-index: 4; display: grid; gap: 6px; }
.map-ctrl button { width: 42px; height: 42px; border: 0; display: grid; place-items: center; font: 600 1.5rem/1 var(--display); color: var(--gold-hi);
  background: linear-gradient(180deg, rgba(36, 28, 22, .95), rgba(14, 10, 8, .95)); box-shadow: 0 0 0 1px var(--gold-lo), 0 4px 10px rgba(0, 0, 0, .6); transition: box-shadow .25s, color .25s; }
.map-ctrl button:hover { color: #fff3cc; box-shadow: 0 0 0 1px var(--gold-hi), 0 0 16px rgba(201, 163, 91, .35); }
.map-ctrl svg { width: 18px; height: 18px; }
.map-compass { position: absolute; left: 18px; bottom: 14px; z-index: 4; margin: 0; width: 54px; height: 54px; display: grid; place-items: center; padding-bottom: 20px;
  font: 700 .9rem/1 var(--display); color: #f3dfae; text-shadow: 0 1px 2px #000;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cg fill='none' stroke='%23c9a35b'%3E%3Ccircle cx='27' cy='27' r='24' stroke-width='1'/%3E%3Ccircle cx='27' cy='27' r='19' stroke-width='.6' stroke-dasharray='2 3'/%3E%3C/g%3E%3Cpath d='M27 6l4 21-4 21-4-21z' fill='%238c1c1a' stroke='%23f2d99b' stroke-width='.8'/%3E%3Cpath d='M6 27l21-3 21 3-21 3z' fill='%232a1c10' stroke='%23c9a35b' stroke-width='.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.map-tip { position: absolute; z-index: 5; pointer-events: none; max-width: 280px; padding: 10px 14px; transform: translate(-50%, calc(-100% - 14px));
  color: var(--text); font-size: .92rem; line-height: 1.35; background: linear-gradient(180deg, #241b15, #120d0b); box-shadow: 0 0 0 1px var(--gold-lo), 0 8px 20px rgba(0, 0, 0, .7); }
.map-tip b { display: block; font: 700 1.1rem/1.2 var(--display); color: var(--gold-hi); }
.map-tip span { color: var(--muted); }
.map-banner { position: absolute; left: 50%; top: 16px; z-index: 4; transform: translateX(-50%); padding: 10px 20px; text-align: center; color: #ffe0d0;
  font: 700 .9rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(180deg, #6e1412, #3e0a0a); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--crimson-hi), 0 0 30px rgba(200, 56, 43, .5); }
@media (prefers-reduced-motion: no-preference) { .map-banner { animation: alarm 1.6s ease-in-out infinite; } }
@keyframes alarm { 50% { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--crimson-hi), 0 0 10px rgba(200, 56, 43, .2); } }

.atlas-side { display: grid; gap: 22px; position: sticky; top: 92px; }
.side-block { padding: 20px 22px; }
.side-h { font-size: 1.05rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.now-total { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.now-total b { font: 700 2.6rem/1 var(--display); color: var(--gold-hi); }
.now-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.now-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(201, 163, 91, .1); font-size: .95rem; }
.now-list li button { border: 0; padding: 0; background: none; color: var(--text); text-align: left; }
.now-list li button:hover { color: var(--gold-hi); }
.now-list .c { font: 600 1.05rem var(--display); color: var(--gold-hi); white-space: nowrap; }
.now-note { margin: 12px 0 0; font-size: .84rem; color: var(--faint); }
.place h3 { font-size: 1.7rem; margin-bottom: 6px; }
.place .kind { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.place p { margin: 0 0 10px; color: #d8c8a6; }
.place dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0; font-size: .95rem; }
.place dt { color: var(--muted); }
.place dd { margin: 0; color: var(--gold-hi); }
.place .back { border: 0; padding: 0; margin-top: 8px; background: none; color: var(--gold); font: 700 .78rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.layers label { display: grid; grid-template-columns: 22px 26px 1fr; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; color: #dccdaa; }
.layers input { width: 18px; height: 18px; margin: 0; accent-color: #a3271f; }
.layers canvas { width: 26px; height: 26px; }
.layers label:hover { color: var(--gold-hi); }
@media (max-width: 1080px) {
  .atlas-page { grid-template-columns: 1fr; }
  .atlas-side { position: static; grid-template-columns: 1fr 1fr; }
  .atlas-side .side-block:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .atlas-view { height: 72vh; } .atlas-side { grid-template-columns: 1fr; } .map-ctrl button { width: 46px; height: 46px; } }
