:root {
  --origin-green: #034b33;
  --glow-diameter: 620px;
  --glow-opacity: 0.78;
  --glow-blur: 34px;
  --origin-green-deep: #012f21;
  --origin-cream: #f5f1e8;
  --origin-white: #ffffff;
  --origin-muted: rgba(245, 241, 232, 0.74);
  --panel-bg: rgba(1, 47, 33, 0.68);
  --panel-border: rgba(245, 241, 232, 0.15);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --brand-filter: brightness(0) invert(1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--origin-cream);
  background: #000;
  font-family: var(--font);
}

button,
a {
  font: inherit;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 241, 232, 0.045), transparent 42rem),
    #000;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(245, 241, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 232, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
  pointer-events: none;
}

.map-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.globe-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: var(--glow-diameter);
  height: var(--glow-diameter);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(3, 75, 51, var(--glow-opacity)) 0%, rgba(3, 75, 51, calc(var(--glow-opacity) * 0.62)) 32%, rgba(3, 75, 51, calc(var(--glow-opacity) * 0.24)) 55%, rgba(3, 75, 51, 0) 74%);
  filter: blur(var(--glow-blur));
  pointer-events: none;
  transition:
    width 220ms linear,
    height 220ms linear,
    opacity 220ms linear,
    filter 220ms linear;
}

.world-map {
  position: relative;
  z-index: 1;
}

.world-map {
  width: 100%;
  height: 100%;
  display: block;
}

.globe-sphere {
  fill: rgba(245, 241, 232, 0.035);
  stroke: rgba(245, 241, 232, 0.18);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.globe-graticule {
  fill: none;
  stroke: rgba(245, 241, 232, 0.09);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.globe-country,
.country {
  fill: rgba(245, 241, 232, 0.105);
  stroke: rgba(245, 241, 232, 0.16);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
  transition: fill 260ms ease, stroke 260ms ease;
}

.country.is-active {
  fill: rgba(245, 241, 232, 0.21);
  stroke: rgba(245, 241, 232, 0.38);
}

.country.is-clickable {
  cursor: pointer;
  pointer-events: auto;
}

.country.is-clickable:hover,
.country.is-clickable:focus {
  fill: rgba(245, 241, 232, 0.18);
  stroke: rgba(245, 241, 232, 0.34);
  outline: none;
}

.route {
  fill: none;
  stroke: rgba(245, 241, 232, 0.52);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 8;
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(245, 241, 232, 0.30));
}

.map-dot {
  fill: rgba(245, 241, 232, 0.74);
  stroke: rgba(245, 241, 232, 0.72);
  vector-effect: non-scaling-stroke;
  transition: opacity 240ms ease, fill 240ms ease, stroke 240ms ease;
  cursor: pointer;
  pointer-events: auto;
}

.map-dot:hover,
.map-dot:focus {
  fill: var(--origin-white);
  stroke: var(--origin-white);
  outline: none;
}

.map-dot.is-active {
  fill: var(--origin-white);
  opacity: 1;
}

.orb-glow {
  fill: rgba(245, 241, 232, 0.16);
  filter: url(#orbBlur);
  pointer-events: none;
}

.orb {
  fill: var(--origin-white);
  filter:
    drop-shadow(0 0 7px rgba(245, 241, 232, 0.95))
    drop-shadow(0 0 22px rgba(86, 255, 183, 0.82));
  pointer-events: none;
}

.dds-label {
  fill: rgba(245, 241, 232, 0.34);
  stroke: rgba(1, 47, 33, 0.28);
  stroke-linejoin: round;
  paint-order: stroke;
  font-size: 7.8px;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  text-transform: uppercase;
  user-select: none;
  filter: drop-shadow(0 0 4px rgba(245, 241, 232, 0.08));
}

.brand-name {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  z-index: 4;
  width: clamp(190px, 24vw, 390px);
  height: auto;
  filter: var(--brand-filter);
  opacity: 0.94;
}

.legal-top-link {
  position: absolute;
  top: calc(clamp(1rem, 3vw, 2rem) + clamp(44px, 6.4vw, 96px));
  left: clamp(1rem, 3vw, 2rem);
  z-index: 4;
  border: 0;
  padding: 0.25rem 0;
  color: rgba(245, 241, 232, 0.68);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.32em;
  cursor: pointer;
}

.legal-top-link:hover,
.legal-top-link:focus-visible {
  color: var(--origin-white);
}

.transfer-log {
  display: none;
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 4;
  width: min(28vw, 380px);
  max-height: min(68vh, 620px);
  overflow: auto;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  color: rgba(245, 241, 232, 0.76);
}

.transfer-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--origin-white);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.transfer-log-section {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.transfer-log-label {
  color: rgba(245, 241, 232, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.transfer-log ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
  min-width: 0;
}

.transfer-log-queue {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.35rem !important;
  max-height: 8.6rem;
  overflow: auto;
  padding-right: 0.15rem !important;
}

.transfer-log-queue li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.42rem;
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.08);
  color: rgba(245, 241, 232, 0.76);
  font-size: 0.78rem;
}

.transfer-log-queue li.is-queued {
  background: rgba(245, 241, 232, 0.14);
  color: rgba(245, 241, 232, 0.92);
}

.transfer-log-step {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.12);
  color: rgba(245, 241, 232, 0.58);
  font-size: 0.62rem;
  font-weight: 700;
}

.transfer-log-queue img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 3px;
}

.transfer-log-transfers {
  max-height: 320px;
  overflow: hidden;
}

