/* Porch Party (porchpartygame.com)
   Dark-first, living-room-at-night palette. Matches the tvOS game. */

:root {
  --ink: #12121F;
  --surface: #1E1B33;
  --grad-a: #1E1533;
  --grad-b: #0E1B2C;
  --text: #F4F2FF;
  --muted: #9A95B8;
  --gold: #FFD23F;
  --coral: #FF5470;
  --teal: #3BCEAC;
  --purple: #845EF7;
  --sky: #4CC9F0;
  --orange: #FF9F1C;
  --radius: 20px;
  --radius-sm: 12px;
  --display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(48rem 30rem at -10% -10%, rgba(132, 94, 247, 0.22), transparent 60%),
    radial-gradient(40rem 26rem at 110% 5%, rgba(59, 206, 172, 0.10), transparent 60%),
    radial-gradient(44rem 30rem at 105% 100%, rgba(255, 84, 112, 0.12), transparent 60%),
    linear-gradient(160deg, var(--grad-a), var(--ink) 45%, var(--grad-b));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 6.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.45rem); }

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 46rem; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.site-header .logo img {
  width: clamp(180px, 40vw, 280px);
  display: block;
}

.site-header nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-header nav a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(244, 242, 255, 0.07);
}

.site-header nav a:hover { background: rgba(244, 242, 255, 0.16); }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2rem, 6vw, 4rem);
}

.hero .kicker {
  font-family: var(--display);
  font-weight: 700;
  color: var(--gold);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  margin-bottom: 0.75rem;
}

.hero h1 .pop { color: var(--gold); }

.hero .sub {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.badge-row li {
  background: rgba(244, 242, 255, 0.08);
  border: 1px solid rgba(244, 242, 255, 0.12);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.cta {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  color: var(--ink);
  background: linear-gradient(180deg, #FFE07A, var(--gold));
  border-radius: 999px;
  padding: 0.85rem 2.2rem;
  box-shadow: 0 6px 24px rgba(255, 210, 63, 0.28);
  text-decoration: none;
}

.cta.static { cursor: default; }

.cta-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.9rem;
}

/* ---------- Sections ---------- */

section { padding: clamp(2rem, 6vw, 4rem) 0; }

.section-kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-kicker.teal { color: var(--teal); }
.section-kicker.coral { color: var(--coral); }
.section-kicker.sky { color: var(--sky); }
.section-kicker.gold { color: var(--gold); }
.section-kicker.orange { color: var(--orange); }

.lede { color: var(--muted); font-size: 1.125rem; max-width: 42rem; }

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid rgba(244, 242, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.card .emoji { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }
.card h3 { margin-bottom: 0.35rem; }
.card p { color: var(--muted); font-size: 1rem; margin: 0; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.step-num.n1 { background: var(--teal); }
.step-num.n2 { background: var(--gold); }
.step-num.n3 { background: var(--sky); }

/* Question card mock */

.question-card {
  background: linear-gradient(160deg, var(--surface), var(--grad-a));
  border: 1px solid rgba(132, 94, 247, 0.35);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  max-width: 34rem;
  margin: 1.75rem auto 0;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.question-card .label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.question-card .q {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  line-height: 1.3;
  margin: 0;
}

.question-card .q mark {
  background: rgba(255, 210, 63, 0.18);
  color: var(--gold);
  border-radius: 8px;
  padding: 0 0.35rem;
}

/* Deck cards */

.deck-family { border-top: 4px solid var(--teal); }
.deck-party { border-top: 4px solid var(--gold); }
.deck-afterdark { border-top: 4px solid var(--coral); }

.deck-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-top: 0.8rem;
  background: rgba(255, 84, 112, 0.15);
  color: var(--coral);
}

/* Scoring strip */

.score-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .score-grid { grid-template-columns: repeat(3, 1fr); }
}

.score {
  background: rgba(244, 242, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
}

.score .points {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  display: block;
}

.score .points.teal { color: var(--teal); }
.score .points.gold { color: var(--gold); }
.score .points.coral { color: var(--coral); }

.score p { color: var(--muted); font-size: 0.98rem; margin: 0.25rem 0 0; }

/* Privacy banner */

.privacy-banner {
  background: var(--surface);
  border: 1px solid rgba(59, 206, 172, 0.3);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.privacy-banner h2 { color: var(--teal); }
.privacy-banner p { color: var(--muted); max-width: 38rem; margin: 0 auto 1em; }

/* ---------- Prose pages (privacy / support) ---------- */

.page-title { padding: clamp(2rem, 6vw, 3.5rem) 0 0; }
.page-title .updated { color: var(--muted); font-size: 0.95rem; }

.prose h2 { margin-top: 2rem; font-size: clamp(1.35rem, 3.4vw, 1.7rem); }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5em; }

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(244, 242, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.8rem;
}

.faq-item h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.faq-item p { margin: 0; color: var(--muted); }

.contact-box {
  background: rgba(255, 210, 63, 0.08);
  border: 1px dashed rgba(255, 210, 63, 0.4);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin-top: 2rem;
}

.contact-box h2 { margin-top: 0; }
.contact-box p { margin-bottom: 0; color: var(--muted); }

/* ---------- 404 ---------- */

.notfound {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.notfound .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 18vw, 8rem);
  line-height: 1;
  color: var(--purple);
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(244, 242, 255, 0.1);
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { font-size: 0.85rem; }
