/* Shared styles for the static discovery pages (multiplayer-wordle,
   wordle-with-friends, games-like-wordle, how-to-play-wordwarz).
   Same palette as the app's kc-* tokens; flat fills with one hard edge, no
   gradients, no blur. Sizes in rem so the page scales like the app does. */
:root {
  --bg: #111417;
  --card: #1c2126;
  --face: #242a30;
  --line: #2a3138;
  --green: #2fbf63;
  --green-edge: #1e8743;
  --on-green: #06281b;
  --text: #f0f3f4;
  --muted: #96a0a6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--green); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem; gap: 1rem;
}
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.9rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }

main { padding: 2.5rem 0 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
p, ul, ol { margin-bottom: 1rem; color: #d3d9dc; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--text); }
.lede { font-size: 1.1rem; color: var(--text); }

.cta {
  display: inline-block; margin: 0.5rem 0 1rem; padding: 0.8rem 1.6rem;
  background: var(--green); color: var(--on-green); font-weight: 800; text-decoration: none;
  border-radius: 0.75rem; box-shadow: 0 4px 0 var(--green-edge);
}
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-edge); }

.table-scroll { overflow-x: auto; margin-bottom: 1.25rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--card); color: var(--text); font-weight: 700; }
td { color: #d3d9dc; }

.faq details { background: var(--card); border-radius: 0.75rem; margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 700; color: var(--text); }
.faq details p { padding: 0 1rem; }

.related { background: var(--card); border-radius: 0.9rem; padding: 1rem 1.25rem; margin-top: 2.5rem; }
.related h2 { margin-top: 0; font-size: 1.05rem; }
.related ul { margin-bottom: 0; }

.fine { font-size: 0.85rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; font-size: 0.9rem; color: var(--muted); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; padding: 0; margin: 0 0 0.75rem; }
.site-footer a { color: var(--muted); }

@media (min-width: 40rem) { h1 { font-size: 2.4rem; } }

/* Wide layout: everything shares the hero's left edge; cards and tables use the full width. */
main.wrap > p, main.wrap > ul, main.wrap > ol { max-width: 62rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.hero-media { width: 100%; max-width: 46rem; margin: 0 auto; }
.hero .trailer { margin: 0; }
@media (min-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
  .hero-media { max-width: none; }
  .hero h1 { font-size: 2.8rem; }
  main { padding-top: 3rem; }
}
