/* The plain pages (privacy, terms, about, contact): readable without JavaScript, in the calm Mokiz look. */
:root { --ink: #1f2430; --muted: #5b6474; --line: #e5e1da; --bg: #f5f3ef; --card: #ffffff; --accent: #f97316; }
@media (prefers-color-scheme: dark) { :root { --ink: #eceae6; --muted: #a9a49c; --line: #33302b; --bg: #1c1a17; --card: #25221e; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 "Prompt", "Noto Sans Thai", system-ui, sans-serif; }
header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
header a.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 1.2rem; text-decoration: none; }
header a.home { margin-left: auto; color: var(--accent); font-weight: 600; text-decoration: none; }
main { width: min(100% - 32px, 820px); margin: 24px auto 40px; padding: 24px clamp(16px, 4vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
h1 { margin: 0 0 4px; font-size: 1.7rem; line-height: 1.3; }
h2 { margin: 28px 0 8px; font-size: 1.2rem; }
.updated { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }
p, li { color: var(--ink); }
ul { padding-left: 1.3em; }
a { color: var(--accent); }
.note { padding: 12px 16px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 8px; }
.contacts { list-style: none; padding: 0; display: grid; gap: 8px; }
.contacts li { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.contacts strong { display: inline-block; min-width: 110px; }
footer { width: min(100% - 32px, 820px); margin: 0 auto 32px; color: var(--muted); font-size: 0.9rem; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 8px; }
footer a { color: var(--muted); }
/* owner 2026-10-13: the long pages (games, guide) */
main.wide { width: min(100% - 32px, 980px); }
figure { margin: 16px 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
figcaption { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
h3 { margin: 20px 0 6px; font-size: 1.05rem; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.toc a { text-decoration: none; font-weight: 600; }
/* owner 2026-10-14: every game in sideways rails (scroll / swipe), each with its plan: free / Plus / Premium / World */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 270px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
/* a rail must never widen its page (a grid item grows to its content without min-width: 0) */
.rail { width: 100%; max-width: 100%; min-width: 0; }
.seo-games, .legal > section, .legal main { min-width: 0; }
.rail-card { position: relative; display: grid; grid-template-rows: 150px auto auto; gap: 4px; scroll-snap-align: start; padding: 8px; border: 1px solid var(--line, var(--border)); border-radius: 14px; background: var(--card, var(--surface)); }
.rail-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; border: 0; }
.rail-card img.tall { object-position: center 35%; }
.rail-card h4 { margin: 4px 0 0; font-size: 1rem; }
.rail-card p { margin: 0; font-size: 0.85rem; line-height: 1.5; }
.rail-card .tier { position: absolute; top: 14px; right: 14px; }
.tier { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; line-height: 1.6; }
.tier-free { background: #dcfce7; color: #166534; }
.tier-plus { background: #e0e7ff; color: #3730a3; }
.tier-premium { background: #fef3c7; color: #92400e; }
.tier-world { background: #312e81; color: #fde68a; }
.rail-title { margin: 18px 0 2px; font-size: 1.1rem; }
.rail-note { margin: 0 0 6px; font-size: 0.85rem; }
