:root {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text: #f8fafc;
  --subtitle: #94a3b8;
  --admin-color: #2563eb;
  --atlas-color: #16a34a;
  /* Darkened from #db2777 to meet WCAG AA contrast (>= 4.5:1) for white text */
  --spark-color: #be185d;
  --focus-ring: #93c5fd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.launcher {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  max-width: 480px;
  width: 90%;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.subtitle {
  margin: 0 0 2rem;
  color: var(--subtitle);
  font-size: 0.95rem;
}

.button-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.launch-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
}

.button-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.button-desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.external-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.85;
}

.launch-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.launch-button:active {
  transform: translateY(0);
}

.launch-button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.footer-note {
  margin: 1.75rem 0 0;
  color: var(--subtitle);
  font-size: 0.8rem;
}

.admin-portal {
  background: var(--admin-color);
}

.atlas {
  background: var(--atlas-color);
}

.spark {
  background: var(--spark-color);
}

@media (max-width: 400px) {
  .launcher {
    padding: 2rem 1.25rem;
  }

  .button-title {
    font-size: 0.95rem;
  }

  .button-desc {
    font-size: 0.75rem;
  }
}
