@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #161228;
  --night: #100e24;
  --text: #f7f4ff;
  --muted: #ddd4f4;
  --lilac: #d7c4ff;
  --line: rgba(255, 255, 255, 0.14);
  --violet: #6d28d9;
  --violet-deep: #4c1d95;
  --font: Fredoka, "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(255, 186, 160, 0.12), transparent 55%),
    var(--night);
  line-height: 1.5;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }

a { color: var(--lilac); }

:focus-visible {
  outline: 3px solid #f6d7b8;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 4vw;
  background: linear-gradient(rgba(10, 8, 26, 0.92), rgba(10, 8, 26, 0.78));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-right: auto;
  white-space: nowrap;
}

.logo span { color: var(--lilac); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-desktop a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-mobile { display: none; }

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.nav-mobile summary::-webkit-details-marker { display: none; }

.nav-panel {
  position: absolute;
  right: 4vw;
  top: 58px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 210px;
  padding: 10px;
  border-radius: 18px;
  background: #1b1738;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.nav-panel a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-panel a:hover { background: rgba(255, 255, 255, 0.06); }

.btn {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28); }

.btn-small {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 4px 0 var(--violet-deep);
  padding: 8px 14px;
  font-size: 15px;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: none;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.hero {
  position: relative;
  padding: 42px 4vw 64px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  height: min(980px, 130vw);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 8, 28, 0.18) 0%, rgba(10, 8, 28, 0.02) 36%, rgba(16, 14, 36, 0) 62%, var(--night) 100%),
    url("/sky.webp") center top / cover no-repeat;
}

.hero > * { position: relative; z-index: 1; }

.hero-copy {
  width: min(780px, 100%);
  margin: 0 auto;
  text-align: center;
  background: radial-gradient(closest-side, rgba(10, 8, 28, 0.62), rgba(10, 8, 28, 0));
  padding: 8px 12px 4px;
}

.kicker {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  color: #f6d7b8;
}

.hero h1 {
  margin: 8px 0 0;
  font-size: clamp(40px, 6.6vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.lede {
  margin: 14px auto 0;
  max-width: 46ch;
  font-size: clamp(16px, 2vw, 20px);
  color: #f4efff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.archipelago {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: start;
  width: min(1120px, 100%);
  margin: 8px auto 0;
  min-height: 240px;
}

.isle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.isle img {
  width: min(100%, 280px);
  aspect-ratio: 5 / 6;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.35));
  animation: bob 6.8s ease-in-out infinite;
}

.isle:nth-child(2) img { animation-delay: -1.7s; }
.isle:nth-child(3) img { animation-delay: -3.4s; }
.isle:nth-child(4) img { animation-delay: -5.1s; }

.isle:hover img,
.isle:focus-visible img { transform: translateY(-8px) scale(1.04); }

.label {
  display: inline-block;
  margin-top: -6px;
  max-width: 100%;
  background: var(--c, #c9a7ff);
  color: var(--ink);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: clamp(14px, 1.5vw, 18px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  text-wrap: balance;
}

.status {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(10, 8, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.section {
  width: min(1080px, calc(100% - 8vw));
  margin: 0 auto;
  padding: 18px 0 8px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.intro {
  margin: 0 0 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game {
  scroll-margin-top: 84px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 22px;
  align-items: center;
  padding: 18px 18px 18px 8px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--c) 42%, #241b4a), #1a1636 62%);
  border: 1px solid var(--line);
}

.game img {
  width: min(100%, 210px);
  justify-self: center;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.35));
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6d7b8;
  font-weight: 700;
}

.game h3,
.teaser h3,
.join h2,
.studio h2 {
  margin: 4px 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
}

.tag {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.game p { margin: 8px 0; color: #f4efff; }

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.teaser {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 22px 22px 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(140px 90px at 88% 78%, color-mix(in srgb, var(--c) 75%, transparent), transparent 72%),
    linear-gradient(180deg, #2a2454, #151226 78%);
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 8px;
  align-items: end;
}

.teaser p { margin: 8px 0; color: #f3eefe; }

.quiet {
  color: var(--muted) !important;
  font-size: 14px;
}

.silhouette {
  width: 150px;
  height: auto;
  justify-self: end;
  color: var(--c, #c9a7ff);
  opacity: 0.95;
}

.join,
.studio {
  width: min(1080px, calc(100% - 8vw));
  margin: 28px auto;
}

.join {
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(215, 196, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #3a2770, #211a44 58%, #1a1636);
  border: 1px solid var(--line);
}

.join p { max-width: 62ch; color: #f4efff; }

.studio-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.studio-links a {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.studio-links a:hover { border-color: rgba(255, 255, 255, 0.32); }

.studio-links span,
.studio-links small {
  display: block;
}

.studio-links span {
  color: var(--lilac);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.studio-links strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.studio-links small {
  margin-top: 4px;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 10px 5vw 36px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  margin: 4px 10px;
  display: inline-block;
}

.site-footer nav { margin-top: 8px; }

.sheet {
  width: min(760px, calc(100% - 8vw));
  margin: 28px auto 64px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 40px);
}

.sheet h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
}

.sheet h2 {
  color: #eadfff;
  font-size: 22px;
  margin: 28px 0 8px;
}

.sheet h3 { font-size: 18px; margin: 18px 0 6px; }

.sheet p,
.sheet li {
  font-size: 17px;
  line-height: 1.6;
  color: #f6f3ff;
}

.sheet ul { padding-left: 22px; }

.updated {
  opacity: 0.75;
  font-size: 14px;
  margin-top: 0;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px 20px 18px;
  margin: 16px 0;
}

.faq b { display: block; color: #fff; }

.form-row,
.choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
}

.form-row label,
.choices legend {
  font-weight: 700;
  color: #fff;
}

.choices { border: 0; padding: 0; }

.choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  padding: 4px 0;
}

input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(8, 6, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
}

.form-note { min-height: 1.4em; font-size: 15px; }

@media (max-width: 980px) {
  .archipelago { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game { grid-template-columns: 150px 1fr; }
}

@media (max-width: 800px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .teaser-grid,
  .studio-links { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .silhouette { width: 120px; }
}

@media (max-width: 640px) {
  .logo { font-size: 16px; }
  .btn-small { padding: 8px 11px; font-size: 14px; }
  .hero { padding-top: 28px; }
  .archipelago { grid-template-columns: 1fr; max-width: 420px; }
  .game {
    grid-template-columns: 1fr;
    padding: 16px;
    text-align: left;
  }
  .game img { max-width: 220px; }
  .join { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .isle img,
  .isle:hover img,
  .isle:focus-visible img { animation: none; transform: none; }
  .btn:hover,
  .btn:active { transform: none; }
}
