/* ==========================================================================
   Planet Strike: "candy cosmos"
   The site wears the game's own look (Colors.cs > Ui): a deep violet sky,
   chunky glossy slabs outlined in dark ink with a lit rim and an extruded
   lip, candy pill buttons (gold for the main action, violet and sky for the
   rest) and cartoon lettering in Unbounded over Outfit body text.
   Standalone: it does not use the studio's shared /css/styles.css.
   ========================================================================== */

:root {
  /* Ink and sky */
  --ink: #170e3a;
  --sky-top: #3a2a82;
  --sky-mid: #281a62;
  --sky-deep: #150c36;

  /* Slabs (Ui.PanelTop / Panel / PanelLip / Rim) */
  --slab-top: #4c3a98;
  --slab: #2f2268;
  --slab-lip: #1a1142;
  --rim: #b9a4ff;
  --well: rgba(21, 14, 54, .88);

  /* Text */
  --text: #f7f4ff;
  --muted: #cfc6f3;
  --faint: #a497d6;

  /* Candy tones: lit top, face, lip */
  --gold-hi: #ffe680; --gold: #ffa81f; --gold-lip: #b5520d;
  --violet-hi: #b9a2ff; --violet: #7350e6; --violet-lip: #3a2296;
  --skyb-hi: #a6ebff; --skyb: #2aaef2; --skyb-lip: #115896;

  /* Accents */
  --sun: #ffd040;
  --peach: #ffc96a;
  --crystal: #ff5fb0;
  --mint: #9fffe2;
  --ice: #95dbff;
  --lilac: #c6aeff;
  --blush: #ffb4dd;

  --font-display: "Unbounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;

  /* Legacy names used by inline styles on the legal pages */
  --secondary: var(--blush);
  --primary: var(--sun);
  --accent: var(--ice);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--sky-deep);
  overflow-x: hidden;
}
/* The sky: a violet gradient, soft nebulae and twinkling stars, pinned behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(2px 2px at 30px 50px, rgba(255, 255, 255, .8) 50%, transparent 55%) 0 0 / 260px 240px,
    radial-gradient(1.5px 1.5px at 160px 130px, rgba(255, 255, 255, .55) 50%, transparent 55%) 0 0 / 310px 270px,
    radial-gradient(1.5px 1.5px at 90px 190px, rgba(198, 174, 255, .7) 50%, transparent 55%) 0 0 / 200px 230px,
    radial-gradient(2px 2px at 220px 70px, rgba(255, 180, 221, .55) 50%, transparent 55%) 0 0 / 350px 300px,
    radial-gradient(60% 45% at 12% 18%, rgba(122, 79, 192, .55), transparent 70%),
    radial-gradient(50% 40% at 92% 42%, rgba(240, 139, 176, .22), transparent 70%),
    radial-gradient(55% 45% at 20% 85%, rgba(76, 58, 152, .6), transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-deep) 100%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ice); }
a:hover { color: var(--sun); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 14px; border: 3px solid var(--ink);
  background: var(--sun); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.ps-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Cartoon lettering (the game's Toon text: ink outline + extrusion) ---------- */
.toon {
  font-family: var(--font-display); font-weight: 800; color: #fff; letter-spacing: -.005em;
  text-shadow:
    0 -3px 0 var(--ink), 3px 0 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink),
    2px -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), -2px -2px 0 var(--ink),
    0 6px 0 var(--ink), 3px 6px 0 var(--ink), -3px 6px 0 var(--ink),
    0 12px 22px rgba(8, 3, 30, .45);
}
.gold { color: var(--sun); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--peach);
}
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--ink), 0 0 12px rgba(255, 168, 31, .8); }

/* ---------- Slabs, wells and phone frames ---------- */
.slab {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--slab-top) 0%, #3b2b84 16%, var(--slab) 55%, #291d5d 100%);
  box-shadow:
    inset 0 2px 0 rgba(185, 164, 255, .8),
    inset 0 0 0 1px rgba(185, 164, 255, .14),
    0 7px 0 var(--slab-lip),
    0 7px 0 3px var(--ink),
    0 22px 40px rgba(8, 3, 30, .45);
}
.well {
  border-radius: 18px;
  background: var(--well);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(185, 164, 255, .22);
}
.phone {
  margin: 0; padding: 8px;
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: linear-gradient(180deg, var(--slab-top), var(--slab));
  box-shadow:
    inset 0 2px 0 rgba(185, 164, 255, .8),
    0 7px 0 var(--slab-lip),
    0 7px 0 3px var(--ink),
    0 24px 44px rgba(8, 3, 30, .5);
}
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; background: var(--sky-deep); }

