/* 월렛타입 공통 스타일. 모바일 우선, 본문 최대폭 480px */
:root {
  --brand: #12B886;
  --brand-dark: #099268;
  --brand-soft: #E6FCF5;
  --up: #E03131;
  --down: #1C7ED6;
  --text: #191F28;
  --text-2: #4E5968;
  --text-3: #8B95A1;
  --line: #E5E8EB;
  --bg: #F2F4F6;
  --card: #FFFFFF;
  --radius: 16px;
  --accent: var(--brand);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--card); display: flex; flex-direction: column; }
main { flex: 1; padding: 0 20px 32px; }

/* 헤더 */
.hd { position: sticky; top: 0; z-index: 10; height: 56px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -0.3px; color: var(--brand-dark); }
.logo span { color: var(--text); }
.hd-share { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.hd-share:active { background: var(--bg); }

/* 푸터 */
.ft { padding: 28px 20px 40px; background: var(--bg); font-size: 12px; color: var(--text-3); }
.ft nav { display: flex; gap: 14px; margin-bottom: 10px; font-weight: 600; color: var(--text-2); }
.ft p + p { margin-top: 6px; }

/* 광고 자리 */
.ad { margin: 32px auto; text-align: center; }
.ad-label { display: block; font-size: 10px; color: var(--text-3); letter-spacing: 1px; margin-bottom: 4px; }
.ad-ph { margin: 0 auto; width: 100%; max-width: 336px; height: 280px; border: 1.5px dashed #CED4DA; border-radius: 8px; display: grid; place-items: center; color: #ADB5BD; font-size: 12px; background: #F8F9FA; }
.ad-ph.sm { height: 100px; max-width: 320px; }

/* 홈 */
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: 24px; line-height: 1.35; letter-spacing: -0.5px; }
.hero p { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.cards { display: grid; gap: 14px; margin-top: 20px; }
.card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .1s; }
.card:active { transform: scale(.98); }
.card-emoji { flex: 0 0 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 34px; background: var(--soft, var(--brand-soft)); }
.card-body { min-width: 0; }
.card-kind { font-size: 12px; font-weight: 700; color: var(--c, var(--brand)); }
.card-title { font-size: 17px; font-weight: 800; line-height: 1.35; margin-top: 2px; }
.card-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 소개 */
.intro-top { padding: 32px 0 8px; text-align: center; }
.big-emoji { font-size: 72px; line-height: 1; }
.intro-top h1 { margin-top: 16px; font-size: 26px; line-height: 1.3; letter-spacing: -0.5px; }
.intro-top p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.meta { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.btn { display: block; width: 100%; padding: 17px; border-radius: 14px; font-size: 17px; font-weight: 800; text-align: center; background: var(--accent); color: #fff; }
.btn:active { filter: brightness(.94); }
.btn.ghost { background: var(--bg); color: var(--text); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row .btn { font-size: 15px; padding: 15px 8px; }
.cta { margin-top: 24px; }

.article { margin-top: 36px; }
.article h2 { font-size: 19px; margin-bottom: 12px; letter-spacing: -0.3px; }
.article h3 { font-size: 16px; margin-bottom: 4px; }
.article p { color: var(--text-2); font-size: 15px; }
.article p + p { margin-top: 12px; }
.article section + section { margin-top: 36px; }
.box { padding: 18px; border-radius: 14px; background: var(--bg); }
.box + .box { margin-top: 10px; }
.box p { font-size: 14px; }
.list { list-style: none; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.list li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
ol.list { counter-reset: n; }
ol.list li { padding-left: 28px; counter-increment: n; }
ol.list li::before { content: counter(n); top: 2px; left: 0; width: 20px; height: 20px; font-size: 12px; font-weight: 800; color: #fff; display: grid; place-items: center; }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type-chip { padding: 14px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; min-width: 0; }
.type-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-chip .e { font-size: 22px; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "Q. "; color: var(--accent); }
details.faq p { margin-top: 8px; font-size: 14px; }
.disclaimer { margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: #FFF9DB; color: #8D6E00; font-size: 12.5px; line-height: 1.6; }

/* 질문 */
.progress { margin-top: 24px; }
.progress-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--text-3); }
.progress-top b { color: var(--accent); }
.bar { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .3s; }
.q { margin-top: 36px; font-size: 21px; font-weight: 800; line-height: 1.45; letter-spacing: -0.4px; text-align: center; min-height: 62px; }
.opts { margin-top: 28px; display: grid; gap: 10px; }
.opt { width: 100%; padding: 17px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-size: 16px; font-weight: 600; text-align: left; line-height: 1.45; transition: border-color .15s, background .15s; }
.opt:active, .opt.on { border-color: var(--accent); background: var(--soft, var(--brand-soft)); }
.back { margin-top: 16px; font-size: 14px; color: var(--text-3); padding: 8px 0; }
.q-gap { height: 48px; } /* 보기 버튼과 광고 사이 여백. 실수 클릭 방지 */

/* 로딩 */
.loading { padding-top: 40px; text-align: center; }
.spinner { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--bg); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading h1 { margin-top: 18px; font-size: 20px; }
.loading .pct { margin-top: 4px; color: var(--accent); font-weight: 800; }
.fact-card { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--brand-soft); text-align: left; }
.fact-card small { font-size: 12px; font-weight: 800; color: var(--brand-dark); }
.fact-card b { display: block; margin-top: 6px; font-size: 17px; }
.fact-card p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
.loading .btn { margin-top: 20px; }
.loading .btn[disabled] { background: #CED4DA; cursor: default; }

/* 결과 */
.result-top { margin: 24px 0 0; padding: 28px 20px; border-radius: 20px; text-align: center; background: var(--soft, var(--brand-soft)); }
.result-top small { font-size: 13px; font-weight: 700; color: var(--text-2); }
.result-top .big-emoji { margin-top: 12px; font-size: 84px; }
.result-top h1 { margin-top: 14px; font-size: 24px; line-height: 1.35; letter-spacing: -0.5px; color: var(--accent); }
.result-top p { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.score-big { margin-top: 10px; font-size: 44px; font-weight: 900; color: var(--accent); line-height: 1.1; }
.axes { margin-top: 20px; display: grid; gap: 12px; text-align: left; }
.axis-row { font-size: 13px; font-weight: 700; color: var(--text-2); }
.axis-labels { display: flex; justify-content: space-between; }
.axis-bar { position: relative; margin-top: 4px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.08); }
.axis-bar i { position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.share { margin-top: 20px; }
.share-title { font-size: 14px; font-weight: 700; text-align: center; color: var(--text-2); margin-bottom: 10px; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match a { padding: 16px 12px; border-radius: 14px; border: 1px solid var(--line); text-align: center; }
.match small { font-size: 12px; font-weight: 700; color: var(--text-3); }
.match .e { display: block; font-size: 34px; margin-top: 4px; }
.match b { display: block; font-size: 14px; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 24px; background: rgba(25,31,40,.92); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 게임 공통 */
.game-hud { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; color: var(--text-3); }
.game-hud b { color: var(--text); font-size: 16px; }
.chart-box { position: relative; margin-top: 14px; border-radius: 14px; background: #FBFCFD; border: 1px solid var(--line); overflow: hidden; }
.chart-box canvas { display: block; width: 100%; height: 260px; }
.chart-tag { position: absolute; left: 12px; top: 10px; font-size: 12px; font-weight: 700; color: var(--text-3); }
.verdict { margin-top: 14px; min-height: 28px; text-align: center; font-size: 18px; font-weight: 800; }
.verdict.ok { color: var(--brand-dark); }
.verdict.no { color: var(--text-3); }
.updown-btns { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.updown-btns button { padding: 18px 8px; border-radius: 14px; font-size: 18px; font-weight: 800; color: #fff; }
.updown-btns .up { background: var(--up); }
.updown-btns .down { background: var(--down); }
.updown-btns button[disabled] { opacity: .35; cursor: default; }
.price-now { margin-top: 18px; text-align: center; }
.price-now b { font-size: 34px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.price-now span { display: block; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sell-btn { margin-top: 14px; width: 100%; padding: 22px; border-radius: 16px; font-size: 20px; font-weight: 900; color: #fff; background: var(--down); }
.sell-btn[disabled] { opacity: .35; cursor: default; }
.round-log { margin-top: 18px; display: grid; gap: 6px; font-size: 14px; }
.round-log div { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: var(--bg); }
.round-log b { font-variant-numeric: tabular-nums; }

/* 로고와 그림 슬롯 */
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { border-radius: 7px; }
.art { display: block; width: 100%; height: 100%; object-fit: contain; }
.big-emoji .art { width: 160px; height: 160px; margin: 0 auto; }
.result-top .big-emoji .art { width: 200px; height: 200px; }
.card-emoji .art { width: 56px; height: 56px; }
.type-chip .e .art, .match .e .art { width: 28px; height: 28px; }
.match .e .art { width: 56px; height: 56px; margin: 0 auto; }
.ft .biz { margin-top: 12px; line-height: 1.7; }
.ft .biz a { text-decoration: underline; }

/* 홈: 정사각 배너 슬라이드 + 2열 썸네일 (봉봉식) */
.banner { margin: 16px -8px 0; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; }
.slide img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #D1D6DB; transition: width .2s; }
.dots i.on { width: 18px; background: var(--brand); }
.sec-title { margin: 28px 0 12px; font-size: 18px; letter-spacing: -0.3px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.tile { display: block; min-width: 0; }
.tile img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; background: var(--bg); }
.tile b { display: block; margin-top: 8px; font-size: 15px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article .tiles { margin-top: 4px; }
.intro-thumb { width: calc(100% + 16px); max-width: none; margin: 0 -8px 8px; height: auto; aspect-ratio: 1200 / 630; border-radius: 16px; }

/* 10년 버티기 */
.news-card { margin-top: 16px; padding: 18px; border-radius: var(--radius); background: var(--soft, var(--bg)); }
.news-card small { font-size: 12px; font-weight: 800; color: var(--accent); }
.news-card b { display: block; margin-top: 4px; font-size: 19px; line-height: 1.4; letter-spacing: -0.3px; }
.news-card p { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.pick-title { margin-top: 22px; font-size: 15px; font-weight: 800; text-align: center; }
.asset-btns { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.asset { padding: 16px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-size: 16px; font-weight: 700; }
.asset span { display: block; font-size: 26px; margin-bottom: 2px; }
.asset.wide { grid-column: 1 / -1; }
.asset.on { border-color: var(--accent); background: var(--soft, var(--brand-soft)); }
.asset[disabled]:not(.on) { opacity: .45; }
.year-result { margin-top: 16px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.year-result .twist { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: #FFF9DB; color: #8D6E00; font-size: 13.5px; font-weight: 700; }
.year-result .mine { font-size: 15px; line-height: 1.7; text-align: center; }
.ret-grid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 14px; }
.ret-grid div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; background: var(--bg); }
.ret-grid b { font-variant-numeric: tabular-nums; }

/* 복리 퀴즈 */
.opt.right { border-color: var(--brand); background: var(--brand-soft); }
.opt.wrong { border-color: var(--up); background: #FFF5F5; }
.opt[disabled] { cursor: default; }
.explain { margin-top: 16px; padding: 18px; border-radius: var(--radius); background: var(--bg); font-size: 14.5px; line-height: 1.7; color: var(--text-2); }
.explain > b { display: block; font-size: 17px; margin-bottom: 4px; }
.explain > b.ok { color: var(--brand-dark); }
.explain > b.no { color: var(--up); }
.explain p b { color: var(--text); }
.year-result { scroll-margin-top: 72px; }

/* ---- 40~50대 기준 가독성 (2026-10-11): 한 줄에 하나, 글자 크게, 회색 글씨 진하게 ---- */
:root { --text-2: #333D4B; --text-3: #6B7684; }
body { font-size: 17px; }
.tiles { grid-template-columns: 1fr; gap: 26px; }
.tile img { border-radius: 14px; }
.tile b { margin-top: 10px; font-size: 19px; white-space: normal; }
.tile span { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text-2); white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sec-title { font-size: 20px; }
.intro-top h1 { font-size: 27px; }
.intro-top p { font-size: 16.5px; }
.meta { font-size: 14.5px; }
.article h2 { font-size: 20px; }
.article p, .list li { font-size: 16.5px; line-height: 1.7; }
.box p { font-size: 15.5px; }
.q { font-size: 23px; }
.opt { font-size: 17.5px; padding: 19px 18px; }
.btn { font-size: 18px; padding: 18px; }
.btn-row .btn { font-size: 16.5px; }
.progress-top { font-size: 15px; }
.result-top p { font-size: 16.5px; }
.fact-card p { font-size: 15.5px; }
.disclaimer { font-size: 14px; }
.ft { font-size: 13.5px; }
.news-card p, .explain { font-size: 15.5px; }
.ret-grid, .round-log { font-size: 15px; }
