body.page-archaeology {
  background:
    linear-gradient(180deg, rgba(9, 14, 15, 0.92), rgba(24, 19, 13, 0.96)),
    var(--bg);
}

body.page-archaeology-app {
  min-height: 100vh;
  overflow: hidden;
}

.archaeology-app-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(rgba(3, 8, 10, 0.78), rgba(3, 8, 10, 0.92)),
    url("/assets/images/twb-shared-world-map-feature.png") center / cover,
    #081012;
  overflow: hidden;
}

.archaeology-loading,
.arch-shell,
.arch-panel,
.arch-map-surface,
.arch-field-kit {
  border: 1px solid rgba(217, 183, 111, 0.26);
  background: rgba(12, 18, 18, 0.92);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.archaeology-loading {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 0.45rem;
  padding: clamp(1.25rem, 4vw, 4rem);
  border: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(217, 183, 111, 0.18), transparent 0 26%),
    rgba(5, 11, 12, 0.88);
}

.arch-loader-mark {
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(217, 183, 111, 0.5);
  border-radius: 50%;
  background:
    url("/assets/images/twb-symbol-transparent.png") center / 70% no-repeat,
    conic-gradient(from 0deg, rgba(217, 183, 111, 0.76), rgba(78, 205, 196, 0.18), rgba(217, 183, 111, 0.76));
  box-shadow: 0 0 2.5rem rgba(217, 183, 111, 0.18);
  animation: arch-loader-spin 2.2s linear infinite;
}

.arch-load-track {
  width: min(26rem, 100%);
  height: 0.55rem;
  margin-top: 1rem;
  border: 1px solid rgba(217, 183, 111, 0.35);
  background: rgba(3, 8, 10, 0.72);
  overflow: hidden;
}

.arch-load-track span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #d9b76f, #4ecdc4);
  animation: arch-load-bar 1.4s ease-in-out infinite;
}

@keyframes arch-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes arch-load-bar {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(250%);
  }
}

.arch-client {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    linear-gradient(rgba(4, 9, 11, 0.8), rgba(4, 9, 11, 0.93)),
    url("/assets/images/twb-shared-world-map-feature.png") center / cover,
    #071012;
}

.arch-client--login {
  place-items: stretch;
}

.arch-client-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.6rem clamp(0.75rem, 2vw, 1.25rem);
  border-bottom: 1px solid rgba(217, 183, 111, 0.24);
  background: rgba(5, 10, 12, 0.92);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.28);
}

.arch-client-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.arch-client-brand img {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
}

.arch-client-brand span {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.arch-client-brand strong,
.arch-client-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arch-client-brand strong {
  color: var(--text);
  line-height: 1.05;
}

.arch-client-brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.arch-client-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.arch-client-link {
  min-height: 2.4rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(217, 183, 111, 0.24);
  background: rgba(244, 234, 215, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
}

.arch-client-link:hover,
.arch-client-link:focus {
  border-color: rgba(78, 205, 196, 0.58);
  background: rgba(78, 205, 196, 0.12);
}

.arch-login-panel {
  align-self: center;
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgba(217, 183, 111, 0.26);
  background: rgba(7, 12, 13, 0.88);
  box-shadow: var(--shadow-deep);
}

.arch-shell {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-width: 0;
}

.arch-status-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(217, 183, 111, 0.22);
  background: rgba(7, 12, 13, 0.88);
}

.arch-title h1,
.arch-title h2,
.arch-panel h2,
.arch-panel h3 {
  margin: 0;
  line-height: 1.15;
}

.arch-title h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.7rem);
}

.arch-title p,
.arch-panel p {
  margin-bottom: 0;
}

.arch-kicker {
  margin: 0 0 0.25rem;
  color: #d9b76f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.arch-pill {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(78, 205, 196, 0.28);
  background: rgba(27, 43, 42, 0.72);
  color: #d7f6f1;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.arch-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.arch-map-surface {
  position: relative;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  border-width: 0;
  border-right: 1px solid rgba(217, 183, 111, 0.2);
  background:
    linear-gradient(rgba(17, 25, 24, 0.84), rgba(17, 25, 24, 0.84)),
    repeating-linear-gradient(0deg, rgba(217, 183, 111, 0.08) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(78, 205, 196, 0.07) 0 1px, transparent 1px 48px),
    #19221f;
  overflow: hidden;
}