/* ---------- Candy buttons ---------- */
.candy {
  --hi: var(--gold-hi); --mid: var(--gold); --lip: var(--gold-lip);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px 15px;
  border: 3px solid var(--ink); border-radius: 999px;
  background: linear-gradient(180deg, var(--hi) 0%, var(--mid) 58%, var(--mid) 100%);
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, .12),
    inset 0 2px 0 rgba(255, 255, 255, .6),
    0 6px 0 var(--lip),
    0 6px 0 3px var(--ink),
    0 14px 22px rgba(8, 3, 30, .45);
  color: #fff; text-decoration: none; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .02em;
  text-shadow:
    0 -2px 0 var(--ink), 2px 0 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink),
    1.5px 1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px -1.5px 0 var(--ink),
    0 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
/* Gloss: the shine across the top of a candy face */
.candy::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 4px; left: 16px; width: 48%; height: 36%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .05));
}
.candy:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .6), 0 8px 0 var(--lip), 0 8px 0 3px var(--ink), 0 18px 26px rgba(8, 3, 30, .45); }
.candy:active { transform: translateY(5px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .6), 0 1px 0 var(--lip), 0 1px 0 3px var(--ink), 0 4px 8px rgba(8, 3, 30, .45); }
.candy-gold   { --hi: var(--gold-hi);   --mid: var(--gold);   --lip: var(--gold-lip); }
.candy-violet { --hi: var(--violet-hi); --mid: var(--violet); --lip: var(--violet-lip); }
.candy-sky    { --hi: var(--skyb-hi);   --mid: var(--skyb);   --lip: var(--skyb-lip); }
.candy-sm { padding: 10px 18px 11px; font-size: .78rem; }
.candy-sm::before { left: 12px; }

/* Store buttons: the one for the visitor's device wears gold */
.store { min-height: 72px; padding: 12px 28px 12px 16px; }
.store small {
  display: block; margin-bottom: 4px;
  font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .1em;
  text-shadow: 0 2px 0 var(--ink), 0 0 2px var(--ink);
}
.store-ico {
  flex: none; width: 44px; height: 44px; padding: 9px;
  border-radius: 50%; border: 3px solid var(--ink);
  background: rgba(23, 14, 58, .3); color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35);
  filter: drop-shadow(0 2px 0 var(--ink));
}
.ps-stores { display: flex; flex-wrap: wrap; gap: 26px 20px; padding-bottom: 8px; }
.ps-stores .candy { max-width: 100%; }
.store { min-width: 220px; font-size: 1.2rem; text-transform: none; letter-spacing: 0; white-space: nowrap; }
[data-os="other"] .store-web { order: -1; --hi: var(--gold-hi); --mid: var(--gold); --lip: var(--gold-lip); }
[data-os="other"] .store-android { --hi: var(--skyb-hi); --mid: var(--skyb); --lip: var(--skyb-lip); }
[data-os="android"] .only-other, [data-os="other"] .only-android { display: none; }

/* ---------- Top bar ---------- */
.ps-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(36, 24, 88, .84);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
  box-shadow: inset 0 -1px 0 rgba(185, 164, 255, .25), 0 8px 24px rgba(8, 3, 30, .35);
}
.ps-bar .ps-wrap { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.ps-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: #fff; }
.ps-brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 1.5px var(--ink)) drop-shadow(0 3px 0 var(--ink)); }
.ps-brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .02em; text-transform: uppercase;
  text-shadow: 0 -2px 0 var(--ink), 2px 0 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 0 3px 0 var(--ink);
}
.ps-nav { display: flex; gap: 4px; }
.ps-nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: .98rem; transition: background .15s, color .15s;
}
.ps-nav a:hover { color: #fff; background: rgba(185, 164, 255, .16); }
@media (max-width: 900px) { .ps-nav { display: none; } }
@media (max-width: 400px) { .ps-brand span { display: none; } }

/* ---------- Sections ---------- */
.ps-section { padding: 104px 0; scroll-margin-top: 76px; }
.ps-head { margin-bottom: 52px; max-width: 760px; }
.ps-head.center { margin-inline: auto; text-align: center; }
.ps-h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.18; text-wrap: balance; }
.ps-sub { margin-top: 20px; max-width: 60ch; color: var(--muted); font-size: 1.15rem; }
.center .ps-sub { margin-inline: auto; }

