/* Pocket Playground site: plum-navy, stitched patches, Fredoka + Nunito (self-hosted, no third-party requests). */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap; src: url("/assets/fonts/nunito.woff2") format("woff2"); }

:root {
  --bg: #1b1830;
  --bg-deep: #151229;
  --card: #272243;
  --card-2: #2f2950;
  --line: #342e58;
  --stitch: #4a4277;
  --text: #f2effa;
  --muted: #b3aed3;
  --coral: #f2605a;
  --butter: #ffc93c;
  --mint: #3dd6a0;
  --sky: #5bb8f5;
  --pink: #ff7aa8;
  --lavender: #a57bd1;
  --radius: 22px;
  --wrap: 1040px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 122, 168, 0.13), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(91, 184, 245, 0.10), transparent 60%);
  color: var(--text);
  font: 400 17px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--butter); text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: 0.2px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 42px 0 12px; }
h3 { font-size: 1.15rem; margin: 26px 0 8px; font-weight: 600; }
p, li { color: var(--text); }
.muted { color: var(--muted); }

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

/* ---- header / nav ------------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(21, 18, 41, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 6px 10px; border-radius: 999px; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a[aria-current="page"] { color: var(--bg); background: var(--butter); }

/* ---- stitched patch card ---------------------------------------------------------------------------- */
.patch {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px clamp(20px, 4vw, 40px);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.18);
}
.patch::before {
  content: "";
  position: absolute; inset: 8px;
  border: 2px dashed var(--stitch);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

/* ---- hero -------------------------------------------------------------------------------------------- */
.hero { padding: clamp(36px, 7vw, 80px) 0 24px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin: 0 0 26px; }
.tagline { display: inline-block; font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--bg); background: var(--mint); padding: 4px 14px; border-radius: 999px; margin-bottom: 18px; font-size: 0.95rem; }
.hero-art img { width: 100%; max-width: 420px; margin-inline: auto; border-radius: 28%; box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem;
  padding: 12px 22px; border-radius: 16px; text-decoration: none;
  background: var(--coral); color: #fff; box-shadow: 0 5px 0 #b8403b;
}
.btn:hover { color: #fff; filter: brightness(1.06); }
.btn.alt { background: var(--card-2); box-shadow: 0 5px 0 #15112b; }
.btn small { display: block; font-family: "Nunito", sans-serif; font-weight: 700; font-size: 0.72rem; opacity: 0.8; line-height: 1; }
.btn .stack { display: flex; flex-direction: column; line-height: 1.15; }
.soon { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }

/* ---- feature + screenshots -------------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 10px; }
.feature h3 { margin-top: 4px; }
.feature p { margin: 0; color: var(--muted); }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px auto 0; max-width: 860px; }
.shots figure { margin: 0; }
.shots img { border-radius: 18px; border: 3px solid var(--card-2); aspect-ratio: 9 / 16; object-fit: cover; width: 100%; background: var(--card); }
.shots figcaption { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 8px; font-weight: 700; }

.games { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.games span { background: var(--card-2); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 0.92rem; }

/* ---- documents ----------------------------------------------------------------------------------------- */
.doc { padding: 36px 0 20px; }
.doc .patch { max-width: 820px; margin-inline: auto; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.doc .updated { color: var(--muted); font-weight: 700; margin: 0 0 18px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.summary { background: var(--card-2); border-radius: 16px; padding: 16px 20px; margin: 18px 0 8px; }
.summary ul { margin: 6px 0 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--butter); }
.table-scroll { overflow-x: auto; }
.toc { columns: 2; padding-left: 1.2em; margin: 8px 0 0; }
details { background: var(--card-2); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem; }
details p { margin: 10px 0 2px; }
.mail { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.2rem; }

/* ---- footer ---------------------------------------------------------------------------------------- */
.site-footer { margin-top: 60px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---- responsive ------------------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .badges { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 220px; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .toc { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { flex-wrap: wrap; padding: 8px 0; }
  .nav-links { margin-left: 0; justify-content: flex-start; }
  .brand span { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
