/* PERSISTINT landing page. Palette from prompts/STYLE.md (4.3, 4.4, 4.8). */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fdf6e3;      /* canon sheet background */
  --plum: #593859;       /* HUD text */
  --plum-soft: #6b4a6a;
  --plum-deep: #3b2640;
  --outline: #8a5a5a;    /* island outline brown */
  --pink: #ffb3c8;       /* blush / rug runner */
  --pink-hot: #ff8fb1;   /* heart */
  --pink-ink: #a8326a;   /* pink that passes AA on cream */
  --sky: #a8d4f5;        /* temple stripes */
  --sky-tint: #e8f5fc;
  --blush-tint: #fdeef3;
  --mint: #a8e6a0;
  --butter: #ffe59a;
  --gold: #e0b24a;
  --lavender: #c9b8f2;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(89, 56, 89, .14), 0 2px 6px rgba(89, 56, 89, .08);
  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", "Varela Round", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--pink-ink); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--plum); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); text-align: center; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
cite { font-style: italic; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--plum); color: var(--white); padding: .6em 1em; border-radius: 12px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--white); }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, calc((100% - 1180px) / 2));
  background: rgba(253, 246, 227, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 90, 90, .15);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--plum); font: 600 1.2rem/1 var(--display); letter-spacing: .04em; }
.topbar ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.topbar nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--plum); font: 500 1rem/1 var(--display); }
.topbar nav a:hover { background: var(--blush-tint); }
.topbar nav a.nav-play { background: var(--plum); color: var(--white); padding-inline: 18px; }
.topbar nav a.nav-play:hover { background: var(--plum-deep); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 28px 0 64px;
  background:
    radial-gradient(1200px 500px at 15% -10%, #ffd9e6 0%, transparent 60%),
    radial-gradient(900px 500px at 95% 0%, #d6ecfb 0%, transparent 60%),
    linear-gradient(180deg, #fdf0f2 0%, var(--cream) 100%);
}
.hero-art {
  width: min(1180px, 100% - 32px); margin-inline: auto;
  border-radius: calc(var(--radius) + 6px);
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--sky-tint);
}
.hero-art img { width: 100%; aspect-ratio: 1600 / 791; }
.hero-copy {
  position: relative;
  width: min(820px, 100% - 32px);
  margin: -36px auto 0;
  padding: 34px 32px 30px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-block; margin: 0 0 10px; padding: 4px 14px;
  background: var(--blush-tint); color: var(--pink-ink);
  border-radius: 999px; font: 600 .85rem/1.6 var(--display); letter-spacing: .08em; text-transform: uppercase;
}
.logo {
  margin: 0;
  font-size: clamp(2.6rem, 1.4rem + 6vw, 5rem);
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--plum);
  text-shadow: 0 3px 0 var(--pink), 0 6px 0 rgba(168, 212, 245, .7);
}
.tagline {
  margin: 14px 0 10px;
  font: 500 clamp(1.15rem, 1rem + .8vw, 1.5rem)/1.35 var(--display);
  font-style: italic;
  color: var(--pink-ink);
}
.novel { max-width: 34em; margin: 0 auto 22px; color: var(--plum-soft); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fineprint { margin: 16px 0 0; font-size: .92rem; color: var(--plum-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; text-decoration: none;
  font: 600 1.1rem/1 var(--display); letter-spacing: .02em;
  border: 3px solid var(--plum);
}
.btn-play { background: var(--plum); color: var(--white); box-shadow: 0 5px 0 var(--pink-hot); }
.btn-play:hover { background: var(--plum-deep); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--plum); }
.btn-ghost:hover { background: var(--blush-tint); color: var(--plum); }
.btn-big { min-height: 60px; padding: 16px 36px; font-size: 1.35rem; }

/* ---------- bands ---------- */
.band { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.band-sky { background: var(--sky-tint); }
.band-blush { background: var(--blush-tint); }
.band-night { background: var(--plum-deep); color: var(--cream); }
.band-night h2, .band-night h3 { color: var(--white); }
/* scalloped top edge, like the game's bunting */
.band-sky::before, .band-blush::before, .band-night::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px;
  background: radial-gradient(circle at 12px 16px, var(--band-c) 11px, transparent 12px) 0 0 / 24px 16px repeat-x;
}
.band-sky { --band-c: var(--sky-tint); }
.band-blush { --band-c: var(--blush-tint); }
.band-night { --band-c: var(--plum-deep); }

.section-lede { max-width: 44em; margin: 0 auto 48px; text-align: center; font-size: 1.12rem; }
.caption { text-align: center; margin: 18px auto 0; max-width: 46em; font-size: .95rem; color: var(--plum-soft); }

/* ---------- intro ---------- */
.intro { text-align: center; padding-top: 24px; }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; }
.pull {
  display: inline-block; margin: 8px 0 0; padding: 10px 26px;
  font: 600 clamp(1.4rem, 1.1rem + 1.4vw, 2rem)/1.2 var(--display);
  color: var(--plum);
  background: linear-gradient(180deg, transparent 58%, var(--pink) 58%, var(--pink) 88%, transparent 88%);
}

/* ---------- trailer ---------- */
.video {
  position: relative; width: min(960px, 100%); margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 6px solid var(--white); box-shadow: var(--shadow); background: var(--plum-deep);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3));
}
.video-play svg { width: 84px; height: auto; }
.video-facade:focus-visible { outline-offset: -6px; box-shadow: inset 0 0 0 8px var(--white); }