/* ---------- Hero ---------- */
.ps-hero { padding: 56px 0 96px; overflow: hidden; }
.ps-hero .ps-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.ps-logo { width: min(460px, 100%); margin: 0 0 18px -10px; filter: drop-shadow(0 12px 18px rgba(8, 3, 30, .55)); }
.ps-h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.12; text-wrap: balance; }
.ps-lede { margin: 26px 0 34px; max-width: 52ch; color: var(--muted); font-size: 1.2rem; }
.ps-note { margin-top: 22px; font-size: .97rem; color: var(--faint); max-width: 56ch; }
.ps-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; list-style: none; }
.ps-stats li {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 16px 9px; border-radius: 999px;
  border: 2px solid var(--ink); background: rgba(47, 34, 104, .85);
  box-shadow: inset 0 1px 0 rgba(185, 164, 255, .6), 0 3px 0 var(--ink);
  color: var(--muted); font-weight: 600;
}
.ps-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--sun); text-shadow: 0 2px 0 var(--ink); }

.ps-phone-stage { position: relative; justify-self: center; width: min(340px, 82vw); padding: 20px 0; }
.ps-glow {
  position: absolute; inset: -10% -30%; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(255, 194, 58, .35), transparent 70%) 50% 60% / 80% 70% no-repeat,
    radial-gradient(closest-side, rgba(198, 174, 255, .45), transparent 70%) 50% 40% / 100% 90% no-repeat;
  filter: blur(10px);
}
.ps-phone { transform: rotate(3deg); }
.ps-float { position: absolute; z-index: 2; filter: drop-shadow(0 10px 12px rgba(8, 3, 30, .5)); animation: ps-bob 4.2s ease-in-out infinite; }
.ps-float.rock { width: 120px; left: -64px; bottom: 70px; animation-name: ps-bob-spin; animation-duration: 6s; }
.ps-float.t1 { width: 70px; right: -36px; top: 40px; animation-delay: -1.2s; }
.ps-float.t2 { width: 60px; left: -34px; top: 110px; animation-delay: -2.4s; }
.ps-float.t3 { width: 60px; right: -28px; bottom: 140px; animation-delay: -.6s; }
@keyframes ps-bob { 50% { transform: translateY(-14px); } }
@keyframes ps-bob-spin { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ps-float { animation: none; }
  .candy { transition: none; }
}

@media (max-width: 920px) {
  .ps-hero .ps-wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; text-align: center; }
  .ps-logo { margin-inline: auto; }
  .ps-lede, .ps-note { margin-inline: auto; }
  .ps-stores, .ps-stats { justify-content: center; }
  .ps-float.rock { left: -30px; }
  .ps-float.t1, .ps-float.t3 { right: -14px; }
  .ps-float.t2 { left: -14px; }
}

