.map-page {
  min-height: 100vh;
}

.map-site-header {
  min-height: 82px;
}

.map-back-link {
  display: inline-flex;
  gap: 7px;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 28, 23, 0.7);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.map-back-link:hover {
  border-color: rgba(113, 230, 172, 0.32);
  color: var(--green-bright);
  transform: translateY(-1px);
}

.map-back-link:focus-visible,
.map-control:focus-visible,
.map-error button:focus-visible,
.map-history-actions button:focus-visible,
.map-history-scrubber input:focus-visible,
.map-pal-radar-popup > button:focus-visible,
.map-viewport:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.map-back-link svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.map-main {
  display: flex;
  flex-direction: column;
}

.map-intro {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  padding: 28px 3px 22px;
}

.map-intro h1 {
  margin: 12px 0 7px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.map-description {
  margin: 0;
  color: #a9bdb5;
  font-size: 0.94rem;
  line-height: 1.55;
}

.map-keyboard-hint {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 5px;
  color: #738a81;
  font-size: 0.68rem;
  white-space: nowrap;
}

.map-keyboard-hint kbd {
  min-width: 23px;
  padding: 3px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(17, 34, 28, 0.8);
  color: #b8c9c2;
  font: inherit;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 -1px rgba(0, 0, 0, 0.35);
}

.map-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #07100d;
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.035);
}

.map-toolbar {
  display: flex;
  gap: 12px;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 38, 31, 0.98), rgba(12, 27, 22, 0.98));
}

.map-layer-bar {
  display: flex;
  gap: 12px;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 20, 16, 0.96);
}

.map-overlay-status {
  display: inline-flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  color: #9eb2aa;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.map-overlay-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(113, 230, 172, 0.09);
}

.map-overlay-status.is-loading .map-overlay-status-dot {
  animation: map-status-pulse 1.25s ease-in-out infinite;
}

.map-overlay-status.is-stale {
  color: #d7b66e;
}

.map-overlay-status.is-stale .map-overlay-status-dot {
  background: #e5b85d;
  box-shadow: 0 0 0 4px rgba(229, 184, 93, 0.1);
}

.map-overlay-status.is-unavailable {
  color: #b5959a;
}

.map-overlay-status.is-unavailable .map-overlay-status-dot {
  background: #bc7580;
  box-shadow: 0 0 0 4px rgba(188, 117, 128, 0.09);
}

.map-layer-controls {
  display: flex;
  min-width: 0;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
}

.map-layer-toggle {
  display: inline-flex;
  min-height: 32px;
  gap: 6px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 17, 14, 0.48);
  color: #9eb1a9;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 750;
  white-space: nowrap;
  transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;
}

.map-layer-toggle:hover {
  border-color: rgba(113, 230, 172, 0.28);
  background: rgba(113, 230, 172, 0.06);
}

.map-layer-toggle:has(input:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.map-layer-toggle:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.38;
}

.map-layer-toggle input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--green);
}

.map-layer-toggle:has(input:not(:checked)) .map-layer-swatch,
.map-layer-toggle:has(input:not(:checked)) .map-layer-count {
  opacity: 0.35;
}

