/* My Earth Toy encyclopedia pages (tools/make_seo_pages.js): night-sky navy, Toy Gold accent, Jua headings, Nunito text. */
:root { --space: #071224; --panel: #0d1f3c; --ink: #fff6e0; --muted: #b6c7da; --accent: #ffd76a; --line: rgba(255, 246, 224, .18); --display: "Jua", "Nunito", system-ui, sans-serif; --body: "Nunito", "Noto Sans KR", system-ui, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--space); color: var(--ink); font: 17px/1.65 var(--body); }
a { color: var(--accent); }
a:hover { color: #ffe48a; }
.top { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px max(16px, calc((100% - 1040px) / 2)); background: rgba(7, 18, 36, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); font: 400 22px var(--display); }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-weight: 800; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink); }
.top nav a:hover { color: var(--accent); }
.top nav .play { color: #2a1a05; background: linear-gradient(#ffe48a, #ffc23d); border-radius: 999px; padding: 6px 14px; }
.top nav .lang { color: var(--muted); }
main { max-width: 1040px; margin: 0 auto; padding: 20px 16px 40px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 4px 0 18px; }
.crumbs a { color: var(--muted); }
h1 { margin: 0; font: 400 clamp(34px, 6vw, 54px)/1.1 var(--display); color: var(--accent); text-shadow: 0 3px 0 #8a4b12; text-wrap: balance; }
h2 { margin: 0 0 10px; font: 400 26px/1.2 var(--display); color: var(--ink); }
h3 { margin: 22px 0 10px; font: 800 17px var(--body); color: var(--muted); letter-spacing: .02em; }
.aka { margin: 6px 0 0; color: var(--muted); font-size: 18px; }
.ehead { margin-bottom: 20px; }
.hero { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 28px; }
.hero figure { margin: 0; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; border: 2px solid var(--line); background: var(--panel); }
figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
figcaption a { color: var(--muted); }
.lead p { margin: 0 0 18px; font-size: 19px; }
.cta { display: inline-block; font: 400 20px var(--display); color: #2a1a05; text-decoration: none; background: linear-gradient(#ffe48a, #ffc23d); border-radius: 999px; padding: 12px 24px; box-shadow: 0 5px 0 #a8650d; }
.cta:hover { color: #2a1a05; transform: translateY(-2px); }
section { margin: 0 0 30px; }
.glance dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0; }
.glance div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.glance dt { font-size: 13px; color: var(--muted); font-weight: 800; }
.glance dd { margin: 2px 0 0; font-weight: 700; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 14px; }
.fun ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 70ch; }
.fun li { background: var(--panel); border: 2px dashed rgba(255, 215, 106, .45); border-radius: 16px; padding: 12px 16px 12px 46px; position: relative; }
.fun li::before { content: "★"; position: absolute; left: 16px; top: 11px; color: var(--accent); }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; font-weight: 700; font-size: 15px; line-height: 1.3; height: 100%; }
.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #0a1a32; }
.src ul { margin: 0; padding-left: 20px; font-size: 15px; }
.upd { font-size: 13px; color: var(--muted); }
.intro { max-width: 70ch; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 28px; }
.toc a { text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 15px; }
.toc small { color: var(--muted); }
.group { scroll-margin-top: 80px; }
.foot { border-top: 1px solid var(--line); padding: 20px 16px 40px; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 680px) { .hero { grid-template-columns: minmax(0, 1fr); } .top { position: static; } }
.qa h3 { margin: 18px 0 4px; font-size: 1.02rem; color: var(--accent); } .qa p { margin: 0; }
.quiz { border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px 14px; background: var(--panel); margin-top: 22px; } .quiz .qq { font-weight: 800; } .quiz summary { cursor: pointer; font-weight: 700; color: var(--accent); }