/* ---------- How to play ---------- */
.ps-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; list-style: none; }
.ps-step { padding: 16px 16px 28px; }
.shot {
  aspect-ratio: 4 / 3.4; overflow: hidden;
  border-radius: 20px; border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 1px rgba(185, 164, 255, .2);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.coin {
  position: relative; display: grid; place-items: center;
  width: 54px; height: 54px; margin: -30px 0 10px 14px;
  border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(circle at 38% 30%, var(--gold-hi), var(--gold) 62%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 4px 0 var(--gold-lip), 0 4px 0 3px var(--ink);
  font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: #fff;
  text-shadow: 0 -2px 0 var(--ink), 2px 0 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 0 3px 0 var(--ink);
}
.ps-step h3, .ps-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.3;
  color: #fff; text-shadow: 0 3px 0 var(--ink); margin: 0 6px 10px;
}
.ps-step p { margin: 0 6px; color: var(--muted); }
@media (max-width: 860px) { .ps-steps { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; } }

/* ---------- Features ---------- */
.ps-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 36px; }
.ps-card { padding: 30px; display: flex; flex-direction: column; }
.ps-card h3 { margin: 0 0 12px; font-size: 1.3rem; }
.ps-card p { color: var(--muted); }
.ps-card ul.moons { margin-top: 18px; list-style: none; display: grid; gap: 14px; color: var(--muted); }
.moons li { display: flex; gap: 12px; align-items: baseline; }
.moons li::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; transform: translateY(1px);
  background: radial-gradient(circle at 35% 30%, #fff, var(--lilac) 45%, #7c62d4);
  box-shadow: 0 0 0 2px var(--ink);
}
.moons b { color: #fff; }
.ps-card .pic {
  position: relative; overflow: hidden; flex: 1; min-height: 220px; margin-top: 24px;
  border-radius: 20px; border: 3px solid var(--ink);
}
.ps-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-rings, .c-skins { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.c-rings .pic, .c-skins .pic { margin: 0; aspect-ratio: 9 / 12; flex: none; }
.c-close, .c-gifts { grid-column: span 2; }
.c-power, .c-modes { grid-column: 1 / -1; }
.ps-big { font-size: 4.5rem; line-height: 1; margin: 6px 0 22px; }
.ps-big small { font-size: 1.2rem; margin-left: 10px; }

.ps-tokens { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 22px; }
.ps-token { text-align: center; padding: 22px 12px; display: flex; flex-direction: column; justify-content: center; }
.ps-token img { width: 92px; margin: 0 auto 10px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.ps-token strong { font-family: var(--font-display); font-weight: 700; font-size: .85rem; text-transform: uppercase; color: var(--ice); text-shadow: 0 2px 0 var(--ink); }
.ps-token span { margin-top: 8px; font-size: .93rem; line-height: 1.4; color: var(--muted); }

.ps-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ps-mode { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--well); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(185, 164, 255, .22); }
.ps-mode i {
  --hi: var(--gold-hi); --mid: var(--gold); --lip: var(--gold-lip);
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(circle at 38% 30%, var(--hi), var(--mid) 62%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 3px 0 var(--lip), 0 3px 0 3px var(--ink);
  color: #fff; font-style: normal; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem;
  text-shadow: 0 -2px 0 var(--ink), 2px 0 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink);
}
.ps-mode i svg { width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -1px 0 var(--ink)); }
.m-violet i { --hi: var(--violet-hi); --mid: var(--violet); --lip: var(--violet-lip); font-size: 1.5rem; }
.m-sky i { --hi: var(--skyb-hi); --mid: var(--skyb); --lip: var(--skyb-lip); }
.ps-mode strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 var(--ink); }
.ps-mode span { display: block; margin-top: 3px; color: var(--muted); font-size: .96rem; line-height: 1.45; }
.ps-small { margin-top: 14px; font-size: .92rem; color: var(--faint) !important; }
.ps-ranks-label { margin: 18px 0 10px; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--peach) !important; }
.ps-ranks { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.ps-ranks span {
  padding: 5px 12px 6px; border-radius: 999px; border: 2px solid var(--ink);
  background: linear-gradient(180deg, #fff -40%, var(--c) 60%);
  box-shadow: 0 3px 0 var(--ink);
  font-size: .82rem; font-weight: 700; color: var(--ink);
}

@media (max-width: 1000px) {
  .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-rings, .c-skins, .c-power, .c-modes { grid-column: 1 / -1; }
  .c-close, .c-gifts { grid-column: span 1; }
}
@media (max-width: 680px) {
  .ps-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .c-close, .c-gifts { grid-column: 1 / -1; }
  .c-rings, .c-skins { grid-template-columns: minmax(0, 1fr); }
  .c-rings .pic, .c-skins .pic { aspect-ratio: 4 / 3.4; }
  .ps-card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .ps-tokens { grid-template-columns: minmax(0, 1fr); }
  .ps-token { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; text-align: left; align-items: center; }
  .ps-token img { width: 58px; margin: 0; grid-row: span 2; }
  .ps-token span { margin-top: 2px; }
}

/* ---------- Worlds ---------- */
.ps-worlds .ps-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.ps-wcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.ps-world {
  position: relative; margin: 0 0 7px; aspect-ratio: 9 / 14; overflow: hidden;
  border-radius: 22px; border: 3px solid var(--ink);
  box-shadow: 0 7px 0 var(--slab-lip), 0 7px 0 3px var(--ink), 0 18px 30px rgba(8, 3, 30, .45);
}
.ps-world img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ps-world figcaption {
  position: absolute; inset: auto 0 0 0; padding: 36px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(21, 12, 54, .95));
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; line-height: 1.3; color: #fff;
  text-shadow: 0 2px 0 var(--ink);
}
.ps-world figcaption small { display: block; margin-bottom: 2px; font-family: var(--font-body); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }
.ps-wlist { display: flex; flex-wrap: wrap; gap: 12px 10px; margin-top: 36px; list-style: none; }
.ps-wlist li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 7px 7px; border-radius: 999px;
  border: 2px solid var(--ink); background: rgba(47, 34, 104, .9);
  box-shadow: inset 0 1px 0 rgba(185, 164, 255, .55), 0 3px 0 var(--ink);
  font-size: .92rem; font-weight: 600;
}
.ps-wlist i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(circle at 35% 30%, var(--b), var(--a) 75%); }
.ps-map { width: 100%; max-width: 300px; margin-inline: auto; transform: rotate(-2deg); }
/* The capture's top bar (level counter) is cropped off */
.ps-map img { aspect-ratio: 600 / 1192; object-position: 50% 100%; }
@media (max-width: 1000px) { .ps-worlds .ps-wrap { grid-template-columns: minmax(0, 1fr); } .ps-map { max-width: 260px; } }
@media (max-width: 600px) { .ps-wcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; } }