.arch-map-stage {
  position: absolute;
  inset: 1rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

.arch-map-stage--game {
  grid-template-rows: auto minmax(0, 1fr);
}

.arch-map-header,
.arch-map-footer {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(12rem, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(217, 183, 111, 0.22);
  background: rgba(8, 12, 13, 0.72);
}

.arch-map-footer {
  grid-template-columns: minmax(0, 1fr) auto;
}

.arch-map-stamp {
  justify-self: start;
  min-width: min(100%, 18rem);
  max-width: 26rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(217, 183, 111, 0.38);
  background:
    linear-gradient(135deg, rgba(217, 183, 111, 0.18), rgba(78, 205, 196, 0.06)),
    rgba(13, 18, 17, 0.78);
  color: #fff0bd;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 223, 0.04);
}

.arch-map-stamp span,
.arch-map-stamp small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arch-map-stamp span {
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.arch-map-stamp small {
  color: #f5d991;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.arch-world-map,
.arch-country-map {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(217, 183, 111, 0.26);
  background:
    radial-gradient(circle at 50% 45%, rgba(217, 183, 111, 0.16), transparent 0 34%),
    linear-gradient(135deg, rgba(77, 54, 34, 0.6), rgba(21, 28, 27, 0.92));
  overflow: hidden;
}

.arch-world-map::before,
.arch-country-map::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border: 1px dashed rgba(217, 183, 111, 0.3);
  pointer-events: none;
}

.arch-country-map--vector::before {
  display: none;
}

.arch-world-atlas {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(62, 38, 16, 0.65);
  background:
    radial-gradient(circle at 45% 42%, rgba(248, 224, 163, 0.74), transparent 0 50%),
    linear-gradient(135deg, rgba(78, 45, 18, 0.22), transparent 30% 68%, rgba(58, 31, 11, 0.28)),
    #b78f58;
  overflow: hidden;
  isolation: isolate;
}

.arch-world-atlas--vector {
  box-shadow:
    inset 0 0 0 1px rgba(245, 214, 151, 0.18),
    inset 0 0 4rem rgba(47, 25, 9, 0.35);
}

.arch-world-map-loading,
.twb-map-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.3rem;
  padding: 1.5rem;
  text-align: center;
  color: #1d1208;
  background: rgba(214, 176, 109, 0.72);
}

.twb-map {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 48% 42%, rgba(247, 226, 171, 0.86), transparent 0 64%),
    linear-gradient(90deg, rgba(75, 42, 16, 0.16), transparent 18% 82%, rgba(75, 42, 16, 0.18)),
    #b98f55;
}

.twb-map-paper {
  fill: url(#twb-map-paper-light);
}

.twb-map-graticule line {
  stroke: rgba(64, 36, 14, 0.2);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.twb-map-country {
  fill: rgba(206, 173, 111, 0.62);
  stroke: rgba(42, 25, 10, 0.78);
  stroke-width: 0.75;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition:
    fill 140ms ease,
    stroke 140ms ease,
    stroke-width 140ms ease,
    filter 140ms ease;
}

.twb-map-country.is-available {
  cursor: pointer;
  fill: rgba(215, 183, 117, 0.48);
  stroke: rgba(34, 20, 8, 0.72);
  stroke-width: 0.8;
}

.twb-map-country.is-available:hover,
.twb-map-country.is-available:focus {
  fill: rgba(92, 210, 196, 0.18);
  stroke: rgba(15, 11, 6, 1);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 0.32rem rgba(78, 205, 196, 0.38));
  outline: 0;
}

.twb-map-country.is-selected {
  fill: rgba(92, 210, 196, 0.26);
  stroke: rgba(15, 11, 6, 1);
  stroke-width: 2.1;
  filter: drop-shadow(0 0 0.48rem rgba(78, 205, 196, 0.66));
  outline: 0;
}

.twb-map-marker {
  cursor: pointer;
  color: #1d1208;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    filter 140ms ease,
    transform 140ms ease;
}

.twb-map-marker-halo {
  fill: rgba(78, 205, 196, 0.18);
  stroke: rgba(78, 205, 196, 0.42);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.twb-map-marker-disc {
  fill: #f2d890;
  stroke: rgba(31, 19, 8, 0.95);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.twb-map-marker-number {
  paint-order: stroke;
  stroke: rgba(251, 232, 180, 0.78);
  stroke-width: 2;
  fill: #1d1208;
  font: 900 10px var(--font-body);
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.twb-map-marker-label {
  paint-order: stroke;
  stroke: rgba(251, 232, 180, 0.92);
  stroke-width: 5;
  fill: #1d1208;
  font: 900 20px var(--font-body);
  letter-spacing: 0;
  dominant-baseline: middle;
  text-transform: uppercase;
  pointer-events: none;
}

.twb-map-marker:hover,
.twb-map-marker:focus,
.twb-map-marker.is-selected {
  filter: drop-shadow(0 0 0.55rem rgba(78, 205, 196, 0.9));
  outline: 0;
}

.twb-map-marker:hover .twb-map-marker-disc,
.twb-map-marker:focus .twb-map-marker-disc,
.twb-map-marker.is-selected .twb-map-marker-disc {
  fill: #69e4d6;
}

.twb-country-map {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  background:
    radial-gradient(circle at 42% 45%, rgba(248, 225, 166, 0.84), transparent 0 62%),
    linear-gradient(90deg, rgba(82, 47, 18, 0.28), transparent 20% 80%, rgba(82, 47, 18, 0.24)),
    #b98f55;
}

.twb-country-paper {
  fill: url(#twb-country-paper-light);
}

.twb-country-graticule line,
.twb-country-region-lines path {
  fill: none;
  stroke: rgba(65, 38, 15, 0.22);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.twb-country-region-lines path {
  stroke: rgba(48, 29, 11, 0.34);
  stroke-dasharray: 8 8;
}

.twb-country-land {
  fill: rgba(189, 219, 174, 0.42);
  stroke: rgba(20, 16, 9, 0.88);
  stroke-width: 1.35;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.twb-country-coast {
  fill: none;
  stroke: rgba(4, 8, 7, 0.95);
  stroke-width: 2.65;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.twb-country-labels text {
  paint-order: stroke;
  stroke: rgba(232, 198, 130, 0.7);
  stroke-width: 3;
  fill: rgba(58, 37, 16, 0.62);
  font: 900 18px var(--font-body);
  letter-spacing: 0;
  text-transform: uppercase;
}

.twb-country-node {
  cursor: pointer;
  transition:
    filter 140ms ease,
    transform 140ms ease;
}

.twb-country-node-leader {
  stroke: rgba(52, 33, 13, 0.36);
  stroke-width: 0.9;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.twb-country-node-halo {
  fill: rgba(78, 205, 196, 0.16);
  stroke: rgba(78, 205, 196, 0.34);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.twb-country-node-disc {
  fill: #4ecdc4;
  stroke: rgba(22, 15, 8, 0.95);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.twb-country-node--tier-3 .twb-country-node-disc,
.twb-country-node--tier-4 .twb-country-node-disc,
.twb-country-node--tier-5 .twb-country-node-disc {
  fill: #f2d890;
}

.twb-country-node:hover,
.twb-country-node:focus,
.twb-country-node.is-selected {
  filter: drop-shadow(0 0 0.48rem rgba(78, 205, 196, 0.82));
  outline: 0;
}

.twb-country-node.is-selected .twb-country-node-halo {
  fill: rgba(217, 183, 111, 0.24);
  stroke: rgba(255, 239, 184, 0.75);
}

.twb-country-node.is-selected .twb-country-node-disc {
  fill: #f8dd8e;
}

.twb-country-node-label {
  paint-order: stroke;
  stroke: rgba(247, 221, 158, 0.92);
  stroke-width: 5;
  fill: #1d1208;
  font: 900 16px var(--font-body);
  letter-spacing: 0;
  dominant-baseline: middle;
  pointer-events: none;
}

.arch-world-atlas img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #b78f58;
  filter: sepia(0.18) contrast(1.24) saturate(0.82) brightness(0.96);
}

.arch-world-ink-boost {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(41, 24, 11, 0.08), rgba(41, 24, 11, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 7.95%, rgba(35, 20, 9, 0.18) 8% 8.08%, transparent 8.13%),
    repeating-linear-gradient(0deg, transparent 0 9.95%, rgba(35, 20, 9, 0.14) 10% 10.08%, transparent 10.13%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.arch-world-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.arch-country-hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d1208;
  cursor: pointer;
  opacity: 0.92;
  transform: translate(-50%, -100%);
  transition:
    filter 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease,
    transform 140ms ease;
}

.arch-country-hotspot::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid rgba(32, 20, 9, 0.94);
  border-radius: 50% 50% 50% 0;
  background:
    radial-gradient(circle at 55% 45%, rgba(255, 245, 210, 0.95) 0 18%, transparent 19%),
    linear-gradient(135deg, #f0c76b, #8b5b24);
  box-shadow:
    0 0 0 2px rgba(244, 217, 154, 0.72),
    0 0.25rem 0.65rem rgba(26, 14, 5, 0.42);
  transform: rotate(-45deg);
}

.arch-country-hotspot span {
  padding: 0.22rem 0.46rem;
  border: 1px solid rgba(23, 14, 7, 0.72);
  background: rgba(246, 222, 160, 0.92);
  color: #1d1208;
  font-size: clamp(0.58rem, 0.9vw, 0.78rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  box-shadow: 0 0.35rem 1rem rgba(23, 14, 7, 0.22);
}

.arch-country-hotspot:hover,
.arch-country-hotspot:focus,
.arch-country-hotspot.is-selected {
  filter: drop-shadow(0 0 0.55rem rgba(78, 205, 196, 0.65));
  opacity: 1;
  outline: 0;
  transform: translate(-50%, -106%);
}

.arch-country-hotspot:hover span,
.arch-country-hotspot:focus span,
.arch-country-hotspot.is-selected span {
  background: rgba(255, 242, 195, 0.98);
  border-color: rgba(23, 14, 7, 0.92);
  box-shadow:
    0 0 0 2px rgba(78, 205, 196, 0.35),
    0 0.4rem 1rem rgba(23, 14, 7, 0.32);
}

.arch-country-hotspot:hover::before,
.arch-country-hotspot:focus::before,
.arch-country-hotspot.is-selected::before {
  background:
    radial-gradient(circle at 55% 45%, rgba(255, 255, 220, 1) 0 18%, transparent 19%),
    linear-gradient(135deg, #9cf3e8, #a66a28);
  box-shadow:
    0 0 0 2px rgba(255, 237, 178, 0.92),
    0 0 1.2rem rgba(78, 205, 196, 0.62);
}

.arch-origin-preview {
  display: grid;
  place-items: center;
  isolation: isolate;
}

.arch-origin-preview::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 0;
  opacity: 0.7;
  background:
    linear-gradient(90deg, transparent 49%, rgba(217, 183, 111, 0.22) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(217, 183, 111, 0.16) 49% 51%, transparent 51%),
    radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.12), transparent 0 24%),
    radial-gradient(circle at 50% 50%, transparent 0 35%, rgba(217, 183, 111, 0.2) 36% 36.8%, transparent 37.5%),
    radial-gradient(circle at 50% 50%, transparent 0 50%, rgba(217, 183, 111, 0.16) 51% 51.8%, transparent 52.5%);
  pointer-events: none;
}

.arch-origin-compass {
  position: absolute;
  z-index: 1;
  width: min(17rem, 48%);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 183, 111, 0.42);
  border-radius: 50%;
  background:
    conic-gradient(from 45deg, rgba(217, 183, 111, 0.26), transparent 16%, rgba(78, 205, 196, 0.16), transparent 34%, rgba(217, 183, 111, 0.24), transparent 66%, rgba(78, 205, 196, 0.12), transparent),
    radial-gradient(circle, rgba(8, 12, 13, 0.08), rgba(8, 12, 13, 0.44));
  box-shadow: 0 0 4rem rgba(217, 183, 111, 0.14);
}

.arch-origin-compass::before,
.arch-origin-compass::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(217, 183, 111, 0.25);
  border-radius: 50%;
}

.arch-origin-compass::after {
  inset: 39%;
  border-color: rgba(78, 205, 196, 0.35);
  background: rgba(78, 205, 196, 0.12);
}

.arch-origin-card {
  position: absolute;
  z-index: 2;
  width: min(15rem, 38%);
  padding: 0.85rem;
  border: 1px solid rgba(217, 183, 111, 0.28);
  background: rgba(8, 12, 13, 0.82);
  box-shadow: var(--shadow-soft);
}

.arch-origin-card span {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(78, 205, 196, 0.5);
  background: rgba(78, 205, 196, 0.12);
  color: #d7f6f1;
  font-weight: 900;
}

.arch-origin-card strong {
  display: block;
  line-height: 1.2;
}

.arch-origin-card p {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.arch-origin-card--home {
  left: 8%;
  top: 13%;
}

.arch-origin-card--country {
  right: 8%;
  top: 37%;
}

.arch-origin-card--nodes {
  left: 16%;
  bottom: 12%;
}

.arch-world-region {
  position: absolute;
  min-width: 8.5rem;
  min-height: 4.5rem;
  border: 1px solid rgba(166, 234, 99, 0.34);
  background: rgba(166, 234, 99, 0.08);
  color: var(--text);
  font-weight: 800;
}

.arch-world-region:hover,
.arch-world-region.is-active {
  border-color: rgba(78, 205, 196, 0.8);
  background: rgba(78, 205, 196, 0.14);
}

.arch-node-pin {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 238, 177, 0.95);
  background: #4ecdc4;
  box-shadow: 0 0 0 0.35rem rgba(78, 205, 196, 0.15), 0 0 1.25rem rgba(78, 205, 196, 0.42);
  cursor: pointer;
}

.arch-node-pin.is-selected {
  background: #d9b76f;
  box-shadow: 0 0 0 0.45rem rgba(217, 183, 111, 0.16), 0 0 1.5rem rgba(217, 183, 111, 0.52);
}

.arch-inspector {
  padding: 1rem;
  background: rgba(10, 14, 15, 0.96);
  overflow: auto;
}

.arch-panel {
  padding: 1rem;
}

.arch-stack {
  display: grid;
  gap: 0.8rem;
}

.arch-map-key {
  min-height: 0;
}

.arch-map-mode-button {
  min-height: 3.15rem;
  border-color: rgba(217, 183, 111, 0.48);
  background:
    linear-gradient(135deg, rgba(217, 183, 111, 0.18), rgba(78, 205, 196, 0.08)),
    rgba(15, 22, 21, 0.96);
  color: #fff2c9;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 223, 0.04);
}

.arch-map-mode-button:hover,
.arch-map-mode-button:focus {
  border-color: rgba(78, 205, 196, 0.68);
  background:
    linear-gradient(135deg, rgba(217, 183, 111, 0.25), rgba(78, 205, 196, 0.14)),
    rgba(17, 28, 27, 0.98);
  color: #fff9df;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.12), inset 0 0 0 1px rgba(255, 247, 223, 0.06);
}

.arch-map-mode-button--commit {
  border-color: rgba(217, 183, 111, 0.64);
  background:
    linear-gradient(135deg, rgba(217, 183, 111, 0.28), rgba(42, 34, 19, 0.72)),
    rgba(16, 20, 18, 0.98);
}

.arch-map-key-selected {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(78, 205, 196, 0.32);
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.14), rgba(217, 183, 111, 0.05)),
    rgba(5, 10, 12, 0.48);
}

.arch-map-key-selected h3 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 0.95;
}

.arch-map-key-selected span {
  color: var(--text-soft);
  font-weight: 800;
}

.arch-country-summary-copy {
  color: var(--text-soft);
  line-height: 1.55;
}

.arch-country-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.arch-country-progress div {
  padding: 0.7rem;
  border: 1px solid rgba(78, 205, 196, 0.2);
  background:
    linear-gradient(180deg, rgba(78, 205, 196, 0.08), rgba(217, 183, 111, 0.04)),
    rgba(13, 19, 19, 0.82);
}

.arch-country-progress dt {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arch-country-progress dd {
  margin: 0;
  color: var(--paper);
  font: 900 1.35rem/1 var(--font-display);
}

.arch-country-picker {
  position: relative;
  min-width: min(100%, 20rem);
}

.arch-country-picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(217, 183, 111, 0.35);
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.11), rgba(217, 183, 111, 0.04)),
    rgba(14, 20, 20, 0.96);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}

.arch-country-picker-button:hover,
.arch-country-picker-button:focus,
.arch-country-picker.is-open .arch-country-picker-button {
  border-color: rgba(78, 205, 196, 0.74);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.12);
}

.arch-country-picker-button span {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.arch-country-picker-button small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.arch-country-picker-button strong {
  min-width: 0;
  overflow: hidden;
  color: #fff7df;
  font-size: 0.95rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arch-country-picker-button b {
  color: var(--accent);
  font-size: 0.8rem;
  transform: scaleX(1.35);
}

.arch-country-picker-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(78, 205, 196, 0.42);
  background: rgba(6, 12, 13, 0.98);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.5);
}

.arch-country-picker-list {
  display: grid;
  gap: 0.35rem;
  max-height: min(22rem, 50vh);
  overflow: auto;
  padding-right: 0.2rem;
}

.arch-map-key-search {
  display: grid;
  gap: 0.35rem;
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arch-map-key-search input {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid rgba(217, 183, 111, 0.36);
  background: rgba(14, 20, 20, 0.95);
  color: var(--text);
  font: 800 0.95rem var(--font-body);
  padding: 0.65rem 0.75rem;
}

.arch-map-key-search input:focus {
  border-color: rgba(78, 205, 196, 0.72);
  outline: 2px solid rgba(78, 205, 196, 0.2);
}

.arch-map-key-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.arch-map-key-summary span {
  padding: 0.75rem;
  border: 1px solid rgba(78, 205, 196, 0.2);
  background: rgba(78, 205, 196, 0.07);
  color: var(--paper);
  font-weight: 900;
  text-align: center;
}

.arch-map-key-list {
  display: grid;
  gap: 0.4rem;
  max-height: clamp(18rem, 58vh, 42rem);
  min-height: 0;
  padding-right: 0.25rem;
  overflow: auto;
}

.arch-map-key-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(217, 183, 111, 0.22);
  background: rgba(18, 25, 24, 0.86);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}

.arch-map-key-row:hover,
.arch-map-key-row:focus,
.arch-map-key-row.is-selected {
  border-color: rgba(78, 205, 196, 0.72);
  background: rgba(78, 205, 196, 0.12);
  outline: 0;
}

.arch-map-key-number {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid rgba(31, 19, 8, 0.95);
  border-radius: 50%;
  background: #f2d890;
  color: #1d1208;
  font-size: 0.75rem;
  font-weight: 900;
}

.arch-map-key-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.arch-map-key-count {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.arch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.arch-actions .button,
.arch-actions button {
  min-width: 0;
}

.arch-actions--subtle {
  margin-top: 0.25rem;
}

.arch-actions--subtle .button {
  min-height: 2.25rem;
  border-color: rgba(255, 176, 157, 0.24);
  color: #ffcfbf;
}

.arch-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.arch-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.arch-form input,
.arch-form select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid rgba(217, 183, 111, 0.34);
  background: rgba(14, 20, 20, 0.95);
  color: var(--text);
}

.arch-node-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  max-height: 20rem;
  overflow: auto;
}

.arch-node-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem;
  border: 1px solid rgba(244, 234, 215, 0.12);
  background: rgba(244, 234, 215, 0.04);
  text-align: left;
}

.arch-node-row.is-selected {
  border-color: rgba(217, 183, 111, 0.68);
}

.arch-node-row strong {
  font-size: 0.9rem;
}

.arch-node-row span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.arch-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.arch-detail-grid div {
  padding: 0.65rem;
  background: rgba(244, 234, 215, 0.05);
}

.arch-detail-grid--compact {
  margin: 0.75rem 0;
}

.arch-detail-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.arch-detail-grid dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-weight: 800;
}

