:root {
  color-scheme: dark;
  --bg:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.14), transparent 30%),
    linear-gradient(180deg, #020817 0%, #01040b 100%);
  --card: linear-gradient(180deg, #07111f 0%, #06101d 100%);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --primary: #7ea8ff;
  --primary-rgb: 126, 168, 255;
  --brand: #c19a2e;
  --danger: #ff6b6b;

  --input-bg: rgba(7, 17, 31, 0.92);
  --choice-bg: rgba(7, 17, 31, 0.92);

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;

  --theme-pills-bg: rgba(15, 23, 42, 0.72);
  --theme-pills-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);

  --region-chip-border: rgba(126, 168, 255, 0.34);
  --region-chip-bg: linear-gradient(180deg, rgba(10, 28, 52, 0.98), rgba(7, 21, 39, 0.98));
  --region-chip-bg-hover: linear-gradient(180deg, rgba(12, 34, 62, 1), rgba(8, 24, 44, 1));
  --region-chip-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 rgba(126, 168, 255, 0),
    0 8px 24px rgba(0, 0, 0, 0.18);
  --region-chip-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 28px rgba(126, 168, 255, 0.16),
    0 10px 28px rgba(0, 0, 0, 0.22);

  --globe-sphere-glow-inner: rgba(29, 78, 216, 0.24);
  --globe-sphere-core: rgba(8, 22, 44, 0.96);
  --globe-sphere-outer: rgba(3, 10, 22, 1);
  --globe-grid-stroke: rgba(126, 168, 255, 0.10);
  --globe-land-fill: rgba(126, 168, 255, 0.22);
  --globe-land-stroke: rgba(126, 168, 255, 0.18);
  --globe-outline-stroke: rgba(148, 163, 184, 0.18);

  --globe-region-border: rgba(var(--primary-rgb), 0.46);
  --globe-region-fill: rgba(var(--primary-rgb), 0.09);
  --globe-region-glow: rgba(var(--primary-rgb), 0.16);
  --globe-hit-fill-active: rgba(var(--primary-rgb), 0.24);
  --globe-hit-border-active: rgba(var(--primary-rgb), 0.94);
  --globe-hit-glow-active: rgba(var(--primary-rgb), 0.34);
}

