/* Shared styling for the crawlable content pages (landing, about, how-to-play,
 * faq). Same bright casual-game identity as the game (src/style.css): navy bg,
 * glossy multicolour pills, rounded Fredoka type. Self-contained — no build step,
 * served straight from /public. */
:root {
  color-scheme: dark;
  --bg: #131740; --panel: rgba(24,28,68,0.94); --raised: rgba(255,255,255,0.08);
  --ink: #f4f6ff; --dim: #a7aed4; --line: rgba(255,255,255,0.18);
  --amber: #ffd23e; --amber-hi: #ffe27a;
  --blue: #3b74ff; --blue-hi: #6b9bff; --green: #22c95a; --green-hi: #5bee8b;
  --violet: #8a5cf5;
  --fd: 'Fredoka','Segoe UI',sans-serif; --fm: 'IBM Plex Mono',ui-monospace,monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--fd); overflow-x: hidden;
}
a { color: var(--blue-hi); text-decoration: none; }
a:hover { color: var(--amber); }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1040px; }

/* Animated camouflage backdrop — pure CSS, no assets. */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 560px at 15% 10%, rgba(59,116,255,0.42), transparent 62%),
    radial-gradient(800px 600px at 85% 25%, rgba(138,92,245,0.4), transparent 64%),
    radial-gradient(900px 640px at 55% 95%, rgba(34,201,90,0.25), transparent 60%),
    linear-gradient(180deg, #1b2260, var(--bg));
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(40deg); } }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 10px;
}
.brand { font-weight: 700; font-size: 22px; color: var(--ink); }
.brand .accent { color: var(--amber); }
nav.top a { color: var(--dim); font-size: 14px; font-weight: 600; margin-left: 18px; }
nav.top a:first-child { margin-left: 0; }
nav.top a:hover { color: var(--amber); }

/* Glossy "pushable" game buttons. */
.btn {
  display: inline-block; font-family: var(--fd); font-weight: 700; font-size: 1.05rem;
  padding: 14px 32px; border-radius: 14px; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
  background: linear-gradient(180deg, var(--blue-hi), var(--blue)); color: #fff;
  box-shadow: 0 4px 0 rgba(10,20,80,0.6);
  transition: transform 0.12s, box-shadow 0.1s, filter 0.15s;
  text-shadow: 0 1px 0 rgba(0,0,40,0.4);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); color: #fff; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(10,20,80,0.6); }
.btn.primary {
  border-color: rgba(255,255,255,0.45);
  background: linear-gradient(180deg, var(--green-hi), var(--green));
  box-shadow: 0 5px 0 #158d3d, 0 10px 26px rgba(34,201,90,0.35);
  text-shadow: 0 2px 0 rgba(0,60,20,0.45);
}
.btn.primary:hover { box-shadow: 0 7px 0 #158d3d, 0 14px 30px rgba(34,201,90,0.45); }

.hero { text-align: center; padding: 72px 0 56px; }
.hero .tag { font-family: var(--fm); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--dim); }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem); margin: 12px 0 8px; line-height: 1.03;
  text-shadow: 0 4px 0 rgba(10,16,60,0.55), 0 12px 34px rgba(0,0,30,0.5);
}
.hero h1 .accent { color: var(--amber); }
.hero p.lead { max-width: 640px; margin: 0 auto 28px; color: var(--dim); font-size: 1.15rem; font-weight: 500; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; padding: 8px 0 40px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0) 34%), var(--panel);
  border: 2px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: 0 10px 26px rgba(5,8,30,0.45);
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--dim); font-size: 0.95rem; }
.card .k { font-size: 1.9rem; line-height: 1; margin-bottom: 6px; }

/* Long-form article body (about / how-to-play / faq). */
.article { padding: 32px 0 24px; }
.article h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 6px; }
.article .updated { color: var(--dim); font-family: var(--fm); font-size: 0.8rem; margin: 0 0 28px; }
.article h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.article h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.article p { color: #d7dcf5; margin: 0 0 14px; }
.article ul, .article ol { color: #d7dcf5; margin: 0 0 16px; padding-left: 22px; }
.article li { margin: 0 0 8px; }
.article .card { margin: 18px 0; }
.article .card p:last-child { margin-bottom: 0; }
.lead-in { font-size: 1.15rem; color: var(--ink); }

.band {
  text-align: center; padding: 40px 24px; margin: 24px 0 48px;
  border: 2px solid var(--line); border-radius: 20px;
  background: linear-gradient(135deg, rgba(138,92,245,0.3), rgba(59,116,255,0.22));
  box-shadow: 0 12px 30px rgba(5,8,30,0.45);
}
.band h2 { margin: 0 0 8px; font-size: 1.7rem; }
.band p { margin: 0 0 20px; color: var(--dim); }

footer.site { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--dim); font-family: var(--fm); font-size: 13px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
footer.site nav a { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--dim); }
footer.site nav a:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) { .bg { animation: none; } }