/* ---------- Screenshots ---------- */
.ps-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 22vw, 240px); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 12px max(24px, (100vw - 1180px) / 2 + 24px) 36px;
  scroll-padding-inline: max(24px, (100vw - 1180px) / 2 + 24px);
  scrollbar-color: var(--violet) rgba(23, 14, 58, .6);
}
.ps-gallery figure { scroll-snap-align: start; }
.ps-gallery:focus-visible { outline-offset: -4px; }
.ps-hint { margin-top: 6px; text-align: center; color: var(--faint); font-size: .92rem; }

/* ---------- FAQ ---------- */
.ps-faq { max-width: 820px; margin-inline: auto; display: grid; gap: 26px; }
.ps-faq details { border-radius: 24px; }
.ps-faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 78px 22px 26px;
  font-weight: 700; font-size: 1.1rem; color: #fff;
}
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(circle at 38% 30%, var(--gold-hi), var(--gold) 62%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 3px 0 var(--gold-lip), 0 3px 0 3px var(--ink);
  font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; line-height: 1; color: #fff;
  text-shadow: 0 -2px 0 var(--ink), 2px 0 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink);
}
.ps-faq details[open] summary::after {
  content: "\2212";
  background: radial-gradient(circle at 38% 30%, var(--violet-hi), var(--violet) 62%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 3px 0 var(--violet-lip), 0 3px 0 3px var(--ink);
}
.ps-faq details[open] summary { color: var(--sun); }
.ps-faq details p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Final call ---------- */
.ps-final { text-align: center; padding: 40px 0 112px; }
.ps-final-card { padding: 52px 28px 60px; overflow: hidden; }
.ps-final-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 20%, rgba(255, 194, 58, .18), transparent 70%);
}
.ps-final-card > * { position: relative; }
.ps-final-card img { width: 190px; margin: 0 auto 26px; filter: drop-shadow(0 12px 16px rgba(8, 3, 30, .5)); animation: ps-bob 5s ease-in-out infinite; }
.ps-final-card .ps-sub { margin: 18px auto 36px; }
.ps-final-card .ps-stores { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .ps-final-card img { animation: none; } }

/* ---------- Footer ---------- */
.ps-foot {
  border-top: 3px solid var(--ink);
  background: rgba(18, 10, 46, .75);
  box-shadow: inset 0 1px 0 rgba(185, 164, 255, .25);
  padding: 52px 0 40px; color: var(--muted); font-size: .98rem;
}
.ps-foot .ps-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.ps-foot h3 { margin-bottom: 14px; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); }
.ps-foot ul { list-style: none; display: grid; gap: 10px; }
.ps-foot a { color: var(--text); text-decoration: none; }
.ps-foot a:hover { color: var(--sun); text-decoration: underline; }
.ps-studio { display: flex; gap: 16px; align-items: flex-start; }
.ps-studio img { width: 48px; height: 48px; flex: none; border-radius: 12px; }
.ps-studio strong { color: #fff; }
.ps-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 2px dashed rgba(185, 164, 255, .25); font-size: .88rem; color: var(--faint); }
@media (max-width: 720px) { .ps-foot .ps-wrap { grid-template-columns: 1fr 1fr; } .ps-studio { grid-column: 1 / -1; } }

