/* 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: 760px;
  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 { width: 100%; max-width: 860px; margin: 8px auto 0; padding-bottom: 40px; pointer-events: none; }
@media (min-width: 700px) {
  /* The loop keeps headroom for jumps; it is transparent, so it can sit up under the button. */
  .hero-cast { margin-top: -96px; padding-bottom: 30px; }
  .hero-wordmark { width: min(440px, 84vw); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* The living characters: the app's own 3D characters and moves as transparent video loops (site.js plays them). */
.hero-video, .look-video { display: block; width: 100%; height: auto; background: transparent; }
.hero-narrow { max-width: 520px; margin: 0 auto; }
@media (max-width: 699px) { .hero-wide { display: none; } }
@media (min-width: 700px) { .hero-narrow { display: none; } }

/* ---------- 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 {
  display: block; border-radius: 34px; border: 6px solid #05081A; background: #05081A;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 48px -12px rgba(3, 5, 20, .7);
}
video.phone { width: 100%; height: auto; }

/* meet the characters */
.looks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .looks { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.look {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px 20px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
/* The loops keep room for arms and jumps; the transparent margin can spill past the card edge, so it's drawn bigger. */
.look { overflow: hidden; }
.look-video { width: 130%; max-width: 280px; margin: -16% auto -6%; aspect-ratio: 1; }
.look h3 { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tier { font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.tier-free { background: rgba(255, 255, 255, .12); color: #fff; }
.tier-rare { background: #2F6BFF; color: #fff; }
.tier-epic { background: #8E44FF; color: #fff; }

/* see it in action */
.feature { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; margin-bottom: 40px; }
.feature-phone { width: min(280px, 72vw); margin: 0 auto; }
@media (min-width: 820px) { .feature { grid-template-columns: 1.2fr 1fr; gap: 48px; } .feature-phone { width: 300px; } }
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); font-weight: 900; font-size: 15px; line-height: 1;
}
.chip-icon { width: 26px; height: 26px; border-radius: 8px; }
.shots {
  list-style: none; margin: 0; padding: 4px 16px 24px; display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 16px;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.shot { flex: none; width: clamp(210px, 62vw, 240px); scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shot .phone { width: 100%; }
.moment { margin: 0; text-align: center; font-weight: 700; color: var(--muted); line-height: 1.35; max-width: 15em; }
.shots:focus-visible { outline-offset: -3px; }
@media (min-width: 900px) {
  /* Wide screens: all six in a tidy 3 x 2 grid, no sideways scrolling. */
  .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; overflow: visible; }
  .shot { width: auto; }
  .shot .phone { width: min(250px, 100%); }
}

/* 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; }
.lost-icon { width: 160px; margin: 0 auto 16px; }
