/* Joypod search pages: shared stylesheet for the static landing pages
   under /play/ and the hub pages. Brand tokens mirror the app so the
   pages and the game feel like one product. */

:root {
  --bg: #fff7ec;
  --surface: #ffffff;
  --surface-2: #ffefd9;
  --ink: #23202b;
  --ink-soft: #5d576e;
  --line: #f0ddc4;
  --coral: #ff5a49;
  --coral-dark: #d63e30;
  --teal: #0e9594;
  --teal-dark: #0a7473;
  --link: #0a7473;
  --sun: #ffb703;
  --shadow: 0 6px 0 rgba(35, 32, 43, 0.12);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1826;
    --surface: #2a2538;
    --surface-2: #352e49;
    --ink: #f6f1ff;
    --ink-soft: #bdb4d4;
    --line: #453c61;
    --coral: #ff6a5c;
    --coral-dark: #ff8a7a;
    --link: #3ec6c3;
    --shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.55;
}

h1, h2, h3, .logo, .btn {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
}

.logo .mask { color: var(--coral); }

.topbar a.home-link {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.hero-art {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 22px 0 10px;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.fact {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}

.fact .v {
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.fact .k {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.btn {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.btn:hover { background: var(--coral-dark); }

.btn.teal { background: var(--teal); }

.play-row { margin: 20px 0 6px; }

.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.card h2 { margin: 0 0 10px; font-size: 24px; }
.card h3 { margin: 16px 0 6px; font-size: 19px; }
.card p { margin: 8px 0; }
.card ul { margin: 8px 0; padding-left: 22px; }
.card li { margin: 5px 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 10px 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 10px 46px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

details {
  border-top: 2px solid var(--line);
  padding: 12px 2px;
}
details:first-of-type { border-top: none; }
summary {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
details p { color: var(--ink-soft); }

.pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.pair {
  background: var(--surface-2);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 15px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 16px;
}
table.compare th, table.compare td {
  border-bottom: 2px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}
table.compare th { font-family: "Fredoka", sans-serif; }

.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 0;
}
.game-cell {
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.game-cell img { width: 100%; display: block; }
.game-cell .cell-body { padding: 10px 14px 14px; }
.game-cell h3 { margin: 0 0 4px; font-size: 18px; }
.game-cell p { margin: 0 0 8px; color: var(--ink-soft); font-size: 15px; }
.game-cell a { color: var(--link); font-weight: 700; text-decoration: none; }
.card p a, .card li a, .lede a { color: var(--link); font-weight: 700; }

.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 0;
}
.related a {
  text-decoration: none;
  color: var(--ink);
}
.related img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: var(--shadow);
}
.related .r-name {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-top: 8px;
}
.related .r-tag { color: var(--ink-soft); font-size: 15px; }

footer {
  margin-top: 34px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}
footer nav { margin-bottom: 10px; }
footer nav a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
  margin: 0 8px;
}

@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .games-grid, .related { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
}