.map-layer-swatch {
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.map-layer-swatch.is-base {
  color: #e9bb61;
}

.map-layer-swatch.is-saved {
  color: #d99865;
}

.map-layer-swatch.is-live {
  color: #70e7ad;
  box-shadow: 0 0 7px rgba(112, 231, 173, 0.48);
}

.map-layer-swatch.is-pal-radar {
  border-color: #ff8dcb;
  background: rgba(115, 28, 82, 0.72);
  box-shadow:
    0 0 0 2px rgba(255, 141, 203, 0.12),
    0 0 8px rgba(255, 141, 203, 0.52);
}

.map-layer-swatch.is-trail {
  width: 12px;
  height: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  color: #73c9e8;
}

.map-layer-swatch.is-fast-travel {
  border-color: #86e9de;
  background: rgba(29, 105, 99, 0.7);
  box-shadow: 0 0 7px rgba(83, 225, 209, 0.38);
}

.map-layer-swatch.is-fog {
  border-color: #827b91;
  border-radius: 2px;
  background: #151b1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.map-layer-swatch.is-boss {
  border-color: #e8bd67;
  background: #6d3585;
  box-shadow: 0 0 7px rgba(204, 139, 255, 0.5);
}

.map-layer-swatch.is-alpha-pal {
  border-color: #ffd36f;
  border-radius: 2px;
  background: #6a431d;
  box-shadow: 0 0 8px rgba(255, 203, 91, 0.58);
  transform: rotate(45deg);
}

.map-layer-swatch.is-dungeon {
  border-color: #c99def;
  border-radius: 2px;
  background: rgba(72, 45, 88, 0.9);
  box-shadow: 0 0 7px rgba(201, 157, 239, 0.4);
  transform: rotate(45deg);
}

.map-layer-count {
  min-width: 17px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #71877e;
  font-size: 0.56rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

@keyframes map-status-pulse {
  50% {
    opacity: 0.4;
  }
}

.map-control-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.map-control {
  display: inline-flex;
  width: 44px;
  height: 44px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 17, 13, 0.52);
  color: #b6c9c1;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.map-control:hover:not(:disabled) {
  border-color: rgba(113, 230, 172, 0.34);
  background: rgba(113, 230, 172, 0.09);
  color: var(--green-bright);
}

.map-control:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.map-control-wide {
  width: auto;
  padding-inline: 12px;
  font-size: 0.7rem;
  font-weight: 750;
}

.map-control svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.fullscreen-exit-icon,
.map-panel.is-fullscreen .fullscreen-enter-icon {
  display: none;
}

.map-panel.is-fullscreen .fullscreen-exit-icon {
  display: block;
}

.map-zoom-level {
  min-width: 47px;
  color: var(--muted);
  font-size: 0.71rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: center;
}

.map-viewport {
  position: relative;
  height: clamp(440px, 68vh, 790px);
  overflow: hidden;
  background-color: #040907;
  background-image:
    linear-gradient(rgba(126, 187, 161, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 187, 161, 0.03) 1px, transparent 1px),
    radial-gradient(circle at center, #11231d, #050b09 70%);
  background-size: 32px 32px, 32px 32px, auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-viewport.is-dragging {
  cursor: grabbing;
}

.map-panel.is-fullscreen {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
}

.map-panel.is-fullscreen .map-viewport {
  height: auto;
  min-height: 0;
  flex: 1;
}

.map-feature-tabs {
  margin-top: 0;
  background: rgba(5, 13, 10, 0.82);
}

.map-feature-tabs .feature-tablist {
  margin: 14px;
  border-color: rgba(113, 230, 172, 0.14);
  background: rgba(8, 19, 15, 0.92);
}

.map-feature-tabs .feature-tab {
  flex-basis: 168px;
}

.map-panel.is-fullscreen .map-feature-tabs {
  display: none;
}

#map-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.map-victories {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: min(300px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(232, 189, 103, 0.25);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(33, 18, 40, 0.93), rgba(7, 18, 14, 0.9));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.map-victories[hidden] {
  display: none;
}

.map-victories > p {
  margin: 0 0 6px;
  color: #e8bd67;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-victories ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-victories li {
  display: grid;
  gap: 1px;
  color: #dce9e2;
  font-size: 0.69rem;
  line-height: 1.35;
}

.map-victories strong {
  color: #f7e7a9;
}

.map-victories time {
  color: #81968d;
  font-size: 0.56rem;
}

.map-dungeon-popup {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  width: min(330px, calc(100% - 28px));
  padding: 14px 42px 14px 15px;
  border: 1px solid rgba(201, 157, 239, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(36, 23, 44, 0.95), rgba(7, 18, 15, 0.94));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(13px);
}

.map-dungeon-popup[hidden] {
  display: none;
}

.map-dungeon-popup.is-fixed {
  border-color: rgba(134, 233, 222, 0.35);
  background: linear-gradient(135deg, rgba(15, 49, 48, 0.96), rgba(7, 18, 15, 0.94));
}

.map-dungeon-popup.is-completed {
  border-color: rgba(244, 201, 111, 0.43);
  background: linear-gradient(135deg, rgba(52, 41, 20, 0.96), rgba(7, 18, 15, 0.94));
}

.map-dungeon-popup > button {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(5, 12, 10, 0.48);
  color: #91a69d;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
}

.map-dungeon-popup > button:hover,
.map-dungeon-popup > button:focus-visible {
  border-color: rgba(201, 157, 239, 0.42);
  color: #f2e1fb;
}

.map-dungeon-popup-kind {
  margin: 0 0 4px;
  color: #c99def;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-dungeon-popup.is-fixed .map-dungeon-popup-kind {
  color: #86e9de;
}

.map-dungeon-popup.is-completed .map-dungeon-popup-kind {
  color: #f4c96f;
}

.map-dungeon-popup h2 {
  margin: 0;
  color: #f0e9f3;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.map-dungeon-popup-status {
  margin: 7px 0 0;
  color: #d2bddf;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.4;
}

.map-dungeon-popup.is-completed .map-dungeon-popup-status {
  color: #f5dea1;
}

.map-dungeon-popup-meta {
  margin: 4px 0 0;
  color: #83968e;
  font-size: 0.58rem;
  line-height: 1.45;
}

.map-dungeon-popup-meta[hidden] {
  display: none;
}

.map-pal-radar-popup {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  width: min(330px, calc(100% - 28px));
  padding: 14px 48px 14px 15px;
  border: 1px solid rgba(255, 141, 203, 0.38);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(58, 20, 48, 0.96), rgba(7, 18, 15, 0.94));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(13px);
}

.map-pal-radar-popup[hidden] {
  display: none;
}

.map-pal-radar-popup > button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(13, 7, 12, 0.56);
  color: #c9a3b8;
  cursor: pointer;
  font: inherit;
  font-size: 1.12rem;
  line-height: 1;
}