.arch-field-kit {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  z-index: 46;
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(42rem, calc(100vh - 7rem));
  overflow: auto;
  padding: 1rem;
}

.arch-field-kit[hidden] {
  display: none;
}

.arch-mission-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(78, 205, 196, 0.3);
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.08), rgba(217, 183, 111, 0.06)),
    rgba(5, 12, 13, 0.76);
}

.arch-mission-panel--complete {
  border-color: rgba(166, 234, 99, 0.45);
  background:
    linear-gradient(135deg, rgba(166, 234, 99, 0.1), rgba(217, 183, 111, 0.08)),
    rgba(5, 12, 13, 0.82);
}

.arch-mission-panel--claimed {
  border-color: rgba(217, 183, 111, 0.55);
}

.arch-mission-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.arch-mission-head strong {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(217, 183, 111, 0.3);
  background: rgba(217, 183, 111, 0.1);
  color: #ffeeb1;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
}

.arch-progress-track {
  height: 0.55rem;
  border: 1px solid rgba(217, 183, 111, 0.25);
  background: rgba(3, 8, 10, 0.66);
  overflow: hidden;
}

.arch-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a6ea63, #d9b76f);
}

.arch-checkin {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.25rem;
}

.arch-option-grid {
  display: grid;
  gap: 0.55rem;
}

