/* 그 시절 초등학생의 하루 — 현대 UX 위에 시대 시각언어만 입힌다 (명세 §30) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://cdn.jsdelivr.net/npm/galmuri@latest/dist/galmuri.css');

:root {
  --font: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --pixel: 'Galmuri11', 'Galmuri9', 'Pretendard', monospace;
  --bg: #0f1424; --bg2: #1c2440; --panel: #ffffff; --text: #141a2e; --muted: #5e6786;
  --accent: #ff7a00; --accent-ink: #ffffff; --accent2: #3a8ff0; --line: #e4e8f2; --chip: #f2f4fa;
  --radius: 18px; --shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
/* 2005 — Windows XP 루나 + 싸이월드 파스텔 */
body[data-theme='y2005'] { --bg: #245edb; --bg2: #6fb3ff; --accent: #3fa74a; --accent2: #245edb; --panel: #f6f9ff; --text: #0b1c3d; --muted: #4b5f8a; --line: #d6e0f5; --chip: #e9f0ff; }
/* 2007 — 버디버디 오렌지 + 메이플 */
body[data-theme='y2007'] { --bg: #ff7a00; --bg2: #ffc266; --accent: #e94e1b; --accent2: #ff9d2e; --panel: #fff9f0; --text: #2a1600; --muted: #7a4a1e; --line: #ffe0bf; --chip: #fff0dc; }
/* 2009 — 닌텐도 DS 화이트 + 네이트온 */
body[data-theme='y2009'] { --bg: #37b6e5; --bg2: #b8ecff; --accent: #1f8fbf; --accent2: #37c26c; --panel: #f9feff; --text: #0b2b3a; --muted: #3b6b80; --line: #d3eef8; --chip: #e6f6fc; }
/* 1970s — 세피아·흑백 TV·나무 책상 */
body[data-theme='y1970s'] { --bg: #5b4636; --bg2: #a98b6f; --accent: #8b3a2f; --accent2: #c9a26b; --panel: #f6efe3; --text: #2b1d14; --muted: #6e5744; --line: #e2d3bd; --chip: #efe3d0; }
/* 1980s — 컬러 TV 삼원색·프로야구·88 */
body[data-theme='y1980s'] { --bg: #1f4e9c; --bg2: #e0392b; --accent: #e0392b; --accent2: #f2c832; --panel: #fff8f0; --text: #1a1a2e; --muted: #5a5a7a; --line: #ffd9c2; --chip: #fff0e0; }
/* 1990s — 486 베이지·PC통신 파랑·하이틴 */
body[data-theme='y1990s'] { --bg: #2c3e7a; --bg2: #8fb3ff; --accent: #1f8a5b; --accent2: #2c3e7a; --panel: #f2f4fb; --text: #141a3a; --muted: #4d5a85; --line: #d5dcf2; --chip: #e6ebfa; }
/* 2000~2004 — 포트리스·윈도우 98·플래시 */
body[data-theme='y2000a'] { --bg: #3a5bd9; --bg2: #8fd3ff; --accent: #ff6f3c; --accent2: #3a5bd9; --panel: #f4f8ff; --text: #0e1c4a; --muted: #4a5b8c; --line: #d3e2ff; --chip: #e6efff; }
/* 2014~2017 — 유튜브 레드·플랫 */
body[data-theme='y2014'] { --bg: #e62117; --bg2: #ff8a80; --accent: #e62117; --accent2: #ff8a80; --panel: #fff7f6; --text: #2a0a08; --muted: #7a3a36; --line: #ffd6d2; --chip: #ffe9e6; }
/* 2018~2020 — 브롤스타즈 퍼플·틱톡 핑크 */
body[data-theme='y2018'] { --bg: #6a3df5; --bg2: #ff5fa2; --accent: #6a3df5; --accent2: #ff5fa2; --panel: #faf7ff; --text: #1e1040; --muted: #5a4a8a; --line: #e6dcff; --chip: #f0e9ff; }
/* 2011 — 카카오톡 옐로 + 갤럭시 다크 */
body[data-theme='y2011'] { --bg: #f7d133; --bg2: #ffe97a; --accent: #3b1e08; --accent-ink: #ffe97a; --accent2: #f7d133; --panel: #fffdf2; --text: #3b1e08; --muted: #6b4a2a; --line: #f2e6b8; --chip: #fff6cc; }

* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--text); word-break: keep-all; overflow-wrap: anywhere; line-height: 1.55;
  background: radial-gradient(1200px 600px at 20% -10%, var(--bg2), transparent 60%), linear-gradient(160deg, var(--bg), var(--bg2));
  background-attachment: fixed; min-height: 100vh; transition: background .6s ease;
}
body::before { /* 도트 패턴 */
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .8) 1.2px, transparent 1.3px); background-size: 22px 22px;
}
#app { position: relative; max-width: 520px; margin: 0 auto; padding: 18px 14px 80px; overflow-x: hidden; }
/* 언어별 줄바꿈: 한국어는 어절 유지(keep-all), 일본어는 글자 단위(normal + strict), 영어는 단어 단위 + 긴 단어 강제 줄바꿈 */
html[lang='ja'] body, html[lang='ja'] #app * { word-break: normal; line-break: strict; overflow-wrap: anywhere; }
html[lang='en'] body, html[lang='en'] #app * { word-break: normal; overflow-wrap: anywhere; }
html[lang='ja'] { --font: 'Pretendard', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif; }
html[lang='ja'] body, html[lang='ja'] button, html[lang='ja'] input { font-family: var(--font); }
button { font-family: inherit; }

/* ── 헤더 ── */
.hero { color: #fff; padding: 40px 10px 22px; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hero.small { padding-top: 22px; }
.hero h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -0.02em; }
.hero .lead { margin: 0; opacity: .95; font-size: 15.5px; }
.pixel-tag { font-family: var(--pixel); font-size: 13px; letter-spacing: .12em; opacity: .9; }
.back { background: rgba(255, 255, 255, .18); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; margin-bottom: 10px; }
body[data-theme='y2011'] .hero { color: #3b1e08; text-shadow: none; }
body[data-theme='y2011'] .back { background: rgba(59, 30, 8, .12); color: #3b1e08; }

/* ── 패널 ── */
.panel { background: var(--panel); border-radius: var(--radius); padding: 20px 18px; margin: 14px 0; box-shadow: var(--shadow); }
.panel h2.q { font-size: 20px; margin: 0 0 14px; }
.panel h3 { font-size: 16px; margin: 0 0 10px; }
.panel h3 small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.callout { background: var(--chip); border-radius: 12px; padding: 12px 14px; margin: 12px 0 0; }

/* ── 연도 그리드 ── */
.year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.year { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 8px 10px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 92px; transition: transform .12s, box-shadow .12s; }
.year .year-num { font-family: var(--pixel); font-size: 24px; line-height: 1; }
.year .year-sub { font-size: 11.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.year .year-done { font-size: 11px; background: var(--chip); border-radius: 999px; padding: 2px 8px; align-self: flex-start; margin-top: 2px; }
.year.on { border-color: var(--accent); box-shadow: 0 6px 0 var(--accent); }
.year.on:hover { transform: translateY(-2px); }
.year.on:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--accent); }
.year.off { opacity: .5; background: repeating-linear-gradient(135deg, #fff 0 8px, #f3f4f8 8px 16px); cursor: not-allowed; }
.me-cta { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.me-cta h3 { margin: 0 0 4px; }
.me-cta p { margin: 0; color: var(--muted); font-size: 13.5px; }
.foot { display: flex; flex-direction: column; gap: 4px; color: #fff; opacity: .85; font-size: 12.5px; padding: 8px 10px; text-align: center; }
body[data-theme='y2011'] .foot { color: #3b1e08; }

/* ── 상단 바: 브랜드 마크(좌) · 국가 선택(우, 부차적) ── */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px 0; }
.brand-mark { font-family: var(--pixel); font-size: 11px; letter-spacing: .28em; color: rgba(255, 255, 255, .75); }
body[data-theme='y2011'] .brand-mark { color: rgba(59, 30, 8, .65); }
.foot-brand { font-family: var(--pixel); letter-spacing: .08em; opacity: .9; margin-top: 4px; }
.country-pick { position: relative; }
.cpick { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; padding: 4px 10px 4px 8px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; opacity: .85; }
.cpick:hover { opacity: 1; }
.cpick-code { font-family: var(--pixel); font-size: 11px; letter-spacing: .08em; }
.cpick-caret { font-size: 10px; opacity: .8; }
body[data-theme='y2011'] .cpick { color: #3b1e08; border-color: rgba(59, 30, 8, .3); }
.cmenu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 170px; z-index: 20; }
.cmenu[hidden] { display: none; }
.cbtn { border: 0; background: transparent; color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; gap: 8px; align-items: center; text-align: left; }
.cbtn:hover { background: var(--chip); }
.cbtn.on { background: var(--chip); }
.cbtn span { font-size: 13px; }

/* ── 출생연도 진입 · 10년대 탭 ── */
.birth-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.birth { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 2px; font-family: var(--pixel); font-size: 15px; cursor: pointer; }
.birth:hover { border-color: var(--accent); background: var(--chip); }
.birth.me { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tab.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.year .year-count { font-size: 10.5px; color: var(--muted); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.a-low { font-size: 11px; color: #b45309; background: #fff4e0; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }

/* ── 버튼 ── */
.btn { border: 2px solid var(--line); background: #fff; color: var(--text); border-radius: 12px; padding: 12px 16px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .1s; }
.btn:active { transform: translateY(2px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* ── 폼 ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 13px; color: var(--muted); }
.field input { font: inherit; font-size: 22px; font-family: var(--pixel); padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; width: 100%; }

/* ── 타임라인 / 그래프 ── */
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--chip); }
.timeline li.off { opacity: .55; }
.tl-year { font-family: var(--pixel); font-size: 20px; }
.tl-age { color: var(--muted); font-size: 13px; }
.tl-off { font-size: 12px; color: var(--muted); }
.graph { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bar { display: grid; grid-template-columns: 52px 1fr 36px; align-items: center; gap: 8px; font-size: 13px; }
.bar i { display: block; height: 14px; background: var(--accent); border-radius: 4px; min-width: 2px; transition: width .4s; }
.bar-y { font-family: var(--pixel); }
.bar-v { color: var(--muted); text-align: right; }

/* ── HUD ── */
.hud { position: sticky; top: 8px; z-index: 5; background: var(--panel); border-radius: 14px; padding: 10px 12px 8px; box-shadow: var(--shadow); margin-bottom: 12px; }
.hud-row { display: flex; gap: 8px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.hud-place { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.hud-year { font-family: var(--pixel); font-size: 18px; background: var(--accent); color: var(--accent-ink); padding: 2px 8px; border-radius: 6px; }
.hud-money { margin-left: auto; font-weight: 700; }
.hud-inv { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 6px; }
.chip { background: var(--chip); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.chip.ghost { color: var(--muted); }
.progress { height: 6px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .5s ease; }

/* ── 장면 ── */
.scene { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px 16px; animation: pop .28s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.scene-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.scene-time { font-family: var(--pixel); font-size: 22px; color: var(--accent); }
.scene h2 { margin: 0; font-size: 20px; }
.scene-text { font-size: 16px; margin: 6px 0 18px; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 12px; cursor: pointer; transition: transform .1s, border-color .1s, background .1s; }
.choice:hover { border-color: var(--accent); background: var(--chip); }
.choice:active { transform: scale(.985); }
.choice.disabled { opacity: .45; cursor: not-allowed; }
.c-e { font-size: 24px; text-align: center; }
.c-body { display: flex; flex-direction: column; }
.c-label { font-weight: 700; font-size: 15px; }
.c-sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.choice kbd { font-family: var(--pixel); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.scene-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--muted); font-size: 12px; }
.scene.shop .choices { display: grid; grid-template-columns: 1fr 1fr; }
.scene.shop .choice { grid-template-columns: 30px 1fr; }
.scene.shop .choice kbd { display: none; }
.scene.shop .choice:last-child { grid-column: 1 / -1; }

/* ── 인터스티셜 (기억 체크) ── */
.inter-item { display: flex; gap: 14px; align-items: center; background: var(--chip); border-radius: 14px; padding: 14px; }
.ii-e { font-size: 44px; }
.inter-item b { font-size: 17px; }
.inter-item p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.inter-q { font-size: 18px; font-weight: 700; margin: 18px 0 10px; text-align: center; }
.memory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mem { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 6px; font-weight: 600; cursor: pointer; font-size: 14px; }
.mem:hover { border-color: var(--accent); }
.after { margin: 18px 0 14px; padding: 12px 14px; border-left: 4px solid var(--accent); background: var(--chip); border-radius: 0 12px 12px 0; font-size: 15px; }

/* ── 결과 ── */
.result-hero h1 { font-size: clamp(28px, 7.5vw, 36px); }
.type-card { text-align: center; }
.type-e { font-size: 72px; line-height: 1; }
.type-card h2 { font-size: 28px; margin: 8px 0 4px; color: var(--accent); }
.type-label { font-family: var(--pixel); color: var(--muted); margin: 0 0 12px; }
.type-desc { margin: 0; font-size: 15px; text-align: left; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats.inline { margin-top: 14px; }
.stat { background: var(--chip); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat b { font-size: 34px; font-family: var(--pixel); line-height: 1.1; }
.axes { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.axis { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 13px; }
.axis-bar { height: 10px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.axis-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .6s; }
.top4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.t4 { background: var(--chip); border-radius: 12px; padding: 12px 6px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.t4 span { font-size: 30px; }
.t4 b { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cbtn span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scene-head h2, .hero h1, .type-card h2 { overflow-wrap: anywhere; }
.log { margin: 0; padding-left: 20px; font-size: 14px; }
.log li { margin: 3px 0; }
.compare .match { font-family: var(--pixel); font-size: 56px; color: var(--accent); text-align: center; line-height: 1; margin: 8px 0; }
.cmp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12.5px; margin-top: 12px; }
.cmp-cols ul { list-style: none; padding: 0; margin: 6px 0 0; }
.cmp-cols li { margin: 2px 0; }
.card-wrap canvas { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.card-loading { padding: 40px; text-align: center; color: var(--muted); }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.share-btns .btn { flex: 1 1 auto; }
.actions { display: flex; flex-direction: column; gap: 8px; }

/* ── 아카이브 ── */
.news ul { margin: 0; padding-left: 18px; font-size: 14px; }
.arch { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.arch li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 12px; background: var(--chip); }
.a-e { font-size: 24px; }
.arch b { font-size: 14.5px; }
.arch em { color: var(--accent); font-style: normal; }
.arch p { margin: 1px 0 0; color: var(--muted); font-size: 12.5px; }
.a-mem { font-size: 16px; }

/* ── 제보 ── */
.a-side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.a-flag { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; opacity: .55; padding: 2px 4px; }
.a-flag:hover { opacity: 1; color: var(--accent); }
.report-cta { text-align: center; padding: 10px; }
.dlg-wrap { position: fixed; inset: 0; background: rgba(10, 12, 24, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 60; padding: 12px; }
.dlg { background: var(--panel); color: var(--text); border-radius: 18px; padding: 18px; width: 100%; max-width: 480px; box-shadow: var(--shadow); animation: pop .22s ease; }
.dlg h3 { margin: 0 0 6px; font-size: 17px; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.kind { border: 2px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.kind:has(input:checked) { border-color: var(--accent); background: var(--chip); }
.kind input { accent-color: var(--accent); }
.dlg textarea, .dlg input[type=email] { width: 100%; font: inherit; font-size: 15px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; resize: vertical; }
.dlg .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dlg-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
@media (min-width: 600px) { .dlg-wrap { align-items: center; } }

/* ── 해자: 순위·기억률·우리 반·트렌드 ── */
.stat-pct { display: block; font-size: 11.5px; color: var(--accent); margin-top: 4px; font-family: var(--font); font-weight: 600; }
.t4-rate { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; min-height: 1em; }
.mrate { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.mrate i { display: block; height: 6px; width: 0; max-width: 90px; background: var(--accent); border-radius: 999px; flex: 0 0 auto; transition: width .5s; }
.mrate em { font-style: normal; color: #15803d; background: #dcfce7; border-radius: 6px; padding: 0 6px; }
.group-form { display: flex; gap: 6px; margin-top: 10px; }
.group-form input { flex: 1; font: inherit; font-size: 14px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.members { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.members li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--chip); font-size: 14px; }
.members li.me { outline: 2px solid var(--accent); }
.members .m-type { color: var(--muted); font-size: 12.5px; }
.members b { font-family: var(--pixel); }
.links-row { display: flex; gap: 14px; justify-content: center; padding: 10px; background: transparent; box-shadow: none; }
.links-row .link { color: #fff; opacity: .85; text-decoration: none; font-size: 13px; }
body[data-theme='y2011'] .links-row .link { color: #3b1e08; }
@media (max-width: 380px) { .group-form { flex-direction: column; } }

/* ── 토스트 ── */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #141a2e; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s; z-index: 50; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 380px) { .year-grid { grid-template-columns: repeat(2, 1fr); } .scene.shop .choices { grid-template-columns: 1fr; } }