.map-pal-radar-popup > button:hover,
.map-pal-radar-popup > button:focus-visible {
  border-color: rgba(255, 141, 203, 0.58);
  color: #ffe3f2;
}

.map-pal-radar-popup-kind {
  margin: 0 0 4px;
  color: #ff8dcb;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-pal-radar-popup h2 {
  margin: 0;
  color: #fff0f8;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.map-pal-radar-popup-status {
  margin: 7px 0 0;
  color: #f4bfdc;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.4;
}

.map-pal-radar-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 0;
  color: #a98b9b;
  font-size: 0.58rem;
  line-height: 1.45;
}

.map-pal-radar-popup time {
  color: #c99eb5;
}

.map-time-machine {
  position: relative;
  padding: clamp(20px, 3vw, 30px) clamp(16px, 4vw, 38px);
  overflow: hidden;
  border-top: 1px solid rgba(134, 233, 222, 0.16);
  background:
    radial-gradient(circle at 88% 0, rgba(134, 233, 222, 0.11), transparent 25rem),
    linear-gradient(135deg, rgba(10, 29, 27, 0.98), rgba(7, 18, 16, 0.98));
}

.map-time-machine[hidden],
.map-panel.is-fullscreen .map-time-machine {
  display: none;
}

.map-time-machine-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.map-time-machine-kicker {
  margin: 0 0 6px;
  color: #86e9de;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-time-machine-heading h2 {
  margin: 0;
  color: #e8f5f1;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: -0.035em;
}

.map-time-machine-heading > div > p:last-child {
  margin: 7px 0 0;
  color: #789087;
  font-size: 0.65rem;
  line-height: 1.45;
}

.map-history-selection {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  text-align: right;
}

.map-history-selection span {
  color: #71877e;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-history-selection strong {
  color: #9df3e8;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.map-time-machine:not(.is-historical) .map-history-selection strong {
  color: var(--green-bright);
}

.map-history-empty {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px dashed rgba(134, 233, 222, 0.2);
  border-radius: 12px;
  background: rgba(7, 19, 16, 0.48);
}

.map-history-empty[hidden] {
  display: none;
}

.map-history-empty strong {
  display: block;
  color: #cfece5;
  font-size: 0.76rem;
}

.map-history-empty p {
  margin: 5px 0 0;
  color: #7f958c;
  font-size: 0.66rem;
  line-height: 1.55;
}

.map-history-empty time {
  color: #a7c8bf;
  font-weight: 750;
}

.map-history-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px 20px;
  align-items: end;
  margin-top: 19px;
}

.map-history-controls[hidden] {
  display: none;
}

.map-history-scrubber {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.map-history-scrubber label {
  color: #a8bbb3;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-history-scrubber input {
  width: 100%;
  height: 22px;
  margin: 0;
  cursor: pointer;
  accent-color: #86e9de;
}

.map-history-scrubber input::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(134, 233, 222, 0.72), rgba(113, 230, 172, 0.46));
}

.map-history-scrubber input::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  margin-top: -6px;
  border: 2px solid #d6fbf5;
  border-radius: 50%;
  background: #347f76;
  box-shadow: 0 0 0 4px rgba(134, 233, 222, 0.1);
  appearance: none;
}

