:root {
  --ink: #1f2933;
  --muted: #687a86;
  --teal: #008b93;
  --cyan: #26c6da;
  --orange: #f5824a;
  --line: rgba(0, 139, 147, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 15%, rgba(38, 198, 218, 0.18), transparent 26rem),
    linear-gradient(180deg, #fff 0%, #f1f8f8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1320px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 24px 0 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand p,
.card-head p {
  margin: 0 0 3px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1;
}

.back-link {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.intro {
  max-width: 760px;
  margin: 22px 0 18px;
  color: #4a5f6d;
  font-size: 15px;
  line-height: 1.45;
}

.intro p {
  margin: 0;
}

.section-head {
  margin: 22px 0 14px;
}

.section-head p {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.section-head--experiments {
  margin-top: 34px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

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

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(21, 70, 80, 0.12);
}

.card-head {
  min-height: 82px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.card-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.card-head strong {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(0, 139, 147, 0.08);
  font-size: 12px;
}

canvas {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  background: #eefafa;
}

.map-card footer {
  min-height: 48px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.mode-launcher {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(21, 70, 80, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.mode-launcher p {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-launcher h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1;
}

.mode-launcher span {
  display: block;
  max-width: 760px;
  color: #4a5f6d;
  font-size: 14px;
  line-height: 1.45;
}

.mode-launcher nav {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.mode-launcher a {
  height: 38px;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 7px;
  color: #536977;
  background: rgba(0, 139, 147, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.mode-launcher a:hover {
  color: #fff;
  background: var(--teal);
}

.mode-launcher--desktop {
  background:
    linear-gradient(135deg, rgba(0, 139, 147, 0.1), rgba(245, 130, 74, 0.08)),
    rgba(255, 255, 255, 0.9);
}

.mode-launcher--desktop h2 {
  color: #17232b;
}

.mode-launcher--desktop a:first-child {
  min-width: 132px;
  color: #fff;
  background: var(--teal);
}

.mode-launcher--desktop a:first-child:hover {
  background: #006f76;
}

.mode-launcher--unreal {
  border-color: rgba(245, 130, 74, 0.28);
}

.mode-launcher--unreal p {
  color: #b95320;
}

.mode-launcher--research {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.58);
}

.mode-launcher--research h2 {
  font-size: 25px;
}

.mode-launcher--research a {
  min-width: 126px;
}
@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .mode-launcher {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-launcher nav {
    overflow-x: auto;
    width: 100%;
  }
}