/* ---------- worlds ---------- */
.world-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.world {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
}
.world:nth-child(even) figure { order: 2; }
.world figure img, .split-art img, .shots img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 16px; border: 5px solid var(--white); box-shadow: var(--shadow);
  background: var(--white);
}
figcaption { margin-top: 10px; font-size: .9rem; color: var(--plum-soft); text-align: center; }
.band-night figcaption { color: #e9dbe9; }
.world-text { padding: 26px 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border-top: 10px solid var(--accent); }
.world-florida { --accent: var(--mint); --accent-ink: #2f6b3a; }
.world-cruise { --accent: var(--lavender); --accent-ink: #5a3f9a; }
.world-island { --accent: var(--pink); --accent-ink: var(--pink-ink); }
.framing {
  display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 40%, white); color: var(--accent-ink);
  font: 600 .82rem/1.6 var(--display); letter-spacing: .08em; text-transform: uppercase;
}
.world-text p:last-child { margin-bottom: 0; }
.note { font-size: .95rem; color: var(--plum-soft); }
.same-verbs {
  max-width: 40em; margin: 48px auto 0; text-align: center;
  font: 500 clamp(1.15rem, 1rem + .6vw, 1.4rem)/1.4 var(--display);
}

/* ---------- name it ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split h2 { text-align: left; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; }
.tags li {
  padding: 6px 16px; border-radius: 999px; background: var(--white);
  border: 2px dashed var(--outline); color: var(--plum);
  font: 600 1rem/1.4 var(--display);
}
.nocombat {
  display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 18px;
  border-radius: 16px; background: var(--white); font-weight: 600;
}
.heart {
  flex: none; width: 26px; height: 26px;
  background: url("/icon.svg") center / contain no-repeat;
}

/* ---------- cruise ---------- */
.banner img { width: 100%; aspect-ratio: 1600 / 791; border-radius: var(--radius); border: 6px solid #f3e6f3; }
.games { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.games li { padding: 22px 22px 18px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.games h3 { font-size: 1.2rem; color: var(--butter); }
.games p { margin: 0; font-size: .98rem; color: #f1e6f1; }

/* ---------- gallery ---------- */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ---------- status ---------- */
.status-card {
  text-align: center; padding: 40px clamp(20px, 4vw, 48px);
  background: var(--white); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow);
}
.version {
  display: inline-block; margin: 0 0 12px; padding: 4px 16px; border-radius: 999px;
  background: var(--butter); color: var(--plum); font: 700 1rem/1.6 var(--display); letter-spacing: .06em;
}
.status-card .btn-big { margin: 10px 0 28px; }
.controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 10px; text-align: left; }
.controls div { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 14px; background: var(--cream); }
.controls dt {
  flex: none; min-width: 2.4em; padding: 2px 8px; text-align: center;
  border: 2px solid var(--outline); border-bottom-width: 4px; border-radius: 8px;
  background: var(--white); font: 600 .9rem/1.4 var(--display);
}
.controls dd { margin: 0; font-size: .95rem; }
.small { font-size: .92rem; color: var(--plum-soft); }
.advisory { margin: 22px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--blush-tint); text-align: left; font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--plum-deep); color: #f1e6f1; padding: 56px 0 28px; }
.site-footer a { color: var(--pink); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); box-shadow: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.footer-logo { font: 700 1.8rem/1 var(--display); color: var(--white); letter-spacing: .04em; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links .gnpng { font: 600 1.25rem/1.2 var(--display); }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; color: #d9c8d9; }
.legal p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .games { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .world, .split { grid-template-columns: 1fr; }
  .world:nth-child(even) figure { order: 0; }
  .split h2 { text-align: center; }
  .shots { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar nav li:not(:last-child) { display: none; }
  .hero { padding-top: 16px; }
  .hero-art { border-width: 4px; border-radius: 18px; }
  .hero-copy { margin-top: 16px; padding: 26px 18px 22px; }
  .games { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-big { padding-inline: 20px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .topbar nav a { transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
  .btn-play:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--pink-hot); }
  .video-play { transition: transform .2s ease; }
  .video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
}

/* GNPNG Ping Pong imprint mark (G|P|G with the pong animation, colourful rounded sans), floating at the lower left */
@media (prefers-reduced-motion: reduce) { .gnpng-float animate { display: none; } }
.gnpng-float {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  display: block; line-height: 0; border-radius: 16px;
  box-shadow: 0 4px 14px rgba(13, 33, 55, 0.22); transition: transform .15s ease;
}
.gnpng-float svg { display: block; width: 96px; height: auto; }
.gnpng-float:hover, .gnpng-float:focus-visible { transform: translateY(-2px); }
@media (max-width: 480px) { .gnpng-float { left: 10px; bottom: 10px; } .gnpng-float svg { width: 72px; } }
@media (prefers-reduced-motion: reduce) { .gnpng-float { transition: none; } }