.map-history-scrubber input::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(134, 233, 222, 0.72), rgba(113, 230, 172, 0.46));
}

.map-history-scrubber input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #d6fbf5;
  border-radius: 50%;
  background: #347f76;
  box-shadow: 0 0 0 4px rgba(134, 233, 222, 0.1);
}

.map-history-range-labels {
  display: flex;
  justify-content: space-between;
  color: #60776e;
  font-size: 0.54rem;
  font-variant-numeric: tabular-nums;
}

.map-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.map-history-actions button {
  display: inline-flex;
  min-height: 38px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(134, 233, 222, 0.16);
  border-radius: 9px;
  background: rgba(7, 20, 17, 0.58);
  color: #9db3aa;
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 780;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.map-history-actions button:hover:not(:disabled) {
  border-color: rgba(134, 233, 222, 0.38);
  background: rgba(134, 233, 222, 0.09);
  color: #c9f8f1;
}

.map-history-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.map-history-actions .map-history-now {
  border-color: rgba(113, 230, 172, 0.24);
  color: var(--green-bright);
}

.map-history-play-icon {
  width: 10px;
  color: #86e9de;
  text-align: center;
}

.map-history-summary {
  grid-column: 1 / -1;
  min-height: 1.45em;
  margin: 0;
  color: #879d94;
  font-size: 0.66rem;
  line-height: 1.45;
}

.map-time-machine.is-historical .map-history-summary {
  color: #b3c9c0;
}

.community-campaign {
  position: relative;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  border-top: 1px solid rgba(113, 230, 172, 0.15);
  background:
    radial-gradient(circle at 2% 0, rgba(113, 230, 172, 0.12), transparent 24rem),
    radial-gradient(circle at 98% 100%, rgba(232, 189, 103, 0.08), transparent 26rem),
    linear-gradient(135deg, rgba(11, 27, 22, 0.99), rgba(7, 17, 14, 0.99));
}

.community-campaign[hidden],
.map-panel.is-fullscreen .community-campaign {
  display: none;
}

.community-campaign-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.community-campaign-kicker {
  margin: 0 0 7px;
  color: #71e6ac;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-campaign-heading h2 {
  margin: 0;
  color: #e9f5f0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: -0.035em;
}

.community-campaign-heading > div > p:last-child {
  max-width: 650px;
  margin: 7px 0 0;
  color: #80968d;
  font-size: 0.68rem;
  line-height: 1.5;
}

.community-campaign-current {
  display: inline-flex;
  min-height: 29px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(113, 230, 172, 0.2);
  border-radius: 999px;
  background: rgba(113, 230, 172, 0.07);
  color: #9aebc1;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.community-campaign-current::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #71e6ac;
  box-shadow: 0 0 0 4px rgba(113, 230, 172, 0.08);
  content: "";
}

.community-campaign-grid {
  display: grid;
  grid-template-columns: minmax(285px, 0.86fr) minmax(390px, 1.4fr);
  gap: 11px;
  align-items: stretch;
}

.community-campaign-grid.has-one-panel {
  grid-template-columns: minmax(0, 1fr);
}

.palpagos-passport,
.adventure-board {
  min-width: 0;
  padding: clamp(15px, 2.4vw, 21px);
  border: 1px solid rgba(113, 230, 172, 0.14);
  border-radius: 15px;
  background: rgba(5, 16, 13, 0.53);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.palpagos-passport[hidden],
.adventure-board[hidden] {
  display: none;
}

.palpagos-passport {
  position: relative;
  background:
    linear-gradient(145deg, rgba(23, 58, 45, 0.52), rgba(5, 16, 13, 0.58)),
    rgba(5, 16, 13, 0.53);
}

.palpagos-passport::after {
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(232, 189, 103, 0.055);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(232, 189, 103, 0.018), 0 0 0 36px rgba(232, 189, 103, 0.012);
  content: "";
  pointer-events: none;
}

.palpagos-passport-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.palpagos-passport-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(232, 189, 103, 0.28);
  border-radius: 50%;
  background: rgba(102, 78, 30, 0.2);
  color: #efd28f;
}

.palpagos-passport-mark svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.palpagos-passport-heading p,
.adventure-board-heading p {
  margin: 0 0 3px;
  color: #758b82;
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.palpagos-passport-heading h3,
.adventure-board-heading h3 {
  margin: 0;
  color: #e4f1eb;
  font-size: clamp(0.82rem, 1.7vw, 1rem);
  letter-spacing: -0.02em;
}

.palpagos-passport-heading > strong {
  color: #f0ce7e;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}

.passport-progress,
.adventure-progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8bd67;
  accent-color: #e8bd67;
}

.passport-progress {
  position: relative;
  z-index: 1;
  margin: 17px 0 8px;
}

.passport-progress::-webkit-progress-bar,
.adventure-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.passport-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #5bcf99, #e8bd67);
  box-shadow: 0 0 12px rgba(113, 230, 172, 0.22);
}

.passport-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #5bcf99, #e8bd67);
}

