/* .full-screen-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
} */

.map-canvas {
  width: 100%;
  height: 100%;
  background-color: #020C18;
}

:root {
  --inspector-width: clamp(30rem, 29vw, 28rem);
  --edge-space: clamp(0.75rem, 1.3vw, 1.5rem);
}

.headline {
  position: absolute;
  top: clamp(1rem, 2.2vw, 1.9rem);
  left: var(--edge-space);
  z-index: 12;
  color: #f1f5f9;
  font-size: clamp(0.95rem, 0.85rem + 0.25vw, 1.1rem);
  font-weight: 400;
}

.headline-title {
  margin: 0;
  font-size: clamp(2rem, 1.15rem + 2.6vw, 3rem);
  font-family: "Oxanium", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.headline-subtitle {
  margin: 0.3rem 0 0 0;
  font-size: clamp(0.95rem, 0.82rem + 0.4vw, 1.15rem);
  font-weight: 600;
  color: rgba(241, 245, 249, 0.8);
  font-family: "Oxanium", sans-serif;
  width: min(38rem, 56vw);
}

.floating-reset-button {
  position: fixed;
  bottom: var(--edge-space);
  right: calc(var(--inspector-width) + var(--edge-space));
  z-index: 30;
  min-width: clamp(7.8rem, 7.2rem + 0.8vw, 8.6rem);
  height: clamp(2.25rem, 2.1rem + 0.25vw, 2.5rem);
  padding: 0 clamp(0.65rem, 0.55rem + 0.4vw, 0.9rem);
  border: 1px solid rgba(4, 16, 85, 0.55);
  border-radius: clamp(0.5rem, 0.35rem + 0.35vw, 0.65rem);
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.24), rgba(34, 211, 238, 0) 45%),
    linear-gradient(180deg, rgba(5, 19, 34, 0.94), rgba(3, 12, 24, 0.96));
  color: #ffffff;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(0.65rem, 0.6rem + 0.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 0.3rem + 0.25vw, 0.65rem);
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(148, 249, 255, 0.2),
    0 0 0 1px rgba(8, 84, 112, 0.4),
    0 8px 26px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(34, 211, 238, 0.28);
  transition:
    transform 140ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.floating-reset-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -20deg,
    rgba(148, 249, 255, 0) 0px,
    rgba(148, 249, 255, 0) 10px,
    rgba(148, 249, 255, 0.08) 10px,
    rgba(148, 249, 255, 0.08) 12px
  );
  opacity: 0.35;
  pointer-events: none;
}

.floating-reset-button::after {
  content: "";
  position: absolute;
  width: 44%;
  height: 180%;
  left: -55%;
  top: -40%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(167, 243, 255, 0.32),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.floating-reset-button:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 246, 255, 0.95);
  color: #f0fdff;
  box-shadow:
    inset 0 0 0 1px rgba(191, 251, 255, 0.36),
    0 0 0 1px rgba(46, 186, 219, 0.55),
    0 14px 30px rgba(0, 0, 0, 0.56),
    0 0 24px rgba(34, 211, 238, 0.45);
}

.floating-reset-button:hover::after {
  animation: reset-scan 860ms ease;
}

.floating-reset-button:active {
  transform: translateY(0);
}

.reset-button-label {
  position: relative;
  z-index: 1;
}

.reset-button-icon {
  position: relative;
  width: clamp(0.8rem, 0.72rem + 0.2vw, 1rem);
  height: clamp(0.8rem, 0.72rem + 0.2vw, 1rem);
  border: 1px solid rgba(167, 243, 255, 0.9);
  border-radius: 50%;
  box-sizing: border-box;
  z-index: 1;
}

.reset-button-icon::before {
  content: "";
  position: absolute;
  width: clamp(0.38rem, 0.32rem + 0.12vw, 0.5rem);
  height: clamp(0.38rem, 0.32rem + 0.12vw, 0.5rem);
  top: clamp(0.14rem, 0.12rem + 0.06vw, 0.2rem);
  left: clamp(0.14rem, 0.12rem + 0.06vw, 0.2rem);
  border-top: 2px solid rgba(167, 243, 255, 0.95);
  border-right: 2px solid rgba(167, 243, 255, 0.95);
  border-radius: 2px;
  transform: rotate(45deg);
}

@keyframes reset-scan {
  0% {
    left: -55%;
  }
  100% {
    left: 140%;
  }
}

.perspective-switch {
  position: absolute;
  bottom: clamp(8.1rem, 5.8rem + 1.9vw, 8.75rem);
  left: var(--edge-space);
  z-index: 12;
  font-family: "Oxanium", sans-serif;
}

.affiliation-notice {
  position: absolute;
  bottom: var(--edge-space);
  left: clamp(1.5rem, 0.9rem + 0.8vw, 1.9rem);
  z-index: 12;
  color: rgba(241, 245, 249, 0.8);
  font-size: clamp(0.65rem, 0.58rem + 0.2vw, 0.76rem);
  font-family: "Oxanium", sans-serif;
  font-weight: 500;
  text-align: left;
  width: clamp(10rem, 9rem + 3vw, 12.5rem);

  transform: rotate(-90deg);
  transform-origin: left bottom;
}

