/* V4(11/27 SS): 무료 도구 3종·모임 순위·운세 다리·연도 토글·홈 상단 진입. 기준 = 갤럭시 360px + 큰 글씨 130~150%.
   고정 높이·overflow:hidden 없이 em 단위와 줄바꿈으로만 맞춘다. */
.v4-tool { max-width: 760px; }
.v4-tool h1 { line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.v4-tool h2 { line-height: 1.4; word-break: keep-all; }
.v4-lead { line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.v4-kicker { display: block; font-size: 14px; color: var(--text-sub, #666); letter-spacing: .04em; }
.v4-count { font-size: .8em; color: var(--text-sub, #666); font-weight: 600; }
.v4-tool section { margin: 1.6em 0; }
.v4-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75em, 1fr)); gap: .4em; margin: .8em 0; }
.v4-num { min-height: 2.75em; min-width: 0; border-radius: 50%; border: 2px solid var(--border-ui, #ccd); background: var(--surface, #fff); color: var(--text, #222); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.v4-num[aria-pressed="true"], .v4-num.is-fixed { background: var(--primary, #2f5bd3); color: var(--on-primary, #fff); border-color: var(--primary, #2f5bd3); }
.v4-num.is-ex { background: var(--bg-inner, #eee); color: var(--text-sub, #888); text-decoration: line-through; border-style: dashed; }
.v4-key-fixed { color: var(--primary, #2f5bd3); }
.v4-key-ex { color: var(--text-sub, #888); text-decoration: line-through; }
.v4-tool .actions button, .v4-result .actions button { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 20px; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; border: 1px solid var(--border-ui, #ccd); white-space: normal; text-align: center; }
.v4-tool .actions button.primary, .v4-result .actions button.primary { border-color: transparent; }
.v4-tool .actions button:disabled { opacity: .5; cursor: not-allowed; }
.v4-chips { display: flex; flex-wrap: wrap; gap: .5em; margin: .6em 0; }
.v4-chips button, .v4-chips a, .v4-chips .v4-chip-info { display: inline-flex; align-items: center; min-height: 44px; padding: .4em .9em; border-radius: 999px; border: 1px solid var(--border-ui, #ccd); background: var(--surface, #fff); color: var(--text, #222); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: normal; text-align: left; }
.v4-chips .v4-chip-info { cursor: default; background: var(--primary-soft, #eef3ff); }
.v4-options { display: flex; flex-wrap: wrap; gap: 1em; align-items: center; margin: .8em 0; }
.v4-options label { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; }
.v4-options select, .v4-tool select, .v4-member input { font: inherit; min-height: 44px; padding: 0 .5em; border-radius: 10px; border: 1px solid var(--border-ui, #ccd); background: var(--surface, #fff); color: var(--text, #222); max-width: 100%; }
.v4-switch input { width: 1.3em; height: 1.3em; }
.v4-result { border: 1px solid var(--border-ui, #ccd); border-radius: 16px; padding: 1em; background: var(--bg-card, #fff); }
.v4-result table { width: 100%; border-collapse: collapse; }
.v4-result th, .v4-result td { padding: .45em .3em; border-bottom: 1px solid var(--border, #e5e5e5); text-align: left; word-break: keep-all; overflow-wrap: anywhere; }
.v4-result td.v4-num-cell { text-align: right; white-space: nowrap; }
.v4-big { font-size: 1.35em; font-weight: 800; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.v4-ok { color: var(--success, #1b7f45); font-weight: 700; }
.v4-warn { color: var(--danger, #c0392b); font-weight: 700; }
.v4-balls { display: flex; flex-wrap: wrap; gap: .3em; margin: .3em 0; }
.v4-gen-list { list-style: none; padding: 0; margin: 0; }
.v4-gen-list li { padding: .7em 0; border-bottom: 1px solid var(--border, #e5e5e5); }
.v4-bt-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--primary, #2f5bd3); text-decoration: underline; text-underline-offset: 3px; word-break: keep-all; }
.combo-row .v4-bt-link { margin: .1em 0 0 .2em; font-size: 15px; min-height: 40px; }
.picks-combo .v4-bt-link, .lifetime-combo .v4-bt-link { font-size: 15px; }
.picks-combo { flex-wrap: wrap; }
.picks-combo .v4-bt-link { flex-basis: 100%; min-height: 36px; }
.v4-steps { padding-left: 1.3em; line-height: 1.7; }
.v4-steps li { margin: .5em 0; word-break: keep-all; overflow-wrap: anywhere; }
.v4-steps b { display: block; }
.v4-published { padding-left: 1.3em; line-height: 1.8; }
.v4-faq ul { padding-left: 1.2em; line-height: 1.7; }
.v4-faq details { border-bottom: 1px solid var(--border, #e5e5e5); padding: .6em 0; }
.v4-faq summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.v4-related { display: flex; flex-wrap: wrap; gap: .4em 1.2em; margin: 1.6em 0; }
.v4-related h2 { flex-basis: 100%; margin: 0; font-size: 1.05em; }
.v4-related > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.v4-member { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5em; margin: .5em 0; }
.v4-member input { width: 100%; box-sizing: border-box; }
.v4-member select { width: 100%; }
.v4-arrive { background: var(--primary-soft, #eef3ff); border-radius: 14px; padding: .8em 1em; font-weight: 700; }
.v4-year-help { margin: .6em 0; }
.v4-year-help input { font: inherit; min-height: 44px; width: 7em; max-width: 100%; }
.v4-rank-list { list-style: none; padding: 0; margin: 0; }
.v4-rank-list li { display: flex; flex-wrap: wrap; gap: .3em .8em; align-items: baseline; padding: .6em 0; border-bottom: 1px solid var(--border, #e5e5e5); }
.v4-rank-list .v4-rank { font-weight: 800; min-width: 3em; }
.v4-rank-list .v4-score { margin-left: auto; color: var(--text-sub, #666); white-space: nowrap; }
.v4-blessing { margin: .8em 0; padding: .8em 1em; border-radius: 14px; background: var(--primary-soft, #eef3ff); font-weight: 700; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.v4-progress { font-variant-numeric: tabular-nums; }
/* 운세 → 로또 다리 */
.v4-outside { max-width: 1000px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
@media (max-width: 600px) { .v4-outside { padding: 0 16px; } }
.v4-bridge { margin: 1.5em 0 1em; box-sizing: border-box; padding: 1.1em; border-radius: 18px; border: 2px solid var(--primary, #2f5bd3); background: var(--bg-card, #fff); }
.v4-bridge h2 { margin: 0 0 .4em; }
.v4-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: .6em; }
.v4-actions a { flex: 1 1 14em; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 16px; border-radius: 14px; font-weight: 700; text-decoration: none; text-align: center; white-space: normal; line-height: 1.5; }
/* 2027 띠 쪽 연도 토글·목차 */
.v4-year-toggle { margin: 1em 0; }
.v4-year-toggle [role="tablist"] { display: flex; flex-wrap: wrap; gap: .5em; }
.v4-year-toggle [role="tab"] { flex: 1 1 9em; min-height: 48px; border-radius: 12px; border: 1px solid var(--border-ui, #ccd); background: var(--surface, #fff); color: var(--text, #222); font: inherit; font-weight: 700; cursor: pointer; white-space: normal; padding: .4em .6em; }
.v4-year-toggle [role="tab"][aria-selected="true"] { background: var(--primary, #2f5bd3); color: var(--on-primary, #fff); border-color: transparent; }
.v4-year-toggle section { margin-top: .8em; padding: 1em; border-radius: 14px; background: var(--bg-inner, #f5f5f7); }
.v4-weeks { padding-left: 1.2em; line-height: 1.7; }
.v4-weeks li { margin: .5em 0; word-break: keep-all; overflow-wrap: anywhere; }
.v4-toc { margin: 1em 0; padding: .8em 1em; border-radius: 14px; border: 1px solid var(--border-ui, #ccd); }
.v4-toc h2 { margin: 0 0 .3em; font-size: 1.05em; }
.v4-toc ol { margin: 0; padding-left: 0; list-style: none; line-height: 1.9; }
/* 홈 상단 2027 진입 + 도구 */
.v4-hero { margin: 0 0 16px; display: grid; gap: 10px; }
.v4-hero-main { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #b3261e, #e0602a); color: #fff; text-decoration: none; }
.v4-hero-main strong { font-size: 1.3em; line-height: 1.35; word-break: keep-all; }
.v4-hero-main span { font-weight: 600; word-break: keep-all; }
.v4-hero-main .v4-kicker { color: #ffe3d6; }
.v4-hero-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v4-hero-tools a { display: grid; gap: 2px; min-height: 56px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border-ui, #ccd); background: var(--bg-card, #fff); color: var(--text, #222); font-weight: 700; text-decoration: none; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.v4-hero-tools small { font-weight: 500; color: var(--text-sub, #666); font-size: 14px; }
@media (min-width: 720px) { .v4-hero-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===== V5(11/27): 1등 벤치 390px 실물(로또넘버 남색 티켓·연주력 카드·데이사주 탭) 확인 뒤 클로드 직접 설계 ===== */
.v5-home { display: grid; gap: 14px; margin: 4px 0 20px; }
.v5-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 12px; border-radius: 999px; background: #f6c453; color: #101735; font-weight: 800; font-size: 14px; line-height: 1.3; }
.v5-ticket { background: linear-gradient(160deg, #0d1430 0%, #1f2d63 100%); color: #fff; border-radius: 24px; padding: 18px 14px 14px; box-shadow: 0 12px 30px rgba(13, 20, 48, .28); }
.v5-ticket h2, .v5-ny h2 { margin: 10px 0 4px; font-size: 26px; font-weight: 800; line-height: 1.3; color: #fff; letter-spacing: -.01em; word-break: keep-all; }
.v5-sub { margin: 0 0 12px; font-size: 14px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.v5-ticket .v5-sub { color: #b9c4f0; }
.v5-rows { list-style: none; margin: 0; padding: 6px 12px; background: #fff; border-radius: 18px; color: #101735; }
.v5-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px dashed #e1e6f2; }
.v5-rows li:last-child { border-bottom: 0; }
.v5-tag { flex: 0 0 26px; height: 26px; border-radius: 8px; background: #101735; color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.v5-balls { display: flex; flex-wrap: wrap; gap: 4px; flex: 0 1 auto; min-width: 0; }
.v5-ball { width: 29px; height: 29px; flex: 0 0 29px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: -.02em; background: radial-gradient(circle at 26% 22%, rgba(255, 255, 255, .9) 0 9%, rgba(255, 255, 255, 0) 10%), linear-gradient(150deg, var(--l), var(--d)); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .18), 0 2px 4px rgba(0, 0, 0, .18); text-shadow: 0 1px 2px rgba(0, 0, 0, .45); color: #fff; }
.v5-b1 { --l: #ffd84d; --d: #e0a100; color: #3b2a00; text-shadow: none; }
.v5-b2 { --l: #5aa9ff; --d: #1d6fe0; }
.v5-b3 { --l: #ff7b7b; --d: #d62f3b; }
.v5-b4 { --l: #b8bec9; --d: #6f7887; }
.v5-b5 { --l: #6fd38a; --d: #219146; }
.v5-rows a.v5-go { margin-left: auto; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eef2ff; color: #1d4fd8; font-size: 22px; font-weight: 800; text-decoration: none; line-height: 1; }
.v5-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.v5-quick a { display: grid; align-content: center; gap: 2px; min-height: 60px; padding: 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.v5-quick b { font-size: 15px; font-weight: 800; }
.v5-quick small { font-size: 13px; color: #b9c4f0; }
.v5-ny { border-radius: 24px; padding: 18px 14px 14px; background: linear-gradient(160deg, #7d1418 0%, #d24a2c 100%); color: #fff; box-shadow: 0 12px 30px rgba(125, 20, 24, .25); }
.v5-ny .v5-sub { color: #ffe1d4; }
.v5-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: #ffd36b; }
.v5-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.v5-seg a { display: grid; align-content: center; gap: 2px; min-height: 60px; padding: 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, .94); color: #7d1418; text-decoration: none; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.v5-seg b { font-size: 15px; font-weight: 800; }
.v5-seg small { font-size: 13px; color: #8a5a4e; }
.v5-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px 38px 12px 14px; border-radius: 16px; background: #fff; color: #2a1412; text-decoration: none; }
.v5-row b { flex-basis: 100%; font-size: 16px; font-weight: 800; line-height: 1.4; word-break: keep-all; }
.v5-row small { font-size: 13px; color: #7a5a52; }
.v5-row i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 24px; font-weight: 800; color: #b3261e; }
.v5-tag-red { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: #ffe6dd; color: #b3261e; font-size: 13px; font-weight: 800; }
.v5-quick a:focus-visible, .v5-seg a:focus-visible, .v5-row:focus-visible, .v5-rows a:focus-visible { outline: 3px solid #f6c453; outline-offset: 2px; }
/* 홈 큰 버튼 목록(5070 큰 글씨 결정 HQ-126 유지): 굵은 금색 테두리 대신 얇은 선 + 그림자, 화살표 › */
#senior-big3 > a, #senior-big3 :is(a.big-tti, a.big-2027, a.big-stores, a.big-dream, a.big-year), #senior-big3 .home-tti-picker > summary { border: 1px solid var(--border-ui, #e6e0d3); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 22px rgba(16, 23, 53, .07); min-height: 76px; }
#senior-big3 > a::after, #senior-big3 .home-tti-picker > summary::after { content: "›"; font-size: 30px; font-weight: 800; color: #b3261e; }
#senior-big3 .home-tti-years a, #senior-big3 :is(.home-tti-panel, .home-tti-picker) .home-tti-years a { border: 1px solid var(--border-ui, #e6e0d3); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); min-height: 84px; }
.home-tti-decades button { border: 1px solid var(--border-ui, #e6e0d3); min-height: 64px; border-radius: 14px; }
.home-tti-decades button[aria-expanded="true"] { background: #101735; color: #fff; box-shadow: none; border-color: #101735; }
.home-dream-icons button { border: 1px solid var(--border-ui, #e6e0d3); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 16px rgba(16, 23, 53, .06); min-height: 100px; }
/* 무료 도구 쪽: 흰 카드 + 알약 버튼 + 공 색 번호판 */
.v4-tool > section { background: var(--surface, #fff); border: 1px solid var(--border-ui, #e6e8ef); border-radius: 20px; padding: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(16, 23, 53, .06); }
.v4-tool > section.v4-faq { box-shadow: none; }
.v4-tool .actions button.primary, .v4-result .actions button.primary { flex: 1 1 100%; border-radius: 999px; background: linear-gradient(135deg, #2346c8, #101735); color: #fff; min-height: 56px; font-size: 17px; }
.v4-tool .actions button.secondary, .v4-result .actions button.secondary { border-radius: 999px; }
.v4-num.ball-1[aria-pressed="true"], .v4-num.ball-1.is-fixed { background: radial-gradient(circle at 32% 28%, #fff 0 6%, #ffd84d 34%, #e0a100 100%); color: #3b2a00; border-color: #e0a100; }
.v4-num.ball-2[aria-pressed="true"], .v4-num.ball-2.is-fixed { background: radial-gradient(circle at 32% 28%, #fff 0 6%, #5aa9ff 34%, #1d6fe0 100%); color: #fff; border-color: #1d6fe0; }
.v4-num.ball-3[aria-pressed="true"], .v4-num.ball-3.is-fixed { background: radial-gradient(circle at 32% 28%, #fff 0 6%, #ff7b7b 34%, #d62f3b 100%); color: #fff; border-color: #d62f3b; }
.v4-num.ball-4[aria-pressed="true"], .v4-num.ball-4.is-fixed { background: radial-gradient(circle at 32% 28%, #fff 0 6%, #b8bec9 34%, #6f7887 100%); color: #fff; border-color: #6f7887; }
.v4-num.ball-5[aria-pressed="true"], .v4-num.ball-5.is-fixed { background: radial-gradient(circle at 32% 28%, #fff 0 6%, #6fd38a 34%, #219146 100%); color: #fff; border-color: #219146; }
.v4-num.is-ex[aria-pressed="true"] { background: var(--bg-inner, #eef0f4); color: var(--text-sub, #888); border-color: var(--border-ui, #ccd); }
.v4-result { border-radius: 20px; border: 0; border-top: 6px solid #101735; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(16, 23, 53, .1); }
.v4-big { color: var(--text, #101735); }
.v4-rank-list li:nth-child(-n+3) .v4-rank { display: inline-grid; place-items: center; min-width: 2.4em; height: 2.4em; border-radius: 50%; }
.v4-rank-list li:nth-child(1) .v4-rank { background: #f6c453; color: #3b2a00; }
.v4-rank-list li:nth-child(2) .v4-rank { background: #cfd6e0; color: #2a2f3a; }
.v4-rank-list li:nth-child(3) .v4-rank { background: #e3a26f; color: #3a1d06; }

/* =====================================================================
   V4.2(11/27 SS·집도의 1차 육안 불합격 후 전면 리빌드) — 단일 프리미엄 디자인 시스템
   한지 #FAF8F4 · 카드 #FFF(1px rgba(23,23,23,.08)) · 먹 #171717 · 보조 #66625C
   강조 2축: 로또 남색 #14213D / 2027 적갈 #9B2226 + 금 #C89B3C · 제목 명조 · 본문 Pretendard(숫자 등폭)
   ===================================================================== */
:root[data-theme="light"] {
  --bg:#FAF8F4; --surface:#FFFFFF; --surface-2:#F4F1EA; --warm-soft:#F4F1EA; --banner-bg:#FFFFFF;
  --text:#171717; --text-sub:#66625C; --text-muted:#66625C; --border:rgba(23,23,23,.08); --border-ui:rgba(23,23,23,.14);
  --gold:#C89B3C; --gold-soft:rgba(200,155,60,.14); --primary:#9B2226; --primary-soft:#F6E9E6; --on-primary:#FFFFFF; --primary-shadow:#6E1519;
  --shadow-1:0 1px 2px rgba(23,23,23,.04), 0 8px 24px rgba(20,33,61,.06);
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg:#FAF8F4; --surface:#FFFFFF; --surface-2:#F4F1EA; --warm-soft:#F4F1EA; --banner-bg:#FFFFFF;
  --text:#171717; --text-sub:#66625C; --text-muted:#66625C; --border:rgba(23,23,23,.08); --border-ui:rgba(23,23,23,.14);
  --gold:#C89B3C; --gold-soft:rgba(200,155,60,.14); --primary:#9B2226; --primary-soft:#F6E9E6; --on-primary:#FFFFFF; --primary-shadow:#6E1519;
  --shadow-1:0 1px 2px rgba(23,23,23,.04), 0 8px 24px rgba(20,33,61,.06);
} }
body { font-variant-numeric: tabular-nums; }
/* 로또 공 1종(단색 입체): 홈(ball-1-10…)·생성 쪽(ball-1…)·티켓(v5-b…) 모두 같은 모양 */
.lotto-ball.ball-1, .lotto-ball.ball-1-10, .v5-ball.v5-b1 { --bl:#FFD23F; --bd:#E6A400; color:#2B2100 !important; text-shadow:none !important; }
.lotto-ball.ball-2, .lotto-ball.ball-11-20, .v5-ball.v5-b2 { --bl:#4C9BFF; --bd:#1A5FD0; }
.lotto-ball.ball-3, .lotto-ball.ball-21-30, .v5-ball.v5-b3 { --bl:#FF6B6B; --bd:#CF2E3A; }
.lotto-ball.ball-4, .lotto-ball.ball-31-40, .v5-ball.v5-b4 { --bl:#AEB5C0; --bd:#6B7483; }
.lotto-ball.ball-5, .lotto-ball.ball-41-45, .v5-ball.v5-b5 { --bl:#5FD07E; --bd:#1F9145; }
.lotto-ball:is(.ball-1,.ball-2,.ball-3,.ball-4,.ball-5,.ball-1-10,.ball-11-20,.ball-21-30,.ball-31-40,.ball-41-45), .v5-ball {
  border:0 !important; color:#fff; font-weight:800; font-variant-numeric:tabular-nums;
  background:radial-gradient(circle at 28% 24%, rgba(255,255,255,.7) 0 8%, rgba(255,255,255,0) 22%), linear-gradient(135deg, var(--bl), var(--bd)) !important;
  box-shadow:inset 0 -2px 3px rgba(0,0,0,.16), 0 2px 4px rgba(0,0,0,.18) !important; text-shadow:0 1px 2px rgba(0,0,0,.35);
}
/* 제목 명조 */
.v4-tool h1, .v4-tool h2, .v5-home h2, .v4-bridge h2, .v4-result h2, .v42-hero-num { font-family:"Noto Serif KR", "Gowun Batang", serif; font-weight:900; letter-spacing:-.01em; color:var(--text); }
.v5-home h2 { color:#fff; }
/* 도구·착지 쪽 헤더 1줄(브랜드 + 테마) — 메뉴 줄은 모바일에서 숨김 */
@media (max-width: 720px) { .v42-page .page-header .header-inner > nav { display:none; } }
.v42-page .page-header .header-inner { flex-wrap:nowrap; }
.v42-page main { padding-top:18px; }
/* 도구 쪽 카드·문구 */
.v4-tool h1 { font-size:26px; line-height:1.35; margin:0 0 6px; }
.v4-tool .v4-lead { margin:0 0 14px; color:var(--text-sub); font-size:16px; line-height:1.6; }
.v4-tool > section { background:#fff; border:1px solid rgba(23,23,23,.08); border-radius:20px; box-shadow:0 1px 2px rgba(23,23,23,.04), 0 8px 24px rgba(20,33,61,.06); padding:16px; margin:14px 0; }
.v4-tool > section h2 { font-size:19px; margin:0 0 10px; }
.v4-chips button, .v4-chips a, .v4-chips .v4-chip-info { border:1px solid rgba(23,23,23,.12); background:#fff; }
.v4-chips .v4-chip-info { background:rgba(20,33,61,.05); color:#14213D; }
/* 1~45 번호판: 7열 정원 */
.v4-grid { grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; }
.v4-num { aspect-ratio:1; width:100%; min-height:0; height:auto; border-radius:50%; border:1px solid rgba(23,23,23,.14); background:#fff; color:#171717; font-weight:700; font-variant-numeric:tabular-nums; display:grid; place-items:center; padding:0; }
.v4-num[aria-pressed="true"], .v4-num.is-fixed { border:0; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.3); background:radial-gradient(circle at 28% 24%, rgba(255,255,255,.7) 0 8%, rgba(255,255,255,0) 22%), linear-gradient(135deg, var(--bl, #4C9BFF), var(--bd, #1A5FD0)); box-shadow:inset 0 -2px 3px rgba(0,0,0,.16), 0 2px 4px rgba(0,0,0,.18); }
.v4-num.ball-1 { --bl:#FFD23F; --bd:#E6A400; } .v4-num.ball-2 { --bl:#4C9BFF; --bd:#1A5FD0; } .v4-num.ball-3 { --bl:#FF6B6B; --bd:#CF2E3A; } .v4-num.ball-4 { --bl:#AEB5C0; --bd:#6B7483; } .v4-num.ball-5 { --bl:#5FD07E; --bd:#1F9145; }
.v4-num.ball-1[aria-pressed="true"], .v4-num.ball-1.is-fixed { color:#2B2100; text-shadow:none; }
.v4-num.is-ex[aria-pressed="true"] { background:#F1EFEA; color:#9A958D; text-decoration:line-through; border:1px dashed rgba(23,23,23,.2); box-shadow:none; text-shadow:none; }
/* 주 단추: 로또 = 남색, 2027 = 적갈 */
.v4-tool .actions button.primary, .v4-result .actions button.primary, .v4-tool .actions a.primary { background:#14213D; color:#fff; border:0; border-radius:14px; min-height:56px; font-size:17px; font-weight:800; }
#v4-group .actions button.primary, #v4-group .v4-result .actions button.primary { background:#9B2226; }
.v4-tool .actions button.secondary, .v4-result .actions button.secondary { background:#fff; color:#171717; border:1px solid rgba(23,23,23,.14); border-radius:14px; min-height:52px; }
.v4-share { display:grid; grid-template-columns:1fr; gap:10px; margin-top:16px; }
.v4-share .v4-kakao { background:#FEE500 !important; color:#191600 !important; min-height:60px !important; font-size:18px !important; }
/* 결과 카드 */
.v4-result { background:#fff; border:1px solid rgba(23,23,23,.08); border-top:0; border-radius:20px; box-shadow:0 1px 2px rgba(23,23,23,.04), 0 12px 30px rgba(20,33,61,.08); padding:16px; }
.v42-hero { margin:-16px -16px 14px; padding:18px 16px 16px; border-radius:20px 20px 0 0; background:linear-gradient(160deg, #1B2A4E, #14213D); color:#fff; }
.v42-hero-sub { margin:0; font-size:14px; color:rgba(255,255,255,.82); line-height:1.5; }
.v42-hero-num { margin:4px 0 2px; font-size:40px; line-height:1.15; color:#C89B3C; overflow-wrap:anywhere; }
.v42-hero-num small { font-size:.5em; margin-left:2px; color:#E2C88A; }
.v42-hero .v4-balls { margin-top:10px; }
.v42-tiles { list-style:none; margin:12px 0; padding:0; display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:6px; }
.v42-tiles li { display:grid; gap:2px; justify-items:center; padding:10px 2px; border-radius:14px; background:rgba(20,33,61,.05); }
.v42-tiles li.is-best { background:rgba(200,155,60,.18); }
.v42-tiles span { font-size:13px; color:#66625C; }
.v42-tiles b { font-size:18px; color:#14213D; font-variant-numeric:tabular-nums; }
/* 모임 순위: 1~6위 같은 원형 배지·왼쪽 정렬선 */
.v4-rank-list li { display:grid; grid-template-columns:40px minmax(0, 1fr) auto auto; gap:10px; align-items:center; }
.v4-rank-list .v4-rank { display:grid; place-items:center; width:36px; height:36px; min-width:0; border-radius:50%; font-weight:800; background:#E7E3DC; color:#3a352f; }
.v4-rank-list .v4-rank.r1 { background:#E2BE6A; color:#2a1d00; } .v4-rank-list .v4-rank.r2 { background:#CFD6E0; color:#22262e; } .v4-rank-list .v4-rank.r3 { background:#E3A26F; color:#341a05; }
.v4-rank-list li:nth-child(-n+3) .v4-rank { min-width:0; height:36px; }
.v4-rank-list b { overflow-wrap:anywhere; }
.v4-rank-list .v4-tti { color:#66625C; }
.v4-rank-list .v4-score { margin-left:0; color:#9B2226; font-weight:800; }
.v4-blessing { background:rgba(155,34,38,.06); border-radius:14px; font-family:"Noto Serif KR", serif; }
.v42-basis { margin-top:14px; border-top:1px solid rgba(23,23,23,.08); padding-top:10px; color:#66625C; font-size:14px; }
.v42-basis summary { cursor:pointer; font-weight:700; min-height:40px; display:flex; align-items:center; }
/* 홈 첫 화면 */
.v5-ticket { background:linear-gradient(160deg, #1B2A4E 0%, #14213D 100%); }
.v5-pill { background:#C89B3C; color:#14213D; }
.v5-rows { background:#FAF8F4; }
.v5-tag { background:#14213D; }
.v5-rows a.v5-go { background:rgba(20,33,61,.07); color:#14213D; }
.v5-quick a { display:grid; justify-items:center; align-content:start; gap:3px; min-height:92px; padding:12px 4px 10px; }
.v5-quick svg { width:24px; height:24px; fill:none; stroke:#C89B3C; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; margin-bottom:2px; }
.v5-quick b { font-size:15px; line-height:1.3; } .v5-quick small { font-size:13px; line-height:1.3; color:rgba(255,255,255,.75); }
.v5-ny { position:relative; overflow:hidden; background:
    radial-gradient(120% 80% at 100% 0%, rgba(200,155,60,.28), rgba(200,155,60,0) 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, rgba(255,255,255,0) 2px 9px),
    linear-gradient(160deg, #A3292D 0%, #7E1B1F 100%);
  box-shadow:0 12px 30px rgba(126,27,31,.25); }
.v5-ny::after { content:""; position:absolute; inset:8px; border:1px solid rgba(226,190,106,.45); border-radius:18px; pointer-events:none; }
.v5-ny-art { position:absolute; right:16px; top:18px; width:92px; height:92px; border-radius:50%; object-fit:cover; background:#FAF3E6; border:2px solid #E2BE6A; box-shadow:0 0 0 5px rgba(226,190,106,.18), 0 8px 18px rgba(0,0,0,.25); pointer-events:none; }
.v5-ny-seal { position:absolute; right:12px; top:94px; width:30px; height:30px; padding:3px; background:#fff; border-radius:6px; transform:rotate(-6deg); box-shadow:0 2px 6px rgba(0,0,0,.2); }
.v5-ny .v5-kicker, .v5-ny h2, .v5-ny .v5-sub { position:relative; max-width:calc(100% - 104px); }
.v5-ny .v5-kicker { letter-spacing:.02em; color:#E2BE6A; font-size:14px; }
.v5-ny h2 { font-size:28px; }
.v5-ny .v5-sub { color:rgba(255,255,255,.85); }
.v5-seg, .v5-row { position:relative; }
.v5-seg a { background:#FAF8F4; color:#7E1B1F; }
.v5-tag-red { background:rgba(155,34,38,.1); color:#9B2226; }
.v5-row i { color:#9B2226; }
/* 슬림 설치 카드(원색 줄 대체): 라인 아이콘 + 한지 톤 */
.v42-install:empty { display:none; }
.v42-install .app-install-button, #senior-big3 ~ * .app-install-button[data-app-install="strip"], .app-install-button[data-app-install="strip"] {
  display:flex; align-items:center; gap:10px; width:100%; min-height:56px; margin:0; padding:12px 14px; border:1px solid rgba(23,23,23,.1) !important; border-radius:16px;
  background:#fff !important; color:#171717 !important; font-size:15px; font-weight:700; text-align:left; box-shadow:0 1px 2px rgba(23,23,23,.04), 0 6px 18px rgba(20,33,61,.06);
}
.app-install-button[data-app-install="strip"]::before { content:""; flex:0 0 28px; height:28px; border-radius:8px; background:#14213D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89B3C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='3' width='10' height='18' rx='2'/%3E%3Cpath d='M12 8v6M9.5 11.5 12 14l2.5-2.5'/%3E%3C/svg%3E") center/18px no-repeat; }
.app-install-button[data-app-install="result"] { border:1px solid rgba(23,23,23,.14) !important; background:#fff !important; color:#171717 !important; border-radius:14px; min-height:56px; }
/* /y/ 착지 */
.v4-kicker svg { width:18px; height:18px; vertical-align:-3px; fill:none; stroke:#9B2226; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.v42-rows { display:grid; gap:10px; margin:12px 0; }
.v42-row { position:relative; display:grid; gap:2px; padding:14px 40px 14px 16px; border-radius:16px; background:#fff; border:1px solid rgba(23,23,23,.08); color:#171717; text-decoration:none; box-shadow:0 1px 2px rgba(23,23,23,.04), 0 6px 18px rgba(20,33,61,.06); }
.v42-row b { font-size:16px; } .v42-row small { color:#66625C; font-size:14px; }
.v42-row i { position:absolute; right:16px; top:50%; transform:translateY(-50%); font-style:normal; font-size:24px; color:#9B2226; font-weight:800; }
.v42-chrome { margin:12px 0; padding:14px 16px; border-radius:16px; background:#14213D; color:#fff; }
.v42-chrome p { margin:0 0 8px; font-size:14px; color:rgba(255,255,255,.85); }
.v42-btn { display:flex; align-items:center; justify-content:center; min-height:52px; border-radius:14px; background:#14213D; color:#fff !important; font-weight:800; text-decoration:none; }
.v42-chrome .v42-btn { background:#C89B3C; color:#14213D !important; }
.v42-field { display:grid; gap:6px; font-weight:700; }
.v42-field select { min-height:52px; font-size:17px; border-radius:12px; border:1px solid rgba(23,23,23,.14); padding:0 10px; background:#fff; }
/* 운세→로또 다리 */
.v4-bridge { border:1px solid rgba(23,23,23,.08); border-radius:20px; background:#fff; box-shadow:0 1px 2px rgba(23,23,23,.04), 0 8px 24px rgba(20,33,61,.06); }
.v4-actions a.primary { background:#14213D; color:#fff; }
.v4-actions a.secondary { background:#fff; color:#14213D; border:1px solid rgba(20,33,61,.2); }

#v4-group .v4-kicker { color:#9B2226; font-weight:800; letter-spacing:.02em; }
#v4-combo .v4-chips { margin:4px 0 2px; }

/* ===== V4.3 (11/27 SS·제미나이 2차 검수): 붉은 양 동양화 · 큰어르신 뱃지 · 기간 탭 · 생년 기억 · 공유 2버튼 ===== */
/* 홈 2027 카드: 왼쪽 한지 페이드(#FAF6EE) 위 먹색 명조 + 주홍 배지·낙관, 오른쪽 붉은 양 풀블리드 */
.v5-ny.v43-ny { padding:0 0 14px; background:#FAF6EE; color:#171717; border:1px solid rgba(23,23,23,.08); box-shadow:0 1px 2px rgba(23,23,23,.04), 0 10px 26px rgba(20,33,61,.08); }
.v5-ny.v43-ny::after { display:none; }
.v43-ny-hero { position:relative; min-height:224px; overflow:hidden; border-radius:23px 23px 0 0; }
.v43-ny-art { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:22% 50%; }
.v43-ny-hero::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(90deg, rgba(250,246,238,.97) 0, rgba(250,246,238,.92) 46%, rgba(250,246,238,.5) 55%, rgba(250,246,238,0) 61%), linear-gradient(0deg, #FAF6EE 0, rgba(250,246,238,0) 18%); }
.v43-ny-copy { position:relative; z-index:2; width:55%; box-sizing:border-box; padding:16px 0 14px 16px; display:grid; gap:6px; justify-items:start; }
.v43-badge { display:inline-block; padding:4px 10px; border-radius:999px; background:#9B2226; color:#fff; font-size:13px; font-weight:800; line-height:1.35; word-break:keep-all; overflow-wrap:anywhere; }
.v5-ny.v43-ny h2 { margin:2px 0 0; max-width:none; font-family:"Song Myung", "Noto Serif KR", serif; font-weight:400; font-size:27px; line-height:1.22; color:#171717; word-break:keep-all; overflow-wrap:anywhere; }
.v43-ny-sub { margin:0; font-size:15px; line-height:1.45; color:#3F3A35; word-break:keep-all; overflow-wrap:anywhere; }
.v43-seal { display:inline-grid; place-items:center; width:40px; height:40px; margin-top:4px; border-radius:6px; background:#9B2226; color:#FAF6EE; font-family:"Song Myung", serif; font-size:14px; line-height:1.05; writing-mode:vertical-rl; letter-spacing:1px; box-shadow:inset 0 0 0 2px rgba(250,246,238,.6); transform:rotate(-4deg); }
.v43-ny .v5-seg { margin:12px 14px; }
.v43-ny .v5-seg a { background:#fff; border:1px solid rgba(23,23,23,.1); color:#7E1B1F; min-height:60px; }
.v43-ny .v5-seg small { color:#66625C; }
.v43-ny .v5-row { margin:0 14px; background:#fff; border:1px solid rgba(23,23,23,.1); color:#171717; }
.v43-ny .v5-row small { color:#66625C; }
/* /y/ 착지: 큰어르신 수묵 원형 뱃지 + 첫 화면 안 설치 카드 */
.v43-sage { display:flex; align-items:center; gap:12px; margin:0 0 8px; }
.v43-sage img { flex:0 0 64px; width:64px; height:64px; border-radius:50%; object-fit:cover; background:#FAF6EE; border:2px solid #C89B3C; box-shadow:0 0 0 4px rgba(200,155,60,.15); }
.v43-sage p { margin:0; display:grid; gap:2px; min-width:0; }
.v43-sage b { font-family:"Song Myung", "Noto Serif KR", serif; font-weight:400; font-size:19px; color:#171717; }
.v43-sage small { color:#66625C; font-size:14px; word-break:keep-all; }
.v43-sage small svg { width:16px; height:16px; vertical-align:-3px; fill:none; stroke:#9B2226; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#v4-y h1 { font-size:22px; line-height:1.35; margin:4px 0 10px; }
#v4-y .v42-rows { margin:8px 0 10px; }
#v4-y .v42-install { margin:0 0 12px; }
/* 내 생년월일 기억하기 */
.v43-keep { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; min-height:48px; margin:6px 0 0; font-size:16px; font-weight:700; color:#171717; cursor:pointer; }
.v43-keep input { width:22px; height:22px; margin:0; accent-color:#9B2226; }
.v43-keep small { font-weight:500; color:#66625C; font-size:14px; }
/* 운세 기간 전환 탭(오늘 · 이번 주 · 2027 신년) */
.v43-period { display:flex; gap:4px; margin:8px 0 14px; padding:4px; background:#fff; border:1px solid rgba(23,23,23,.1); border-radius:999px; box-shadow:0 1px 2px rgba(23,23,23,.04); }
.v43-period a { flex:1 1 0; min-width:0; min-height:48px; display:grid; place-items:center; padding:4px 6px; border-radius:999px; color:#171717; font-size:16px; font-weight:700; line-height:1.2; text-align:center; text-decoration:none; word-break:keep-all; overflow-wrap:anywhere; }
.v43-period a[aria-current="page"] { background:#14213D; color:#fff; }
.v43-period a:focus-visible { outline:3px solid #C89B3C; outline-offset:2px; }
/* 모임 순위: 양수 점수 + 따뜻한 이름표 */
.v4-rank-list.v43-rank li { grid-template-columns:40px minmax(0, 1fr) auto; }
.v43-who { display:grid; gap:2px; min-width:0; }
.v43-who b { overflow-wrap:anywhere; }
.v43-who small { color:#66625C; font-size:14px; line-height:1.4; word-break:keep-all; overflow-wrap:anywhere; }
.v43-rank .v4-score { font-family:"Song Myung", "Noto Serif KR", serif; font-size:21px; font-weight:400; }
/* 백테스트 낙첨 완화 문구 */
.v43-calm { margin:10px 0; padding:12px 14px; border-radius:14px; background:#F3EFE7; color:#3F3A35; font-size:15px; line-height:1.55; }
/* 결과 공유: 카카오 노랑 주 단추 + 이미지 저장(슬림) */
button[data-senior-share][data-senior-share] { min-height:56px; margin:16px 0 0; padding:12px 16px; border:0; border-radius:14px; background:#FEE500; color:#191919; font-size:17px; font-weight:800; box-shadow:none; }
button.senior-save { display:flex; align-items:center; justify-content:center; width:100%; min-height:52px; margin:8px 0 0; padding:10px 16px; border:1px solid rgba(23,23,23,.14); border-radius:14px; background:#fff; color:#171717; font:inherit; font-size:16px; font-weight:700; cursor:pointer; grid-column:1/-1; }
button.senior-save:disabled { opacity:.6; cursor:wait; }
.senior-share-bar button::before { content:none; }
.v43-more { margin:6px 0 0; text-align:center; }
.v43-text { min-height:44px; padding:6px 10px; border:0; background:none; color:#66625C; font:inherit; font-size:15px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
[data-newyear-share] .app-install-button[data-app-install="result"] { min-height:52px; margin-top:10px; font-size:15px; }
.newyear-birth-entry label.v43-keep { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:12px 0 0; font-size:18px; }
.newyear-birth-entry .v43-keep input { flex:0 0 24px; width:24px; height:24px; min-height:0; padding:0; border-radius:4px; }

/* 2026-12-01 ■2 스토리·액막이 박스(행운템 3단·기사회생·꿈 금기·명당 절제) — 390px 넘침 0 */
.ys-story{margin:16px 0;padding:16px;border:1px solid var(--border);border-left:4px solid var(--gold);border-radius:12px;background:var(--surface);color:var(--text);font-size:16px;line-height:1.7;overflow-wrap:anywhere;word-break:keep-all;max-width:100%;box-sizing:border-box}
.ys-story h2{margin:0 0 8px;font-size:19px;line-height:1.4}
.ys-story h3{margin:12px 0 4px;font-size:16px}
.ys-story p{margin:6px 0}
.ys-story ol{margin:6px 0;padding-left:22px}
.ys-story-steps{list-style:none;padding-left:0!important}
.ys-story-steps li{margin:0 0 10px}
.ys-story-steps b{display:block;color:var(--primary);font-size:15px}
.ys-story-prop,.ys-story-note,.ys-story-when{color:var(--text-sub);font-size:15px}
.ys-story-close{font-weight:700}
.ys-revival{border-left-color:var(--primary);background:var(--surface-2)}
.ys-dream-taboo,.ys-md-lesson{background:var(--gold-soft)}
.ys-share2{display:flex!important;flex-direction:row!important;gap:8px;flex-wrap:nowrap;margin:12px 0}
.ys-share2 button{min-height:48px;height:auto;flex:1 1 0;min-width:0;padding:10px 8px;font-size:16px}
#tw-amulet:empty{display:none}