.passport-summary {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #81978e;
  font-size: 0.61rem;
  line-height: 1.45;
}

.passport-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 15px 0 0;
}

.passport-metric {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(113, 230, 172, 0.105);
  border-radius: 9px;
  background: rgba(3, 13, 10, 0.3);
}

.passport-metric dt {
  overflow: hidden;
  color: #72877e;
  font-size: 0.51rem;
  font-weight: 750;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.passport-metric dd {
  display: flex;
  gap: 3px;
  align-items: baseline;
  margin: 3px 0 0;
  color: #71867d;
  font-size: 0.57rem;
  font-variant-numeric: tabular-nums;
}

.passport-metric dd strong {
  color: #d8e9e1;
  font-size: 0.87rem;
}

.passport-metric.is-exploration dd strong {
  color: #8bd6ee;
}

.passport-metric.is-travel dd strong {
  color: #86e9de;
}

.passport-metric.is-discovery dd strong {
  color: #cdb3e4;
}

.passport-metric.is-victory dd strong {
  color: #e8bd67;
}

.passport-metric.is-dungeon dd strong {
  color: #d6b7eb;
}

.adventure-board {
  border-color: rgba(232, 189, 103, 0.12);
}

.adventure-board-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.adventure-board-heading output {
  flex: 0 0 auto;
  color: #d5b66f;
  font-size: 0.59rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.adventure-board-list {
  display: grid;
  gap: 7px;
}

.adventure-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr) minmax(75px, 0.33fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(232, 189, 103, 0.11);
  border-radius: 10px;
  background: rgba(34, 28, 15, 0.2);
}

.adventure-card.is-completed {
  border-color: rgba(113, 230, 172, 0.18);
  background: rgba(16, 50, 37, 0.25);
}

.adventure-card-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(232, 189, 103, 0.25);
  border-radius: 50%;
  background: rgba(94, 70, 25, 0.22);
  color: #d8b967;
  font-size: 0.69rem;
  font-weight: 900;
}

.adventure-card.is-completed .adventure-card-mark {
  border-color: rgba(113, 230, 172, 0.34);
  background: rgba(41, 113, 78, 0.25);
  color: #9cf0c3;
}

.adventure-card-copy {
  min-width: 0;
}

.adventure-card-copy strong,
.adventure-card-copy small {
  display: block;
}

.adventure-card-copy strong {
  overflow: hidden;
  color: #dce9e3;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-card-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #788d84;
  font-size: 0.55rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-card-status {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.adventure-card-status span {
  color: #9f8b5c;
  font-size: 0.54rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.adventure-card.is-completed .adventure-card-status span {
  color: #7ed9a7;
}

.adventure-progress {
  height: 4px;
}

.adventure-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #b9914d, #e8bd67);
}

.adventure-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #b9914d, #e8bd67);
}

.adventure-card.is-completed .adventure-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #4cbf88, #8ee8b7);
}

.adventure-card.is-completed .adventure-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #4cbf88, #8ee8b7);
}

.expedition-recaps {
  position: relative;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  border-top: 1px solid rgba(115, 201, 232, 0.14);
  background:
    radial-gradient(circle at 8% 0, rgba(115, 201, 232, 0.1), transparent 22rem),
    linear-gradient(135deg, rgba(12, 28, 25, 0.98), rgba(8, 18, 16, 0.98));
}

.expedition-recaps[hidden],
.map-panel.is-fullscreen .expedition-recaps {
  display: none;
}

.expedition-recaps-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.expedition-recaps-kicker {
  margin: 0 0 7px;
  color: #73c9e8;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.expedition-recaps-heading h2 {
  margin: 0;
  color: #e8f3ef;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: -0.035em;
}