.arch-option {
  display: grid;
  gap: 0.25rem;
  min-height: 4.75rem;
  padding: 0.72rem;
  border: 1px solid rgba(244, 234, 215, 0.13);
  background: rgba(244, 234, 215, 0.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.arch-option:hover,
.arch-option:focus {
  border-color: rgba(78, 205, 196, 0.58);
  background: rgba(78, 205, 196, 0.11);
}

.arch-option strong {
  color: #fff7df;
  line-height: 1.15;
}

.arch-option span,
.arch-option small {
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.arch-option small {
  color: #d9b76f;
  font-weight: 800;
  text-transform: uppercase;
}

.arch-reward-box {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(217, 183, 111, 0.24);
  background: rgba(244, 234, 215, 0.045);
}

.arch-reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.arch-reward-grid div {
  min-height: 4rem;
  padding: 0.6rem;
  border: 1px solid rgba(244, 234, 215, 0.1);
  background: rgba(3, 8, 10, 0.42);
}

.arch-reward-grid strong,
.arch-reward-grid span {
  display: block;
}

.arch-reward-grid strong {
  color: #fff7df;
  font-size: 1rem;
  line-height: 1.1;
}

.arch-reward-grid span {
  margin-top: 0.25rem;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.arch-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.arch-small {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.arch-error {
  color: #ffb09d;
}

.arch-success {
  color: #a6ea63;
}

.arch-mission-prep {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid rgba(217, 183, 111, 0.24);
  background: rgba(244, 234, 215, 0.04);
}

.arch-select-label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.arch-select-label select {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid rgba(217, 183, 111, 0.34);
  background: rgba(14, 20, 20, 0.95);
  color: var(--text);
  font-size: 0.9rem;
  text-transform: none;
}

.arch-starter-callout {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(78, 205, 196, 0.24);
  background: rgba(78, 205, 196, 0.07);
}

.arch-companion-list {
  display: grid;
  gap: 0.45rem;
}

.arch-companion-row {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem;
  border: 1px solid rgba(244, 234, 215, 0.1);
  background: rgba(244, 234, 215, 0.04);
}

.arch-companion-row strong {
  color: #fff7df;
  font-size: 0.88rem;
  line-height: 1.15;
}

.arch-companion-row span {
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.25;
}

.arch-debug-panel {
  display: grid;
  gap: 0.6rem;
  padding: 0.7rem;
  border: 1px solid rgba(78, 205, 196, 0.24);
  background: rgba(78, 205, 196, 0.07);
}

.arch-debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.arch-debug-grid span,
.arch-debug-list div {
  min-width: 0;
  padding: 0.45rem;
  border: 1px solid rgba(244, 234, 215, 0.1);
  background: rgba(5, 10, 12, 0.5);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.arch-debug-grid strong,
.arch-debug-list strong,
.arch-debug-list span {
  display: block;
  overflow-wrap: anywhere;
}

.arch-debug-grid strong,
.arch-debug-list strong {
  color: #fff7df;
  font-size: 0.82rem;
  line-height: 1.1;
}

.arch-debug-list {
  display: grid;
  gap: 0.4rem;
}

.arch-debug-list span {
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.68rem;
  text-transform: none;
}

@media (max-width: 980px) {
  body.page-archaeology-app {
    overflow: auto;
  }

  .archaeology-app-shell,
  .arch-client {
    height: auto;
    min-height: 100svh;
  }

  .arch-client {
    display: block;
  }

  .arch-shell,
  .arch-body {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: visible;
  }

  .arch-client-topbar {
    grid-template-columns: 1fr;
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .arch-client-actions {
    justify-content: flex-start;
  }

  .arch-status-strip {
    grid-template-columns: 1fr 1fr;
  }

  .arch-title {
    grid-column: 1 / -1;
  }

  .arch-title h1 {
    font-size: clamp(2.2rem, 11vw, 4.4rem);
  }

  .arch-body {
    grid-template-columns: 1fr;
  }

  .arch-map-surface {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(217, 183, 111, 0.2);
    overflow: hidden;
  }

  .arch-map-stage {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
  }

  .arch-map-header,
  .arch-map-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .arch-map-stamp {
    max-width: none;
  }

  .arch-map-header .arch-actions {
    width: 100%;
    min-width: 0;
  }

  .arch-map-header .arch-actions .button,
  .arch-map-header .arch-actions select,
  .arch-map-header .arch-actions .arch-country-picker {
    min-width: 0;
    flex: 1 1 12rem;
  }

  .arch-world-atlas,
  .arch-country-map {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 2 / 1;
  }

  .arch-inspector {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .archaeology-app-shell {
    padding: 0;
  }

  .arch-status-strip {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.7rem;
  }

  .arch-map-stage {
    padding: 0.55rem;
    gap: 0.55rem;
  }

  .arch-map-header,
  .arch-map-footer {
    display: grid;
    width: 100%;
    max-width: 100%;
  }

  .arch-client-link,
  .arch-pill,
  .arch-map-header .button,
  .arch-map-header select,
  .arch-map-header .arch-country-picker {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .arch-country-picker-menu {
    position: static;
  }

  .arch-world-map,
  .arch-country-map {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.35 / 1;
  }

  .arch-country-map {
    aspect-ratio: 1 / 1.04;
  }

  .arch-world-atlas {
    width: 100%;
    max-width: 100%;
    min-height: 11rem;
    aspect-ratio: 2 / 1;
  }

  .twb-country-map,
  .twb-map {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }

  .twb-map-marker-number {
    font-size: 11px;
  }

  .twb-map-marker-label {
    font-size: 22px;
  }

  .twb-country-node-label {
    display: none;
  }

  .arch-map-key-list {
    max-height: 18rem;
  }

  .arch-map-key-row {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }

  .arch-map-key-count {
    grid-column: 2;
  }

  .arch-country-progress {
    grid-template-columns: 1fr;
  }

  .arch-origin-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(100%, 18rem);
    margin: 0.35rem;
  }

  .arch-origin-preview {
    place-content: center;
    gap: 0.35rem;
    padding: 1.5rem;
  }

  .arch-detail-grid,
  .arch-reward-grid,
  .arch-mini-grid {
    grid-template-columns: 1fr;
  }
}
