/* richnill.games: the home and games pages. Placeholder look until the rebrand (phase 2). */
:root { color-scheme: dark; --bg: #15171e; --card: #1f2230; --line: #34384a; --text: #f2f2f6; --muted: #a4a8b8; --accent: #ffcf3f; --accent-text: #231a00; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.site-header, .site-footer, main { max-width: 960px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.site-header { display: flex; justify-content: space-between; align-items: center; padding-block: 16px; }
.site-header .brand { font-weight: 700; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: 16px; }
.site-footer { color: var(--muted); font-size: 13px; padding-block: 40px; }
main { display: flex; flex-direction: column; gap: 20px; padding-block: 24px; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); margin: 0 0 8px; text-wrap: balance; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; cursor: pointer; font: inherit; }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.gm { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.gm h1, .gm h2 { margin: 0; }
.gm h2 a { color: var(--text); text-decoration: none; }
.gm p { margin: 4px 0; color: var(--muted); }
.gm dl { display: flex; gap: 6px; margin: 0; color: var(--muted); font-size: 14px; }
.gm dd { margin: 0; }
.gh h1 { margin: 0; }
.now { font-size: 13px; color: var(--accent-text); background: var(--accent); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
/* The Other game dialog (games.js, /games/?switch): no header or footer. */
html[data-switch] header.top, html[data-switch] .site-footer { display: none; }