.expedition-recaps-heading > p {
  max-width: 350px;
  margin: 0;
  color: #71877e;
  font-size: 0.62rem;
  line-height: 1.5;
  text-align: right;
}

.expedition-recap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 9px;
}

.expedition-recap-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(115, 201, 232, 0.13);
  border-radius: 12px;
  background: rgba(6, 17, 14, 0.46);
}

.expedition-recap-card header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.expedition-recap-card time {
  color: #dcebe5;
  font-size: 0.73rem;
  font-weight: 800;
}

.expedition-recap-card header span {
  color: #789087;
  font-size: 0.57rem;
  font-weight: 700;
}

.expedition-recap-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-top: 10px;
}

.expedition-recap-metric {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.expedition-recap-metric strong {
  color: #dbe9e3;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.expedition-recap-metric small {
  overflow: hidden;
  color: #657b72;
  font-size: 0.51rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expedition-recap-metric.is-distance strong {
  color: #8bd6ee;
}

.expedition-recap-metric.is-fog strong {
  color: #aaa2ba;
}

.expedition-recap-metric.is-travel strong {
  color: #86e9de;
}

.expedition-recap-metric.is-victory strong {
  color: #e8bd67;
}

.dungeon-journal {
  position: relative;
  padding: clamp(20px, 3vw, 30px) clamp(16px, 4vw, 38px);
  overflow: hidden;
  border-top: 1px solid rgba(201, 157, 239, 0.15);
  background:
    radial-gradient(circle at 90% 0, rgba(201, 157, 239, 0.1), transparent 23rem),
    linear-gradient(135deg, rgba(18, 28, 25, 0.98), rgba(9, 18, 15, 0.98));
}

.dungeon-journal[hidden],
.map-panel.is-fullscreen .dungeon-journal {
  display: none;
}

.dungeon-journal-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.dungeon-journal-kicker {
  margin: 0 0 6px;
  color: #c99def;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dungeon-journal-heading h2 {
  margin: 0;
  color: #f0e8f4;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  letter-spacing: -0.035em;
}

.dungeon-journal-heading > div > p:last-child {
  max-width: 620px;
  margin: 6px 0 0;
  color: #85998f;
  font-size: 0.67rem;
  line-height: 1.5;
}

.dungeon-journal-metrics {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.dungeon-journal-metrics span {
  display: grid;
  min-width: 68px;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 157, 239, 0.14);
  border-radius: 10px;
  background: rgba(31, 20, 37, 0.33);
  color: #788d84;
  font-size: 0.52rem;
  font-weight: 750;
  text-transform: uppercase;
}

.dungeon-journal-metrics strong {
  color: #e1c7ed;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.dungeon-journal-note {
  margin: 14px 0 8px;
  padding: 9px 11px;
  border: 1px solid rgba(244, 201, 111, 0.13);
  border-radius: 9px;
  background: rgba(57, 43, 19, 0.24);
  color: #b7a578;
  font-size: 0.62rem;
  line-height: 1.45;
}

.dungeon-journal-note[hidden] {
  display: none;
}

.dungeon-journal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 8px;
}

.dungeon-journal-card {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(201, 157, 239, 0.14);
  border-radius: 10px;
  background: rgba(29, 18, 36, 0.3);
}

.dungeon-journal-card.is-fixed {
  border-color: rgba(134, 233, 222, 0.14);
  background: rgba(15, 48, 46, 0.25);
}

.dungeon-journal-card > div {
  min-width: 0;
}

.dungeon-journal-card strong {
  display: block;
  overflow: hidden;
  color: #e8ddef;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dungeon-journal-card p {
  margin: 3px 0 0;
  color: #d3b26b;
  font-size: 0.6rem;
  font-weight: 750;
}

.dungeon-journal-card-details {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  color: #899c93;
  font-size: 0.54rem;
  text-align: right;
}

.dungeon-journal-card-details time {
  color: #6f837a;
}

.map-hunt-board {
  position: relative;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  border-top: 1px solid rgba(201, 149, 239, 0.15);
  background:
    radial-gradient(circle at 92% 0, rgba(201, 149, 239, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(18, 29, 25, 0.98), rgba(11, 20, 17, 0.98));
}

.map-hunt-board[hidden],
.map-panel.is-fullscreen .map-hunt-board {
  display: none;
}

.hunt-board-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.hunt-board-kicker {
  margin: 0 0 7px;
  color: #c995ef;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hunt-board-heading h2 {
  margin: 0;
  color: #f2e8f7;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: -0.035em;
}

.hunt-board-heading p:not(.hunt-board-kicker) {
  max-width: 620px;
  margin: 7px 0 0;
  color: #8fa49b;
  font-size: 0.72rem;
  line-height: 1.55;
}

.hunt-progress-copy {
  display: grid;
  flex: 0 0 auto;
  text-align: right;
}

.hunt-progress-copy strong {
  color: #f1cd7c;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.hunt-progress-copy span {
  color: #7e9189;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hunt-progress-bar {
  display: block;
  width: 100%;
  height: 6px;
  margin: 18px 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8bd67;
  accent-color: #e8bd67;
}

.hunt-progress-bar::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hunt-progress-bar::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #b879e0, #e8bd67);
  box-shadow: 0 0 12px rgba(232, 189, 103, 0.35);
}

.hunt-progress-bar::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #b879e0, #e8bd67);
}

