:root {
  color-scheme: dark;
  font-family: "Sora", sans-serif;
  background: #00182b;
  color: #f5f7ff;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 48%, #103c55 0%, #06283f 38%, #00182b 75%);
}

.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }

.star {
  position: absolute;
  top: -8px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #e2edff;
  opacity: var(--opacity);
  box-shadow: 0 0 7px #b7d4ff55;
  animation: drift var(--duration) linear infinite;
  animation-delay: var(--delay);
}

main {
  position: relative;
  width: min(100%, 690px);
  padding: 64px 24px;
  text-align: center;
  animation: arrive 900ms ease-out both;
}

.logo { display: block; width: min(290px, 72%); height: auto; margin: 0 auto 42px; }

h1 {
  margin: 0 auto;
  max-width: 610px;
  font-size: 34px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 span { color: #fb202f; font-weight: 600; }

.actions { display: grid; gap: 16px; max-width: 430px; margin: 40px auto 0; }

.join-help { min-width: 0; font-size: 14px; line-height: 1.6; }
.join-help summary { padding: 10px 0; color: #d9e6ef; cursor: pointer; }
.join-help-content { padding-top: 8px; text-align: left; }
.join-help-content p { margin: 0 0 16px; }
.join-help-content label { display: block; margin-bottom: 6px; font-size: 12px; }
.join-help-content input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #698499;
  border-radius: 6px;
  background: #00182b;
  color: #f5f7ff;
  font: inherit;
  font-size: 16px;
}
.copy-invite {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid #698499;
  border-radius: 6px;
  background: #103c55;
  color: #f5f7ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.copy-invite:hover { background: #164a66; }
.copy-invite:disabled { opacity: .65; cursor: wait; }
.join-help :focus-visible { outline: 3px solid #b2d6ff; outline-offset: 3px; }
.join-help-content .copy-status { margin: 12px 0 0; min-height: 3.2em; color: #d9e6ef; }

.button {
  min-height: 78px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-align: left;
  transition: background 180ms, transform 180ms, box-shadow 180ms, border-color 180ms;
}

.button svg { flex: 0 0 42px; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: #ffffff12; }
.button-label { flex: 1; }
.button-caption { display: block; margin-top: 4px; color: #aebfda; font-size: 11px; font-weight: 400; }
.arrow { margin-left: auto; font-size: 21px; font-weight: 400; opacity: .75; }
.button-primary { color: #062719; background: linear-gradient(120deg, #70efb1, #32cf8b); border-color: #a5ffd055; box-shadow: inset 0 1px 0 #ffffff40, 0 8px 30px #20c77d20; }
.button-primary svg { background: #063c2012; }
.button-secondary { color: #f3f6ff; background: linear-gradient(120deg, #233858b3, #152744cc); border-color: #91b1e044; box-shadow: inset 0 1px 0 #ffffff08, 0 8px 24px #00000015; }
.button[href]:hover { transform: translateY(-2px); }
.button-primary[href]:hover { box-shadow: inset 0 1px 0 #ffffff60, 0 10px 36px #20c77d38; border-color: #b8ffda; }
.button-secondary[href]:hover { background: #294467; border-color: #91b1e080; }
.button[href]:active { transform: translateY(0); }
.button:focus-visible { outline: 3px solid #b2d6ff; outline-offset: 5px; }
.button[aria-disabled="true"] { cursor: default; }

@keyframes drift { to { transform: translate3d(-80px, calc(100vh + 16px), 0); } }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
  h1 { font-size: 23px; }
}

@media (max-width: 380px) {
  main { padding-inline: 20px; }
  .button { padding-inline: 14px; gap: 10px; font-size: 12px; }
  .button svg { flex-basis: 36px; width: 36px; height: 36px; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  main, .star { animation: none; }
  .star { top: var(--y); }
  .button { transition: none; }
}
