/* Big map (M, ui/atlas.js): level range on top, the map with the zone badges, legend and help below. */
.at-head { display: flex; justify-content: space-between; gap: 6px; height: 11px; line-height: 11px; margin: -1px 0 3px; padding: 0 3px;
  font-size: 7px; white-space: nowrap; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.at-map { position: relative; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--edge), 0 0 0 2px var(--bronze-d); margin: 1px auto; }
.at-map canvas { display: block; }
.at-map canvas.at-marks { position: absolute; inset: 0; pointer-events: none; }
.at-badges { position: absolute; inset: 0; pointer-events: none; }
/* zone: lowest monster level in the colour of the planner's verdict (--c), ★ = best zone */
.at-z { position: absolute; transform: translate(-50%, -50%); min-width: 9px; height: 8px; padding: 0 2px; font-size: 7px; line-height: 8px;
  text-align: center; white-space: nowrap; color: var(--c); background: rgba(10, 7, 6, .82);
  box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--c); text-shadow: var(--ol); }
.at-z.v-best { color: #2a1a08; background: var(--c); text-shadow: none; box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px #fff2bf; }
.at-z.v-few, .at-z.v-easy { opacity: .8; }
/* the chosen hunting zone: white rim; hovered: brighter */
.at-z.cur { box-shadow: 0 0 0 1px #fff, inset 0 0 0 1px var(--c); }
.at-z.hov { z-index: 1; color: #fff; background: rgba(10, 7, 6, .95); opacity: 1; }
.at-z.v-best.hov { color: #2a1a08; background: #ffe08a; }
/* zoom (user 04.11.2026): + / level (click = whole map) / - in the map's top right corner, all as wide as the widest;
   phones: one row of finger-sized buttons above the filters (the map stays free, two fingers zoom there) */
#ui #atlas .at-zoom { position: absolute; right: 3px; top: 3px; z-index: 2; display: flex; flex-direction: column; align-items: stretch; gap: 1px; }
#ui #atlas .at-zb { min-width: 13px; height: 12px; padding: 0 2px; font: inherit; font-size: 9px; line-height: 12px; text-align: center; white-space: nowrap;
  color: #ead49b; background: linear-gradient(#2b231ae6, #17120ee6); border: 0; box-shadow: inset 0 0 0 1px #78613e, 0 1px 0 #0009; cursor: pointer; }
#ui #atlas .at-zb.lv { font-size: 7px; }
#ui #atlas .at-zb:hover { color: #fff1cf; box-shadow: inset 0 0 0 1px #d6b77d, 0 1px 0 #0009; }
#ui #atlas .at-zb.off { color: #6d6455; box-shadow: inset 0 0 0 1px #3a3229, 0 1px 0 #0009; }
html.touch #ui #atlas .at-zoom { position: static; flex-direction: row-reverse; gap: 3px; flex: none; }
html.touch #ui #atlas .at-zb { flex: 1 1 0; min-width: 0; height: var(--finger); line-height: var(--finger); font-size: 11px; }
html.touch #ui #atlas .at-zb.lv { font-size: 8px; }
.at-area { margin-top: 4px; padding: 2px 3px 3px; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.at-area-h { font-size: 6px; line-height: 7px; }
.at-legend { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.at-lrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px 6px; font-size: 6px; line-height: 7px; }
.at-chip { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; color: var(--text); }
.at-chip i { width: 4px; height: 4px; flex: none; box-shadow: 0 0 0 1px var(--edge); }
.at-chip.me i { width: 0; height: 0; box-shadow: none; border-left: 3px solid transparent; border-right: 3px solid transparent;
  border-top: 5px solid #fff; background: none !important; }
.at-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 3px; padding: 0 1px; white-space: nowrap; }
.at-pos { font-size: 6px; color: var(--dim); }

/* ---- tabs "Karte" | "Reisen" (ui/atlas.js) and the travel cards (ui/atlastravel.js; the teleporter NPCs went 03.11.2026) ---- */
#ui #atlas .at-tabs { grid-column: 1 / -1; margin: 0; }
#ui #atlas.at-travel .at-head, #ui #atlas.at-travel .at-map, #ui #atlas.at-travel .at-details { display: none; }
#ui #atlas .tv { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 5px; min-height: 0; min-width: 0; }
#ui #atlas .tv-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 1px 4px;
  font-size: 7px; line-height: 9px; color: #c9b58c; border-bottom: 1px solid #b49b6233; }
#ui #atlas .tv-intro > span:first-child { min-width: 0; }
#ui #atlas .tv-me { flex: none; white-space: nowrap; color: #ecd3a5; }
#ui #atlas .tv-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 6px; align-content: start; padding: 1px 3px 2px 1px; }
/* a card: framed panel like the Battle Pass (.fp), the map's picture on top */
#ui #atlas .tv-card { display: flex; flex-direction: column; gap: 3px; padding: 3px; min-width: 0;
  background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a, 0 1px 0 #0008; }
#ui #atlas .tv-card:hover { box-shadow: inset 0 0 0 1px #a88a51, 0 1px 0 #0008; }
#ui #atlas .tv-card.best { box-shadow: inset 0 0 0 1px #d6b77d, 0 0 6px #d6b77d40; }
#ui #atlas .tv-card.here { box-shadow: inset 0 0 0 1px #8fa9c7, 0 1px 0 #0008; }
#ui #atlas .tv-pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: repeating-linear-gradient(45deg, #1a1511 0 3px, #15110e 3px 6px);
  box-shadow: inset 0 0 0 1px #78613e; }
#ui #atlas .tv-pic > img { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: cover; image-rendering: auto; }
#ui #atlas .tv-card:hover .tv-pic > img { filter: brightness(1.12); }
#ui #atlas .tv-shade { position: absolute; inset: 1px; background: linear-gradient(#0000 45%, #0a0705d9 100%), radial-gradient(#0000 55%, #0006 100%); pointer-events: none; }
#ui #atlas .tv-name { position: absolute; left: 3px; right: 3px; bottom: 2px; font-size: 8px; line-height: 9px; color: #f1dfb6; text-shadow: var(--ol);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ui #atlas .tv-lv { position: absolute; left: 2px; top: 2px; padding: 0 3px; height: 9px; line-height: 9px; font-size: 7px; color: #e8ca8e;
  background: #120e0bd9; box-shadow: 0 0 0 1px #78613e; }
#ui #atlas .tv-rib { position: absolute; right: 2px; top: 2px; padding: 0 3px; height: 9px; line-height: 9px; font-size: 7px; color: #22180e;
  background: linear-gradient(#f1d79a, #c9a15c); box-shadow: 0 0 0 1px #4a3817; }
#ui #atlas .tv-here { position: absolute; right: 2px; top: 2px; padding: 0 3px; height: 9px; line-height: 9px; font-size: 7px; color: #e7eef7;
  background: #1b2433e0; box-shadow: 0 0 0 1px #8fa9c7; }
/* the other empires (Nutzer 06.11.2026): a line over their cards, the flag on the picture */
#ui #atlas .tv-sep { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 6px; padding: 3px 1px 1px; font-size: 8px; line-height: 9px; border-top: 1px solid #b49b6233; }
#ui #atlas .tv-sep > .dim { font-size: 7px; min-width: 0; }
#ui #atlas .tv-pic > img.tv-flag { position: absolute; inset: auto 2px 2px auto; width: 13px; height: 8px; object-fit: fill; box-shadow: 0 0 0 1px #0009; filter: none; }
/* a map above the character's level: grey picture, lock and the level */
#ui #atlas .tv-card.locked .tv-pic > img { filter: grayscale(1) brightness(.45); }
#ui #atlas .tv-card.locked .tv-name { color: #a39780; }
#ui #atlas .tv-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 7px; line-height: 8px; color: #e3c88f; text-shadow: var(--ol); padding-bottom: 6px; }
#ui #atlas .tv-lock > img { width: 14px; height: 14px; object-fit: contain; }
#ui #atlas .tv-info { display: flex; justify-content: space-between; align-items: center; gap: 4px; height: 9px; font-size: 7px; line-height: 9px; color: #c9b58c; }
#ui #atlas .tv-info > span { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
#ui #atlas .tv-info img { width: 8px; height: 8px; object-fit: contain; }
#ui #atlas .tv-st.full { color: #f2c45a; }
#ui #atlas .tv-cost.red { color: #ff7a6a; }
#ui #atlas .tv-cost.debt { color: #ff8e6b; }
#ui #atlas .tv-go { width: 100%; min-width: 0; height: 13px; font-size: 7px; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ui #atlas .tv-go:disabled { opacity: 1; color: #8a7f6c; background: #15110e; box-shadow: inset 0 0 0 1px #3a3229; cursor: default; }
/* phones: three small cards a row, stars and price stacked next to a finger-sized button (more maps without scrolling);
   the intro line stays on the PC (the help "?" explains it) */
html.touch #ui #atlas .at-tabs .tab { height: var(--finger); line-height: var(--finger); }
html.touch #ui #atlas .tv-intro { display: none; }
html.touch #ui #atlas .tv-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 4px; }
html.touch #ui #atlas .tv-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "pic pic" "info go"; gap: 2px 3px; padding: 2px; }
html.touch #ui #atlas .tv-pic { grid-area: pic; }
html.touch #ui #atlas .tv-info { grid-area: info; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; height: auto; font-size: 6px; line-height: 8px; }
html.touch #ui #atlas .tv-go { grid-area: go; height: var(--finger); font-size: 6px; }
/* (long names in ro / tr: a second line instead of a cut) */
html.touch #ui #atlas .tv-name { font-size: 7px; line-height: 7px; white-space: normal; overflow: visible; text-overflow: clip; }
/* (lock and level at the top: the name below can have two lines) */
html.touch #ui #atlas .tv-lock { justify-content: flex-start; gap: 0; font-size: 6px; line-height: 7px; padding: 1px 0 0; }
html.touch #ui #atlas .tv-lock > img { width: 11px; height: 11px; }
html.touch #ui #atlas :is(.tv-lv, .tv-rib, .tv-here) { font-size: 6px; height: 8px; line-height: 8px; padding: 0 2px; }