.hunt-filters {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.hunt-filters button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 12, 9, 0.42);
  color: #8da097;
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 750;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.hunt-filters button:hover,
.hunt-filters button.is-active {
  border-color: rgba(201, 149, 239, 0.34);
  background: rgba(201, 149, 239, 0.1);
  color: #e6c7f7;
}

.hunt-filters button:focus-visible,
.hunt-card:focus-visible {
  outline: 2px solid #c995ef;
  outline-offset: 2px;
}

.hunt-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 8px;
}

.hunt-card {
  display: grid;
  min-width: 0;
  min-height: 62px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(201, 149, 239, 0.13);
  border-radius: 11px;
  background: rgba(29, 18, 36, 0.38);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.hunt-card:hover:not(:disabled) {
  border-color: rgba(201, 149, 239, 0.35);
  background: rgba(52, 29, 64, 0.47);
  transform: translateY(-1px);
}

.hunt-card.is-undiscovered {
  border-color: rgba(139, 156, 148, 0.1);
  background: rgba(9, 17, 14, 0.32);
}

.hunt-card:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hunt-card.is-defeated {
  border-color: rgba(232, 189, 103, 0.18);
  background: rgba(54, 43, 20, 0.27);
}

.hunt-card.is-selected {
  border-color: rgba(113, 230, 172, 0.62);
  box-shadow: 0 0 0 1px rgba(113, 230, 172, 0.12), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hunt-card-marker {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(201, 149, 239, 0.4);
  border-radius: 50%;
  background: rgba(102, 53, 128, 0.42);
  color: #e1baf5;
  font-size: 0.82rem;
  font-weight: 900;
}

.hunt-card.is-defeated .hunt-card-marker {
  border-color: rgba(232, 189, 103, 0.48);
  background: rgba(119, 86, 26, 0.44);
  color: #f7e7a9;
}

.hunt-card.is-undiscovered .hunt-card-marker {
  border-color: rgba(139, 156, 148, 0.22);
  background: rgba(74, 88, 81, 0.2);
  color: #73867d;
  box-shadow: none;
}

.hunt-card-copy,
.hunt-card-copy strong,
.hunt-card-copy small {
  display: block;
  min-width: 0;
}

.hunt-card-copy strong {
  overflow: hidden;
  color: #dce8e2;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hunt-card-copy small {
  margin-top: 3px;
  color: #9a78ac;
  font-size: 0.56rem;
}

.hunt-card.is-defeated .hunt-card-copy small {
  color: #b29b68;
}

.hunt-card.is-undiscovered .hunt-card-copy strong {
  color: #8a9c94;
}

.hunt-card.is-undiscovered .hunt-card-copy small {
  color: #64766e;
}

.hunt-card-locate {
  color: #667c72;
  font-size: 0.75rem;
  transition: color 140ms ease, transform 140ms ease;
}

.hunt-card:hover:not(:disabled) .hunt-card-locate {
  color: #c995ef;
  transform: translate(1px, -1px);
}

.hunt-list-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed rgba(201, 149, 239, 0.17);
  border-radius: 12px;
  color: #81948b;
  font-size: 0.72rem;
  text-align: center;
}

.map-loading,
.map-error {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.map-loading {
  display: none;
  gap: 10px;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 14, 11, 0.88);
  color: #b5c6bf;
  font-size: 0.75rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.map-viewport.is-loading .map-loading {
  display: flex;
}

.map-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(113, 230, 172, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.map-error {
  width: min(330px, calc(100% - 36px));
  padding: 25px;
  border: 1px solid rgba(255, 127, 142, 0.26);
  border-radius: 18px;
  background: rgba(20, 16, 17, 0.94);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.map-error[hidden] {
  display: none;
}

.map-error-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px solid rgba(255, 127, 142, 0.3);
  border-radius: 50%;
  background: rgba(255, 127, 142, 0.1);
  color: var(--danger);
  font-weight: 900;
}

.map-error strong {
  display: block;
  font-size: 0.94rem;
}

.map-error p {
  margin: 7px 0 16px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.map-error button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(113, 230, 172, 0.28);
  border-radius: 9px;
  background: rgba(113, 230, 172, 0.11);
  color: var(--green-bright);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.map-attribution {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(3, 9, 7, 0.78);
  color: #82968e;
  font-size: 0.58rem;
  pointer-events: auto;
}

.map-attribution a {
  color: #aec3ba;
}

.map-touch-hint {
  margin: 10px 0 0;
  color: #63786f;
  font-size: 0.66rem;
  text-align: center;
}

.map-footer a {
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .community-campaign-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .map-intro {
    padding-top: 18px;
  }

  .map-keyboard-hint {
    display: none;
  }

  .map-panel {
    border-radius: 18px;
  }

  .map-viewport {
    height: min(68vh, 620px);
    min-height: 390px;
  }

  .map-control-wide span {
    display: none;
  }

  .map-control-wide {
    width: 44px;
    padding: 0;
  }

  .map-layer-bar {
    display: block;
    padding: 8px 9px;
  }

  .map-overlay-status {
    width: 100%;
    min-height: 24px;
    padding: 0 3px 6px;
  }

  .map-layer-controls {
    width: 100%;
    overflow-x: auto;
    padding: 1px 2px 3px;
    scrollbar-width: thin;
  }

  .map-victories {
    top: 8px;
    right: 8px;
    width: min(270px, calc(100% - 16px));
  }

  .map-time-machine {
    padding: 22px 14px;
  }

  .map-time-machine-heading,
  .map-history-controls {
    display: grid;
  }

  .map-history-selection {
    justify-content: start;
    text-align: left;
  }

  .map-history-actions {
    justify-content: flex-start;
  }

  .expedition-recaps {
    padding: 22px 14px;
  }

  .community-campaign {
    padding: 22px 14px;
  }

  .community-campaign-heading {
    display: grid;
    gap: 10px;
  }

  .community-campaign-current {
    justify-self: start;
  }

  .expedition-recaps-heading {
    display: grid;
    gap: 8px;
  }

  .expedition-recaps-heading > p {
    max-width: none;
    text-align: left;
  }

  .dungeon-journal {
    padding: 22px 14px;
  }

  .dungeon-journal-heading {
    display: grid;
    gap: 12px;
  }

  .dungeon-journal-metrics {
    flex-wrap: wrap;
  }

  .map-hunt-board {
    padding: 22px 14px;
  }

  .hunt-board-heading {
    gap: 14px;
  }

  .hunt-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hunt-card {
    grid-template-columns: 28px minmax(0, 1fr);
    padding-inline: 8px;
  }

  .hunt-card-marker {
    width: 27px;
    height: 27px;
  }

  .hunt-card-locate {
    display: none;
  }
}

@media (max-width: 430px) {
  .map-back-link {
    width: 39px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .map-back-link svg {
    width: 18px;
  }

  .map-toolbar {
    gap: 6px;
  }

  .map-zoom-level {
    min-width: 40px;
  }

  .hunt-board-heading {
    display: grid;
  }

  .hunt-progress-copy {
    grid-template-columns: auto auto;
    gap: 7px;
    align-items: baseline;
    justify-content: start;
    text-align: left;
  }

  .hunt-filters {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .map-history-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-history-actions .map-history-now {
    grid-column: 1 / -1;
  }

  .dungeon-journal-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dungeon-journal-metrics span {
    min-width: 0;
  }

  .dungeon-journal-card {
    display: grid;
  }

  .dungeon-journal-card-details {
    text-align: left;
  }

  .passport-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .adventure-board-heading {
    display: grid;
    gap: 8px;
  }

  .adventure-card {
    grid-template-columns: 29px minmax(0, 1fr);
  }

  .adventure-card-status {
    grid-column: 2;
  }

  .adventure-card-status span {
    text-align: left;
  }
}