.transfer-log-transfers li {
  min-width: 0;
  padding: 0.48rem 0.55rem;
  border-radius: 13px;
  background: rgba(245, 241, 232, 0.065);
}

.transfer-log-route {
  color: rgba(245, 241, 232, 0.86);
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
}

.transfer-log-route span {
  color: rgba(245, 241, 232, 0.42);
  padding-inline: 0.2rem;
}

.transfer-log-dds {
  margin-top: 0.22rem;
  color: rgba(245, 241, 232, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.34;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transfer-log .is-muted {
  color: rgba(245, 241, 232, 0.42);
  font-size: 0.78rem;
  font-style: italic;
  background: transparent;
  padding: 0;
}

.message-panel {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 4;
  width: min(92vw, 570px);
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.message-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(0.85rem, 2vw, 1rem);
  align-items: start;
}

.message-row[dir="rtl"] {
  grid-template-columns: 1fr auto;
}

.message-row[dir="rtl"] .flag {
  order: 2;
}

.message-row[dir="rtl"] .message-copy {
  order: 1;
  text-align: right;
}

.flag {
  width: clamp(42px, 7vw, 58px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(245, 241, 232, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

.message-copy {
  min-width: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.message-copy.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.headline {
  margin: 0;
  color: var(--origin-white);
  font-size: clamp(1.55rem, 4vw, 3.2rem);
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.subline {
  margin: 0.55rem 0 0;
  color: var(--origin-muted);
  font-size: clamp(1rem, 1.65vw, 1.22rem);
  line-height: 1.42;
  text-wrap: balance;
}

.control-button {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 999px;
  padding: 0.85rem 1.05rem;
  color: var(--origin-cream);
  background: rgba(1, 47, 33, 0.78);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.control-button:hover,
.control-button:focus-visible {
  background: rgba(3, 75, 51, 0.95);
}

.control-icon {
  width: 1.15em;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.map-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-items: center;
  padding: 2rem;
  color: var(--origin-muted);
  text-align: center;
}

.map-error.is-visible {
  display: grid;
}

dialog {
  width: min(92vw, 720px);
  max-height: min(82dvh, 760px);
  overflow: auto;
  color: #10241b;
  background: #fffaf0;
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.45);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(5px);
}

.dialog-inner {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(16, 36, 27, 0.12);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.dialog-header h2 {
  margin: 0;
  color: var(--origin-green);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.close-button {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(16, 36, 27, 0.15);
  border-radius: 999px;
  color: #10241b;
  background: transparent;
  cursor: pointer;
}

.imprint-content {
  display: grid;
  gap: 0.95rem;
  font-size: 0.98rem;
  line-height: 1.58;
}

.imprint-content h3 {
  margin: 0.55rem 0 0;
  color: var(--origin-green);
  font-size: 1.05rem;
}

.imprint-content p {
  margin: 0;
}

.imprint-content a {
  color: var(--origin-green);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  overflow: auto;
  color: var(--origin-cream);
  background:
    radial-gradient(circle at 52% 42%, rgba(3, 75, 51, 0.62), transparent 34rem),
    #000;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-card {
  width: min(calc(100vw - 2.5rem), 420px);
  margin: auto;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 28px;
  background: rgba(1, 47, 33, 0.58);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  text-align: center;
}

.preloader-logo {
  width: min(66vw, 260px);
  height: auto;
  filter: var(--brand-filter);
  opacity: 0.95;
}

.preloader-orb {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.95);
  box-shadow:
    0 0 12px rgba(245, 241, 232, 0.72),
    0 0 32px rgba(86, 255, 183, 0.66);
  animation: pulseOrb 1.45s ease-in-out infinite;
}

.preloader-text {
  display: grid;
  gap: 0.25rem;
  color: rgba(245, 241, 232, 0.78);
  font-size: 0.95rem;
  line-height: 1.45;
}

.preloader-title {
  color: var(--origin-white);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.preloader-progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.12);
}

.preloader-progress-bar {
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: rgba(245, 241, 232, 0.76);
  animation: loadingBar 1.35s ease-in-out infinite;
}

@keyframes pulseOrb {
  0%, 100% {
    transform: scale(0.88);
    opacity: 0.68;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes loadingBar {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(290%);
  }
}

@media (min-width: 1025px) {
  .transfer-log {
    display: grid;
  }
}

@media (max-width: 820px) {
  .stage {
    min-height: 640px;
  }

  .brand-name {
    width: clamp(170px, 44vw, 260px);
  }

  .legal-top-link {
    font-size: 0.88rem;
  }

  .message-panel {
    right: clamp(1rem, 3vw, 2rem);
    bottom: 5.7rem;
    width: auto;
  }

  .control-button {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 520px) {
  .preloader-card {
    gap: 0.85rem;
    padding: 1.15rem;
    border-radius: 22px;
  }

  .preloader-logo {
    width: min(72vw, 230px);
  }

  .preloader-orb {
    width: 36px;
    height: 36px;
  }

  .message-row {
    grid-template-columns: 1fr;
  }

  .message-row[dir="rtl"] {
    justify-items: stretch;
  }

  .message-row[dir="rtl"] .flag {
    order: 1;
  }

  .message-row[dir="rtl"] .message-copy {
    order: 2;
  }

  .flag {
    width: 44px;
  }

  .headline {
    letter-spacing: -0.035em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route {
    display: none;
  }

  .message-copy {
    transition: none;
  }
}