@media (max-width: 600px) {
  .ps-wrap { padding-inline: 16px; }
  .ps-section { padding: 76px 0; }
  .ps-hero { padding: 36px 0 72px; }
  .ps-stores { gap: 22px 14px; }
  .store { flex: 1 1 0; min-width: 0; gap: 10px; padding: 10px 14px 10px 10px; font-size: 1.05rem; }
  .store-ico { width: 40px; height: 40px; padding: 8px; }
  .ps-gallery { padding-inline: 16px; scroll-padding-inline: 16px; }
}

/* ==========================================================================
   Legal pages (terms, privacy, pre-registration): body.ps-doc
   ========================================================================== */
.ps-doc .privacy-container,
.ps-doc .doc {
  width: calc(100% - 32px); max-width: 840px; margin: 44px auto 72px; padding: 44px 40px 40px;
  border: 3px solid var(--ink); border-radius: 28px;
  background: linear-gradient(180deg, var(--slab-top) 0%, #3b2b84 90px, var(--slab) 320px, #291d5d 100%);
  box-shadow:
    inset 0 2px 0 rgba(185, 164, 255, .8),
    0 7px 0 var(--slab-lip), 0 7px 0 3px var(--ink),
    0 22px 40px rgba(8, 3, 30, .45);
}
.ps-doc h1 {
  margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; color: #fff;
  text-shadow:
    0 -3px 0 var(--ink), 3px 0 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink),
    2px -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), -2px -2px 0 var(--ink),
    0 6px 0 var(--ink);
}
.ps-doc h1 span { color: var(--sun); }
.ps-doc h2 {
  margin: 36px 0 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.35;
  color: var(--sun); text-shadow: 0 2px 0 var(--ink);
}
.ps-doc h3 { margin: 24px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ice); }
.ps-doc p { margin-bottom: 14px; color: var(--muted); }
.ps-doc ul, .ps-doc ol { margin: 0 0 18px 22px; }
.ps-doc li { margin-bottom: 8px; color: var(--muted); }
.ps-doc li::marker { color: var(--lilac); }
.ps-doc strong { color: #fff; }
.ps-doc :is(.privacy-container, .doc) a:not(.back, .contact-btn) { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.ps-doc :is(.privacy-container, .doc) a:not(.back, .contact-btn):hover { color: var(--sun); }
.ps-doc .meta { color: var(--blush); margin-bottom: 26px; }
.ps-doc .summary,
.ps-doc .callout {
  margin: 24px 0; padding: 18px 22px;
  border-radius: 20px; background: var(--well);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(185, 164, 255, .22);
}
.ps-doc .callout { box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(149, 219, 255, .35); }
.ps-doc .summary h2 { margin-top: 0; }
.ps-doc .summary > :last-child, .ps-doc .callout > :last-child { margin-bottom: 0; }
.ps-doc .back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px;
  padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink);
  background: rgba(23, 14, 58, .5); box-shadow: 0 3px 0 var(--ink);
  color: var(--text); font-weight: 600; font-size: .92rem; text-decoration: none;
}
.ps-doc .back:hover { color: var(--sun); }
.ps-doc .contact-btn {
  display: inline-block; margin-top: 6px; padding: 10px 20px; border-radius: 999px;
  border: 3px solid var(--ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 58%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 4px 0 var(--gold-lip), 0 4px 0 3px var(--ink);
  color: #fff; font-weight: 700; text-decoration: none;
  text-shadow: 0 -2px 0 var(--ink), 2px 0 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink);
}
.ps-doc .contact-btn:hover { color: #fff; }
.ps-doc .doc footer { margin-top: 44px; padding-top: 16px; border-top: 2px dashed rgba(185, 164, 255, .25); color: var(--faint); font-size: .9rem; }
@media (max-width: 600px) {
  .ps-doc .privacy-container, .ps-doc .doc { margin: 24px 16px 48px; padding: 28px 20px 26px; border-radius: 24px; }
}
@media (max-width: 359px) { .store { flex-basis: 100%; } }
