/* 장난감 공통 스타일 — 각 페이지는 :root 변수만 바꿔서 색을 정한다 */
:root { --bg: #f7f5f0; --ink: #1f1d1a; --muted: #77716a; --line: #e4ded3; --card: #fff; --accent: #ff6b3d; --accent-ink: #fff; --w: 720px; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Gowun Dodum', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 14px 16px 48px; }
.home-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.title { text-align: center; font-family: 'Black Han Sans', 'Gowun Dodum', sans-serif; font-weight: 400; font-size: clamp(30px, 7vw, 46px); line-height: 1.15; margin: 12px 0 4px; }
.sub { text-align: center; color: var(--muted); margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.center { text-align: center; }
.btn { border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 12px 20px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.big { font-size: 19px; padding: 15px 26px; }
.btn:focus-visible, .opt:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #3b6fe0; outline-offset: 2px; }
.row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-size: 16px; }
.opt:hover { border-color: var(--accent); }
.opt.right { border-color: #1f9a55; background: #eaf7ef; }
.opt.wrong { border-color: #d93a2f; background: #fdecea; }
.result { text-align: center; }
.result h2 { font-family: 'Black Han Sans', 'Gowun Dodum', sans-serif; font-weight: 400; font-size: clamp(28px, 6vw, 38px); margin: 6px 0; }
.result .big-emoji { font-size: 56px; margin: 0; line-height: 1.1; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.field { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--card); font-size: 17px; }
.toy-footer { text-align: center; margin-top: 34px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; background: var(--line); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
