.site-launcher,
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  transition: opacity 360ms ease, visibility 360ms ease, transform 420ms ease;
}

.site-launcher[hidden],
.site-loader[hidden] {
  display: none;
}

.site-launcher {
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.2), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(255, 42, 109, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(90, 111, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(5, 9, 20, 0.97), rgba(12, 17, 34, 0.96));
  backdrop-filter: blur(18px);
}

.site-launcher::before,
.site-launcher::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-launcher::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
  opacity: 0.35;
}

.site-launcher::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: launcher-scan 5.5s linear infinite;
  opacity: 0.55;
}

.launcher-shell {
  position: relative;
  width: min(1220px, 100%);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(9, 14, 28, 0.92), rgba(12, 18, 34, 0.85)),
    radial-gradient(circle at top, rgba(90, 111, 255, 0.12), transparent 38%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  isolation: isolate;
}

.launcher-shell::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 31px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.launcher-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.launcher-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 13, 27, 0.62);
  color: #9eefff;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.launcher-kicker::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #00f0ff, #5a6fff);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
}

.launcher-title {
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  max-width: 10ch;
  color: #f4f7ff;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.launcher-summary {
  max-width: 62ch;
  color: rgba(224, 231, 255, 0.78);
  font-size: 1.02rem;
}

.launcher-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.launcher-mobile-nav {
  display: none;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 1rem;
}

.launcher-mobile-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 15, 28, 0.78);
  color: #eef4ff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.launcher-mobile-arrow:hover,
.launcher-mobile-arrow:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 240, 255, 0.26);
  outline: none;
}

.launcher-mobile-arrow:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.launcher-mobile-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex: 1;
}

.launcher-mobile-dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.launcher-mobile-dot:hover,
.launcher-mobile-dot:focus-visible {
  background: rgba(255, 255, 255, 0.45);
  outline: none;
}

.launcher-mobile-dot.is-active {
  transform: scale(1.18);
  background: linear-gradient(135deg, #00f0ff, #5a6fff);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.38);
}

.launcher-card {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 360px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(13, 20, 38, 0.92), rgba(8, 13, 25, 0.96)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 30%);
  color: #f5f7ff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: launcher-card-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.launcher-card:nth-child(2) {
  animation-delay: 90ms;
}

.launcher-card:nth-child(3) {
  animation-delay: 180ms;
}

.launcher-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, var(--card-glow), transparent 42%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 52%);
  opacity: 0.95;
  pointer-events: none;
}

.launcher-card::after {
  content: '';
  position: absolute;
  inset: auto 1.25rem 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.launcher-card:hover,
.launcher-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  outline: none;
}

.launcher-card[data-site="warframe"] {
  --card-glow: rgba(0, 240, 255, 0.24);
}

.launcher-card[data-site="starcitizen"] {
  --card-glow: rgba(255, 176, 107, 0.22);
}

.launcher-card[data-site="nms"] {
  --card-glow: rgba(117, 224, 183, 0.22);
}

.launcher-card-top,
.launcher-card-body,
.launcher-card-footer {
  position: relative;
  z-index: 1;
}

.launcher-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.launcher-site-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.launcher-route-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(4, 11, 24, 0.52);
  color: rgba(231, 236, 255, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launcher-card-body h2 {
  font-size: 1.8rem;
  margin-bottom: 0.55rem;
}

.launcher-card-body p {
  color: rgba(232, 237, 255, 0.76);
}

.launcher-detail-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  color: rgba(241, 245, 255, 0.9);
}

.launcher-detail-list li {
  list-style: none;
  padding-left: 1rem;
  position: relative;
  font-size: 0.95rem;
}

.launcher-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.launcher-card[data-site="warframe"] .launcher-detail-list li::before {
  color: #00f0ff;
}

.launcher-card[data-site="starcitizen"] .launcher-detail-list li::before {
  color: #ffb06b;
}

.launcher-card[data-site="nms"] .launcher-detail-list li::before {
  color: #75e0b7;
}

.launcher-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(244, 247, 255, 0.88);
}

.launcher-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.launcher-cta::after {
  content: '>';
  font-size: 1rem;
  transition: transform 180ms ease;
}

.launcher-card:hover .launcher-cta::after,
.launcher-card:focus-visible .launcher-cta::after {
  transform: translateX(4px);
}

.launcher-note {
  font-size: 0.88rem;
  color: rgba(216, 224, 244, 0.66);
  text-align: right;
}

.launcher-switcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 4200;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 15, 28, 0.82);
  color: #ebf3ff;
  padding: 0.8rem 1.05rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.launcher-switcher:hover,
.launcher-switcher:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.26);
  outline: none;
}

.launcher-switcher[hidden] {
  display: none;
}

.site-loader {
  background:
    radial-gradient(circle at center, rgba(90, 111, 255, 0.18), transparent 26%),
    rgba(3, 8, 18, 0.92);
  backdrop-filter: blur(16px);
}

.site-loader.is-visible {
  opacity: 1;
  visibility: visible;
}

.site-loader-panel {
  width: min(540px, 100%);
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 18, 34, 0.95), rgba(8, 14, 27, 0.94));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.site-loader-panel h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.35rem;
}

.site-loader-panel p {
  color: rgba(222, 230, 247, 0.72);
}

.site-loader-stage {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #97dbff;
}

.site-loader-bar {
  position: relative;
  height: 0.9rem;
  margin-top: 1rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.site-loader-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--loader-progress, 16%);
  border-radius: inherit;
  background: linear-gradient(90deg, #00f0ff, #5a6fff, #ff2a6d);
  box-shadow: 0 0 24px rgba(90, 111, 255, 0.38);
  transition: width 240ms ease;
}

.site-loader-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  color: rgba(227, 234, 250, 0.68);
  font-size: 0.86rem;
}

body.launcher-active .container {
  filter: blur(14px) saturate(0.88);
  transform: scale(1.02);
  pointer-events: none;
}

body.launcher-active {
  overflow: hidden;
}

body.launcher-exiting .site-launcher {
  opacity: 0;
  transform: scale(1.03);
}

@keyframes launcher-card-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes launcher-scan {
  from {
    transform: translateX(-100%);
  }

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

@media (max-width: 980px) {
  .launcher-grid {
    grid-template-columns: 1fr;
  }

  .launcher-card {
    min-height: 0;
  }

  .launcher-note {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-launcher {
    align-items: stretch;
    overflow-y: auto;
  }

  .launcher-shell {
    margin: auto 0;
  }

  .launcher-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(calc(100% - 2.5rem), 100%);
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 0.15rem 0.45rem;
    margin: 0 -0.15rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .launcher-grid::-webkit-scrollbar {
    display: none;
  }

  .launcher-card {
    min-height: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .launcher-mobile-nav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .launcher-shell,
  .site-loader-panel {
    padding: 1.2rem;
    border-radius: 24px;
  }

  .launcher-title {
    max-width: none;
  }

  .launcher-card {
    padding: 1.05rem;
    border-radius: 22px;
  }

  .launcher-card-top {
    gap: 0.75rem;
  }

  .launcher-card-body h2 {
    font-size: 1.55rem;
  }

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

  .launcher-switcher {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-launcher,
  .site-loader,
  .launcher-card,
  .launcher-card::after,
  .launcher-switcher,
  .site-loader-fill,
  body.launcher-active .container {
    transition: none;
    animation: none;
  }

  .site-launcher::after {
    animation: none;
  }
}