.perspective-switch-title {
  margin-bottom: clamp(0.35rem, 0.25rem + 0.3vw, 0.5rem);
  color: #f1f5f9;
  font-size: clamp(0.68rem, 0.62rem + 0.2vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: center;
}

.floating-toggle-button {
  border: 0;
  padding: 0;
  background: transparent;
}

.perspective-toggle {
  position: relative;
  width: clamp(11rem, 10.2rem + 2.2vw, 13.75rem);
  height: clamp(2.1rem, 1.9rem + 0.6vw, 2.75rem);
  border-radius: 999px;
  border: 0px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  color: #f8fafc;
  font-size: clamp(0.68rem, 0.62rem + 0.2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.perspective-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  filter: brightness(1.08);
}

.perspective-toggle:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.toggle-label {
  position: relative;
  z-index: 2;
  width: 50%;
  text-align: center;
  user-select: none;
  transition: color 150ms ease;
  font-family: "Oxanium", sans-serif;
}

.toggle-thumb {
  position: absolute;
  top: 0.15rem;
  left: 0.19rem;
  width: calc(50% - 0.38rem);
  height: calc(100% - 0.38rem);
  border-radius: 999px;
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
  transition: transform 200ms ease;
}

.perspective-toggle.is-receiver .toggle-thumb {
  transform: translateX(100%);
}

.perspective-toggle.is-attacker .toggle-thumb {
  transform: translateX(0%);
}

.perspective-toggle.is-attacker .toggle-label-left {
  color: #0f172a;
}

.perspective-toggle.is-attacker .toggle-label-right {
  color: rgba(241, 245, 249, 0.7);
}

.perspective-toggle.is-receiver .toggle-label-left {
  color: rgba(241, 245, 249, 0.7);
}

.perspective-toggle.is-receiver .toggle-label-right {
  color: #0f172a;
}

.incident-colorbar {
  position: absolute;
  left: var(--edge-space);
  bottom: var(--edge-space);
  z-index: 12;
  width: clamp(14rem, 12.5rem + 6vw, 18.8rem);
  padding: clamp(0.65rem, 0.5rem + 0.6vw, 0.9rem)
    clamp(0.65rem, 0.5rem + 0.6vw, 0.9rem)
    clamp(0.45rem, 0.35rem + 0.4vw, 0.65rem);
  border-radius: clamp(0.65rem, 0.55rem + 0.3vw, 0.8rem);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-family: "Oxanium", sans-serif;
}

.incident-colorbar-title {
  color: #f8fafc;
  font-size: clamp(0.62rem, 0.56rem + 0.2vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.incident-colorbar-context {
  margin-top: 0.25rem;
  margin-bottom: clamp(0.45rem, 0.35rem + 0.3vw, 0.65rem);
  color: rgba(241, 245, 249, 0.8);
  font-size: clamp(0.66rem, 0.58rem + 0.2vw, 0.76rem);
}

.incident-colorbar-track {
  height: clamp(0.65rem, 0.56rem + 0.25vw, 0.88rem);
  border-radius: 999px;
  border: 0px solid rgba(255, 255, 255, 0.2);
  background: #386641;
}

.incident-colorbar-ticks {
  margin-top: 0.35rem;
  display: flex;
  justify-content: space-between;
  color: #f8fafc;
  font-size: clamp(0.62rem, 0.56rem + 0.2vw, 0.75rem);
  font-variant-numeric: tabular-nums;
}

.mobile-warning-overlay {
  display: none;
}

@media (max-width: 1200px) {
  .desktop-only-content {
    display: none;
  }

  .mobile-warning-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    background:
      radial-gradient(circle at 20% 20%, rgba(198, 40, 40, 0.25), transparent 45%),
      radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.18), transparent 40%),
      #020617;
  }

  .mobile-warning-card {
    max-width: 26.25rem;
    width: 100%;
    padding: clamp(1rem, 0.85rem + 0.8vw, 1.5rem);
    border-radius: clamp(0.8rem, 0.7rem + 0.4vw, 1rem);
    border: 1px solid rgba(248, 250, 252, 0.2);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    font-family: "Oxanium", sans-serif;
  }

  .mobile-warning-title {
    margin: 0 0 0.6rem;
    color: #f8fafc;
    font-size: clamp(1.35rem, 1.12rem + 1.3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .mobile-warning-text {
    margin: 0;
    color: rgba(248, 250, 252, 0.88);
    font-size: clamp(0.88rem, 0.8rem + 0.3vw, 0.96rem);
    line-height: 1.45;
  }

  .mobile-warning-text + .mobile-warning-text {
    margin-top: 0.6rem;
  }
}