:root {
	--ink: #5a3e2b;
	--paper: #fdf3e1;
	--board: #fffaf0;
	--line: #e6d3b3;
	--link: #2e6fa8;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
	max-width: 760px;
	margin: 0 auto;
	padding: 24px 20px 64px;
}

h1 { font-size: 1.8rem; line-height: 1.25; margin: 0.5em 0; }
h2 { font-size: 1.35rem; margin: 1.6em 0 0.4em; }
h3 { font-size: 1.1rem; margin: 1.3em 0 0.3em; }
a { color: var(--link); }

/* One language at a time: English unless a flag picked another (#vi, #es).
   The app opens the policy at the parents' language the same way. */
nav.languages {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 12px;
	background: var(--paper);
	border-bottom: 2px solid var(--line);
}

nav.languages a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 2px solid transparent;
	border-radius: 999px;
	color: var(--ink);
	text-decoration: none;
}

nav.languages img {
	width: 30px;
	height: 20px;
	border-radius: 3px;
	box-shadow: 0 0 0 1px var(--line);
}

body:not(:has(section.language:target)) nav.languages a[href="#en"],
body:has(#vi:target) nav.languages a[href="#vi"],
body:has(#es:target) nav.languages a[href="#es"] {
	border-color: var(--line);
	background: var(--board);
	font-weight: 600;
}

section.language {
	display: none;
	scroll-margin-top: 80px;
}

section.language:target,
section.language#en {
	display: block;
}

main:has(section.language:target) section.language#en:not(:target) {
	display: none;
}

.updated { font-size: 0.95rem; opacity: 0.8; }

.games {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 16px;
}

.games li {
	display: flex;
	gap: 16px;
	align-items: center;
	background: var(--board);
	border: 2px solid var(--line);
	border-radius: 16px;
	padding: 16px;
}

.games img { width: 96px; height: 96px; border-radius: 20px; }
.games p { margin: 0.2em 0; }