html[data-theme="system"] {
  color-scheme: dark;
  --bg:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.14), transparent 30%),
    linear-gradient(180deg, #020817 0%, #01040b 100%);
  --card: linear-gradient(180deg, #07111f 0%, #06101d 100%);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --primary: #7ea8ff;
  --primary-rgb: 126, 168, 255;
  --danger: #ff6b6b;
  --input-bg: rgba(7, 17, 31, 0.92);
  --choice-bg: rgba(7, 17, 31, 0.92);

  --theme-pills-bg: rgba(15, 23, 42, 0.72);
  --theme-pills-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);

  --region-chip-border: rgba(126, 168, 255, 0.34);
  --region-chip-bg: linear-gradient(180deg, rgba(10, 28, 52, 0.98), rgba(7, 21, 39, 0.98));
  --region-chip-bg-hover: linear-gradient(180deg, rgba(12, 34, 62, 1), rgba(8, 24, 44, 1));

  --globe-sphere-glow-inner: rgba(29, 78, 216, 0.24);
  --globe-sphere-core: rgba(8, 22, 44, 0.96);
  --globe-sphere-outer: rgba(3, 10, 22, 1);
  --globe-grid-stroke: rgba(126, 168, 255, 0.10);
  --globe-land-fill: rgba(126, 168, 255, 0.22);
  --globe-land-stroke: rgba(126, 168, 255, 0.18);
  --globe-outline-stroke: rgba(148, 163, 184, 0.18);

  --globe-region-border: rgba(var(--primary-rgb), 0.46);
  --globe-region-fill: rgba(var(--primary-rgb), 0.09);
  --globe-region-glow: rgba(var(--primary-rgb), 0.16);
  --globe-hit-fill-active: rgba(var(--primary-rgb), 0.24);
  --globe-hit-border-active: rgba(var(--primary-rgb), 0.94);
  --globe-hit-glow-active: rgba(var(--primary-rgb), 0.34);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06080c;
  --card: #0d1118;
  --text: #e6e9ef;
  --muted: #aab2c0;
  --border: #2b3345;
  --primary: #b38f45;
  --primary-rgb: 180, 138, 58;

  --theme-pills-bg: rgba(9, 12, 18, 0.88);
  --theme-pills-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);

  --region-chip-border: rgba(179, 143, 69, 0.34);
  --region-chip-bg: linear-gradient(180deg, rgba(24, 19, 10, 0.98), rgba(17, 13, 8, 0.98));
  --region-chip-bg-hover: linear-gradient(180deg, rgba(31, 24, 12, 1), rgba(22, 17, 9, 1));
  --region-chip-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 rgba(179, 143, 69, 0),
    0 8px 24px rgba(0, 0, 0, 0.22);
  --region-chip-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 24px rgba(179, 143, 69, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.24);

  --globe-sphere-glow-inner: rgba(179, 143, 69, 0.16);
  --globe-sphere-core: rgba(17, 14, 10, 0.96);
  --globe-sphere-outer: rgba(7, 6, 5, 1);
  --globe-grid-stroke: rgba(179, 143, 69, 0.10);
  --globe-land-fill: rgba(179, 143, 69, 0.18);
  --globe-land-stroke: rgba(179, 143, 69, 0.18);
  --globe-outline-stroke: rgba(170, 178, 192, 0.14);

  --globe-region-border: rgba(var(--primary-rgb), 0.44);
  --globe-region-fill: rgba(var(--primary-rgb), 0.085);
  --globe-region-glow: rgba(var(--primary-rgb), 0.15);
  --globe-hit-fill-active: rgba(var(--primary-rgb), 0.20);
  --globe-hit-border-active: rgba(var(--primary-rgb), 0.92);
  --globe-hit-glow-active: rgba(var(--primary-rgb), 0.30);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f4f8;
  --card: #fbfcfe;
  --text: #1c2433;
  --muted: #5f6b7a;
  --border: #e3e8f0;
  --primary: #4f7cff;
  --primary-rgb: 79, 124, 255;
  --danger: #e5484d;
  --input-bg: #ffffff;
  --choice-bg: #ffffff;

  --shadow: 0 16px 48px rgba(15, 23, 42, 0.10);

  --theme-pills-bg: rgba(255, 255, 255, 0.88);
  --theme-pills-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);

  --region-chip-border: rgba(79, 124, 255, 0.24);
  --region-chip-bg: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 249, 255, 1));
  --region-chip-bg-hover: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(238, 244, 255, 1));
  --region-chip-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 4px 16px rgba(15, 23, 42, 0.06);
  --region-chip-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 24px rgba(79, 124, 255, 0.10);

  --globe-sphere-glow-inner: rgba(79, 124, 255, 0.10);
  --globe-sphere-core: rgba(231, 239, 252, 0.98);
  --globe-sphere-outer: rgba(209, 221, 243, 1);
  --globe-grid-stroke: rgba(79, 124, 255, 0.16);
  --globe-land-fill: rgba(79, 124, 255, 0.18);
  --globe-land-stroke: rgba(79, 124, 255, 0.24);
  --globe-outline-stroke: rgba(95, 107, 122, 0.16);

  --globe-region-border: rgba(var(--primary-rgb), 0.34);
  --globe-region-fill: rgba(var(--primary-rgb), 0.11);
  --globe-region-glow: rgba(var(--primary-rgb), 0.12);
  --globe-hit-fill-active: rgba(var(--primary-rgb), 0.18);
  --globe-hit-border-active: rgba(var(--primary-rgb), 0.88);
  --globe-hit-glow-active: rgba(var(--primary-rgb), 0.24);
}

