/* Party Games Hub — landing pages. Same night-club identity as the app. */

/* Fonts (self-hosted, copied from @fontsource) */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/unbounded-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/unbounded-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/unbounded-latin-900-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/unbounded-latin-ext-900-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/outfit-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/outfit-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens (mirrors app/src/theme/variables.scss) */
:root {
  --pg-bg: #14101f;
  --pg-bg-raised: #1f1930;
  --pg-bg-sunken: #0d0a16;
  --pg-ink: #f5f1ff;
  --pg-ink-muted: #9c92b8;
  --pg-line: #322a4a;
  --pg-accent: #ff4d7a;
  --pg-accent-ink: #ffffff;
  --pg-gold: #ffc53d;
  --pg-gold-ink: #241a00;
  --pg-team-volt: #b8f135;
  --pg-team-blaze: #ff8a3d;
  --pg-radius: 20px;
  --pg-radius-lg: 28px;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pg-bg);
  color: var(--pg-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pg-accent); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pg-gold);
  color: var(--pg-gold-ink);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--pg-radius) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--pg-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--pg-accent);
  color: var(--pg-accent-ink);
  box-shadow: 0 8px 30px rgba(255, 77, 122, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--pg-ink);
  border-color: var(--pg-line);
}
.btn-ghost:hover { border-color: var(--pg-accent); }
.btn-xxl { font-size: 1.25rem; padding: 1.25rem 3rem; }
.btn-tip {
  background: transparent;
  color: var(--pg-gold);
  border-color: var(--pg-gold);
}
.btn-tip:hover {
  background: var(--pg-gold);
  color: var(--pg-gold-ink);
  box-shadow: 0 8px 30px rgba(255, 197, 61, 0.3);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 16, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pg-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--pg-ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 10px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a {
  color: var(--pg-ink-muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--pg-ink); }
.site-nav .btn-nav {
  color: var(--pg-accent-ink);
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
}
.lang-switch {
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.burger span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--pg-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero: dark stage under two spotlights */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  text-align: center;
  background:
    radial-gradient(38rem 24rem at 18% -10%, rgba(255, 77, 122, 0.22), transparent 65%),
    radial-gradient(34rem 22rem at 85% -5%, rgba(255, 197, 61, 0.16), transparent 65%),
    var(--pg-bg-sunken);
  border-bottom: 1px solid var(--pg-line);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pg-gold);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-weight: 900;
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  max-width: 22ch;
  margin-inline: auto;
}
.hero .lede {
  color: var(--pg-ink-muted);
  font-size: 1.2rem;
  max-width: 46ch;
  margin: 1rem auto 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Room-code tiles: the app's most iconic artifact */
.code-tiles {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 auto 1rem;
}
.code-tiles span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  width: clamp(3.4rem, 10vw, 5rem);
  padding: 0.55em 0;
  background: var(--pg-bg-raised);
  border: 1px solid var(--pg-line);
  border-bottom: 4px solid var(--pg-line);
  border-radius: var(--pg-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.code-tiles span:nth-child(3) {
  background: var(--pg-gold);
  color: var(--pg-gold-ink);
  border-color: color-mix(in srgb, var(--pg-gold) 60%, #000);
  transform: rotate(3deg);
}
.hero-hint { color: var(--pg-ink-muted); font-size: 0.95rem; margin: 0; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--pg-bg-sunken); border-block: 1px solid var(--pg-line); }
.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  max-width: 24ch;
}
.section-intro { color: var(--pg-ink-muted); max-width: 56ch; margin-bottom: 2.5rem; }

/* How it works: a real sequence, numbered on purpose */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--pg-bg-raised);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  padding: 1.8rem 1.6rem;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--pg-gold);
  color: var(--pg-gold-ink);
  font-family: var(--font-display);
  font-weight: 900;
  margin-bottom: 1rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--pg-ink-muted); margin: 0; }

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--pg-bg-raised);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  padding: 1.8rem 1.6rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--pg-accent); }
.game-card h3 { font-size: 1.15rem; margin: 0; }
.game-card .pitch { color: var(--pg-ink-muted); margin: 0; flex-grow: 1; }
.game-card .game-link {
  font-weight: 700;
  text-decoration: none;
}
.game-card .game-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.game-emoji { font-size: 1.8rem; line-height: 1; }

/* Scoreboard vignette: the night-long score is the product's thread */
.scoreboard {
  background: var(--pg-bg-raised);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  padding: 2rem;
  width: min(26rem, 100%);
}
.score-row { display: grid; grid-template-columns: 7.5rem 1fr 3rem; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.score-row:last-child { margin-bottom: 0; }
.score-team { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; }
.score-track { background: var(--pg-bg-sunken); border-radius: 999px; height: 1rem; overflow: hidden; }
.score-fill { height: 100%; border-radius: inherit; width: var(--w, 50%); }
.score-fill.volt { background: var(--pg-team-volt); }
.score-fill.blaze { background: var(--pg-team-blaze); }
.score-pts { font-family: var(--font-display); font-weight: 900; color: var(--pg-gold); text-align: right; }
.night-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

/* Feature bullets */
.checklist { list-style: none; padding: 0; margin: 0 0 2rem; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: 0.8rem; }
.checklist li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--pg-gold);
}

/* Final CTA */
.cta-final { text-align: center; }
.cta-final .btn-xxl { margin-bottom: 1rem; }
.tip-line { color: var(--pg-ink-muted); font-size: 0.95rem; }

/* Game detail pages */
.game-hero { padding: 4rem 0 3rem; text-align: left; }
.game-hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; max-width: 18ch; }
.game-hero .lede { font-size: 1.25rem; color: var(--pg-ink-muted); max-width: 50ch; }
.game-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.game-meta li {
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  color: var(--pg-ink-muted);
}
.rules { padding: 0; margin: 0; list-style: none; }
.rules li {
  background: var(--pg-bg-raised);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.9rem;
}
.rules strong { font-family: var(--font-display); font-size: 0.95rem; }
.back-link { display: inline-block; margin-top: 2rem; }

/* Contact form */
.contact-card {
  background: var(--pg-bg-raised);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  padding: 2rem;
  max-width: 36rem;
}
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.field input,
.field textarea {
  width: 100%;
  background: var(--pg-bg-sunken);
  border: 1px solid var(--pg-line);
  border-radius: 12px;
  color: var(--pg-ink);
  font: inherit;
  padding: 0.85rem 1rem;
}
.field input:focus,
.field textarea:focus { border-color: var(--pg-accent); outline: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; margin-top: 1rem; }
.form-status.ok { color: var(--pg-team-volt); }
.form-status.error { color: var(--pg-accent); }

/* Prose pages (legal, privacy) */
.prose { max-width: 46rem; padding: 3.5rem 1.25rem 4.5rem; }
.prose h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.prose h2 { font-size: 1.25rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--pg-ink-muted); }
.prose strong { color: var(--pg-ink); }

/* Footer */
.site-footer {
  background: var(--pg-bg-sunken);
  border-top: 1px solid var(--pg-line);
  padding: 3rem 0 2rem;
}
.footer-inner { display: grid; gap: 1.5rem; }
.footer-tagline { color: var(--pg-ink-muted); margin: 0.8rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { color: var(--pg-ink-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--pg-ink); }
.footer-legal { color: var(--pg-ink-muted); font-size: 0.85rem; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game-card { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .night-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .burger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: var(--pg-bg-raised);
    border-bottom: 1px solid var(--pg-line);
    padding: 1.2rem 1.5rem 1.5rem;
    gap: 1.1rem;
  }
  .site-nav.open { display: flex; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
}
@media (max-width: 560px) {
  .games-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
