:root {
  --bg: #05080f;
  --bg2: #0b1220;
  --panel: rgba(14, 20, 32, .76);
  --panel2: rgba(18, 26, 40, .92);
  --line: rgba(255, 255, 255, .10);
  --text: #eef4ff;
  --muted: #a8b4c7;
  --accent: #7dd3fc;
  --accent2: #c4b5fd;
  --good: #86efac;
  --warn: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, .46);
  --radius: 24px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(125, 211, 252, .16), transparent 30%),
    radial-gradient(circle at 15% 18%, rgba(196, 181, 253, .12), transparent 22%),
    radial-gradient(circle at 90% 10%, rgba(251, 191, 36, .08), transparent 20%),
    linear-gradient(180deg, #051019 0%, #070d16 50%, #04060a 100%);
  overflow-x: hidden;
}

.window-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(255, 255, 255, .85) 11% 12%, transparent 12% 23%, rgba(255, 255, 255, .85) 23% 24%, transparent 24% 100%),
    linear-gradient(180deg, transparent 0 24%, rgba(255, 255, 255, .85) 24% 25%, transparent 25% 49%, rgba(255, 255, 255, .85) 49% 50%, transparent 50% 74%, rgba(255, 255, 255, .85) 74% 75%, transparent 75% 100%);
  background-size: 260px 260px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 76%);
}

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 18px 48px;
  position: relative;
  z-index: 1
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 12, 20, .74);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.orb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent), var(--accent2), #f9a8d4, var(--accent));
  box-shadow: 0 0 24px rgba(125, 211, 252, .36);
  flex: 0 0 auto;
}

.brand h1 {
  margin: 0;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase
}

.brand p {
  margin: 0;
  font-size: 12px;
  color: var(--muted)
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: .2s;
}

.nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, .05)
}

.hero {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.35fr .95fr;
  gap: 18px;
  align-items: stretch;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-main {
  padding: 28px
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 12px rgba(134, 239, 172, .5);
}

.hero h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -.04em
}

.hero h2 .accent {
  color: var(--accent)
}

.hero p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.85;
  max-width: 72ch;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  transition: .18s;
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .08)
}

.btn.primary {
  background: linear-gradient(135deg, rgba(125, 211, 252, .18), rgba(196, 181, 253, .18));
  border-color: rgba(125, 211, 252, .22)
}

.hero-side {
  padding: 20px;
  display: grid;
  gap: 12px
}

.mini-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--panel2);
  border: 1px solid var(--line);
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 14px
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px
}

.stat {
  padding: 14px 10px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line)
}

.stat b {
  display: block;
  font-size: 20px
}

.stat span {
  font-size: 12px;
  color: var(--muted)
}

.controls {
  margin-top: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.field label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase
}

input,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 13, 21, .90);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

input::placeholder {
  color: #7b8796
}

.section {
  margin-top: 20px
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 18px 4px 14px;
}

.section-head h3 {
  margin: 0;
  font-size: 18px
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 250px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 27, 42, .90), rgba(7, 11, 18, .95));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, .26)
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .22;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.badge {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}

.card h4 {
  margin: 0;
  font-size: 20px
}

.card .jp {
  color: var(--muted);
  font-size: 13px;
  margin-top: -6px
}

.card .desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
  flex: 1
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}

.linkbtn:hover {
  background: rgba(255, 255, 255, .08)
}

.hint {
  font-size: 12px;
  color: var(--muted)
}

.status {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  width: max-content;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .04);
}

.status.green {
  color: #9ef0b8
}

.status.blue {
  color: #8fd6ff
}

.status.pink {
  color: #f8b4f8
}

.status.amber {
  color: #f6d06f
}

.status.red {
  color: #ff9ca8
}

.world-map {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.world-map .panel {
  padding: 18px
}

.world-map ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px
}

.world-map li {
  padding: 14px 14px 14px 16px;
  border-left: 3px solid rgba(125, 211, 252, .35);
  background: rgba(255, 255, 255, .03);
  border-radius: 0 16px 16px 0;
}

.world-map li b {
  display: block;
  margin-bottom: 6px
}

.world-map li p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px
}

.footer {
  margin-top: 18px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(14, 22, 35, .90), rgba(4, 6, 11, .98));
  transition: opacity .45s ease, visibility .45s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden
}

.loader-box {
  width: min(560px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(12, 18, 28, .78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.loader-top {
  display: flex;
  align-items: center;
  gap: 14px
}

.loader-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .09);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.loader h2 {
  margin: 0;
  font-size: 20px
}

.loader p {
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.7
}

.bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}

.bar>i {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  animation: load 2.2s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

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

  50% {
    transform: translateX(220%)
  }

  100% {
    transform: translateX(420%)
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr
  }

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

  .world-map {
    grid-template-columns: 1fr
  }

  .controls {
    grid-template-columns: 1fr
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 14px 12px 34px
  }

  .topbar {
    border-radius: 22px;
    padding: 14px
  }

  .nav {
    justify-content: flex-start
  }

  .hero-main {
    padding: 20px
  }

  .grid {
    grid-template-columns: 1fr
  }

  .stats {
    grid-template-columns: 1fr
  }
}