html[data-theme="soft"] {
  color-scheme: dark;
  --bg: #0f1412;
  --card: #161d18;
  --text: #e6efe9;
  --muted: #9fb3a8;
  --border: #26322c;
  --primary: #4dbd88;
  --primary-rgb: 77, 189, 136;
  --danger: #ff6b6b;
  --input-bg: #121814;
  --choice-bg: #121814;

  --theme-pills-bg: rgba(14, 20, 17, 0.84);
  --theme-pills-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);

  --region-chip-border: rgba(77, 189, 136, 0.28);
  --region-chip-bg: linear-gradient(180deg, rgba(18, 30, 24, 0.98), rgba(15, 24, 20, 0.98));
  --region-chip-bg-hover: linear-gradient(180deg, rgba(21, 36, 28, 1), rgba(17, 27, 23, 1));
  --region-chip-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 rgba(77, 189, 136, 0),
    0 8px 24px rgba(0, 0, 0, 0.18);
  --region-chip-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 24px rgba(77, 189, 136, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.22);

  --globe-sphere-glow-inner: rgba(77, 189, 136, 0.16);
  --globe-sphere-core: rgba(13, 31, 24, 0.96);
  --globe-sphere-outer: rgba(8, 18, 14, 1);
  --globe-grid-stroke: rgba(77, 189, 136, 0.10);
  --globe-land-fill: rgba(77, 189, 136, 0.18);
  --globe-land-stroke: rgba(77, 189, 136, 0.18);
  --globe-outline-stroke: rgba(159, 179, 168, 0.14);

  --globe-region-border: rgba(var(--primary-rgb), 0.42);
  --globe-region-fill: rgba(var(--primary-rgb), 0.09);
  --globe-region-glow: rgba(var(--primary-rgb), 0.14);
  --globe-hit-fill-active: rgba(var(--primary-rgb), 0.20);
  --globe-hit-border-active: rgba(var(--primary-rgb), 0.90);
  --globe-hit-glow-active: rgba(var(--primary-rgb), 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 56px 16px 24px;
}

.card {
  width: 100%;
  max-width: 700px;
  min-height: 470px;
  padding: 14px 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card {
  position: relative;
}

@media (min-width: 641px) {
  .header {
    position: relative;
    padding-right: 286px;
  }

  .header-right {
    position: absolute;
    top: 0px;
    right: 0px;
    margin-left: 0;
    width: auto;
  }
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
  color: var(--brand);
}

.header-left {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.content {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.25rem, 3.6vw, 1.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}

.globe-stage {
  display: grid;
  place-items: center;
  min-height: 290px;
  margin-top: 4px;
}

.globe-root {
  width: min(100%, 430px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.globe-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.region-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.region-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--region-chip-border);
  border-radius: 999px;
  background: var(--region-chip-bg);
  color: var(--text);
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--region-chip-shadow);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.region-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.42);
  flex: 0 0 auto;
}

.region-chip:hover,
.region-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--primary-rgb), 0.48);
  background: var(--region-chip-bg-hover);
  box-shadow: var(--region-chip-shadow-hover);
  outline: none;
}

.at-legal-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-size: 12px;
  opacity: 0.78;
}

#js-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.at-legal-footer a {
  color: inherit;
  text-decoration: none;
  margin: 0 4px;
}

.at-legal-footer a:hover {
  opacity: 0.95;
  text-decoration: underline;
}

.at-legal-sep {
  margin: 0 4px;
  opacity: 0.7;
}

.at-powered {
  display: block;
  font-size: 11px;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .page {
    padding: 16px;
  }

  .card {
    max-width: 390px;
    min-height: 620px;
    padding: 12px 14px 18px;
  }

  .header-right {
    width: 100%;
    justify-content: center;
  }

  .content {
    gap: 16px;
    padding-top: 6px;
  }

  .globe-stage {
    min-height: 300px;
  }

  .globe-root {
    width: min(100%, 280px);
  }

  .region-actions {
    gap: 8px;
  }

  .region-chip {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .region-chip {
    transition: none;
  }
}