/* Fluffernook Games — shared styles. No external requests, no tracking. */
:root {
  --ink: #2b2140;
  --ink-soft: #5d5370;
  --paper: #fff8ef;
  --card: #ffffff;
  --tangerine: #ff8a3d;
  --tangerine-deep: #e5671a;
  --teal: #2bb5a5;
  --sky: #cfeefe;
  --line: #efe2d2;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(43, 33, 64, 0.10);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tangerine-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

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

/* ---------- header ---------- */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tangerine); color: #fff; font-size: 1.2rem; box-shadow: 0 4px 0 var(--tangerine-deep);
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 70px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, var(--sky) 0%, transparent 68%); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 750; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); background: #e3f7f4; padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; margin: 16px 0 18px; letter-spacing: -0.03em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.game-title { display: flex; align-items: center; gap: 18px; }
.game-title img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 750; text-decoration: none;
  padding: 14px 22px; border-radius: 16px; background: var(--tangerine); color: #fff;
  box-shadow: 0 5px 0 var(--tangerine-deep); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--tangerine-deep); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.9; }

.phones { display: flex; justify-content: center; gap: 0; position: relative; height: 520px; }
.phone {
  width: 236px; border-radius: 30px; overflow: hidden; border: 8px solid var(--ink); background: var(--ink);
  box-shadow: 0 24px 50px rgba(43, 33, 64, 0.25); position: absolute; top: 0;
}
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.phone.back { transform: translateX(-90px) rotate(-6deg); top: 30px; }
.phone.front { transform: translateX(90px) rotate(4deg); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.section-lead { color: var(--ink-soft); max-width: 40em; margin: 0 0 36px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .ico { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #fff1e5; margin-bottom: 14px; }
.feature:nth-child(3n+2) .ico { background: #e3f7f4; }
.feature:nth-child(3n) .ico { background: #eaf3ff; }
.feature h3 { margin: 0 0 6px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.studio { background: var(--ink); color: #f6f0ff; border-radius: 32px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.studio h2 { color: #fff; }
.studio p { color: #d9d0ea; margin: 0 0 12px; }
.studio a { color: #ffc29a; }

/* ---------- legal pages ---------- */
.doc { padding: 24px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc-card { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 0; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 10px; padding-top: 8px; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p, .doc li { color: #3d3450; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.meta { color: var(--ink-soft); font-size: 0.95rem; margin-top: -6px; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 26px 0; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 28px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper); font-weight: 750; }
tr:last-child td { border-bottom: none; }
.callout { background: #e3f7f4; border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
.callout.warm { background: #fff1e5; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin: 14px 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tangerine); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* ---------- footer ---------- */
.site-footer { padding: 36px 0 48px; color: var(--ink-soft); font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero-grid, .studio { grid-template-columns: 1fr; }
  .phones { height: 440px; margin-top: 8px; }
  .phone { width: 200px; }
  .phone.back { transform: translateX(-70px) rotate(-6deg); }
  .phone.front { transform: translateX(70px) rotate(4deg); }
  .studio { padding: 32px 24px; }
  .toc ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
