/* Planet Party site. System rounded type, navy night sky, yellow buttons, flat cards like the app. No web fonts. */
:root {
  --bg: #0E1430;
  --bg-2: #141C40;
  --card: #1C2654;
  --card-2: #243064;
  --line: rgba(255, 255, 255, 0.09);
  --text: #FFFFFF;
  --muted: #BFC8EA;
  --yellow: #FFC21F;
  --yellow-hi: #FFD24D;
  --ink: #0E1430;
  --radius: 24px;
  --wrap: 1120px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* A quiet star field behind every page (two layers of tiny dots, no images). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 38% 64%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 86% 72%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 58% 38%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 24% 86%, rgba(255,255,255,.45), transparent 60%),
    var(--bg);
  background-size: 420px 420px, 380px 380px, 460px 460px, 340px 340px, 520px 520px, 300px 300px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--yellow-hi); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 6vw, 46px); }
h3 { font-size: 21px; }
p { margin: 0 0 14px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-head {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  max-width: calc(var(--wrap) + 48px); margin: 0 auto;
}
.is-page .site-head { position: relative; }
.head-logo img { width: 104px; }
.is-home .head-logo { visibility: hidden; } /* the hero shows the big wordmark */
.site-head nav { display: flex; gap: 4px; }
.site-head nav a {
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 16px;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-head nav a:hover { background: rgba(255,255,255,.08); color: var(--text); }
@media (max-width: 560px) { .nav-wide { display: none !important; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 860px;
  display: flex; flex-direction: column; justify-content: space-between;
  /* Phones: the sky is plain colour behind the words; the art sits under them, planet at the right. */
  background: url("/img/hero-narrow.webp") 80% 100% / auto 400px no-repeat;
  background-color: #101548;
  padding: 76px 16px 0;
  text-align: center;
  isolation: isolate;
}
@media (min-width: 700px) {
  .hero {
    min-height: min(820px, max(700px, 100svh));
    background: #101548 url("/img/hero-wide.webp") 50% 100% / cover no-repeat;
  }
}
.hero::after { /* blends the bottom of the art into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: -1;
  background: linear-gradient(180deg, rgba(14,20,48,0), var(--bg));
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 { margin: 0 0 14px; }
.hero-wordmark { width: min(520px, 84vw); margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(5, 8, 25, .45)); }
.hero-lead { font-size: clamp(21px, 4.6vw, 28px); font-weight: 900; line-height: 1.25; margin: 0 auto 8px; max-width: 18em; text-wrap: balance; }
.hero-sub { color: var(--muted); font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 22px; text-wrap: balance; }
.hero-cast {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(0px, 1.5vw, 18px);
  margin: 24px auto 0; padding-bottom: 78px;
  width: 100%; max-width: 860px;
}
@media (min-width: 700px) { .hero-cast { padding-bottom: 112px; } }
.hero-char { width: clamp(68px, 17vw, 150px); filter: drop-shadow(0 14px 10px rgba(10, 6, 40, .45)); }
.hero-char-3 { width: clamp(88px, 22vw, 190px); }
.hero-char-1, .hero-char-5 { margin-bottom: 6px; }

/* One clean entrance: the characters hop in, one after another, once. */
@media (prefers-reduced-motion: no-preference) {
  .hero-char { animation: hop-in .55s cubic-bezier(.2, .9, .3, 1.25) both; }
  .hero-char-3 { animation-delay: .15s; }
  .hero-char-2, .hero-char-4 { animation-delay: .3s; }
  .hero-char-1, .hero-char-5 { animation-delay: .45s; }
  @keyframes hop-in { from { opacity: 0; transform: translateY(36px) scale(.92); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- store button ---------- */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 12px; border-radius: 20px; margin: 0;
  text-align: left; line-height: 1.1; text-decoration: none;
}
.store-small { display: block; font-size: 14px; font-weight: 700; }
.store-big { display: block; font-size: 22px; font-weight: 900; }
.store-live { background: var(--yellow); color: var(--ink); padding: 12px 28px; box-shadow: 0 6px 0 #C98F00; }
.store-live:hover { background: var(--yellow-hi); color: var(--ink); }
.store-live:active { transform: translateY(3px); box-shadow: 0 3px 0 #C98F00; }
.store-soon { background: rgba(14, 20, 48, .78); border: 2px solid var(--yellow); color: var(--text); }
.store-soon img { width: 44px; height: 44px; border-radius: 11px; }
.store-soon .store-small { color: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 12px 28px; border-radius: 18px; background: var(--yellow); color: var(--ink);
  font-weight: 900; font-size: 18px; text-decoration: none; box-shadow: 0 5px 0 #C98F00;
}
.btn:hover { background: var(--yellow-hi); color: var(--ink); }

/* ---------- sections ---------- */
.band { padding: clamp(56px, 9vw, 96px) 0; }
.hero + .band { padding-top: clamp(24px, 4vw, 48px); }
.band-alt { background: rgba(255, 255, 255, .025); border-block: 1px solid var(--line); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
.section-lead { color: var(--muted); font-size: 19px; font-weight: 600; max-width: 34em; margin-bottom: 32px; }
.note { color: var(--muted); font-weight: 700; margin: 28px 0 0; }

/* games */
/* Flex, not grid, so a short last row sits in the middle (7 games = 4 + 3 on wide screens). */
.games { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.games > li { flex: 1 1 100%; }
@media (min-width: 640px) { .games > li { flex: 0 1 calc(50% - 7px); } }
@media (min-width: 1040px) {
  .games > li { flex: 0 1 calc(25% - 10.5px); }
  .game { flex-direction: column; gap: 12px; padding: 20px; }
}
.game {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border-radius: var(--radius); padding: 18px;
  border: 1px solid var(--line);
}
.game-icon { width: 76px; height: 76px; border-radius: 20px; flex: none; }
.game h3 { margin: 2px 0 4px; }
.game p { margin: 0; color: var(--muted); font-weight: 600; line-height: 1.4; }
.game .game-players { margin-top: 8px; font-size: 14px; font-weight: 800; color: var(--text); opacity: .75; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 0; overflow: hidden; display: flex; flex-direction: column; }
.step p { color: var(--muted); font-weight: 600; }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 20px; margin-bottom: 12px;
}
.step .phone-small { margin: auto auto 0; width: 62%; max-width: 220px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; aspect-ratio: 480 / 700; object-fit: cover; object-position: top; }

/* phones */
.phone { border-radius: 30px; border: 5px solid #070B1F; background: #070B1F; box-shadow: 0 18px 40px rgba(3, 5, 20, .5); }

/* characters */
.cast { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
@media (min-width: 760px) { .cast { grid-template-columns: repeat(8, 1fr); gap: 14px; } }
.cast li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; aspect-ratio: 1; display: grid; place-items: center; padding: 10%; }
.cast img { width: 100%; height: 100%; object-fit: contain; }

/* screenshots strip */
.shots {
  list-style: none; margin: 0; padding: 4px 16px 20px; display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 16px;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.shots li:first-child { margin-left: auto; } /* centred when it all fits, still scrollable from the start when not */
.shots li:last-child { margin-right: auto; }
.shots li { flex: none; scroll-snap-align: start; }
.shots figure { margin: 0; width: clamp(200px, 56vw, 230px); }
@media (min-width: 1100px) { .shots figure { width: 188px; } }
.shots .phone { width: 100%; }
.shots figcaption { text-align: center; font-weight: 800; margin-top: 12px; }
.shots:focus-visible { outline-offset: -3px; }

/* pass */
.pass { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.pass .phone { width: min(260px, 70%); margin: 0 auto; }
.pass-text p { color: var(--muted); font-size: 18px; font-weight: 600; max-width: 32em; }
.pass-text strong { color: var(--yellow); }
@media (min-width: 820px) { .pass { grid-template-columns: 1.3fr 1fr; } }

.band-end { text-align: center; }
.end .section-lead { margin: 0 auto 24px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 32px 16px 44px; text-align: center; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-bottom: 12px; }
.site-foot nav a { font-weight: 800; padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center; }
.site-foot p { margin: 0 0 8px; font-weight: 600; overflow-wrap: anywhere; }
.foot-small { font-size: 14px; opacity: .8; }

/* ---------- document pages (legal, delete account, add, 404) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 16px 56px; overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(34px, 8vw, 48px); margin-bottom: 10px; }
.doc .date { color: var(--muted); font-weight: 700; margin-bottom: 24px; }
.doc .lead { font-size: 20px; font-weight: 700; color: var(--muted); }
.doc section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 16px; }
.doc section h2 { font-size: 23px; margin-bottom: 10px; }
.doc section p { color: #E3E8FA; }
.doc section p:last-child, .doc section ul:last-child, .doc section ol:last-child { margin-bottom: 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; color: #E3E8FA; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--yellow); font-weight: 900; }
.page-note { color: var(--muted); font-weight: 600; background: rgba(255, 194, 31, .08); border: 1px solid rgba(255, 194, 31, .3); border-radius: 16px; padding: 14px 16px; }
.doc-center { text-align: center; padding-top: 48px; }
.doc-center .lead { max-width: 28em; margin-left: auto; margin-right: auto; }
.doc-center .store { margin: 12px auto 28px; }
.add-icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 20px; }
