/* 지원금모야 — 규격은 ..\..\규격_토스뱅크.md. 색·글자·간격 값은 tokens.css(:root, 프리셋에서 생성)만 쓴다.
   원칙: 배경 grey100 위에 흰 카드(둥글기 --r-card, 그림자 없음) · 파랑은 다음 행동과 선택됨에만 · 제목 왼쪽 위 · CTA 하단 고정 */
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .card 같은 display 규칙이 hidden 속성을 이기면 빈 흰 상자가 남는다(첫 화면 프로필 카드 — 2026-10-06 캡처에서 발견) */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--t5); line-height: var(--t5-lh); word-break: keep-all; font-variant-numeric: tabular-nums; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
.wrap { max-width: var(--s-max); margin: 0 auto; padding: 0 var(--s-gutter); }
h1 { font-size: var(--t2); line-height: var(--t2-lh); font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
h2 { font-size: var(--t3); line-height: var(--t3-lh); font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: var(--t5); line-height: var(--t5-lh); font-weight: 600; margin: 0; }
p { margin: 0 0 8px; }
.sub { color: var(--text2); }
.muted { color: var(--text3); }
.tiny { font-size: var(--t7); line-height: var(--t7-lh); }
.small { font-size: var(--t6); line-height: var(--t6-lh); }
.center { text-align: center; }
.loading { color: var(--text3); text-align: center; padding: 48px 0; }

/* 머리 — 흰 배경, 로고, 링크 3개 */
.top { background: var(--card); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -.02em; }
.logo img { width: 26px; height: 26px; display: block; }
.logo b { color: #0866FF; }   /* 로고 글자 = 로고 마크와 같은 페이스북 파랑(2026-11-14 회장님 · tools/make_brand.py BLUE 와 같은 값) — 화면 강조색(--primary)과 따로 */
.top nav a { margin-left: 16px; font-size: var(--t6); color: var(--text2); font-weight: 500; }
.top .logo, .top .bigbtn { flex-shrink: 0; white-space: nowrap; }
/* 휴대폰 웹(앱 아님): 메뉴를 로고 아래 둘째 줄로 (2026-10-07 회장님 — 한 줄에 로고·메뉴 3개·큰 글씨를 다 넣으니 메뉴가 두 줄로 접혀 로고와 겹쳤다).
   1줄 = 로고 + 큰 글씨, 2줄 = 지원금 찾기 · 숨은 돈 · 안내. 앱은 이 메뉴를 숨기므로(body.app) html:not(.app) 에만 */
@media (max-width: 560px) {
  html:not(.app) .top .bar { flex-wrap: wrap; height: auto; min-height: 0; padding-top: 8px; padding-bottom: 0; }
  html:not(.app) .top .bar > .logo { order: 1; height: 48px; }
  html:not(.app) .top .bar > .bigbtn { order: 2; }
  html:not(.app) .top nav { order: 3; flex: 0 0 100%; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  html:not(.app) .top nav::-webkit-scrollbar { display: none; }
  html:not(.app) .top nav a { margin-left: 0; padding: 6px 0 12px; white-space: nowrap; }
}

/* 버튼 — big 56 / medium 48, fill·weak·grey */
.btn { display: inline-flex; align-items: center; justify-content: center; height: var(--z-btn-md); padding: 0 18px; border-radius: var(--r-btn); font-weight: 600; font-size: var(--t6); border: 0; cursor: pointer; background: var(--grey100); color: var(--grey800); text-decoration: none; line-height: 1; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover, .btn.primary:active { background: var(--primary-hover); }
.btn.weak { background: var(--weak-bg); color: var(--weak-text); }
.btn.ghost { background: var(--card); color: var(--text2); border: 1px solid var(--line); }
.btn.big { height: var(--z-btn-big); font-size: var(--t5); width: 100%; }
.btn[disabled] { background: var(--grey100); color: var(--disabled); cursor: default; }
.cta { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 8px; }

/* 섹션·카드 */
main > section { margin: var(--s-section) 0; }
.card { display: block; background: var(--card); border-radius: var(--r-card); padding: var(--s-card-pad); color: var(--text); }
a.card:hover { text-decoration: none; }
a.card:active { background: var(--grey50); }
.card.soft { background: var(--weak-bg); color: var(--text); }
.grid { display: grid; gap: var(--s-section); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.chip { display: inline-block; font-size: var(--t7); line-height: var(--t7-lh); font-weight: 600; padding: 2px 8px; border-radius: var(--r-chip); background: var(--grey100); color: var(--grey700); }
.chip.on { background: var(--weak-bg); color: var(--weak-text); }
/* 정책 대출 표시(2026-10-07) — 「갚는 돈」을 지원금과 구분. 파랑(다음 행동)·빨강(마감) 대신 테두리만 */
.chip.loan { background: transparent; box-shadow: inset 0 0 0 1px var(--grey300); color: var(--text2); }
.svc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.svc-head .agency { font-size: var(--t7); color: var(--text3); }
.svc p { color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); margin: 4px 0 6px; }
.svc .period { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text2); margin-top: 6px; }   /* 신청 기간 — 늘 보이게(2026-10-08), 흐린 text3 → text2 */
.more { text-align: right; margin-top: 8px; font-size: var(--t6); font-weight: 600; }

/* 첫 화면 */
.hero { padding: 12px 0 0; }
/* 첫 화면 한 장에 버튼까지(2026-10-09 회장님 「컴팩트하게」): 제목 t1→t2 · 조건을 넣었으면(.mine) 제목은 화면에서만 숨김(읽기 프로그램·검색엔진엔 그대로) */
.hero h1 { font-size: var(--t2); line-height: var(--t2-lh); margin: 0 0 2px; }
.hero.mine h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hero p { color: var(--text2); }
.how { display: grid; gap: var(--s-section); margin: 16px 0; }
@media (min-width: 640px) { .how { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); border-radius: var(--r-card); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.step .num { flex: 0 0 32px; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; background: var(--weak-bg); color: var(--weak-text); font-weight: 700; }
.step h3 { margin-bottom: 2px; }
.step p { margin: 0; color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.money-card .org { display: block; font-size: var(--t7); color: var(--text3); margin-top: 6px; }

/* 마법사 — 뒤로 화살표 상단, CTA 하단 고정, 단일 선택은 자동 진행 */
.wizard-wrap { padding: 4px 0 140px; }
.w-top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.back { width: 44px; height: 44px; margin-left: -12px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--text); cursor: pointer; border-radius: 50%; }
.back:active { background: var(--grey100); }
.w-count { font-size: var(--t7); color: var(--text3); }
.progress { height: 3px; background: var(--grey200); border-radius: 2px; overflow: hidden; margin: 4px 0 22px; }
.progress i { display: block; height: 100%; background: var(--primary); transition: width .25s; }
.q-title { font-size: var(--t2); line-height: var(--t2-lh); margin: 0 0 6px; }
.q-sub { color: var(--text2); margin: 0 0 20px; }
.opts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.opts.single { grid-template-columns: 1fr; }
/* 말로 넣기 버튼(이름 단계 아래) · 들은 뒤 확인 화면 */
.btn.voice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 20px; background: var(--grey900); color: #fff; height: auto; min-height: var(--z-btn-big); padding: 14px 18px; }
.btn.voice .mic { font-size: 28px; line-height: 1; }
.btn.voice b { display: block; font-size: var(--t5); line-height: var(--t5-lh); }
.btn.voice small { display: block; font-size: var(--t7); line-height: var(--t7-lh); color: var(--grey300); font-weight: 500; margin-top: 2px; }
.cta-stack { display: grid; gap: 10px; margin-top: 24px; }
/* 말로 넣기 — 듣는 중 화면: 들리는 대로 글자가 차오른다 */
.voice-live { padding-top: 48px; }
.voice-live .finding-ic { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.v-text { min-height: 84px; margin: 14px auto 0; max-width: 360px; padding: 16px 18px; border-radius: var(--r-card); background: var(--card); color: var(--text3); font-size: var(--t5); line-height: var(--t5-lh); text-align: left; }
.v-text.on { color: var(--text); font-weight: 600; }
.voice-live .cta-stack { text-align: left; }
#vtext { width: 100%; min-height: 96px; border: 1.5px solid var(--line); border-radius: var(--r-input); background: var(--card); padding: 14px 16px; font: inherit; font-size: var(--t5); line-height: var(--t5-lh); color: var(--text); resize: vertical; }
#vtext:focus { outline: none; border-color: var(--primary); }
.heard-text { font-weight: 600; color: var(--text); }
/* ── 상세 글 가독성(2026-10-07 회장님 "중요한 부분 볼드·노란 밑줄, 함께 보면 좋은 내용, 초등학생도 이해") ── */
/* 머리띠: 상태바와 절대 안 겹치게(안전영역 여백은 어디서나) + 로고 글자 크게·조금 아래로 (2026-10-07 회장님 "로고를 아래로 내리고 글자를 더 크게") */
.top { padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); }
.top .bar { min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.logo span { font-size: 24px; letter-spacing: -.3px; }
.logo img { width: 30px; height: 30px; }
html.big .logo span { font-size: 27px; }
/* 노란 밑줄은 뺌(2026-10-07 회장님 "노란색 줄은 없애줘") — 중요한 숫자는 굵게만 */
.fact p mark { background: linear-gradient(transparent 8%, #fff2a8 8%, #fff2a8 92%, transparent 92%); color: var(--text); padding: 0 2px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html.dark .fact p mark { background: linear-gradient(transparent 8%, #5a4a00 8%, #5a4a00 92%, transparent 92%); }
.fact p b.num, .glance b.num { font-weight: 700; color: var(--text); }

.fact p b.kw { font-weight: 700; color: var(--text); }
.glance { background: var(--weak-bg); border-radius: var(--r-card); padding: 18px 20px; margin: 14px 0 4px; }
.glance h2 { margin: 0 0 10px; font-size: var(--t5); color: var(--weak-text); }
.glance .g { display: grid; grid-template-columns: 64px 1fr; gap: 8px 12px; align-items: baseline; }
.glance .g .k { font-size: var(--t6); color: var(--weak-text); font-weight: 700; }
.glance .g .v { font-size: var(--t5); line-height: var(--t5-lh); color: var(--text); font-weight: 600; }
.glance .note { margin: 12px 0 0; font-size: var(--t7); color: var(--text3); }
.gloss { background: var(--card); border-radius: var(--r-card); padding: 16px 20px; }
.gloss h2 { margin: 0 0 8px; font-size: var(--t6); color: var(--text3); }
.gloss dl { margin: 0; display: grid; gap: 8px; }
.gloss dt { font-weight: 700; font-size: var(--t6); }
.gloss dd { margin: 2px 0 0; color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.rel h2 { margin: 24px 0 10px; }
.rel .list { display: grid; gap: 10px; }
.opt { background: var(--card); border: 1.5px solid transparent; border-radius: 16px; padding: 16px 12px; font-size: var(--t5); line-height: var(--t5-lh); font-weight: 600; cursor: pointer; text-align: center; color: var(--text); min-height: var(--z-btn-big); }
.opts.single .opt { text-align: left; padding: 16px 20px; }
.opt.on { background: var(--weak-bg); border-color: var(--primary); color: var(--weak-text); }
.opt.wide { grid-column: 1 / -1; }
.opt.none { color: var(--text2); font-weight: 500; }
.field { margin: 12px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: var(--t6); color: var(--text2); }
.field select, .field input { width: 100%; height: var(--z-input); font-size: var(--t5); padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-input); background: var(--card); color: var(--text); font-family: inherit; }
.field select:focus, .field input:focus { outline: none; border-color: var(--primary); }
.hint { background: var(--weak-bg); color: var(--weak-text); border-radius: 12px; padding: 12px 14px; font-size: var(--t6); line-height: var(--t6-lh); margin-top: 12px; }
.sub-label { font-weight: 600; margin: 18px 0 8px; font-size: var(--t6); color: var(--text2); }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); padding: 12px var(--s-gutter) calc(12px + env(safe-area-inset-bottom)); z-index: 20; }
.cta-bar .in { max-width: var(--s-max); margin: 0 auto; display: flex; gap: 10px; }
.cta-bar .btn { height: var(--z-btn-big); font-size: var(--t5); }
.cta-bar .skip { flex: 0 0 38%; }
.cta-bar .go { flex: 1; }
.w-reset { text-align: center; margin-top: 20px; font-size: var(--t7); }
.w-reset a { color: var(--text3); text-decoration: underline; }

/* 결과 */
.summary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 16px; }
.summary a { font-size: var(--t6); margin-left: auto; font-weight: 600; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: 0 0 auto; border: 0; background: var(--card); border-radius: var(--r-chip); padding: 8px 14px; font-size: var(--t6); font-weight: 500; cursor: pointer; color: var(--text2); }
.filters button.on { background: var(--grey900); color: #fff; }
.list { display: grid; gap: 10px; }
.sec-title { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 6px; }
.sec-title h2 { margin: 0; }
.sec-title .count { color: var(--primary); font-weight: 700; }
.sec-desc { color: var(--text3); font-size: var(--t7); line-height: var(--t7-lh); margin: 0 0 12px; }
.toggle { background: var(--card); border: 0; border-radius: var(--r-btn); padding: 0 16px; height: var(--z-btn-md); width: 100%; cursor: pointer; color: var(--text2); font-weight: 600; font-size: var(--t6); margin-top: 10px; }
.empty { text-align: center; color: var(--text2); padding: 28px 16px; background: var(--card); border-radius: var(--r-card); }
.ad { margin: 12px 0; min-height: 90px; }

/* 검색(/search/ · 첫 화면 검색 칸) */
.search-box { display: flex; gap: 8px; margin: 14px 0 12px; }
.search-box input { flex: 1; min-width: 0; height: var(--z-input); border: 1.5px solid var(--line); border-radius: var(--r-input); background: var(--card); padding: 0 16px; font-size: var(--t5); font-family: inherit; color: var(--text); -webkit-appearance: none; }
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box .btn { flex: 0 0 auto; height: var(--z-input); padding: 0 18px; }
/* 첫 화면 맨 위 검색 한 줄(2026-10-07 회장님 「검색 위치 애매」 → 네이버·토스처럼 첫 줄) — 흰 칸(회색 바탕 위) + 돋보기, 파란 버튼 없음(파랑은 「내 정보 넣고 찾기」에만) */
.search-box.lead { position: relative; margin: 0 0 12px; }
.search-box.lead input { height: 50px; border: 0; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px 0 46px; }
.search-box.lead input:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.search-box.lead .sb-ico { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; padding: 0; border: 0; background: none; color: var(--text3); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.search-box.lead .sb-ico svg { width: 21px; height: 21px; fill: currentColor; }
#search .filters { padding: 0 0 8px; }
#search .filters button.local, #result .filters button.local { background: var(--blue50); color: var(--primary); }
#result .filters button.local.on { background: var(--primary); color: #fff; }
/* 결과 — 두 줄 판정판(받을 수 있어요 / 확인해 보세요). 70대 기준: 큰 글자·큰 숫자·한 줄에 하나. 블록 사이 간격은 --s-block 하나로 */
#result { --s-block: 16px; }
.tiers { display: grid; gap: 8px; margin: 0 0 var(--s-block); }
.tier { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--z-row); padding: 12px 16px; border: 2px solid transparent; border-radius: var(--r-card); background: var(--card); color: var(--text2); cursor: pointer; text-align: left; font-family: inherit; }
.tier .ti { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--t5); background: var(--grey200); color: var(--text3); }
.tier .tt { flex: 1; font-size: var(--t5); line-height: var(--t5-lh); font-weight: 700; }
.tier .tn { font-size: var(--t2); line-height: var(--t2-lh); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.tier .tn small { font-size: var(--t6); font-weight: 600; margin-left: 2px; color: var(--text3); }
.tier.pass .ti { background: var(--blue50); color: var(--primary); }
.tier.pass.on { border-color: var(--primary); color: var(--text); }
.tier.pass.on .tn { color: var(--primary); }
.tier.pass.on .ti { background: var(--primary); color: #fff; }
.tier.check.on { border-color: var(--grey700); color: var(--text); }
.tier.check.on .tn { color: var(--text); }
.tier.check.on .ti { background: var(--grey900); color: #fff; }
#result .hook.small { margin: 0 0 var(--s-block); text-decoration: none; }
/* 받을 돈 합계(차별화 3번) — 토스식 큰 숫자 */
/* 받을 수 있어요 합계(2026-10-19 관제 #269 「검은색 말고 보기 좋게」) — 연한 하늘색→흰 그라데이션 + 파란 테 + 3D 돈주머니(은은히 둥실). 광고(테 없는 흰 칸)와 모양을 가른다 */
.total-card { margin: 0 0 var(--s-block); display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #e8f3ff 0%, #f4f9ff 55%, #ffffff 100%); box-shadow: inset 0 0 0 1.5px #c9e2ff; color: var(--text); }
.total-card .tc-ic { flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: #ffffff; box-shadow: 0 4px 12px rgba(49, 130, 246, .14); }
.total-card .tc-ic img.ic3, .total-card .tc-ic .tf { width: 42px; height: 42px; font-size: 32px; animation: tc-bob 3.6s ease-in-out infinite; }
.total-card .tc-t { min-width: 0; }
.total-card .hook-k { color: var(--text2); font-weight: 600; }
.total-card .hook-v { font-size: var(--t1); line-height: var(--t1-lh); font-weight: 800; margin: 2px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; color: var(--text); }
.total-card .hook-v span { color: var(--primary); }
.total-card .hook-s { color: var(--text2); font-size: var(--t7); line-height: var(--t7-lh); }
@keyframes tc-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .total-card .tc-ic img.ic3, .total-card .tc-ic .tf { animation: none; } }
html.big .total-card .tc-ic { flex-basis: 64px; width: 64px; height: 64px; }
html.big .total-card .tc-ic img.ic3 { width: 48px; height: 48px; }
html.dark .total-card { background: linear-gradient(135deg, #1b2a45 0%, #1f2433 60%, #202027 100%); box-shadow: inset 0 0 0 1.5px #2d4f86; }
html.dark .total-card .tc-ic { background: #26324a; box-shadow: none; }
html.dark .total-card .hook-v span { color: #64a8ff; }
@media (prefers-color-scheme: dark) {
  html.auto .total-card { background: linear-gradient(135deg, #1b2a45 0%, #1f2433 60%, #202027 100%); box-shadow: inset 0 0 0 1.5px #2d4f86; }
  html.auto .total-card .tc-ic { background: #26324a; box-shadow: none; }
  html.auto .total-card .hook-v span { color: #64a8ff; }
}
.sec-title .more-link { margin-left: auto; font-size: var(--t7); font-weight: 600; color: var(--primary); text-decoration: none; }
.sec-title .more-link + .count, .sec-title .count + .more-link { margin-left: 8px; }
/* 마감 달력(8번) */
.cal-m { background: var(--card); border-radius: var(--r-card); padding: 14px 12px 10px; margin-top: 12px; }
.cal-mt { font-weight: 800; font-size: var(--t5); margin: 0 6px 8px; }
.cal-w, .cal-d { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-w span { text-align: center; font-size: var(--t7); color: var(--text3); padding: 4px 0; }
.cal-w .sun, .cal-d .day.sun .n { color: var(--danger); } .cal-w .sat, .cal-d .day.sat .n { color: var(--primary); }
.cal-d .day { position: relative; min-height: 48px; border: 0; border-radius: 12px; background: transparent; font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; gap: 2px; }
.cal-d .day .n { font-size: var(--t6); font-weight: 600; color: var(--text); }
.cal-d .day.past .n { color: var(--grey400); }
.cal-d .day.today { background: var(--grey100); } .cal-d .day.today .n { color: var(--primary); font-weight: 800; }
.cal-d .day.has { cursor: pointer; } .cal-d .day.has .n { font-weight: 800; }
.cal-d .day .dot { font-size: 11px; line-height: 16px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--weak-bg); color: var(--weak-text); font-weight: 800; }
.cal-d .day.ap .dot { background: var(--danger); color: #fff; }
.cal-d .day.on { background: var(--primary); } .cal-d .day.on .n, .cal-d .day.on .dot { color: #fff; } .cal-d .day.on .dot { background: rgba(255, 255, 255, .25); }
.cal-d .day:disabled { cursor: default; }
.chip.ap { background: var(--danger); color: #fff; font-weight: 800; }
/* 💰 돈 들어오는 날(2026-10-07 추천 1) — 마감 달력 위 카드 · 달력 칸 표시 · 첫 화면 한 줄 */
.pay { margin-top: 14px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pay-head h2 { margin: 0; font-size: var(--t5); }
.pay-head .btn { height: 36px; padding: 0 14px; font-size: var(--t7); background: var(--weak-bg); color: var(--weak-text); }
.pay .sub { margin: 8px 0 0; }
.pay .tiny { margin: 10px 0 0; }
.pay-pick { display: grid; gap: 8px; margin-top: 12px; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; align-items: center; }
.pay-tg { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: var(--card); font-family: inherit; color: var(--text); text-align: left; cursor: pointer; }
.pay-tg b { font-size: var(--t6); } .pay-tg small { color: var(--text3); font-size: var(--t7); white-space: nowrap; }
.pay-row.on .pay-tg { border-color: var(--primary); background: var(--weak-bg); } .pay-row.on .pay-tg b { color: var(--weak-text); }
.pay-row input { height: 48px; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--r-input); padding: 0 10px; font: inherit; font-size: var(--t6); background: var(--card); color: var(--text); }
.pay-row:not(.on) input { opacity: .45; }
.pay-next, .pay-day { display: grid; gap: 2px; margin-top: 10px; }
.pay-day { margin-top: 14px; background: var(--card); border-radius: var(--r-card); padding: 10px 16px; }
.pay-it { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.pay-it .pd { color: var(--text2); font-size: var(--t6); white-space: nowrap; min-width: 88px; }
.pay-it .pn { flex: 1; font-weight: 700; font-size: var(--t6); } .pay-it .pn small { color: var(--text2); font-weight: 600; margin-left: 4px; }
.pay-it .dd { font-size: var(--t7); font-weight: 800; color: var(--text3); white-space: nowrap; } .pay-it .dd.hot { color: var(--primary); }
.cal-d .day.payday { cursor: pointer; } .cal-d .day .pm { position: absolute; top: 2px; right: 3px; font-size: 11px; line-height: 14px; }
.paynext { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 16px; padding-bottom: 16px; }
.paynext .pn-ic { font-size: 24px; } .paynext .pn-t { flex: 1; font-size: var(--t6); } .paynext .pn-t small { display: block; color: var(--text2); font-size: var(--t7); }
.paynext .pn-d { font-weight: 800; color: var(--primary); font-size: var(--t6); }
/* 올해 받은 돈(2026-10-07 추천 2) — 상세 「받았어요」 금액 칸 · 첫 화면 줄 */
.got-amt { margin-top: 14px; }
.got-amt label { font-weight: 700; font-size: var(--t6); }
.got-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.got-row input { flex: 1; min-width: 0; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-input); padding: 0 12px; font: inherit; font-size: var(--t5); background: var(--card); color: var(--text); }
.got-row .btn { height: 48px; }
/* 이런 일이 생겼나요?(2026-10-07 추천 3 「상황별 체크리스트」) — 첫 화면 6칸 → 안내 글 */
.life-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.life-grid a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: var(--r-btn); background: var(--grey100); color: var(--text); font-weight: 700; font-size: var(--t6); line-height: 1.3; }
.life-grid a .le { font-size: 22px; flex: none; }

/* 만보기(2026-10-07) — 걷기 페이지 맨 위 카드 */
.steps { margin: 14px 0; }
.steps-head { display: flex; align-items: baseline; justify-content: space-between; }
.steps-head h2 { margin: 0; font-size: var(--t5); }
.steps-num { margin-top: 8px; } .steps-num b { font-size: 40px; line-height: 1.1; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; } .steps-num span { color: var(--text2); font-weight: 600; margin-left: 6px; }
.steps-bar { height: 10px; border-radius: 999px; background: var(--grey100); margin-top: 10px; overflow: hidden; } .steps-bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .6s; }
.steps .sub { margin: 10px 0 0; } .steps .btn { margin-top: 12px; }
/* 서류 사진 보관함(4번) */
.docs-add { margin: 14px 0; }
.docs-add .btn { display: flex; align-items: center; justify-content: center; }
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.doc { border: 0; background: var(--card); border-radius: var(--r-card); padding: 0 0 10px; overflow: hidden; text-align: left; font-family: inherit; cursor: pointer; }
.doc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--grey100); }
.doc .nm { display: block; padding: 8px 12px 0; font-weight: 700; font-size: var(--t6); color: var(--text); }
.doc .dt { display: block; padding: 0 12px; font-size: var(--t7); color: var(--text3); }
.doc-view { position: fixed; inset: 0; z-index: 150; background: #000; display: flex; flex-direction: column; }
.doc-view-bar { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; color: #fff; font-weight: 700; }
.doc-view-bar .btn { height: 40px; padding: 0 14px; background: rgba(255, 255, 255, .15); color: #fff; }
.doc-view img { flex: 1; min-height: 0; object-fit: contain; width: 100%; }
.doc-view-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.doc-view-acts .btn { background: rgba(255, 255, 255, .15); color: #fff; }
.doc-view-acts .btn.danger { background: var(--danger); }
/* 동네 알림판(5번) */
.chip.new { background: var(--danger); color: #fff; font-weight: 800; letter-spacing: .3px; }
/* 놓친 돈 점검표(6번) */
.check-list { display: grid; gap: 10px; margin-top: 12px; }
.chk-sum .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.chk-sum .k { display: block; font-size: var(--t7); color: var(--text3); }
.chk-sum .v { display: block; font-size: var(--t2); line-height: var(--t2-lh); font-weight: 800; }
.chk-sum .v.hot { color: var(--danger); }
.chk-sum .sub { margin: 12px 0 0; }
.chk-head { display: flex; gap: 12px; align-items: flex-start; }
.chk-head .num { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--grey100); color: var(--text2); font-weight: 800; font-size: var(--t7); display: inline-flex; align-items: center; justify-content: center; }
.chk-t a { font-size: var(--t4); line-height: var(--t4-lh); font-weight: 700; color: var(--text); text-decoration: none; }
.chk-t p { margin: 4px 0 0; color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.chk-age { display: inline-block; margin-left: 8px; font-size: var(--t7); color: var(--text3); background: var(--grey100); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.chk-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.chk-btns button { min-height: var(--z-btn-md); border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text2); font-weight: 700; font-size: var(--t6); cursor: pointer; font-family: inherit; }
.chk-btns button.on { border-color: var(--primary); background: var(--weak-bg); color: var(--weak-text); }
.chk.a-yes .chk-btns button.on { border-color: #30c48d; background: #e9f9f2; color: #1d7a56; }
.chk-how { margin-top: 10px; padding: 10px 12px; background: var(--grey50); border-radius: 12px; font-size: var(--t6); line-height: var(--t6-lh); color: var(--text2); }
.chk-how b { color: var(--text); }
html.dark .chk-how { background: #26262d; }
html.dark .chk.a-yes .chk-btns button.on { background: #163a2c; color: #7fe0b5; }
.tel-big { display: flex; align-items: center; gap: 14px; background: var(--grey900); color: #fff; text-align: left; height: auto; min-height: var(--z-btn-big); padding: 10px 18px; }
.tel-big .ic { font-size: 26px; }
.tel-big b { display: block; font-size: var(--t3); line-height: var(--t3-lh); }
.tel-big small { display: block; font-size: var(--t7); color: var(--grey300); }
.check-cta { display: flex; align-items: center; gap: 12px; margin-top: 12px; text-decoration: none; font-weight: 700; font-size: var(--t5); }
.check-cta img { width: 32px; height: 32px; }
.check-cta .ico { width: 32px; font-size: 28px; line-height: 32px; text-align: center; }
.check-cta small { display: block; font-weight: 500; font-size: var(--t7); color: var(--text3); }
.check-cta .go { margin-left: auto; color: var(--text3); }
/* 읽어 주기 버튼(7번) · 전화 대본(2번) */
.glance-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.glance-head h2 { margin: 0; }
.speak { border: 1.5px solid var(--primary); background: var(--card); color: var(--primary); border-radius: 999px; height: 36px; padding: 0 12px; font-size: var(--t7); font-weight: 700; cursor: pointer; font-family: inherit; }
.speak.on { background: var(--primary); color: #fff; }
.script { margin-top: 14px; padding: 14px 16px; background: var(--grey50); border-radius: 14px; }
.script-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.script-head h3 { margin: 0; font-size: var(--t6); color: var(--text2); }
.script ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.script li { font-size: var(--t5); line-height: var(--t5-lh); color: var(--text); }
.script li b { color: var(--primary); }
html.dark .script { background: #26262d; }
#result .hook.link .hook-s { display: flex; align-items: center; gap: 8px; }
#result .hook.link .hook-s .go { margin-left: auto; flex: 0 0 auto; color: var(--primary); font-weight: 700; font-size: var(--t7); }
#result .sec-title { margin: 0 0 6px; }
#result .sec-desc { margin: 0 0 var(--s-block); }
#result .filters { padding: 0 0 var(--s-block); }
#result .sort { margin: 0 0 var(--s-block); }
#result .toggle { margin-top: var(--s-block); }
.hook-s b { color: var(--text); font-weight: 700; }

/* 상세 */
.crumb { font-size: var(--t7); color: var(--text3); margin: 12px 0 10px; }
.detail .lead { color: var(--text2); }
.agency-line { color: var(--text3); font-size: var(--t6); }
.facts { display: grid; gap: var(--s-section); margin: 16px 0; }
.fact { background: var(--card); border-radius: var(--r-card); padding: 16px 20px; }
.fact h2 { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); margin: 0 0 6px; font-weight: 600; }
.fact p { margin: 0; white-space: pre-line; }
/* 접힌 근거 — summary 가 제목 줄, 기본은 접힘 */
.fact.fold { padding: 0; }
.fact.fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: var(--z-row); padding: 0 20px; font-size: var(--t6); line-height: var(--t6-lh); color: var(--text2); font-weight: 600; -webkit-tap-highlight-color: transparent; }
.fact.fold summary::-webkit-details-marker { display: none; }
.fact.fold summary .fold-hint { margin-left: auto; font-size: var(--t7); color: var(--text3); font-weight: 500; }
.fact.fold summary .fold-hint::after { content: ' ▾'; }
.fact.fold[open] summary .fold-hint::after { content: ' ▴'; }
.fact.fold p { padding: 0 20px 16px; color: var(--text2); font-size: var(--t7); line-height: var(--t7-lh); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--weak-bg); color: var(--weak-text); border-radius: var(--r-chip); padding: 4px 10px; font-size: var(--t7); font-weight: 600; }
.apply { margin: 20px 0 8px; padding: var(--s-card-pad); background: var(--card); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 10px; }
.explain { background: var(--card); border-radius: var(--r-card); padding: 8px 20px 16px; margin: 12px 0; }
.explain h2 { margin-top: 12px; }

/* 숨은 돈 — 목록 행 */
.page-head { padding: 20px 0 4px; }
.page-head p { color: var(--text2); }
.money-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: var(--s-section); }
.money-head { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.money-head .num { flex: 0 0 44px; width: 44px; height: 44px; line-height: 44px; text-align: center; border-radius: 50%; background: var(--grey100); color: var(--text2); font-weight: 700; font-size: var(--t6); }
.money-head h2 { margin: 0; font-size: var(--t5); line-height: var(--t5-lh); font-weight: 600; }
.money-list .org { color: var(--text3); font-size: var(--t7); line-height: var(--t7-lh); margin: 2px 0 10px 56px; }
.money-list .what { color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.money-list .prep { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text2); background: var(--grey50); border-radius: 10px; padding: 8px 12px; margin: 8px 0 12px; }
.money-list .btn { width: 100%; }

/* ── 짧은 목록 줄 (2026-10-07 회장님 지금24 캡처 참고) — 분야 그림 · 이름 · 조회/금액/D-day · 보기 · 전체 보기 ── */
.rowlist { padding: 6px 0 0; overflow: hidden; }
.rl { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px var(--s-card-pad); color: var(--text); text-decoration: none; }
.rl-ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 16px; background: var(--grey100); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.rl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rl-t b { font-size: var(--t5); line-height: var(--t5-lh); font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; word-break: keep-all; overflow-wrap: anywhere; }   /* 두 줄까지(「2026년 진도군 하반기 …」처럼 앞이 같은 이름을 구분) */
.rl-t b .chip { vertical-align: 2px; }
.rl-t small { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); font-variant-numeric: tabular-nums; }
.rl-t .dd { font-style: normal; font-weight: 700; color: var(--primary); }
.rl-t .dd.hot { color: var(--danger); }
.rl-go { flex: 0 0 auto; padding: 7px 13px; border-radius: 10px; background: var(--grey100); color: var(--text2); font-size: var(--t7); font-weight: 600; }
.rl-more { display: block; margin-top: 6px; padding: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--text2); font-size: var(--t6); font-weight: 600; text-decoration: none; }
.rl:active, .rl-more:active { background: var(--grey50); }
.rl-head { padding: 12px var(--s-card-pad) 2px; }
.rl-head b { display: block; font-size: var(--t5); line-height: var(--t5-lh); }
.rl-head b em { font-style: normal; color: var(--primary); }
.rl-head small { font-size: var(--t7); color: var(--text3); }
.age-list { display: grid; gap: 12px; }
#age-sec, #soon, #popular { scroll-margin-top: 120px; }

/* ── 상세 정보 격자 .infogrid (2026-10-07 지금24 참고) — 그림 + 이름 + 값, 2열. 금액은 한 줄 전체. ★.infogrid 는 아래 「한눈에 보기」(누가·얼마·어떻게)가 쓰는 이름이라 쓰지 말 것 ── */
.infogrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 12px; margin: 12px 0 4px; }
.infogrid .fg { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.infogrid .fg.wide { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.infogrid .i { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: var(--grey100); display: flex; align-items: center; justify-content: center; font-size: 21px; }
.infogrid .t { display: flex; flex-direction: column; min-width: 0; }
.infogrid .k { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); }
.infogrid .v { font-size: var(--t6); line-height: var(--t6-lh); font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.infogrid .wide .v { font-size: var(--t4); line-height: var(--t4-lh); font-variant-numeric: tabular-nums; }
.infogrid .n { font-size: 11px; color: var(--text3); }
.infogrid .dd { font-style: normal; color: var(--primary); }
.infogrid .dd.hot { color: var(--danger); }
@media (max-width: 400px) { html.big .infogrid { grid-template-columns: minmax(0, 1fr); } }

/* ── 첫 화면 바로가기 4칸 (2026-10-07 지금24 참고) ── */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 4px; margin-top: 12px; padding: 18px 6px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 2px; color: var(--text); text-decoration: none; text-align: center; font-size: var(--t7); line-height: var(--t7-lh); font-weight: 600; word-break: keep-all; border-radius: 12px; }
.quick .tf { font-size: 32px; line-height: 1; }
.quick a:active { background: var(--grey50); }
.quick .mfx { position: relative; display: inline-block; line-height: 0; }
.quick .mfx > .tf { display: inline-block; animation: mfx-bag 3.6s ease-in-out infinite; transform-origin: 50% 90%; }
.quick .mfx-p { position: absolute; left: 50%; top: 30%; width: 20px; height: 20px; margin-left: -10px; opacity: 0; pointer-events: none; animation: mfx-pop 3.6s ease-out infinite; }
.quick .mfx-p.p1 { --x: -20px; --r: -25deg; animation-delay: .05s; }
.quick .mfx-p.p2 { --x: 2px; --r: 10deg; width: 16px; height: 16px; margin-left: -8px; animation-delay: .2s; }
.quick .mfx-p.p3 { --x: 22px; --r: 25deg; animation-delay: .35s; }
@keyframes mfx-bag { 0%, 30%, 100% { transform: none; } 4% { transform: translateY(2px) scale(1.06, .92); } 9% { transform: translateY(-5px) scale(.96, 1.05) rotate(-4deg); } 14% { transform: translateY(0) rotate(3deg); } 19% { transform: translateY(-2px) rotate(-1deg); } 24% { transform: none; } }
@keyframes mfx-pop { 0%, 6% { opacity: 0; transform: translate(0, 6px) scale(.4) rotate(0); } 12% { opacity: 1; } 30% { opacity: 1; transform: translate(var(--x), -26px) scale(1) rotate(var(--r)); } 42%, 100% { opacity: 0; transform: translate(calc(var(--x) * 1.3), -36px) scale(.8) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .quick .mfx > .tf, .quick .mfx-p { animation: none; } .quick .mfx-p { display: none; } }

/* ── 🎁 오늘의 혜택(2026-10-09 회장님 「사람들은 이것을 먼저 생각할 거야」) — 결과 카드 바로 아래 묶음: 제목 + 「10월 9일 · 오늘 할 일 n/2」 ── */
.todaybox { margin-top: 22px; }   /* ★.today 는 출석 도장 오늘 칸(.st.today)이 쓰는 이름 — 겹치면 그 칸이 22px 내려간다 */
.todaybox .sec-title { align-items: center; margin: 0 0 10px; }
.today-prog { margin-left: auto; flex: none; font-size: var(--t7); line-height: var(--t7-lh); font-weight: 700; color: var(--weak-text); background: var(--weak-bg); padding: 4px 10px; border-radius: var(--r-chip); white-space: nowrap; }
.today-prog.all { color: #fff; background: var(--primary); }
#scratch-sec { margin-top: 12px; scroll-margin-top: 120px; }
.hero2 { margin-top: 12px; }
.hero2 .quick { margin-top: 0; }
/* ── 오늘의 지원금 · 출석 도장 (2026-10-07) ── */
.daily { padding: 16px 0 18px; }
.daily-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--s-card-pad); }
.daily-head b { font-size: var(--t5); }
.daily-head small { color: var(--text3); font-size: var(--t7); }
.daily .rl { padding-top: 6px; padding-bottom: 6px; }
.stamps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 8px var(--s-card-pad) 12px; }
.st { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.st i { width: 34px; height: 34px; border-radius: 50%; background: var(--grey100); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; color: #fff; font-size: 16px; }
.st.on i { background: var(--primary); }
.st.today i { box-shadow: 0 0 0 2px var(--primary); }
.st small { font-size: var(--t7); color: var(--text3); }
.st.today small { color: var(--primary); font-weight: 700; }
.daily .btn { display: flex; width: calc(100% - 2 * var(--s-card-pad)); margin: 0 var(--s-card-pad); }
.daily-done { margin: 0; padding: 0 var(--s-card-pad); text-align: center; color: var(--text2); font-size: var(--t6); font-weight: 600; }
.daily-done b { color: var(--primary); }
#daily-sec { scroll-margin-top: 120px; }

/* ── 걸으면 받는 나라 돈 (2026-10-07) ── */
.walk-dl { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 8px 10px; margin: 6px 0 14px; font-size: var(--t6); line-height: var(--t6-lh); }
.walk-dl dt { color: var(--text3); font-size: var(--t7); line-height: var(--t6-lh); }
.walk-dl dd { margin: 0; color: var(--text); word-break: keep-all; }
.walk-fit.on { color: var(--primary); font-weight: 700; }
.nw { white-space: nowrap; }   /* 전화번호가 줄 끝에서 「02-」 / 「120」 으로 갈리지 않게 */
.walk-list .money-head .num { font-size: 24px; background: var(--grey100); }

/* ── 「이 문자 진짜예요?」 (2026-10-07 추천 4) ── */
.sms textarea { width: 100%; min-height: 150px; margin-top: 14px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; font-size: var(--t6); line-height: var(--t6-lh); resize: vertical; }
.sms textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--primary); }
.sms .cta { margin: 14px 0 4px; }
.sms-res { margin-top: 16px; scroll-margin-top: 120px; }
.sms-head { display: flex; gap: 12px; align-items: flex-start; }
.sms-head .tf { font-size: 32px; line-height: 1.1; }
.sms-head b { display: block; font-size: var(--t4); line-height: var(--t4-lh); }
.sms-head p { margin: 4px 0 0; color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.sms-res.high .sms-head b { color: var(--danger); }
.sms-hits { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.sms-hits li { padding: 12px 14px; border-radius: 14px; background: var(--grey50); }
.sms-hits li.lv2 { box-shadow: inset 3px 0 0 var(--danger); }
.sms-hits li.lv1 { box-shadow: inset 3px 0 0 var(--grey400, #b0b8c1); }
.sms-hits b { font-size: var(--t6); }
.sms-hits .q { display: block; margin-top: 2px; color: var(--text3); font-size: var(--t7); overflow-wrap: anywhere; }
.sms-hits p { margin: 4px 0 0; color: var(--text2); font-size: var(--t7); line-height: var(--t7-lh); }
.sms-info { margin: 12px 0 0; color: var(--text2); font-size: var(--t7); }
.sms-acts { display: flex; gap: 8px; margin-top: 16px; }
.sms-acts .btn { flex: 1; }
.sms-tips ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.sms-tips li + li { margin-top: 6px; }
.sms-help { display: grid; gap: 8px; margin-top: 12px; }
.sms-help h2 { margin: 0 0 4px; }
.sms-help .btn { justify-content: flex-start; }

/* ── 정책 대출 (2026-10-07) — /loan/ · 상세 안내 · 결과 종류 탭 ── */
.seg { display: flex; gap: 4px; padding: 4px; margin: 4px 0 12px; border-radius: 14px; background: var(--grey200); }
.seg button, .seg a { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: none; color: var(--text2); font: inherit; font-size: var(--t6); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.seg button.on { background: var(--card); color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.loan-note { display: block; margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; }
.loan-note b { display: block; font-size: var(--t6); line-height: var(--t6-lh); }
.loan-note p { margin: 4px 0 0; font-size: var(--t7); line-height: var(--t7-lh); color: var(--text2); }
.loan-note > a { display: inline-block; margin-top: 8px; font-size: var(--t7); font-weight: 600; color: var(--primary); }
.loan-warn h2 { margin: 0 0 8px; font-size: var(--t5); line-height: var(--t5-lh); }
.loan-warn ul { margin: 0 0 14px; padding-left: 1.2em; color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.loan-warn li + li { margin-top: 6px; }
.loan-warn .btn { width: 100%; }
.loan-btns { display: flex; gap: 8px; }
.loan-btns .btn { flex: 1; width: auto; }
.loan-cta { margin-top: 16px; }
.loan-cta .sub { margin: 0 0 12px; }
.loan-foot { margin: 20px 0 8px; }

/* 글 */
.prose { background: var(--card); border-radius: var(--r-card); padding: 20px; margin-top: 12px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: var(--t4); line-height: var(--t4-lh); margin: 28px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.biz-table { border-collapse: collapse; width: 100%; font-size: var(--t6); margin: 10px 0; }
.biz-table th, .biz-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.biz-table th { width: 34%; color: var(--text3); font-weight: 500; }

/* 마법사 — 단계 점 · 화면 전환 */
.dots { display: flex; gap: 6px; margin: -12px 0 18px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey300); }
.dots i.done { background: var(--blue300); }
.dots i.now { width: 18px; border-radius: 3px; background: var(--primary); }
.q-anim { animation: q-in .22s ease both; }
#wizard.stay .q-anim, #wizard.stay .cheer-line { animation: none; }   /* 같은 단계에서 고르기만 했을 때 — 다시 올라오는 효과 없음 */
@keyframes q-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q-anim { animation: none; } }

/* 첫 화면 — 내 프로필 완성도: 빠진 조건이 있을 때만 바로가기 아래 한 줄 카드(2026-10-09 「컴팩트하게」 — 예전엔 결과 카드 밑 큰 카드) */
.pc { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin-top: 12px; padding-top: 14px; padding-bottom: 14px; color: var(--text); text-decoration: none; }
.pc-t { font-size: var(--t6); line-height: var(--t6-lh); font-weight: 700; }
.pc-t b { color: var(--primary); }
.pc-t small { display: block; font-size: var(--t7); line-height: var(--t7-lh); color: var(--text2); font-weight: 500; }
.pc-go { grid-column: 2; grid-row: 1; font-size: var(--t6); font-weight: 700; color: var(--primary); white-space: nowrap; }
.pc-bar { grid-column: 1 / -1; display: block; height: 6px; background: var(--grey100); border-radius: 3px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px; transition: width .4s; }

/* 사진 인트로(앱 전용) — base.html 머리의 인라인 스크립트가 html.intro 를 켜면 첫 그리기부터 덮고, app.js 가 1.3초 뒤 .out 으로 걷는다 */
#intro { display: none; }
html.intro #intro { display: block; position: fixed; inset: 0; z-index: 1000; background: #3182f6; transition: opacity .3s ease; }
html.intro #intro img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
html.intro #intro.out { opacity: 0; pointer-events: none; }

/* 시험판 업데이트 안내(앱 전용 바텀시트) */
.upd-sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 100; display: flex; align-items: flex-end; }
.upd-box { background: var(--card); width: 100%; border-radius: 20px 20px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); animation: upd-in .25s ease; }
@keyframes upd-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.upd-title { font-size: var(--t3); line-height: var(--t3-lh); font-weight: 700; }
.upd-sub { color: var(--text2); margin: 6px 0 16px; }
.upd-actions { display: flex; flex-direction: column; gap: 8px; }

/* 더보기 — 목록 행 */
.row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; color: var(--text); font-size: var(--t5); font-weight: 500; }
.row i { color: var(--text3); font-style: normal; font-size: 20px; }
.row:active { background: var(--grey50); }
a.row:hover { text-decoration: none; }

/* 앱 모드(Capacitor) — 하단 탭 4개, 상단 메뉴 숨김, 안전영역. 웹에서는 .tabbar 가 보이지 않는다 */
.tabbar { display: none; }
body.app .top nav { display: none; }
/* 상태바 여백(회장님 2026-10-06 "위에 선이 겹치잖아"): 안드로이드 15+ 는 화면 끝까지 그리므로 Capacitor 8 SystemBars 가 넘겨 주는
   안전영역 값만큼 머리를 아래로 내린다. 상태바 뒤는 머리의 흰 배경이 그대로 깔린다(토스처럼). 웹에서는 0. */
body.app .top { padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); }
body.app main { padding-bottom: calc(72px + var(--ad-h, 0px) + env(safe-area-inset-bottom)); }
body.app .foot { padding-bottom: calc(80px + var(--ad-h, 0px) + env(safe-area-inset-bottom)); }
body.app .cta-bar { bottom: calc(60px + var(--ad-h, 0px) + env(safe-area-inset-bottom)); padding-bottom: 12px; }
body.app .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px; color: var(--text3); font-size: 11px; font-weight: 600; text-decoration: none; }
.tabbar svg { width: 24px; height: 24px; fill: currentColor; }
/* 아이콘만 조금 아래로(글자 위치는 그대로) — 2026-10-07 회장님 "상단에 걸린 것 같다, 모양만 내려" */
.tabbar img { width: 28px; height: 28px; transform: translateY(4px); filter: grayscale(1) opacity(.55); transition: filter .15s, transform .15s; }
.tabbar a.on { color: var(--text); }
.tabbar a.on img { filter: none; transform: translateY(3px) scale(1.08); }
/* 더보기 줄 아이콘 = 기본형 선 아이콘(회색) — 2026-10-07 회장님 "여기 이모티콘은 기본형으로" */
.row .ri { width: 24px; height: 24px; margin-right: 14px; flex: 0 0 24px; fill: var(--text3); }
.row .ri + span { flex: 1; }
/* 토스페이스 — 이모지만 토스 글꼴로(글은 그대로) */
/* ★이모지 글자에만 — 글·숫자에 걸면 토스페이스의 숫자 글리프 때문에 「4 2 세」처럼 벌어진다 */
.tf, .btn.voice .mic { font-family: Tossface, var(--font), system-ui, sans-serif; }
/* 찾는 중 화면 — 아이콘 둥실 + 멘트 교체 */
.finding-ic { width: 72px; height: 72px; animation: float 1.6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.finding-k.in { animation: msg-in .35s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* 결과 뼈대(스켈레톤) */
.skel { padding-top: 20px; }
.sk-line { height: 28px; border-radius: 8px; background: var(--grey100); margin-bottom: 10px; animation: sk 1.2s ease-in-out infinite; }
.sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; height: 34px; }
.sk-chips { display: flex; gap: 6px; margin: 14px 0 16px; }
.sk-chip { width: 64px; height: 30px; border-radius: var(--r-chip); background: var(--grey100); animation: sk 1.2s ease-in-out infinite; }
.sk-card { height: 72px; border-radius: var(--r-card); background: var(--card); margin-bottom: 10px; animation: sk 1.2s ease-in-out infinite; }
.sk-card.tall { height: 120px; }
.sr { position: absolute; left: -9999px; }
/* 바텀시트(토스식) */
.sheet { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0); display: flex; align-items: flex-end; transition: background .2s; }
.sheet.in { background: rgba(0, 0, 0, .45); }
.sheet-box { background: var(--card); width: 100%; max-width: var(--s-max); margin: 0 auto; border-radius: 24px 24px 0 0; padding: 10px 20px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.sheet.in .sheet-box { transform: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--grey300); margin: 0 auto 14px; }
.sheet-title { font-size: var(--t3); line-height: var(--t3-lh); font-weight: 700; }
.sheet-sub { color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); margin-top: 4px; }
.sheet-list { display: grid; gap: 4px; margin: 14px 0 12px; }
.sheet-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--z-row); padding: 10px 14px; border: 0; border-radius: 14px; background: transparent; color: var(--text); text-align: left; font-size: var(--t5); line-height: var(--t5-lh); font-weight: 600; cursor: pointer; font-family: inherit; }
.sheet-item img { width: 28px; height: 28px; }
/* 2026-11-06 구매 확인 등 「눈에 띄는 단추」 시트(JM.sheet btns): 첫 선택 = 파란 큰 단추 · 둘째 = 연한 단추 */
.sheet-list.btns { gap: 10px; margin: 18px 0 2px; }
.sheet-list.btns .sheet-btn { justify-content: center; text-align: center; font-weight: 800; font-size: var(--t5); min-height: 56px; border-radius: 16px; }
.sheet-item .l { flex: 1; display: flex; flex-direction: column; }
.sheet-item .l small { color: var(--text3); font-size: var(--t7); line-height: var(--t7-lh); font-weight: 500; margin-top: 2px; }
.sheet-item.on { background: var(--weak-bg); color: var(--weak-text); }
.sheet-item .chk { color: var(--primary); font-weight: 800; }
.sort .sort-open { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t6); padding: 8px 14px; }
.sort .caret { font-size: 14px; line-height: 1; }
/* 당겨서 새로고침 */
.ptr { position: fixed; top: calc(-56px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 8px; background: var(--card); color: var(--text2); border-radius: 999px; padding: 8px 14px; font-size: var(--t7); font-weight: 600; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); opacity: 0; pointer-events: none; margin-left: 0; transition: opacity .15s; }
.ptr .ptr-ic { display: inline-block; transition: transform .2s; }
.ptr.ready .ptr-ic { transform: rotate(180deg); color: var(--primary); }
.ptr.busy .ptr-ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ── 다크 모드(토스 다크 팔레트): ★기본은 항상 밝게(2026-10-07 회장님 "밝은 화면은 일관되게"). html.dark = 어둡게, html.auto = 기기 따라가기 ── */
html { color-scheme: light; }
html.dark { --bg: #17171c; --card: #202027; --text: #ffffff; --text2: #c3c3c6; --text3: #8b8b8f; --disabled: #5a5a60; --line: #2c2c35; --grey50: #26262d; --grey100: #2c2c35; --grey200: #3a3a44; --grey300: #4a4a55; --grey400: #6b7684; --grey500: #8b95a1; --grey600: #b0b8c1; --grey700: #c3c3c6; --grey800: #e5e8eb; --grey900: #e5e8eb; --weak-bg: #1e2a3f; --weak-text: #64a8ff; --blue50: #1e2a3f; --red50: #3a2226; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  html.auto { --bg: #17171c; --card: #202027; --text: #ffffff; --text2: #c3c3c6; --text3: #8b8b8f; --disabled: #5a5a60; --line: #2c2c35; --grey50: #26262d; --grey100: #2c2c35; --grey200: #3a3a44; --grey300: #4a4a55; --grey400: #6b7684; --grey500: #8b95a1; --grey600: #b0b8c1; --grey700: #c3c3c6; --grey800: #e5e8eb; --grey900: #e5e8eb; --weak-bg: #1e2a3f; --weak-text: #64a8ff; --blue50: #1e2a3f; --red50: #3a2226; color-scheme: dark; }
}
html.dark .filters button.on, html.dark .tier.check.on .ti { color: #17171c; }
@media (prefers-color-scheme: dark) { html.auto .filters button.on, html.auto .tier.check.on .ti { color: #17171c; } }
html.dark .dday.hot { background: #3a2226; }
/* 축하 종이가루 */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
/* 아래 양쪽에서 위로 쏘아 올라갔다가(60%) 떨어지며 사라진다 — 생일 폭죽 */
.confetti i { position: absolute; bottom: 40px; width: 10px; height: 14px; border-radius: 2px; animation: burst 1.6s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes burst {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  60% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 1; }
  100% { transform: translate(calc(var(--dx) * 1.15), calc(var(--dy) + 260px)) rotate(calc(var(--rot) + 180deg)); opacity: 0; }
}
.confetti .popper { position: absolute; bottom: 24px; font-size: 44px; animation: pop .5s cubic-bezier(.2, .8, .2, 1) both; }
.confetti .popper.l { left: 12px; transform-origin: bottom left; }
.confetti .popper.r { right: 12px; transform: scaleX(-1); transform-origin: bottom right; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.confetti .popper.r { animation-name: pop-r; }
@keyframes pop-r { 0% { transform: scaleX(-1) scale(.4); opacity: 0; } 60% { transform: scaleX(-1) scale(1.15); opacity: 1; } 100% { transform: scaleX(-1) scale(1); opacity: 1; } }
.cheer { position: absolute; left: 0; right: 0; top: 34%; text-align: center; animation: cheer-in .45s cubic-bezier(.2, .8, .2, 1) both, cheer-out .4s ease 1.9s forwards; }
.cheer .clap { font-size: 72px; line-height: 1; animation: clap .35s ease-in-out 0s 5 alternate; display: inline-block; transform-origin: 50% 90%; }
@keyframes clap { from { transform: rotate(-12deg) scale(1); } to { transform: rotate(10deg) scale(1.15); } }
.cheer-t { margin-top: 10px; font-size: 34px; line-height: 44px; font-weight: 800; color: var(--text); text-shadow: 0 2px 12px var(--bg); }
.cheer-s { margin-top: 4px; font-size: var(--t5); color: var(--text2); font-weight: 600; text-shadow: 0 1px 8px var(--bg); }
@keyframes cheer-in { from { transform: translateY(16px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cheer-out { to { opacity: 0; transform: translateY(-10px); } }
.tabbar a.on svg { fill: var(--primary); }

/* 발 */
.foot { margin-top: 40px; padding: 24px 0 40px; background: var(--card); font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); }
.foot p { margin: 0 0 6px; }
.foot .notice { color: var(--text2); }
.foot a { color: var(--text3); text-decoration: underline; }

/* ── 숫자 훅(첫 화면·결과) ── */
.hook { margin-top: 10px; }
.hero.mine .hook { margin-top: 0; }
/* 조건 칩은 한 줄(넘치면 옆으로 밀기) · 큰 글씨 + 좁은 폰은 「○○님 지원금 N개」를 t2 로 — 두 줄로 접혀 버튼이 첫 화면 밖으로 나가던 것(2026-10-09 측정 360×740 큰 글씨 650px) */
.hero .hook-k { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.hero .hook-k::-webkit-scrollbar { display: none; }
.hero .hook-k .chip { flex: none; }
@media (max-width: 400px) { html.big .hero .hook-v { font-size: var(--t2); line-height: var(--t2-lh); } }
.hook-k { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); display: flex; flex-wrap: wrap; gap: 4px; }
.hook-v { font-size: var(--t1); line-height: var(--t1-lh); font-weight: 700; margin: 6px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.hook-v #hook-num { color: var(--primary); }
.hook.small .hook-v { font-size: var(--t3); line-height: var(--t3-lh); margin: 2px 0; color: var(--primary); }
.hook-s { color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.hook-soon { margin-top: 12px; }
.hook-soon .k { font-size: var(--t7); color: var(--text3); margin-bottom: 4px; }
.hook-soon a { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: var(--t6); color: var(--text); text-decoration: none; }
.hook-soon .dday { margin-left: 0; }
.hook-soon a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hook-cta { margin-top: 14px; }
.hook-safe { margin: 10px 0 0; font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); text-align: center; }
/* 결과 카드 금액 칸 — 두 칸씩 나란히(2026-10-09, 한 줄씩 쌓던 .hook-row 대신). 칸마다 이름표·금액·작은 글이 같은 자리(오와 열) */
.hook-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.hook-tiles.odd .ht:last-child { grid-column: 1 / -1; }
.ht { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 11px 12px 10px; border-radius: 14px; background: var(--grey100); }
.ht .k { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht .v { font-size: var(--t4); line-height: var(--t4-lh); font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht .v small { font-size: var(--t7); font-weight: 600; color: var(--text2); }
.ht.total .v, .ht.got .v { color: var(--primary); }
.ht .n { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ht.got a { font-weight: 700; }
.sk { display: inline-block; height: 1em; border-radius: 6px; background: var(--grey100); vertical-align: middle; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
h1 .num { color: var(--primary); font-variant-numeric: tabular-nums; }
.dday { margin-left: auto; font-size: var(--t7); line-height: var(--t7-lh); font-weight: 700; color: var(--weak-text); background: var(--weak-bg); padding: 2px 8px; border-radius: var(--r-chip); white-space: nowrap; }
.dday.hot { color: var(--danger); background: #ffeeee; }
.svc .amt { font-size: var(--t6); line-height: var(--t6-lh); color: var(--text2); margin-top: 2px; }
.svc .amt b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.svc .where { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); margin-top: 4px; }
.sort { display: flex; gap: 6px; margin: 0 0 4px; }
.sort button { border: 0; background: transparent; color: var(--text3); font-size: var(--t7); font-weight: 600; padding: 6px 8px; border-radius: var(--r-chip); cursor: pointer; }
.sort button.on { color: var(--text); background: var(--card); }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.kf { background: var(--card); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kf .k { font-size: var(--t7); color: var(--text3); }
.kf .v { font-size: var(--t4); line-height: var(--t4-lh); font-weight: 700; font-variant-numeric: tabular-nums; }
.kf .n { font-size: 11px; color: var(--text3); }
body.app .web-only { display: none; }

/* ── 토스식 움직임: 누름 피드백 · 문서 간 화면 전환(앱에서만) ── */
.btn, a.card, .filters button, .tabbar a, .row, .tier { transition: transform .08s ease, background-color .12s ease, opacity .12s ease; -webkit-tap-highlight-color: transparent; }
.btn:active, a.card:active, .row:active { transform: scale(.985); }
.btn.primary:active { opacity: .92; }
/* 문서 간 View Transition 은 2026-10-07 회장님 폰에서 「내 정보 넣고 찾기」가 안 넘어가는 문제가 생겨 끔(원인 확인 뒤 다시 켠다) */
@view-transition { navigation: none; }
html.app::view-transition-old(root), html.app::view-transition-new(root) { animation-duration: .26s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
html.app::view-transition-old(root) { animation-name: vt-dim; }
html.app::view-transition-new(root) { animation-name: vt-in; }
html.app.vt-back::view-transition-old(root) { animation-name: vt-out; z-index: 2; }
html.app.vt-back::view-transition-new(root) { animation-name: vt-undim; }
html.app.vt-none::view-transition-old(root), html.app.vt-none::view-transition-new(root) { animation: none; }
html:not(.app)::view-transition-old(root), html:not(.app)::view-transition-new(root) { animation: none; }
@keyframes vt-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes vt-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes vt-dim { from { transform: none; opacity: 1; } to { transform: translateX(-24%); opacity: .6; } }
@keyframes vt-undim { from { transform: translateX(-24%); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; } }

.app-only { display: none; }
body.app .app-only { display: block; }
body.app .row.app-only { display: flex; }
body.app .btn.app-only { display: flex; }   /* 숨은 돈 「세금 마감 알림 받기」(2026-10-15) — 버튼 가운데 맞춤 유지 */   /* 더보기 「알림 받기」 줄이 다른 줄처럼 한 줄로(10/13) */
.row .ver { font-style: normal; font-size: var(--t7); color: var(--text3); }
.toast { position: fixed; left: 20px; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom)); background: var(--grey900); color: #fff; padding: 14px 18px; border-radius: 14px; font-size: var(--t6); line-height: var(--t6-lh); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; z-index: 120; text-align: center; }
.toast.on { opacity: 1; transform: none; }

.finding { padding: 80px 0 40px; text-align: center; }
.finding-k { color: var(--text2); font-size: var(--t5); }
.finding-v { font-size: var(--t2); line-height: var(--t2-lh); font-weight: 700; margin: 8px 0 20px; font-variant-numeric: tabular-nums; }
.finding-v span { color: var(--primary); }
.finding .progress { max-width: 240px; margin: 0 auto; }

/* ── 상세 행동: 전화·서류·신청했어요 ── */
.act { margin: 12px 0; padding: var(--s-card-pad); background: var(--card); border-radius: var(--r-card); }
.act h2 { margin: 0 0 2px; }
.act .sub { margin: 0 0 12px; color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.act.top { padding: 12px 16px; margin: 12px 0 4px; }
.act.apply { display: flex; flex-direction: column; gap: 10px; }
.btn.tel { background: var(--grey900); color: #fff; height: 64px; justify-content: flex-start; gap: 14px; padding: 0 18px; width: 100%; margin-bottom: 8px; border-radius: 16px; }
.btn.tel .ico { font-size: 26px; }
.btn.tel .t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn.tel b { font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.btn.tel small { font-size: var(--t7); opacity: .8; font-weight: 500; }
.btn.tel:last-child { margin-bottom: 0; }
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { border-top: 1px solid var(--line); }
.docs li:first-child { border-top: 0; }
.docs label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; font-size: var(--t5); line-height: var(--t5-lh); cursor: pointer; }
.docs input { width: 26px; height: 26px; flex: 0 0 26px; margin: 0; accent-color: var(--primary); }
.docs input:checked + span { color: var(--text3); text-decoration: line-through; }
/* 신청 진행 3단계 */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: var(--z-btn-big); padding: 12px 6px; border: 2px solid transparent; border-radius: 16px; background: var(--grey100); color: var(--text2); font-weight: 700; font-size: var(--t6); line-height: var(--t6-lh); cursor: pointer; font-family: inherit; }
.stage i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--text3); font-size: var(--t7); font-weight: 800; }
.stage.done { background: var(--weak-bg); color: var(--weak-text); }
.stage.done i { background: var(--primary); color: #fff; }
.stage.on { border-color: var(--primary); background: var(--weak-bg); color: var(--text); }
.stage.on i { background: var(--primary); color: #fff; }
.linklike { background: none; border: 0; color: var(--text3); text-decoration: underline; font-size: var(--t7); margin-top: 10px; padding: 6px 0; cursor: pointer; font-family: inherit; }
.btn.done { background: var(--weak-bg); color: var(--weak-text); }
.btn.grey { background: var(--grey100); color: var(--grey800); }
.act .sec-title { margin: 0 0 2px; }
.act .sec-title .count { font-size: var(--t6); }

/* ── 큰 글씨 토글 ── */
.bigbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text2); font-size: var(--t7); font-weight: 600; cursor: pointer; margin-left: 10px; }
.bigbtn b { font-size: 18px; color: var(--text); font-weight: 800; }
.bigbtn[aria-pressed="true"] { background: var(--weak-bg); border-color: var(--primary); color: var(--weak-text); }
.bigbtn[aria-pressed="true"] b { color: var(--primary); }
.row .sw { width: 44px; height: 26px; border-radius: 13px; background: var(--grey300); position: relative; transition: background .15s; }
.row .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.row[aria-pressed="true"] .sw { background: var(--primary); }
.row[aria-pressed="true"] .sw::after { left: 21px; }
html.big .chip { padding: 4px 10px; }
html.big .opt { min-height: 60px; }
html.big .docs input { width: 30px; height: 30px; flex-basis: 30px; }
html.big .btn.tel b { font-size: 24px; }

/* ── 가족 프로필 칩 ── */
/* 「우리 가족」 이름표를 칩과 한 줄에(2026-10-09 「컴팩트하게」 — 예전엔 이름표 한 줄 + 칩 한 줄) */
.family { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.fam-k { flex: none; font-size: var(--t7); color: var(--text3); font-weight: 600; }
.fam-chips { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.fam-chips::-webkit-scrollbar { display: none; }
.fam { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: var(--t6); font-weight: 600; cursor: pointer; text-decoration: none; -webkit-user-select: none; user-select: none; }
.fam b { color: var(--primary); font-weight: 700; }
.fam.on { background: var(--grey900); color: var(--card); border-color: var(--grey900); }
.fam.on b { color: var(--card); }
.fam.add { color: var(--weak-text); background: var(--weak-bg); border-color: transparent; }
.fam-sub { font-size: 12px; color: var(--text3); margin-top: 6px; }

/* 처음 사용법 「따라 하기」(coach.js, 2026-10-08 회장님) — 어두운 막(구멍 = 누를 곳) · 노란 동그라미 · 노란 화살표 · 흰 말풍선. 70대 기준 큰 글자.
 * 막·말풍선은 다크 모드에서도 같은 색(어두운 막 위에서 가장 잘 보이게). 위치는 coach.js 가 매 프레임 넣는다(따로 transition 안 줌 — 스크롤 때 밀림 방지). */
.coach { position: fixed; inset: 0; z-index: 140; pointer-events: none; display: none; }
.coach.on { display: block; animation: coach-in .25s ease; }
.coach-mask { position: absolute; left: 0; top: 0; pointer-events: none; }
.coach-mask path { fill: rgba(0, 0, 0, .72); pointer-events: auto; }
.coach-ring { position: absolute; border: 4px solid #ffd43b; animation: coach-pulse 1.4s ease-out infinite; pointer-events: none; }
.coach-arrow { position: absolute; width: 40px; height: 54px; fill: #ffd43b; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); animation: coach-bob 1s ease-in-out infinite; pointer-events: none; }
.coach-arrow.up { animation-name: coach-bob-up; }
.coach-bub { position: absolute; background: #fff; color: #191f28; border-radius: 20px; padding: 10px 14px 16px 18px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); pointer-events: auto; }
.coach-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.coach-k { display: inline-block; font-size: 13px; font-weight: 700; color: #1b64da; background: #e8f3ff; border-radius: 999px; padding: 3px 10px; }
.coach-tip { margin: 0; font-size: var(--t5); line-height: 1.5; color: #4e5968; }
.coach-tip b { display: block; font-size: var(--t4); line-height: 1.4; color: #191f28; margin-bottom: 2px; }
.coach-ok { display: none; }
.coach-bub.last .coach-ok { display: flex; margin-top: 14px; }
.coach-stop { background: none; border: 0; color: #8b95a1; font: inherit; font-size: 15px; text-decoration: underline; padding: 0 4px; min-height: 44px; cursor: pointer; }
.coach-bub.nudge { animation: coach-nudge .4s ease; }
@keyframes coach-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes coach-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 212, 59, .8); } 100% { box-shadow: 0 0 0 18px rgba(255, 212, 59, 0); } }
@keyframes coach-bob { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes coach-bob-up { 0%, 100% { transform: rotate(180deg) translateY(-5px); } 50% { transform: rotate(180deg) translateY(5px); } }
@keyframes coach-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .coach-ring, .coach-arrow { animation: none; } .coach-arrow.up { transform: rotate(180deg); } }
/* 📬 결과 나왔나요?(home.js renderWait, 2026-10-08) — 돈 들어오는 날 카드와 같은 자리·모양, 두 줄 */
.paynext.wait { flex-direction: column; align-items: flex-start; gap: 4px; text-decoration: none; color: var(--text); }
.paynext.wait b { font-size: var(--t6); line-height: var(--t6-lh); }
.paynext.wait small { color: var(--text2); font-size: var(--t7); line-height: var(--t7-lh); }

/* 🎬 어제 도장 복구(2026-10-08) — 앱테크 「복구하기」처럼 연한 빨강 · 어제 칸에 ✕ */
.st.miss i { background: var(--grey100); position: relative; }
.st.miss i::after { content: '✕'; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 800; }
.daily .btn.fix { flex-direction: column; gap: 2px; margin-top: 8px; background: var(--red50); color: var(--danger); border: 0; height: auto; padding-top: 12px; padding-bottom: 12px; }
.daily .btn.fix span { font-weight: 700; }
.daily .btn.fix small { font-size: var(--t7); font-weight: 500; opacity: .85; }
.daily .btn.fix:disabled { opacity: .7; }

/* 🪙 오늘의 숨은 돈 긁기(2026-10-08 → 「진짜 복권 긁는 것처럼」) — static/scratch.js. 금빛 카드는 밝은 색 고정(어두운 화면에서도 인쇄물처럼) */
.tk { position: relative; margin: 6px var(--s-card-pad) 12px; padding: 10px 12px 10px; border-radius: 18px; background: linear-gradient(135deg, #fff8df 0%, #ffe7a3 55%, #ffd977 100%); box-shadow: inset 0 0 0 1px rgba(190,135,20,.35), 0 2px 10px rgba(160,110,0,.12); }
.tk::before, .tk::after { content: ''; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px rgba(190,135,20,.3); }
.tk::before { left: -10px; } .tk::after { right: -10px; }
.tk-top { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 8px; margin-bottom: 10px; border-bottom: 1.5px dashed rgba(150,100,0,.35); font-size: var(--t7); font-weight: 800; color: #8a5a00; letter-spacing: .4px; }
.tk-top span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; opacity: .75; }
.tk-bot { margin-top: 8px; text-align: center; font-size: var(--t7); font-weight: 600; color: #8a5a00; }
.scr-area { position: relative; border-radius: 12px; overflow: hidden; background: #fffdf6; min-height: 150px; box-shadow: inset 0 0 0 1px rgba(150,100,0,.2); }
.scr-in { display: flex; gap: 12px; align-items: flex-start; padding: 16px 14px; }
.scr-ico { flex: 0 0 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; background: #fff1c4; box-shadow: inset 0 0 0 2px #ffd25e; }
.scr-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.scr-k { font-size: var(--t7); color: #c27a00; font-weight: 800; }
.scr-t { font-size: var(--t5); line-height: 1.35; color: #191f28; }
.scr-w { margin: 2px 0 0; font-size: var(--t6); color: #4e5968; line-height: 1.5; }
.scr-o { font-size: var(--t7); color: #8b95a1; }
.scr-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .35s ease, filter .35s ease; z-index: 2; }
.scr-cv.gone { opacity: 0; filter: blur(1px); pointer-events: none; }
.scr-shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%); background-size: 260% 100%; animation: scrShine 3s ease-in-out infinite; }
.tk.touched .scr-shine { display: none; }
@keyframes scrShine { 0% { background-position: 140% 0; } 55%, 100% { background-position: -40% 0; } }
.scr-coin { position: absolute; left: 0; top: 0; z-index: 6; width: 46px; height: 46px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .12s;
  display: flex; align-items: center; justify-content: center; font: 900 21px/1 Pretendard, -apple-system, sans-serif; color: #9a5d00;
  background: radial-gradient(circle at 34% 30%, #fff7cc 0 10%, #ffd84f 32%, #eaa418 70%, #b9790c 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,.28), inset 0 0 0 3px rgba(255,255,255,.28), inset 0 -3px 0 rgba(120,70,0,.35); }
.scr-coin::after { content: '₩'; }
.scr-coin.on { opacity: 1; }
.scr-fx { position: absolute; left: -16px; top: -80px; width: calc(100% + 32px); height: calc(100% + 200px); pointer-events: none; z-index: 7; }
.scr-stamp { position: absolute; right: 12px; bottom: 12px; z-index: 4; pointer-events: none; padding: 4px 12px; border: 3px solid rgba(228,41,57,.85); border-radius: 10px; color: rgba(228,41,57,.88);
  font: 900 21px/1.2 Pretendard, -apple-system, sans-serif; letter-spacing: 3px; opacity: 0; transform: rotate(-14deg) scale(2.4); }
.tk.won .scr-stamp { animation: scrStamp .5s cubic-bezier(.2,1.5,.4,1) forwards; }
.tk.won .scr-area { animation: scrThud .35s ease .12s; }
.tk.won.still .scr-stamp, .tk.won.still .scr-area { animation: none; }
.tk.won.still .scr-stamp { opacity: .9; transform: rotate(-14deg) scale(1); }
@keyframes scrStamp { 0% { opacity: 0; transform: rotate(-14deg) scale(2.4); } 55% { opacity: 1; transform: rotate(-14deg) scale(.9); } 100% { opacity: .9; transform: rotate(-14deg) scale(1); } }
@keyframes scrThud { 0%, 100% { transform: none; } 40% { transform: scale(.985) translateY(1px); } }
.scr-snd { border: 0; background: none; padding: 0 0 0 6px; font-size: 15px; cursor: pointer; vertical-align: -1px; }
.scr-acts { display: flex; flex-direction: column; gap: 8px; }
.daily .scr-acts .btn { margin: 0 var(--s-card-pad); }
.daily-done small { font-size: var(--t7); color: var(--text3); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .scr-shine { animation: none; display: none; } .tk.won .scr-stamp { animation: none; opacity: .9; transform: rotate(-14deg) scale(1); } }

/* 금액 칸은 만원 단위(2026-10-08) — 칸 안 오른쪽에 「만원」, 받은 금액은 아래에 「40만원 = 400,000원」 확인 */
.pay-amt { position: relative; display: block; min-width: 0; }
.pay-amt input { width: 100%; padding-right: 44px; }
.pay-amt span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: var(--t7); font-weight: 600; pointer-events: none; }
.pay-row:not(.on) .pay-amt { opacity: .45; } .pay-row:not(.on) .pay-amt input { opacity: 1; }
.got-hint { margin: 6px 0 0; font-size: var(--t7); color: var(--weak-text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 업데이트 확인(2026-10-08) — 바뀐 점 목록 · 받는 % 막대 */
.upd-notes { margin: 10px 0 12px; padding: 12px 14px 12px 30px; background: var(--grey50); border-radius: 12px; color: var(--text); font-size: var(--t6); line-height: 1.55; }
.upd-notes li + li { margin-top: 4px; }
.upd-prog { height: 10px; border-radius: 6px; background: var(--grey100); overflow: hidden; }
.upd-prog i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 6px; transition: width .2s; }
.upd-pct { margin: 8px 0 0; text-align: center; color: var(--text2); font-weight: 600; }
.upd-pct.err { color: var(--danger); margin-bottom: 8px; }

/* 숨은 돈 긁기 「한 장 더 긁기(시험용)」 — 출시 전 시험 단추(site.json scratch_test) */
.scr-again { margin: 2px var(--s-card-pad) 0; padding: 10px; border: 1.5px dashed var(--grey300); border-radius: var(--r-btn); background: none; color: var(--text2); font: inherit; font-size: var(--t6); font-weight: 700; cursor: pointer; }
.scr-again small { font-weight: 500; color: var(--text3); }

/* 받을 가능성 이유 칩(2026-10-10) — 좋은 이유는 파랑 옅게, 주의는 회색 테두리. 파랑은 다음 행동에만이라 진한 파랑은 쓰지 않는다 */
.svc .why { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.svc .why span { font-size: var(--t7); line-height: var(--t7-lh); font-weight: 600; padding: 2px 8px; border-radius: 8px; }
.svc .why .g { background: var(--weak-bg); color: var(--weak-text); }
.svc .why .w { background: transparent; box-shadow: inset 0 0 0 1px var(--grey300); color: var(--text2); }
.svc .cur-line { font-size: var(--t6); line-height: var(--t6-lh); color: var(--text); font-weight: 600; margin: 6px 0 2px; }
/* 💳 우리 동네 지역화폐 한 장 */
.cur-card { margin: 0 0 var(--s-block); }
.cur-card .cur-n { font-size: var(--t4); line-height: var(--t4-lh); font-weight: 800; margin: 4px 0 2px; color: var(--text); }
.cur-card .hook-s { display: flex; justify-content: space-between; gap: 8px; color: var(--text2); }
.cur-card .go { flex: none; color: var(--primary); font-weight: 600; }

/* 흰·파랑 광택 3D 그림 아이콘(2026-10-10 회장님 「이런 형식의 아이콘으로 모두 변경」) — 이모지 글자 자리에 그대로 들어간다(build.py icon3d · match.js ic) */
img.ic3 { display: inline-block; width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -0.25em; }
h2 img.ic3, .sec-title img.ic3 { width: 1.35em; height: 1.35em; vertical-align: -0.3em; }
.quick img.ic3 { width: 44px; height: 44px; vertical-align: 0; }
.rl-ico img.ic3 { width: 34px; height: 34px; vertical-align: 0; }
.fg .i.ic3 { width: 28px; height: 28px; flex: none; }
.money-head img.ic3, .check-cta img.ic3 { width: 40px; height: 40px; vertical-align: 0; }
.life-grid a .le.ic3 { width: 34px; height: 34px; flex: none; vertical-align: 0; }
.btn.voice .mic img.ic3 { width: 32px; height: 32px; vertical-align: 0; }
.btn.tel .ico.ic3 { width: 30px; height: 30px; flex: none; }
.btn img.ic3 { width: 1.3em; height: 1.3em; vertical-align: -0.3em; }
.scr-ico.ic3 { flex: 0 0 54px; width: 54px; height: 54px; padding: 8px; box-sizing: border-box; background: #fff1c4; border-radius: 50%; box-shadow: inset 0 0 0 2px #ffd25e; }
.daily-head img.ic3 { width: 1.35em; height: 1.35em; vertical-align: -0.32em; }

/* ── 기쁨 효과(2026-10-10 회장님 「교감 · 축하 박수 폭죽 · 거의 다 왔어요 조금만 힘내세요」) — static/joy.js ── */
.joy-layer { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.joy-bit { position: absolute; width: 10px; height: 14px; border-radius: 2px; }
.joy-money { position: absolute; width: 38px; height: 38px; }
.joy-cele { position: fixed; inset: 0; z-index: 390; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(255, 255, 255, .0); transition: background .25s; }
.joy-cele.on { background: rgba(0, 0, 0, .45); }
.joy-cele.off { opacity: 0; transition: opacity .25s; }
.joy-card { width: 100%; max-width: 360px; background: var(--card); border-radius: 28px; padding: 28px 22px 16px; text-align: center; transform: scale(.7) translateY(30px); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.4, .4, 1), opacity .2s; }
.joy-cele.on .joy-card { transform: none; opacity: 1; }
.joy-hands .joy-anim.big { width: 120px; height: 120px; animation: joy-bounce 1.2s ease-out .15s both; }
.joy-t { font-size: var(--t2); line-height: var(--t2-lh); font-weight: 800; color: var(--text); margin-top: 8px; }
.joy-big { font-size: 44px; line-height: 1.15; font-weight: 800; color: var(--primary); margin: 6px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.joy-s { font-size: var(--t5); line-height: var(--t5-lh); color: var(--text2); margin-top: 6px; word-break: keep-all; }
.joy-n { font-size: var(--t6); line-height: var(--t6-lh); color: var(--text2); margin-top: 10px; background: var(--grey100); border-radius: 14px; padding: 10px 12px; word-break: keep-all; }
.joy-n b { color: var(--text); }
.joy-card .joy-ok { width: 100%; margin-top: 20px; }
.joy-mute { margin-top: 10px; border: 0; background: none; color: var(--text3); font: inherit; font-size: var(--t7); padding: 6px; cursor: pointer; }
.joy-popper { position: fixed; bottom: 6%; pointer-events: none; animation: joy-pop .55s cubic-bezier(.2, .8, .2, 1) .3s both; }
.joy-popper .joy-anim { width: 84px; height: 84px; }
.joy-popper.l { left: 4%; }
.joy-popper.r { right: 4%; transform: scaleX(-1); animation-name: joy-pop-r; }
@keyframes joy-bounce { 0% { transform: scale(.2) rotate(-12deg); } 45% { transform: scale(1.18) rotate(6deg); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes joy-pop { from { transform: translateY(80px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes joy-pop-r { from { transform: scaleX(-1) translateY(80px) scale(.4); opacity: 0; } to { transform: scaleX(-1); opacity: 1; } }
/* 맞춤 찾기 응원 한 줄 */
.cheer-line { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 8px 12px 8px 8px; background: var(--weak-bg); color: var(--weak-text); border-radius: 16px; font-size: var(--t6); line-height: var(--t6-lh); font-weight: 700; width: fit-content; max-width: 100%; animation: cheer-in .45s cubic-bezier(.2, 1.3, .4, 1) both; word-break: keep-all; }
.cheer-line .joy-anim { width: 34px; height: 34px; flex: none; }
@keyframes cheer-in { from { transform: translateY(8px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.progress.half i { box-shadow: 0 0 0 3px rgba(49, 130, 246, .25); }
.cheer .clap .joy-anim { width: 96px; height: 96px; }
.confetti .popper .joy-anim { width: 64px; height: 64px; }

/* ── 웹사이트 모양(2026-10-11 회장님 「웹은 웹사이트처럼」 · 관제 #49) — 앱(html.app)은 손대지 않는다 ── */
.home-app > section, .home-cols > section { margin: var(--s-section) 0; }
html:not(.app) .app-sec, html:not(.app) .quick .app-i { display: none !important; }
html.app .quick .web-i { display: none !important; }
.home-feed .sec-title { margin-top: 16px; }
.feed { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.feed li + li { border-top: 1px solid var(--line); }
.feed a { display: block; padding: 16px 20px; color: var(--text); text-decoration: none; }
.feed a:hover h3 { color: var(--primary); }
.feed a:active { background: var(--grey50); }
.feed h3 { font-size: var(--t5); line-height: var(--t5-lh); font-weight: 700; margin: 0 0 4px; }
.feed p { color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed time { color: var(--text3); font-size: var(--t7); }
.feed .lead a { padding: 20px; }
.feed .lead h3 { font-size: var(--t4); line-height: var(--t4-lh); }
.feed .chip.new { margin-bottom: 8px; }
.appcta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.appcta-ico .tf { font-size: 36px; line-height: 1; }
.appcta-t { flex: 1 1 200px; min-width: 0; }
.appcta-t h2 { font-size: var(--t5); line-height: var(--t5-lh); margin: 0 0 2px; }
.appcta-t p { color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); margin: 0; }
.appcta .btn { flex: 0 0 auto; }
.appcta .btn.soon { cursor: default; }
@media (max-width: 999px) { .feed:not(.feed-all) li:nth-child(n+6) { display: none; } }
/* PC 넓은 화면(브라우저): 머리·바닥은 넓게, 첫 화면은 왼쪽 글 목록 · 오른쪽 찾기 도구 2단 */
@media (min-width: 1000px) {
  html:not(.app) .top .wrap, html:not(.app) .foot .wrap, html:not(.app) body.home main.wrap { max-width: 1120px; }
  html:not(.app) .home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
  html:not(.app) .home-feed { margin-top: 12px; }
  html:not(.app) .home-app { min-width: 0; }
  html:not(.app) .feed .lead h3 { font-size: var(--t3); line-height: var(--t3-lh); }
}

/* 「조금 더 알려 주세요」 단계(2026-10-11 지금24 참고) — 한 줄에 하나 고르는 작은 칸 · 자녀 수 −/+ */
.more-row { margin-bottom: 6px; }
.more-row .sub-label { margin: 16px 0 8px; color: var(--text); }
.opts.mini { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.opts.mini .opt { min-height: 48px; padding: 10px 8px; font-size: var(--t6); line-height: var(--t6-lh); border-radius: 14px; }
.kid-count { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 16px; padding: 10px 16px; }
.kid-count span { flex: 1; font-weight: 600; white-space: nowrap; }
.kid-count b { min-width: 44px; text-align: center; font-size: var(--t4); }
.kid-count b.unset { color: var(--grey400, #b0b8c1); }   /* 아직 안 고른 0명(11/27 #1044) */
.kc:disabled { opacity: .35; }
/* ── 결과 네 묶음(11/27 관제 #1044 · match.js grouped) ── */
.g4 { margin: 0 0 28px; }
.g4-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 4px; }
.g4-h h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--t4); font-weight: 700; }
.g4-h h3 img.ic3, .g4-h h3 .tf { width: 28px; height: 28px; font-size: 22px; }
.g4-h .count { color: var(--text3); font-size: var(--t7); white-space: nowrap; }
.g4-d { margin: 0 0 12px; color: var(--text3); font-size: var(--t7); line-height: var(--t7-lh); }
.g4.g-cash .g4-h h3 { color: var(--primary); }
.g4.g-pick .card.svc { opacity: .92; }
.chip.pick { background: transparent; box-shadow: inset 0 0 0 1px var(--grey300); color: var(--text2); }
.svc-wrap { min-width: 0; }
.svc-wrap > .card.svc { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.fam-share { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 0; border-top: 1px solid var(--grey100); border-radius: 0 0 var(--r-card) var(--r-card); background: var(--card); color: var(--primary); font: inherit; font-size: var(--t7); font-weight: 700; padding: 12px 10px; cursor: pointer; }
.fam-share img.ic3, .fam-share .tf { width: 22px; height: 22px; font-size: 18px; }
.fam-share:active { background: var(--grey100); }
.fam-share.in { width: auto; display: inline-flex; margin-top: 10px; border: 0; border-radius: 12px; background: var(--card); box-shadow: 0 2px 8px rgba(49, 130, 246, .16); padding: 9px 14px; }
.svc .pay { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--blue50); font-size: var(--t7); line-height: 1.55; color: var(--text); }
.svc .pay .pay-l b { font-weight: 700; margin-right: 4px; }
.svc .pay .pay-l em { font-style: normal; font-weight: 700; color: var(--primary); white-space: nowrap; }
.svc .pay .pay-l.on b { color: #e42939; }
.svc .pay .pay-l.note { color: var(--text2); }
.svc .pay small { display: block; margin-top: 4px; color: var(--text3); font-size: 12px; }
/* 어두운 화면 두 벌(html.dark · 기기 따라가기 html.auto) — 파란 글자가 어두운 바탕에서 안 보이지 않게(11/27 #1044) */
html.dark .fam-share, html.dark .g4.g-cash .g4-h h3, html.dark .svc .pay .pay-l em { color: #64a8ff; }
html.dark .svc .pay .pay-l.on b { color: #ff7b86; }
@media (prefers-color-scheme: dark) {
  html.auto .fam-share, html.auto .g4.g-cash .g4-h h3, html.auto .svc .pay .pay-l em { color: #64a8ff; }
  html.auto .svc .pay .pay-l.on b { color: #ff7b86; }
}
.kc { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grey100); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.kc:active { background: var(--grey200, var(--grey100)); }
.kid-age { margin-top: 8px; }
html.big .opts.mini .opt { min-height: 56px; font-size: var(--t5); }

/* 📢 우리 동네 새 공고(2026-10-11) */
.ntc-list { padding: 6px var(--s-card-pad) 10px; }   /* 좌우 여백을 「잠자는 내 돈」 카드와 같게(10/13 회장님 「네모칸 간격」) */
.ntc { display: block; padding: 12px 0; color: var(--text); text-decoration: none; }
.ntc + .ntc { border-top: 1px solid var(--line); }
.ntc b { display: block; font-weight: 600; font-size: var(--t5); line-height: var(--t5-lh); }
.ntc small { display: block; color: var(--text3); font-size: var(--t7); margin-top: 2px; }
.ntc:active { background: var(--grey50); }
.ntc-src { color: var(--text3); font-size: var(--t7); line-height: 1.5; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }

/* ── 🎁 혜택 화면(2026-10-11 — 지금24 앱테크 참고, 그림은 우리 아이콘·CSS) ── */
body.reward .top, body.reward .foot, body.reward #tabbar { display: none !important; }
body.reward main.wrap { padding-bottom: calc(110px + var(--ad-h, 0px) + env(safe-area-inset-bottom)); }   /* 2026-11-05 혜택 첫 화면 배너 높이만큼 더 비움 */
.rw-head { display: flex; align-items: center; gap: 10px; margin: 0 calc(-1 * var(--s-gutter)); padding: calc(14px + env(safe-area-inset-top)) var(--s-gutter) 44px; background: var(--primary); color: #fff; }
.rw-back { color: #fff; font-size: 34px; line-height: 1; width: 36px; text-decoration: none; }
.rw-bal { display: flex; align-items: center; gap: 8px; flex: 1; }
.rw-bal b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rw-bal span { font-size: var(--t6); opacity: .9; margin-top: 8px; }
.rw-pet { animation: rw-bob 2.6s ease-in-out infinite; }
@keyframes rw-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }
.rw-body { position: relative; margin: -26px calc(-1 * var(--s-gutter)) 0; padding: 22px var(--s-gutter) 0; background: var(--bg); border-radius: 24px 24px 0 0; }
.rw-title { font-size: var(--t3); line-height: var(--t3-lh); margin: 0 0 4px; }
.rw-sub { color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); margin: 0 0 14px; }
.rw-sub b { color: var(--primary); }
.rw-list { padding: 6px 16px; margin-bottom: 12px; }
.rw-list a { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--text); text-decoration: none; }
.rw-list a + a { border-top: 1px solid var(--line); }
.rw-ic { width: 40px; height: 40px; font-size: 34px; line-height: 40px; text-align: center; flex: 0 0 40px; }
.rw-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rw-t b { font-size: var(--t5); }
.rw-t small { color: var(--text3); font-size: var(--t7); }
.rw-list em { font-style: normal; font-weight: 700; font-size: var(--t6); color: #fff; background: var(--primary); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.rw-list em.done { background: var(--grey100); color: var(--text3); }
.rw-note h2 { font-size: var(--t5); margin: 0 0 6px; }
.rw-note p { font-size: var(--t6); line-height: var(--t6-lh); color: var(--text2); }
.rw-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(6px + env(safe-area-inset-bottom));   /* 2026-11-06 회장님 「메뉴 조금만 더 내리고 휴대폰 메뉴와 안 겹치게」 14→6px(안전 영역은 그대로 더함) · 배너는 app.js 가 이 윗변에 0px 로 붙인다 */ z-index: 40; display: flex; gap: 2px; background: var(--card); border-radius: 999px; padding: 6px 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .14); width: min(440px, calc(100% - 28px)); }
.rw-pill a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--text3); text-decoration: none; font-size: 12px; font-weight: 600; border-radius: 999px; }
.rw-pill a .tf { font-size: 24px; line-height: 26px; }
.rw-pill a img, .rw-pill a .tf { filter: grayscale(1) opacity(.6); }   /* 룰렛·두더지(이모지 아이콘)도 누른 화면에서만 색(2026-10-12 회장님) */
.rw-pill a.on { color: var(--text); background: var(--grey50); }
.rw-pill a.on img, .rw-pill a.on .tf { filter: none; }

/* 하루 3번 동·은·금 */
.coins-card .sec-title { margin-top: 0; }
.coins-prog { margin-left: auto; color: var(--text3); font-weight: 700; }
.coins-prog b { color: var(--primary); }
.coins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.coin-slot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.coin-slot .cn { font-weight: 700; font-size: var(--t6); color: var(--text3); }
.coin-slot.open .cn { color: var(--text); }
.coin { width: 78%; max-width: 96px; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 2px rgba(0, 0, 0, .25); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), inset 0 6px 0 rgba(255, 255, 255, .35), 0 6px 14px rgba(0, 0, 0, .18); filter: grayscale(1) opacity(.55); }
.coin span { width: 74%; height: 74%; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .2); }
.coin.b { background: radial-gradient(circle at 35% 30%, #f3b98a, #c46f2c 60%, #8f4a17); }
.coin.s { background: radial-gradient(circle at 35% 30%, #ffffff, #c4ccd6 60%, #8a95a3); }
.coin.g { background: radial-gradient(circle at 35% 30%, #fff3a8, #f5c21b 60%, #c48f00); }
.coin-slot.open .coin { filter: none; animation: coin-glow 1.6s ease-in-out infinite; }
.coin-slot.got .coin { filter: drop-shadow(0 0 8px rgba(255, 200, 60, .55)); opacity: 1; }
.coin.spin { animation: coin-spin .5s ease-in-out 1 !important; }
@keyframes coin-glow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes coin-spin { from { transform: rotateY(0) scale(1); } to { transform: rotateY(720deg) scale(1.15); } }
.cbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; height: 40px; border-radius: 14px; font-size: var(--t6); font-weight: 700; border: 0; padding: 0 10px; }
.cbtn.go { background: var(--primary); color: #fff; cursor: pointer; }
.cbtn.wait { background: var(--grey100); color: var(--text3); }
.cbtn.done { background: var(--weak-bg); color: var(--weak-text); }
@media (prefers-reduced-motion: reduce) { .rw-pet, .coin-slot.open .coin { animation: none; } }

/* ── 🫘 모야콩 가게(2026-10-11) ── */
.sh-group { padding: 16px 18px 6px; margin-bottom: 12px; }
.sh-group h2 { font-size: var(--t5); margin: 0 0 2px; }
.sh-note { color: var(--text3); font-size: var(--t7); margin: 0 0 4px; }
.sh-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.sh-item + .sh-item { border-top: 1px solid var(--line); }
.sh-ic { width: 40px; height: 40px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--grey50); border-radius: 12px; font-weight: 800; color: var(--primary); }
.sh-ic .sw { width: 26px; height: 26px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5); }
.sh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sh-t b { font-size: var(--t5); }
.sh-t small { color: var(--text3); font-size: var(--t7); line-height: var(--t7-lh); }
.sh-t .sh-on { color: var(--primary); font-weight: 700; }
.sh-btn { flex: 0 0 auto; min-width: 76px; height: 38px; border-radius: 12px; border: 0; padding: 0 12px; font-size: var(--t6); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sh-btn.buy { background: var(--primary); color: #fff; cursor: pointer; }
.sh-btn.buy.poor { background: var(--grey100); color: var(--text3); }
.sh-lack { display: block; margin-top: 4px; color: var(--danger, #f04452); font-size: 12.5px; }   /* 모자란 콩 안내(11/6 밤) */
.sh-btn.use { background: var(--weak-bg); color: var(--weak-text); cursor: pointer; }
.sh-btn.using { background: transparent; color: var(--text3); }
.rw-petbox { position: relative; display: block; text-decoration: none; animation: rw-bob 2.6s ease-in-out infinite; }
.rw-petbox .rw-pet { animation: none; }
.rw-acc { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-size: 24px; line-height: 1; pointer-events: none; }
.rw-acc.acc-flower, .rw-acc.acc-ribbon { left: 78%; top: -6px; font-size: 20px; }
.st.deco i { background: var(--weak-bg); font-size: 20px; }
/* 화면 색(가게) — 단추·강조 색만 바꾼다 */
html.th-pink { --primary: #e8457e; --primary-hover: #d13068; }
html.th-green { --primary: #16a05a; --primary-hover: #0f8a4c; }
html.th-beige { --primary: #a0743b; --primary-hover: #8a6230; }
html.th-pink:not(.dark) { --weak-bg: #ffe8f0; --weak-text: #c2255c; }
html.th-green:not(.dark) { --weak-bg: #e3f6ec; --weak-text: #0b7a43; }
html.th-beige:not(.dark) { --weak-bg: #f6eedf; --weak-text: #7d5a2a; }
@media (prefers-color-scheme: dark) { html.auto.th-pink, html.auto.th-green, html.auto.th-beige { --weak-bg: #2a2a33; --weak-text: #e9e9ee; } }

/* ── 🔨 두더지 잡기 — 옛날 오락실 기계(2026-10-11) ── */
.cab { position: relative; margin: 4px 0 12px; padding: 14px 12px 18px; border-radius: 26px; background: linear-gradient(160deg, #e2a35f 0%, #b8743a 45%, #8a4f22 100%); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -6px 0 rgba(0, 0, 0, .25), 0 10px 22px rgba(80, 40, 10, .35); touch-action: manipulation; user-select: none; -webkit-user-select: none; overflow: hidden; }
body.mole-on .cab { cursor: none; }
.cab-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cab-title { flex: 1; text-align: center; font-weight: 900; font-size: 20px; line-height: 1.05; color: #fff6d8; letter-spacing: .04em; text-shadow: 0 3px 0 #7a3b12, 0 0 12px rgba(255, 210, 120, .6); }
.led { background: #140d0b; border-radius: 12px; padding: 6px 12px; min-width: 86px; text-align: center; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8), 0 2px 0 rgba(255, 255, 255, .25); }
.led small { display: block; color: #ff9a8a; font-size: 11px; font-weight: 700; opacity: .8; }
.led b { display: block; font-family: 'Courier New', ui-monospace, monospace; font-size: 30px; line-height: 1; color: #ff3b30; text-shadow: 0 0 8px #ff3b30, 0 0 2px #ffb3ab; font-variant-numeric: tabular-nums; }
.cab-bolts i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9aa3ad 60%, #59616b); }
.cab-bolts i:nth-child(1) { left: 10px; top: 10px; } .cab-bolts i:nth-child(2) { right: 10px; top: 10px; } .cab-bolts i:nth-child(3) { left: 10px; bottom: 10px; } .cab-bolts i:nth-child(4) { right: 10px; bottom: 10px; }
.cab .mole-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; padding: 40px 10px 8px; border-radius: 18px; background: radial-gradient(ellipse at 50% 20%, #8fd16a, #4f9a3a 75%); box-shadow: inset 0 6px 14px rgba(0, 0, 0, .3); }
.cab.shake .mole-board, .mole-board.shake { animation: m-shake .18s linear 1; }
@keyframes m-shake { 25% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, 1px); } }
.cab .hole { position: relative; aspect-ratio: 1 / 1.05; cursor: inherit; -webkit-tap-highlight-color: transparent; }
.cab .hole-bg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; pointer-events: none; }
.cab .mclip { position: absolute; left: 4%; right: 4%; bottom: 24%; height: 135%; overflow: hidden; pointer-events: none; border-radius: 0 0 46% 46% / 0 0 18% 18%; }
.cab .mole { position: absolute; left: 0; bottom: 0; width: 100%; transform: translateY(102%); transition: transform .16s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.cab .hole.up .mole { transform: translateY(6%); }
.cab .hole.up .mole { animation: m-tease .5s ease-in-out .2s infinite alternate; }
.cab .hole.hit .mole { animation: m-dizzy .42s ease-in-out 1; transform: translateY(26%) scale(1.04, .9); transition: transform .08s; }
.cab .hole.gold .mole { filter: drop-shadow(0 0 10px #ffd43b); }
@keyframes m-tease { from { transform: translateY(6%) rotate(-5deg); } to { transform: translateY(2%) rotate(5deg); } }
@keyframes m-dizzy { 0% { transform: translateY(6%) scale(1.15, .7); } 40% { transform: translateY(18%) rotate(-8deg); } 100% { transform: translateY(26%) rotate(6deg) scale(1.04, .9); } }
.cab .bub { position: absolute; left: 50%; top: -6%; transform: translate(-50%, 6px) scale(.6); opacity: 0; white-space: nowrap; background: #fff; color: #222; font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 14px; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); pointer-events: none; z-index: 5; transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), opacity .15s; }
.cab .bub::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.cab .bub.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.cab .bub.ouch { background: #ffe066; }
.cab .bub.combo { background: #ff3b30; color: #fff; font-size: 15px; }
.cab .bub.combo::after { border-top-color: #ff3b30; }
.cab .bub.ouch::after { border-top-color: #ffe066; }
.hammer { position: absolute; width: 110px; height: 110px; margin: -92px 0 0 -18px; pointer-events: none; z-index: 8; opacity: 0; transform-origin: 72% 88%; transform: rotate(-10deg); transition: opacity .1s; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
.hammer.show { opacity: 1; }
.hammer.swing { animation: h-swing .26s cubic-bezier(.5, 0, .3, 1) 1; }
@keyframes h-swing { 0% { transform: rotate(-38deg); } 55% { transform: rotate(32deg); } 75% { transform: rotate(26deg); } 100% { transform: rotate(-10deg); } }
.pow { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; z-index: 7; opacity: 0; }
.pow.on { animation: p-pow .32s ease-out 1; }
@keyframes p-pow { 0% { opacity: 1; transform: scale(.3) rotate(0); } 60% { opacity: 1; transform: scale(1.1) rotate(12deg); } 100% { opacity: 0; transform: scale(1.3) rotate(18deg); } }
.mole-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 900; color: #fff; text-shadow: 0 5px 0 #b33, 0 0 20px rgba(0, 0, 0, .4); pointer-events: none; opacity: 0; z-index: 9; }
.mole-count.on { animation: m-count .6s ease-out 1; }
@keyframes m-count { 0% { opacity: 0; transform: scale(2); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.8); } }
body.mole-on .rw-pill { opacity: .35; pointer-events: none; }

/* ── ⌨️ 키보드 치기 — 기계식 키보드(2026-10-11) ── */
.keys-body { text-align: center; }
.keys-count { margin: 6px 0 4px; }
.keys-count b { display: inline-block; font-size: 64px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.keys-count b.bump { animation: k-bump .12s ease-out 1; }
@keyframes k-bump { 50% { transform: scale(1.08); } }
.keys-count span { font-size: var(--t3); color: var(--text3); font-weight: 700; margin-left: 6px; }
.keys-bar { height: 10px; background: var(--grey100); border-radius: 999px; overflow: hidden; margin: 0 10% 20px; }
.keys-bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .15s; }
.kb { margin: 0 auto 14px; max-width: 520px; padding: 12px 8px 14px; border-radius: 20px; background: linear-gradient(#3b4252, #262b36); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 12px 24px rgba(20, 30, 50, .35), 0 4px 0 #171b23; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.kb-row { display: flex; justify-content: center; gap: 5px; margin-bottom: 7px; }
.kb-row.r2 { padding: 0 4%; } .kb-row.r3 { padding: 0 12%; }
.kk { flex: 1 1 0; min-width: 0; height: 46px; border: 0; padding: 0 0 6px; border-radius: 9px; background: linear-gradient(#fbfcfe, #dfe4ec); color: #3a4150; font-weight: 700; font-size: 15px; box-shadow: inset 0 -6px 0 #b9c2d0, 0 3px 0 #0f131a, 0 4px 6px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .04s, box-shadow .04s; -webkit-tap-highlight-color: transparent; }
.kk.fn { background: linear-gradient(#ffd27a, #f2a93b); color: #6a3d00; box-shadow: inset 0 -6px 0 #c9842a, 0 3px 0 #0f131a, 0 4px 6px rgba(0, 0, 0, .35); flex: 1.6 1 0; }
.kk.space { flex: 5 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(#e9f1ff, #c9dcff); color: #1f4fae; box-shadow: inset 0 -6px 0 #9fbaf0, 0 3px 0 #0f131a, 0 4px 6px rgba(0, 0, 0, .35); }
.kk.down { transform: translateY(4px); box-shadow: inset 0 -2px 0 #b9c2d0, 0 0 0 #0f131a, 0 1px 2px rgba(0, 0, 0, .35); }
.kk.fn.down { box-shadow: inset 0 -2px 0 #c9842a, 0 0 0 #0f131a; } .kk.space.down { box-shadow: inset 0 -2px 0 #9fbaf0, 0 0 0 #0f131a; }
/* (옛 키보드 부스러기 .crumb 는 2026-10-12 키캡 딸깍으로 바뀌며 지움 — 이름이 안내 글 「홈 › 안내 글」 경로(.crumb)와 겹쳐 화면에 붙어 따라다녔다) */

/* ── 📅 출석 로드맵 30칸(2026-10-11) ── */
.att-card { padding: 16px 14px 18px; margin-bottom: 14px; }
.att-head { display: flex; align-items: baseline; gap: 6px; margin: 0 4px 10px; }
.att-head b { font-size: 34px; font-weight: 800; color: var(--primary); }
.att-head span { color: var(--text3); font-weight: 700; }
.att-head em { margin-left: auto; font-style: normal; font-weight: 700; font-size: var(--t6); color: #e8590c; }
.att-map { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 64px; padding-top: 26px; }
.ac-path { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ac-path .road { fill: none; stroke: var(--grey100); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.ac-path .road-done { fill: none; stroke: var(--primary); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.ac { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.ac-dot { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card); border: 3px solid var(--grey200); color: var(--text3); font-weight: 800; font-size: 14px; }
.ac.on .ac-dot { background: var(--primary); border-color: var(--primary); color: #fff; font-size: 18px; }
.ac.mile .ac-dot { font-size: 20px; border-color: #ffc078; background: #fff4e6; }
.ac.mile.on .ac-dot { background: var(--primary); border-color: var(--primary); }
.ac.last .ac-dot { width: 50px; height: 50px; font-size: 24px; border-color: #ffd43b; background: #fff9db; }
.ac small { position: absolute; bottom: -4px; font-size: 11px; font-weight: 800; color: #e8590c; white-space: nowrap; }
.ac.next .ac-dot { border-color: var(--primary); color: var(--primary); animation: ac-pulse 1.2s ease-in-out infinite; }
.ac.bang .ac-dot { animation: ac-bang .35s ease-out 1; background: var(--primary); }
@keyframes ac-pulse { 50% { box-shadow: 0 0 0 7px rgba(49, 130, 246, .2); } }
@keyframes ac-bang { 0% { transform: scale(1.6) rotate(-10deg); } 100% { transform: scale(1); } }
.ac-cat { position: absolute; z-index: 2; width: 34px; height: 34px; pointer-events: none; transition: left .5s, top .5s; animation: rw-bob 1.4s ease-in-out infinite; }
.att-link { color: var(--primary); font-weight: 700; text-decoration: none; }

/* ── 🚶 걷기 미션 — 산 오르기(2026-10-11) ── */
.walk-top { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 0 0 8px; }
.walk-top small { color: var(--text3); font-weight: 700; margin-right: 6px; }
.walk-top b { font-size: 44px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.walk-top span { color: var(--text3); font-weight: 700; }
.walk-scene { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 360 / 220; box-shadow: 0 6px 16px rgba(30, 80, 160, .18); }
.walk-scene svg { display: block; width: 100%; height: 100%; }
.walk-scene .wf line { stroke: #6b4b2a; stroke-width: 2; }
.walk-scene .wf path { fill: #ff6b6b; }
.walk-scene .wf text { font-size: 9px; font-weight: 800; fill: #23402a; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.walk-scene .wf.got path { fill: #ffd43b; }
.walk-cat { position: absolute; width: 17%; height: auto; transform: translate(-50%, -88%); transition: left 1.2s ease-in-out, top 1.2s ease-in-out; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.walk-cat.flip { transform: translate(-50%, -88%) scaleX(-1); }
.walk-note { color: var(--text2); font-size: var(--t6); margin: 10px 2px 12px; }
.walk-note .btn { margin-top: 8px; }
.walk-card { padding: 16px 16px 8px; margin-bottom: 12px; }
.walk-card h2 { font-size: var(--t4); margin: 0 0 2px; }
.wm { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.wm + .wm { border-top: 1px solid var(--line); }
.wm-i { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--grey100); color: var(--text3); }
.wm.sel .wm-i { background: var(--primary); color: #fff; }
.wm.done .wm-i { background: #2fb344; color: #fff; }
.wm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wm-t b { font-size: var(--t5); }
.wm-t small { color: var(--text3); font-size: var(--t7); }
.wm-bar { display: block; height: 8px; border-radius: 999px; background: var(--grey100); overflow: hidden; margin: 6px 0 2px; }
.wm-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .6s; }
.wm-t .wm-left { color: var(--primary); font-weight: 700; }
.wm-btn { flex: 0 0 auto; min-width: 84px; height: 36px; border-radius: 12px; border: 0; font-weight: 700; font-size: var(--t7); display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; }
.wm-btn.pick { background: var(--weak-bg); color: var(--weak-text); cursor: pointer; }
.wm-btn.now { background: var(--primary); color: #fff; }
.wm-btn.ok { background: #e6f7ea; color: #2b8a3e; }
@media (prefers-reduced-motion: reduce) { .cab .hole.up .mole, .ac.next .ac-dot, .ac-cat { animation: none; } }

/* ── 🏅 오늘의 메달(2026-10-11) ── */
.medal-bar { position: relative; height: 10px; background: var(--grey100); border-radius: 999px; margin: 2px 0 16px; overflow: visible; }
.medal-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c46f2c, #9aa3ad 50%, #f5c21b); border-radius: 999px; transition: width .6s; }
.medal-bar span { position: absolute; top: -3px; width: 3px; height: 16px; background: var(--card); border-radius: 2px; }
.coin-slot .cneed { color: var(--text3); font-size: var(--t7); font-weight: 600; margin-top: -4px; }
.coin span { font-size: 30px; text-shadow: none; }
#medal-tasks .mt { display: flex; align-items: center; gap: 12px; padding: 13px 0; color: var(--text); text-decoration: none; }
#medal-tasks .mt + .mt { border-top: 1px solid var(--line); }
.mt-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--grey50); }
.mt.ok .mt-ic { background: #2fb344; color: #fff; font-weight: 800; font-size: 18px; }
.mt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-t b { font-size: var(--t5); }
.mt.ok .mt-t b { color: var(--text3); text-decoration: line-through; }
.mt-t small { color: var(--primary); font-size: var(--t7); font-weight: 700; }
#medal-tasks em { font-style: normal; font-weight: 700; font-size: var(--t7); color: #fff; background: var(--primary); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
#medal-tasks .mt.ok em { background: #e6f7ea; color: #2b8a3e; }

/* ── 🐱 모야냥 키우기(2026-10-11) ── */
.pet-top { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 10px; }
.pet-name { border: 0; background: none; padding: 0; font: inherit; font-size: var(--t3); font-weight: 800; color: var(--text); cursor: pointer; }
.pet-name::after { content: ' ✎'; font-size: 14px; color: var(--text3); }
.pet-age { margin-left: auto; color: var(--text3); font-weight: 700; font-size: var(--t6); }
.pet-room { position: relative; height: 300px; border-radius: 24px; overflow: hidden; background: linear-gradient(#fff6e9 0%, #ffe9d2 62%, #f3c99a 62%, #e9b47e 100%); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .05); margin-bottom: 8px; touch-action: pan-y; }   /* 2026-11-06 회장님 「드래그해도 바로 안 내려가」: none → pan-y(방 위에서 세로로 끌면 화면이 내려간다 · 톡·시선은 그대로) · 쓰다듬기는 .pet-cat 만 none */
.pet-room::before { content: ''; position: absolute; left: 12%; top: 14%; width: 70px; height: 54px; border-radius: 10px; background: linear-gradient(#bfe3ff, #e8f5ff); box-shadow: 0 0 0 6px #fff, 0 4px 10px rgba(0, 0, 0, .1); }
.pet-cat { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); transform-origin: 50% 100%; width: 150px; cursor: grab; animation: pet-breathe 2.4s ease-in-out infinite; touch-action: none; }
.pet-cat[data-stage="0"] { width: 120px; } .pet-cat[data-stage="1"] { width: 150px; } .pet-cat[data-stage="2"] { width: 175px; } .pet-cat[data-stage="3"] { width: 200px; }
.pet-cat img { width: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 8px 6px rgba(120, 70, 20, .25)); }
/* 🐾 실감 1단계(2026-11-06): 바닥 그림자(점프하면 작아지고 옅어짐 — reward.js lift 가 --sh·--sho) · 고개 갸웃 · 몸 털기 · 꼬리 · 반김 */
.pet-cat::before { content: ''; position: absolute; left: 50%; bottom: -3px; width: 72%; height: 12%; transform: translateX(-50%) scale(var(--sh, 1)); opacity: var(--sho, 1); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(70, 40, 10, .34), rgba(70, 40, 10, 0) 68%); pointer-events: none; z-index: -1; transition: transform .12s linear, opacity .12s linear; }
.pet-cat.tilt { animation: pet-tilt .76s ease-in-out 1; }
@keyframes pet-tilt { 35% { transform: translateX(-50%) rotate(-5deg); } 70% { transform: translateX(-50%) rotate(3.5deg); } }
.pet-cat.shake { animation: pet-shake .52s ease-in-out 1; }
@keyframes pet-shake { 15%, 55% { transform: translateX(-50%) rotate(7deg) scaleX(1.05); } 35%, 75% { transform: translateX(-50%) rotate(-7deg) scaleX(1.05); } }
.pet-cat.wag { animation: pet-wag .9s ease-in-out 1; }
@keyframes pet-wag { 12%, 44%, 76% { transform: translateX(-50%) rotate(3deg); } 28%, 60%, 92% { transform: translateX(-50%) rotate(-3deg); } }
.pet-cat.greet { animation: pet-hop .42s cubic-bezier(.3, 1.6, .5, 1) 3; }
.pet-cat.fallback img { width: 80%; margin: 0 auto; }
@keyframes pet-breathe { 0%, 100% { transform: translateX(-50%) scale(1, 1); } 50% { transform: translateX(-50%) scale(1.03, .97); } }
.pet-cat.wiggle { animation: pet-wiggle .35s ease-in-out 1; }
@keyframes pet-wiggle { 25% { transform: translateX(-50%) rotate(-6deg) scale(1.04, .96); } 75% { transform: translateX(-50%) rotate(6deg) scale(1.04, .96); } }
.pet-cat.hop { animation: pet-hop .4s cubic-bezier(.3, 1.6, .5, 1) 1; }
@keyframes pet-hop { 40% { transform: translateX(-50%) translateY(-30px) scale(.95, 1.08); } }
.pet-cat.eat { animation: pet-eat .3s ease-in-out 6; }
@keyframes pet-eat { 50% { transform: translateX(-50%) translateY(10px) rotate(4deg) scale(1.03, .95); } }
.pet-cat.play { animation: pet-play 1.9s ease-in-out 1; }
@keyframes pet-play { 0% { transform: translateX(-50%); } 20% { transform: translateX(-130%) translateY(-50px) rotate(-12deg); } 40% { transform: translateX(-130%); } 60% { transform: translateX(30%) translateY(-60px) rotate(12deg); } 80% { transform: translateX(30%); } 100% { transform: translateX(-50%); } }
.pet-cat.grow { animation: pet-grow .7s ease-in-out 1; }
@keyframes pet-grow { 0% { transform: translateX(-50%) scale(1); filter: brightness(1); } 50% { transform: translateX(-50%) scale(1.3); filter: brightness(1.8); } 100% { transform: translateX(-50%) scale(1); } }
.pet-cat.sleep { animation: pet-breathe 4s ease-in-out infinite; }
.pet-cat.sleep img { filter: brightness(.82) saturate(.8) drop-shadow(0 8px 6px rgba(120, 70, 20, .25)); }
.pet-zz { display: none; position: absolute; right: -6px; top: -4px; font-weight: 900; font-size: 26px; color: #7a8fb8; }
.pet-zz small { font-size: 18px; margin-left: 2px; }
.pet-cat.sleep .pet-zz { display: block; animation: pet-zz 2s ease-in-out infinite; }
@keyframes pet-zz { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
.pet-room.lights-off { background: linear-gradient(#26304d 0%, #37456b 62%, #6a5a4a 62%, #574837 100%); }   /* 2026-10-12: 어두운 방 = 불을 껐을 때만(자는 모습은 밤·낮잠 모두) */
.pet-bub { position: absolute; left: 50%; top: 9%; transform: translate(-50%, 6px) scale(.8); opacity: 0; max-width: 84%; background: #fff; color: #333; font-weight: 700; font-size: var(--t6); padding: 9px 14px; border-radius: 16px; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); transition: opacity .2s, transform .2s cubic-bezier(.3, 1.6, .5, 1); z-index: 3; text-align: center; }
.pet-bub::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
.pet-bub.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pet-heart { position: absolute; z-index: 4; font-style: normal; font-size: 24px; pointer-events: none; }
.pet-prop { position: absolute; z-index: 2; pointer-events: none; }
.pet-prop.bowl { width: 90px; left: 50%; bottom: 8%; margin-left: 50px; animation: prop-in .3s ease-out 1; }
.pet-prop.treat { width: 60px; left: 50%; top: 30%; animation: prop-drop .6s cubic-bezier(.3, 1.4, .5, 1) 1 forwards; }
/* 고양이 앞에 놓이는 소품(11/6 밤 · reward.js propAt — left/bottom/width 는 인라인) : 위에서 살짝 내려와 앉고(.at) · 먹고 나면 사라짐(.gone) */
.pet-prop.at { top: auto; margin-left: 0; transform: translateX(-50%); animation: prop-set .45s cubic-bezier(.3, 1.4, .5, 1) 1; transition: opacity .4s, transform .4s; filter: drop-shadow(0 4px 4px rgba(90, 50, 10, .25)); }
.pet-prop.at.gone { opacity: 0; transform: translateX(-50%) scale(.6); }
@keyframes prop-set { from { transform: translate(-50%, -70px) scale(.7); opacity: 0; } to { transform: translate(-50%, 0) scale(1); opacity: 1; } }
.pet-prop.toy { width: 64px; left: -20%; bottom: 12%; animation: prop-roll 1.9s ease-in-out 1 forwards; }
@keyframes prop-in { from { transform: scale(.3); opacity: 0; } }
@keyframes prop-drop { from { transform: translate(-50%, -120px) rotate(-30deg); } to { transform: translate(-50%, 60px) rotate(10deg); } }
@keyframes prop-roll { 0% { left: -20%; transform: rotate(0); } 30% { left: 20%; bottom: 40%; transform: rotate(360deg); } 60% { left: 78%; bottom: 12%; transform: rotate(720deg); } 100% { left: 110%; transform: rotate(1080deg); } }
.pet-stats { padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 9px; }
.ps { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 8px; font-size: var(--t6); font-weight: 700; }
.ps b { display: block; height: 12px; background: var(--grey100); border-radius: 999px; overflow: hidden; }
.ps b i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #51cf66, #2fb344); transition: width .6s; }
.ps b i.low { background: linear-gradient(90deg, #ff8787, #f03e3e); }
.ps.grow b i { background: linear-gradient(90deg, #74c0fc, var(--primary)); }
.ps small { grid-column: 2; color: var(--text3); font-size: var(--t7); font-weight: 600; margin-top: -4px; }
.pet-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.pet-actions button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: var(--card); border-radius: 18px; padding: 12px 4px; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, .04); font-family: inherit; color: var(--text); }
.pet-actions button:active { transform: scale(.95); }
.pet-actions .tf { font-size: 30px; line-height: 34px; }
.pet-actions b { font-size: var(--t6); }
.pet-actions small { font-size: 11px; color: var(--text3); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .pet-cat, .pet-cat.sleep { animation: none; } }
.hub-pet { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 12px; text-decoration: none; color: var(--text); background: linear-gradient(120deg, #fff6e9, #ffe9d2); }
.hub-pet img { width: 84px; height: 84px; object-fit: contain; animation: pet-breathe2 2.4s ease-in-out infinite; }
@keyframes pet-breathe2 { 50% { transform: scale(1.04, .96); } }
.hub-pet span { display: flex; flex-direction: column; gap: 2px; }
.hub-pet b { font-size: var(--t4); }
.hub-pet small { color: var(--text2); font-size: var(--t6); }
.hub-pet em { font-style: normal; color: var(--primary); font-weight: 700; font-size: var(--t6); margin-top: 4px; }

/* ── 모야냥 2차(2026-10-11 밤): 5단계 · 품종 입양 · 움직이는 영상 ── */
.pet-room { background: linear-gradient(#f4f4f4 0%, #eeeeee 64%, #e2e2e2 64%, #d8d8d8 100%); }
.pet-room::before { left: 10%; top: 12%; }
.pet-cat[data-stage="0"] { width: 110px; } .pet-cat[data-stage="1"] { width: 140px; } .pet-cat[data-stage="2"] { width: 175px; } .pet-cat[data-stage="3"] { width: 190px; } .pet-cat[data-stage="4"] { width: 180px; }
.pet-cat video { position: absolute; left: 50%; bottom: 0; width: 135%; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .4s; border-radius: 12px; }
.pet-cat.has-vid video { opacity: 1; }
/* ★2026-11-06 실감 2단계(VM): 동작 영상(알파 WebM · reward.js VM) — 두 video 교차 페이드(.on) · 그림은 숨김 · 숨쉬기 CSS 는 끔(영상이 숨쉼) · 크기 --vmw 250%(정규화: 첫 장 bbox 폭 = 셀 폭 40%) · 그림자는 영상에 */
.pet-cat.vm { animation: none; }
/* 🎵 음악 단추(11/6 밤) — 벽 스위치 아래 · 꺼지면 회색·줄 */
.pet-bgm { position: absolute; right: 10px; top: 64px; z-index: 5; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 2px 5px rgba(0, 0, 0, .2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pet-bgm .tf { font-size: 18px; line-height: 34px; }
.pet-bgm.off { background: rgba(255, 255, 255, .55); }
.pet-bgm.off .tf { filter: grayscale(1) opacity(.5); }
.pet-bgm.off::after { content: ''; position: absolute; left: 7px; top: 16px; width: 20px; height: 2px; background: #666; transform: rotate(-40deg); }
.pet-bgm.playing .tf { animation: pet-bgm-bounce 1.2s ease-in-out infinite; }
@keyframes pet-bgm-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
/* 🏠 장면 모드(A 방식 · 11/6 밤) — 방 전체 영상(9:16 · 가운데 아래쪽을 보이게) · 스프라이트 고양이·가구·먼지 숨김 · 방을 조금 높게 */
.pet-scene { position: absolute; inset: 0; z-index: 3; background: #1a1410; overflow: hidden; }
.pet-scene video, .pet-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 74%; opacity: 0; }   /* 러그·연못(아래쪽)이 꼭 보이게 */
.pet-scene img.on, .pet-scene video.on { opacity: 1; }
.pet-room.scene { height: 520px; }   /* 로프트 방(9:16)이 계단·트리·소파·러그·연못까지 보이게 */
.pet-room.scene .pet-cat, .pet-room.scene .pet-furn, .pet-room.scene .pet-dirt { display: none !important; }
.pet-room.scene .pet-light { z-index: 5; }
.pet-actions .ti { width: 46px; height: 46px; object-fit: contain; display: block; margin: 0 auto 2px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .14)); pointer-events: none; }   /* 돌보기 실사 사진 아이콘(11/6 밤) */
/* 🧹 집 청소(11/6 밤) — 먼지 겹: 바닥 쪽 얼룩·먼지 뭉치(그라데이션) · dirty1 옅게 · dirty2 진하게 · 청소 중엔 빗자루가 지나가며 사라진다 */
.pet-dirt { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s; border-radius: inherit;
  background: radial-gradient(ellipse 60px 22px at 22% 86%, rgba(70, 45, 20, .35), transparent 70%), radial-gradient(ellipse 48px 18px at 58% 92%, rgba(70, 45, 20, .3), transparent 70%), radial-gradient(ellipse 70px 24px at 82% 80%, rgba(70, 45, 20, .3), transparent 70%),
    radial-gradient(circle 9px at 36% 78%, rgba(120, 110, 95, .55), transparent 72%), radial-gradient(circle 7px at 70% 72%, rgba(120, 110, 95, .5), transparent 72%), radial-gradient(circle 11px at 14% 70%, rgba(120, 110, 95, .45), transparent 72%), radial-gradient(circle 6px at 88% 94%, rgba(120, 110, 95, .5), transparent 72%),
    linear-gradient(rgba(60, 40, 20, 0) 55%, rgba(60, 40, 20, .18) 100%); }
.pet-room.dirty1 .pet-dirt { opacity: .7; }
.pet-room.dirty2 .pet-dirt { opacity: 1; filter: contrast(1.25) saturate(.8); }
.pet-room.dirty2 { filter: saturate(.86) brightness(.96); }   /* 더러우면 방 전체가 조금 칙칙하게 */
.pet-room.cleaning .pet-dirt { animation: pet-sweep-out 1.6s ease-in forwards; }
.pet-room.cleaning::before { content: '🧹'; position: absolute; left: -16%; bottom: 10%; font-size: 48px; z-index: 6; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); animation: pet-sweep 1.6s ease-in-out forwards; display: block; width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; top: auto; }
@keyframes pet-sweep { 0% { left: -16%; transform: rotate(-20deg); } 25% { transform: rotate(14deg); } 50% { transform: rotate(-20deg); } 75% { transform: rotate(14deg); } 100% { left: 100%; transform: rotate(-10deg); } }
@keyframes pet-sweep-out { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); opacity: 0; } }
.pet-actions [data-act="clean"].need b { color: var(--danger, #f04452); }
/* 🔆 벽 스위치(11/6 밤) — 방 오른쪽 위 · 흰 판 + 로커 · on = 로커 위(초록 점) · off = 아래 · 밤에 아직 켜져 있으면 테두리가 살짝 깜빡여 꺼 달라고 */
.pet-light { position: absolute; right: 10px; top: 10px; z-index: 5; width: 34px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pet-light .plate { position: absolute; inset: 0; display: block; border-radius: 6px; background: linear-gradient(#fdfcf8, #e9e5dc); box-shadow: 0 2px 5px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pet-light .rocker { position: absolute; left: 7px; right: 7px; top: 7px; height: 32px; display: block; border-radius: 4px; background: linear-gradient(#fff, #ece8df); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .18); transition: box-shadow .18s, transform .18s; }
.pet-light .rocker::after { content: ''; position: absolute; left: 50%; top: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #35c759; box-shadow: 0 0 6px #35c759; }
.pet-light.off .rocker { transform: scaleY(-1); box-shadow: inset 0 8px 0 rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .18); }
.pet-light.off .rocker::after { background: #b9b4a8; box-shadow: none; }
.pet-light.want { animation: pet-light-want 1.4s ease-in-out infinite; }
@keyframes pet-light-want { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 210, 90, 0)); } 50% { filter: drop-shadow(0 0 8px rgba(255, 210, 90, .95)); } }
/* 📺 냥이 화면 광고 보고 모야콩 큰 단추(11/6 밤) — 파란 바탕 · 돌보기 단추들 위 · 못 볼 땐(시간 간격·하루 상한) 연하게 */
.pet-adbtn { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 10px; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--primary); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 6px 16px rgba(11, 87, 208, .22); }
.pet-adbtn .tf { font-size: 30px; line-height: 32px; }
.pet-adbtn .t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pet-adbtn b { font-size: var(--t4, 17px); font-weight: 800; }
.pet-adbtn small { font-size: 12.5px; opacity: .9; }
.pet-adbtn .arr { font-size: 26px; opacity: .85; }
.pet-adbtn:disabled { background: var(--weak-bg); color: var(--weak-text); box-shadow: none; }
.pet-adbtn:disabled small { opacity: .8; }
.pet-cat.vm.von img { opacity: 0 !important; }   /* 영상이 실제로 뜬(von) 뒤에만 그림 숨김 */
.pet-cat.vm video { opacity: 0; width: var(--vmw, 250%); max-width: none; transform: translate(-50%, 4%); transform-origin: 50% 100%; transition: none; border-radius: 0; filter: none; z-index: 1; }   /* 11/6 밤: 페이드 없음 — 겹침 0 */   /* 11/6 밤: 원점 아래 가운데(소파 위 scale 때 발이 안 뜨게) · 그림자 필터 없음(흐림) · 바닥 그림자는 ::before */
.pet-cat.vm video.on { opacity: 1; z-index: 2; }
.pet-cat.vm.moving { display: block; }
.pet-cat.vm.moving video { display: block; }   /* 옛 규칙(.moving video display:none = 자세 그림일 땐 영상 숨김)을 영상 모드에선 되돌림 — 시험폰 11/6 「고양이가 안 보임」 원인 */
.pet-cat.has-vid img { opacity: 0; }
.pet-adopt .adopt-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
.pet-adopt .adopt-list .ad-cat:last-child:nth-child(3n+1) { grid-column: 2; }   /* 7마리(까망이 10/14) — 마지막 한 마리는 가운데 */
.ad-cat { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid transparent; background: var(--card); border-radius: 18px; padding: 10px 4px 12px; cursor: pointer; font-family: inherit; color: var(--text); }
.ad-cat img { width: 76px; height: 76px; object-fit: contain; animation: pet-breathe2 2.4s ease-in-out infinite; }
.ad-cat b { font-size: var(--t6); }
.ad-cat small { font-size: 11px; color: var(--text3); }
.ad-cat.on { border-color: var(--primary); background: var(--weak-bg); transform: translateY(-2px); }
.pet-adopt .field { margin-bottom: 12px; }

/* 살아 있는 고양이(2026-10-12) — 동작 그림일 땐 숨쉬기 멈추고 그림 폭을 reward.js 가 맞춘다(가운데 정렬) */
.pet-cat.moving { animation: none; display: flex; justify-content: center; }
.pet-cat.moving img { flex: none; max-width: none; }
.pet-cat.moving video { display: none; }
.pet-cat.moving.has-vid img { opacity: 1; }

/* 집 꾸미기(2026-10-12) — 방 배경 그림 + 캣타워·고양이 집·물그릇 · 고양이는 가구 앞 · 밤엔 어둡게 */
.pet-room { height: 340px; background: #f3e6d3 url(/static/game/room.webp) center 58% / cover no-repeat; }
.pet-room::before { display: none; }
.pet-room.lights-off { background: linear-gradient(rgba(18, 26, 64, .62), rgba(18, 26, 64, .62)), #3a3f5c url(/static/game/room.webp) center 58% / cover no-repeat; }
.pet-furn { position: absolute; z-index: 1; pointer-events: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 6px 5px rgba(90, 50, 10, .22)); }
.pet-furn.tower { left: 1%; bottom: 13%; width: 27%; }
.pet-furn.house { right: -2%; bottom: 12%; width: 36%; }
.pet-furn.water { left: 55%; bottom: 7%; width: 15%; }
.pet-furn.ball { left: 70%; bottom: 8%; width: 13%; }
.pet-furn[hidden] { display: none; }   /* 가구는 모야콩 가게에서 산 것만(2026-11-06) */
/* 📺 광고 보고 모야콩 카드(2026-11-06) — 허브 카드와 같은 모양의 단추 */
.hub-ad { width: 100%; text-align: left; border: 0; font: inherit; cursor: pointer; color: inherit; }
.hub-ad[disabled] { opacity: .55; cursor: default; }
.hub-ad[hidden] { display: none; }
/* 🐾 식구 줄(2026-11-06) — 지금 돌보는 아이 · 분양 센터 · 가게 */
.pet-family { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; } .pet-family::-webkit-scrollbar { display: none; }
.pf { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 66px; padding: 6px 8px; border: 2px solid transparent; border-radius: 16px; background: var(--card); color: var(--text2); font: inherit; font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; }
.pf img, .pf span { width: 40px; height: 40px; object-fit: contain; font-size: 26px; line-height: 40px; text-align: center; font-family: Tossface, var(--font), system-ui, sans-serif; }
.pf.on { border-color: var(--primary); color: var(--text); background: var(--weak-bg); }
.pf.add, .pf.shop { color: var(--primary); }
.adopt-back { margin-top: 8px; }
.sh-ic img.sh-img { width: 34px; height: 34px; object-fit: contain; }
.pet-cat { z-index: 2; bottom: 9%; }
.pet-cat[data-stage="0"] { width: 96px; } .pet-cat[data-stage="1"] { width: 124px; } .pet-cat[data-stage="2"] { width: 150px; } .pet-cat[data-stage="3"] { width: 165px; } .pet-cat[data-stage="4"] { width: 158px; }
.pet-cat.inhouse { animation: none; filter: brightness(.86); transition: filter .45s; }   /* 11/6 밤: 집 안에서 앉아 있는 모습(사라지지 않음 · 문 안이라 조금 어둡게) — 위치·크기는 reward.js houseIn(PY·PS) */
.pet-feather { position: absolute; z-index: 3; width: 46px; pointer-events: none; }
.pet-actions { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pet-actions .tf { font-size: 30px; line-height: 48px; height: 48px; display: block; }   /* 11/7 회장님 「버튼 크기를 아래와 동일하게」 — 그림 아이콘(46+2px)과 같은 높이 */
.pet-actions button { min-height: 118px; justify-content: flex-start; }
.pet-actions small { min-height: 26px; line-height: 13px; display: flex; align-items: center; justify-content: center; text-align: center; }   /* 두 줄 글도 같은 높이 */
.pet-cat { transition: opacity .45s; }

/* 두더지 레벨(2026-10-12) */
.cab-lv { display: block; margin-top: 3px; font-size: 13px; color: #ffe066; letter-spacing: .5px; }
.mole-count.lv { font-size: 46px; color: #ffe066; text-shadow: 0 4px 0 #b33, 0 0 18px rgba(0, 0, 0, .45); }

/* 출석 다음 선물 미리 보기(2026-10-12) */
.att-next { margin: 12px 4px 2px; padding: 12px 14px; border-radius: 14px; background: var(--weak-bg); color: var(--text); font-size: var(--t6); line-height: 1.6; font-weight: 600; }
.att-next b { color: var(--primary); }

/* 🎡 행운 룰렛(2026-10-12) — 오락실 전구 테두리 · 위 바늘 · 가운데 GO */
.spin-stage { position: relative; width: min(340px, 88vw); aspect-ratio: 1; margin: 6px auto 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd86b, #e8a317 60%, #b9760c); box-shadow: 0 10px 24px rgba(160, 100, 0, .35), inset 0 -6px 12px rgba(0, 0, 0, .2); }
.spin-wheel { position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(0, 0, 0, .25); }
.spin-wheel svg { width: 100%; height: 100%; display: block; }
.spin-wheel .sp-t { fill: #fff; font-size: 19px; font-weight: 900; paint-order: stroke; stroke: rgba(0, 0, 0, .25); stroke-width: 3px; }
.spin-wheel path.won { animation: sp-won .35s ease-in-out 6 alternate; }
@keyframes sp-won { to { filter: brightness(1.45); } }
/* 🎰 잭팟 칸(2026-11-09) — 천천히 반짝여 눈에 띄게 · 당첨 반짝(.won)이 더 세다 */
.spin-wheel path.sp-jack { animation: sp-jack 1.4s ease-in-out infinite alternate; }
.spin-wheel path.sp-jack.won { animation: sp-won .35s ease-in-out 6 alternate; }
@keyframes sp-jack { from { filter: brightness(.95); } to { filter: brightness(1.35) saturate(1.2); } }
.rw-sub .spin-jack { color: #d81b9b; font-weight: 800; white-space: nowrap; }
.spin-odds li.jack b { color: #d81b9b; }
@media (prefers-reduced-motion: reduce) { .spin-wheel path.sp-jack { animation: none; } }
.spin-lights { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 2; pointer-events: none; }
.spin-lights i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff8d6; box-shadow: 0 0 8px #fff3a0; transform-origin: 5px 5px; }
.spin-lights i:nth-child(odd) { animation: sp-blink 1s steps(1) infinite; }
.spin-lights i:nth-child(even) { animation: sp-blink 1s steps(1) infinite .5s; }
.spin-stage.on .spin-lights i { animation-duration: .25s; }
@keyframes sp-blink { 50% { background: #f5b400; box-shadow: none; } }
.spin-pin { position: absolute; left: 50%; top: -6px; width: 34px; height: 44px; margin-left: -17px; z-index: 3; background: linear-gradient(#ff5a5f, #d92b30); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3)); transform-origin: 50% 10%; }
.spin-pin.flick { animation: sp-flick .12s ease-out 1; }
@keyframes sp-flick { 40% { transform: rotate(-14deg); } }
.spin-hub { position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%); z-index: 3; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffe7a3 55%, #f0b323); color: #c2410c; font-weight: 900; font-size: 20px; box-shadow: 0 4px 0 #b9760c, 0 6px 12px rgba(0, 0, 0, .25); cursor: pointer; font-family: inherit; }
.spin-hub:disabled { filter: grayscale(.5); cursor: default; }
.spin-hub:active:not(:disabled) { transform: translate(-50%, -46%); box-shadow: 0 2px 0 #b9760c; }
.spin-left { text-align: center; font-weight: 700; margin: 0 0 10px; }
.spin-left b { color: var(--primary); }
.spin-left a { color: var(--primary); }
.spin-odds { margin-top: 14px; padding: 14px 16px; }
.spin-odds h2 { margin: 0 0 8px; font-size: var(--t5); }
.spin-odds ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.spin-odds li { display: flex; align-items: center; gap: 8px; font-size: var(--t6); }
.spin-odds li i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.spin-odds li span { margin-left: auto; color: var(--text3); font-weight: 700; }

/* 내 고양이 얼굴(2026-10-12) — 동그란 흰 테두리 */
.rw-pet.mine, .ac-cat.mine { border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(0, 0, 0, .2); object-fit: cover; }

/* ⌨️ 키캡 딸깍(2026-10-12 회장님 캡처 「KEYCAP CLICKS」) — 큰 숫자 「18 / 500」, 고양이·발바닥 키캡 두 개가 눌렸다 튕겨 오른다 */
.kc-eyebrow { margin: 6px 0 8px; font-size: var(--t6); font-weight: 800; letter-spacing: .04em; color: var(--text2); }
.kc-pill { display: inline-block; margin: 0 0 6px; padding: 8px 18px; border-radius: 999px; background: rgba(0, 20, 50, .06); color: var(--text2); font-size: var(--t6); }
.kc-pill b { color: var(--text); }
.kc-count { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: 18px 0 0; line-height: 1; }
.kc-count b { font-size: 92px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.kc-count b.bump { animation: k-bump .12s ease-out 1; }
.kc-slash { width: 5px; height: 64px; margin: 0 8px 4px 14px; border-radius: 3px; background: var(--grey300, #c9ced6); transform: rotate(38deg); transform-origin: 50% 100%; }
.kc-count span { font-size: 40px; font-weight: 800; color: var(--grey400, #b0b8c1); margin-bottom: -6px; }
.kc-combo { height: 26px; margin: 6px 0 0; font-weight: 800; color: #ff6b3d; opacity: 0; transition: opacity .2s; }
.kc-combo.on { opacity: 1; } .kc-combo.pop { animation: kc-pop .25s ease-out; }
@keyframes kc-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.kc-wrap { display: flex; justify-content: center; align-items: flex-end; gap: 4%; margin: 22px auto 26px; max-width: 460px; padding: 0 2%; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.kc { position: relative; display: block; flex: 0 1 46%; height: auto; min-height: 0; line-height: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kc::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -2%; height: 9%; border-radius: 50%; background: radial-gradient(rgba(30, 40, 60, .28), transparent 70%); z-index: -1; transition: transform .06s; }
.kc img { display: block; width: 100%; height: auto; pointer-events: none; transform-origin: 50% 100%; transition: transform 55ms cubic-bezier(.3, .7, .4, 1), filter 55ms; }
.kc.down img { transform: translateY(6%) scale(1.02, .92); filter: brightness(.95) saturate(1.05); }
.kc.down::after { transform: scale(1.08, .85); }
.kc.spring img { animation: kc-spring .46s cubic-bezier(.2, .9, .3, 1.3); }
.kc.spring::after { animation: kc-shadow .46s ease-out; }
@keyframes kc-spring { 0% { transform: translateY(6%) scale(1.02, .92); } 32% { transform: translateY(-7%) scale(.98, 1.05); } 56% { transform: translateY(2%) scale(1.01, .97); } 78% { transform: translateY(-1.5%) scale(1, 1.01); } 100% { transform: none; } }
@keyframes kc-shadow { 32% { transform: scale(.8); opacity: .6; } 100% { transform: none; opacity: 1; } }
.kc-spark { position: fixed; z-index: 60; pointer-events: none; margin: -4px 0 0 -4px; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.kc-plus { position: fixed; z-index: 61; pointer-events: none; font-size: 22px; font-weight: 900; color: var(--primary); text-shadow: 0 2px 0 #fff, 0 3px 8px rgba(49, 130, 246, .3); }
@media (prefers-reduced-motion: reduce) { .kc.spring img, .kc.spring::after { animation-duration: .2s; } }
.kc:hover, .kc:active, .kc:focus, .kc.down { background: none !important; box-shadow: none !important; outline: none; }
.kc:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 16px; }

/* 🐾 다마고치 돌봄(2026-10-12 회장님 「1234 해줘」) — 똥 · 아픔 · 불 끄기 · 훈육 · 성격 체형 · 2세 · 도감 */
.pet-actions button[hidden] { display: none; }
.pet-top .pet-dex { margin-left: auto; font-size: var(--t6); font-weight: 700; color: var(--primary); text-decoration: none; background: var(--blue50, #e8f3ff); padding: 6px 12px; border-radius: 999px; }
.pet-poop { position: absolute; bottom: 7%; width: 46px; height: 46px; margin-left: -23px; border: 0; padding: 0; background: none; z-index: 2; cursor: pointer; animation: poop-in .45s cubic-bezier(.3, 1.6, .5, 1) 1; -webkit-tap-highlight-color: transparent; }
.pet-poop img { width: 100%; display: block; filter: drop-shadow(0 3px 2px rgba(80, 40, 10, .3)); }
.pet-poop.emo { font-size: 36px; line-height: 46px; }
.pet-poop .stink { position: absolute; left: 30%; top: -14px; width: 6px; height: 16px; border-left: 2px solid rgba(120, 140, 60, .55); border-radius: 50%; animation: stink 1.8s ease-in-out infinite; }
.pet-poop .stink.b { left: 62%; animation-delay: .9s; }
.pet-poop.gone { animation: poop-out .38s ease-in 1 forwards; }
@keyframes poop-in { 0% { transform: scale(0) translateY(10px); } 100% { transform: none; } }
@keyframes poop-out { to { transform: scale(0) rotate(40deg); opacity: 0; } }
@keyframes stink { 0% { transform: translateY(4px) scaleX(1); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-14px) scaleX(-1); opacity: 0; } }
.pet-prop.med { width: 64px; left: 50%; top: 28%; animation: prop-drop .6s cubic-bezier(.3, 1.4, .5, 1) 1 forwards; }
.pet-prop.emo { font-size: 44px; line-height: 1; width: auto; }
.pet-cat.sick img { filter: saturate(.55) brightness(.96) drop-shadow(0 8px 6px rgba(120, 70, 20, .25)); }
.pet-cat.sick::after { content: '🤒'; position: absolute; right: -4%; top: -6%; font-size: 26px; animation: pet-zz 2.4s ease-in-out infinite; }
.pet-cat.sleepy { animation: pet-breathe 3.4s ease-in-out infinite; }
.pet-cat.sleepy::after { content: '💡'; position: absolute; right: -6%; top: -8%; font-size: 18px; opacity: .85; }
.pet-cat.nap img { filter: drop-shadow(0 8px 6px rgba(120, 70, 20, .25)); }
.pet-room.lights-off::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 22%, rgba(255, 244, 200, .16), transparent 30%); pointer-events: none; z-index: 1; }
.pet-cat.whine { animation: pet-whine .32s ease-in-out 8; }
@keyframes pet-whine { 0%, 100% { transform: translateX(-50%) rotate(0); } 25% { transform: translateX(-52%) rotate(-3deg); } 75% { transform: translateX(-48%) rotate(3deg); } }
.pet-choice { position: absolute; left: 50%; bottom: 4%; transform: translate(-50%, 20px); width: 92%; background: rgba(255, 255, 255, .96); border-radius: 18px; padding: 10px 12px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); z-index: 4; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.3, 1.4, .5, 1); text-align: center; }
.pet-choice.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pet-choice p { margin: 0 0 8px; font-size: var(--t7); color: #4e5968; }
.pet-choice div { display: flex; gap: 8px; }
.pet-choice button { flex: 1; border: 0; border-radius: 12px; padding: 11px 6px; font: inherit; font-weight: 800; font-size: var(--t6); cursor: pointer; background: #f2f4f6; color: #333d4b; }
.pet-choice button[data-ch="no"] { background: var(--primary); color: #fff; }
/* 성격 체형 — 이동 그림에도 그대로(scale 은 transform 과 따로 겹친다) */
.pet-cat[data-trait="chubby"] img { scale: 1.13 .96; }
.pet-cat[data-trait="sporty"] img { scale: .95 1.04; }
.pet-gen { margin-bottom: 10px; background: linear-gradient(135deg, #fff4e6, #ffe8f0); }
.pet-gen b { display: block; font-size: var(--t5); margin-bottom: 4px; }
.pet-gen p { margin: 0 0 10px; font-size: var(--t7); color: var(--text2); }
.pet-gen .pg-btns { display: flex; gap: 8px; } .pet-gen .pg-btns .btn { flex: 1; }
.pet-guide { margin: 4px 0 12px; } .pet-guide > b { font-size: var(--t5); }
.pet-guide ul { margin: 8px 0 6px; padding-left: 18px; } .pet-guide li { font-size: var(--t7); color: var(--text2); margin: 4px 0; line-height: 1.5; }
.pet-guide li b { color: var(--text); }
/* 📖 도감 */
.dex-now { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.dex-now img { border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.dex-now span { display: flex; flex-direction: column; gap: 2px; } .dex-now small { color: var(--text3); font-size: var(--t7); } .dex-now b { font-size: var(--t4); } .dex-now em { font-style: normal; color: var(--text2); font-size: var(--t7); }
.dex-grid-card { margin-bottom: 12px; } .dex-cnt { font-weight: 800; color: var(--primary); }
.dex-grid { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.dg-row { display: grid; grid-template-columns: 64px repeat(6, 1fr); gap: 4px; align-items: center; }
.dg-row.head span { text-align: center; font-size: 18px; line-height: 1.1; } .dg-row.head small { display: block; font-size: 10px; color: var(--text3); }
.dg-b { font-size: 12px; font-weight: 700; color: var(--text2); }
.dg-c { aspect-ratio: 1; border-radius: 12px; background: var(--grey100); display: flex; align-items: center; justify-content: center; color: var(--grey400, #b0b8c1); font-weight: 800; }
.dg-c.on { background: #fff4d6; box-shadow: inset 0 0 0 2px #ffd36b; } .dg-c img { width: 86%; border-radius: 50%; }
/* ✨ 도감 희귀 모습 줄(2026-10-14) — 7칸, 이름 작은 글씨 */
.dg-rare { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--grey200, #e5e8eb); }
.dg-rare > b { display: block; font-size: 13px; margin-bottom: 6px; color: #b7791f; }
.dg-rare > div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dg-rare .dg-c { flex-direction: column; gap: 2px; aspect-ratio: auto; padding: 6px 0 4px; }
.dg-rare .dg-c small { font-size: 9px; font-weight: 600; color: var(--text3); line-height: 1.1; text-align: center; word-break: keep-all; }
.dg-rare .dg-c img { width: 80%; }
.dex-cat { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--grey100); }
.dex-cat:first-child { border-top: 0; } .dex-cat img { border-radius: 50%; background: #fff; }
.dex-cat span { display: flex; flex-direction: column; gap: 2px; } .dex-cat b small { color: var(--text3); font-weight: 600; } .dex-cat em { font-style: normal; font-size: var(--t7); color: var(--text2); } .dex-cat > span > small { font-size: var(--t7); color: var(--text3); }
.dex-empty { color: var(--text3); font-size: var(--t7); margin: 8px 0; }

/* 🔮 모야냥 예고(2026-10-13) — 자라는 길 · 희귀 변신 힌트 · 미리보기 · 꿈 */
.pet-road { padding: 14px 12px 10px; margin-bottom: 12px; }
.pet-road .pr-h { display: block; font-size: var(--t6); margin: 0 0 10px 4px; }
.pet-road .road { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; position: relative; }
.pet-road .road::before { content: ''; position: absolute; left: 10%; right: 10%; top: 26px; height: 3px; background: var(--grey200); border-radius: 2px; }
.pet-road .rd { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; }
.pet-road .rd-i { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--grey200); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pet-road .rd-i img { width: 100%; height: 100%; object-fit: cover; }
.pet-road .rd b { font-size: 12px; font-weight: 700; word-break: keep-all; text-align: center; line-height: 1.2; }
.pet-road .rd small { font-size: 11px; color: var(--text3); text-align: center; line-height: 1.2; }
.pet-road .rd.now .rd-i { box-shadow: 0 0 0 3px var(--primary); }
.pet-road .rd.now small { color: var(--primary); font-weight: 700; }
.pet-road .rd.past small { color: var(--primary); }
.pet-road .rd.lock .rd-i img { filter: brightness(0) opacity(.22); }
.pet-road .rd.next .rd-i { box-shadow: 0 0 0 2px var(--primary); animation: rd-pulse 2.4s ease-in-out infinite; }
.pet-road .rd.next small { color: var(--text); font-weight: 700; }
.pet-road p { margin: 8px 0 0; text-align: center; }
@keyframes rd-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.07); } }
.pet-rare { display: flex; gap: 12px; align-items: center; padding: 14px; margin-bottom: 12px; background: linear-gradient(135deg, #fff8e6, #f3ecff); }
.pet-rare .rare-sil { position: relative; flex: none; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.pet-rare .rare-sil img { width: 64px; height: 64px; object-fit: contain; filter: brightness(0) opacity(.35) drop-shadow(0 0 6px rgba(255, 196, 0, .9)); }
.pet-rare .rare-sil i { position: absolute; font-style: normal; font-size: 26px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); animation: rd-pulse 1.8s ease-in-out infinite; }
.pet-rare .rare-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pet-rare .rare-t b { font-size: var(--t6); }
.pet-rare .rare-t small { font-size: 12px; color: var(--text3); word-break: keep-all; }
.pet-rare .rare-t em { font-style: normal; font-weight: 800; color: #8a5cf6; }
.pet-rare .rare-bar { display: block; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .08); overflow: hidden; margin-top: 2px; }
.pet-rare .rare-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffc400, #a66bff); border-radius: 3px; }
.pet-peek { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.pet-peek.on { opacity: 1; }
.pet-peek .pp-card { width: 100%; max-width: 340px; background: var(--card); border-radius: 24px; padding: 22px 18px 16px; text-align: center; transform: translateY(12px) scale(.96); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.pet-peek.on .pp-card { transform: none; }
.pet-peek .pp-card small { color: var(--primary); font-weight: 700; }
.pet-peek .pp-card b { display: block; font-size: var(--t4, 20px); margin: 4px 0 10px; word-break: keep-all; }
.pet-peek .pp-img { display: block; position: relative; margin: 0 auto 10px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, #f3f6ff 40%, #e8eefc 100%); overflow: hidden; }
.pet-peek .pp-img img { width: 100%; height: 100%; object-fit: contain; filter: blur(3px) saturate(.9); }
.pet-peek .pp-img::after { content: '✨'; position: absolute; right: 18px; top: 14px; font-size: 22px; animation: rd-pulse 1.6s ease-in-out infinite; }
.pet-peek p { font-size: 13px; color: var(--text3); margin: 0 0 14px; }
.pet-dream { position: absolute; left: 50%; top: 6%; z-index: 4; transform: translate(-50%, 8px) scale(.7); opacity: 0; background: #fff; border-radius: 50%; width: 112px; height: 112px; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .35s, transform .35s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none; }
.pet-dream.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pet-dream img { width: 72px; height: 72px; object-fit: contain; filter: blur(1.5px); }
.pet-dream small { font-size: 10px; font-weight: 700; color: #555; margin-top: -2px; }
.pet-dream::after { content: ''; position: absolute; left: 30%; bottom: -16px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: -8px 12px 0 -3px #fff; }
@media (prefers-reduced-motion: reduce) { .pet-road .rd.next .rd-i, .pet-rare .rare-sil i, .pet-peek .pp-img::after { animation: none; } }
html.dark .pet-rare { background: linear-gradient(135deg, #3a3020, #2e2640); } html.dark .pet-road .rd-i { background: var(--grey100); }

/* 🐠 지원금모야 어항(2026-10-13) — fish.js */
.tank { position: relative; height: 380px; border-radius: 24px; overflow: hidden; margin-bottom: 8px; touch-action: manipulation; background: #9fd3ee url(/static/fish/tank.webp) center / cover no-repeat; background-image: url(/static/fish/tank.webp), linear-gradient(#bfe6fb 0%, #7cc4ea 70%, #e9dcc0 70%, #d9c8a4 100%); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .5); }
.tank-murk { position: absolute; inset: 0; background: rgba(120, 150, 70, .9); opacity: 0; pointer-events: none; transition: opacity 1.2s; z-index: 3; mix-blend-mode: multiply; }
.tank.night::after { content: ''; position: absolute; inset: 0; background: rgba(10, 20, 60, .45); pointer-events: none; z-index: 4; }
.tank .fish { position: absolute; left: 0; top: 0; border: 0; padding: 0; background: none; cursor: pointer; z-index: 2; will-change: transform; transition: width .6s; }
.tank .fish img { width: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 6px 6px rgba(0, 40, 80, .25)); }
.tank .fish.emo { width: auto !important; }
.tank .fish.emo .tf { font-size: 40px; line-height: 1; display: block; }
.tank .turtle { position: absolute; left: 0; bottom: 10px; width: 78px; z-index: 2; pointer-events: none; }
.tank .turtle img { width: 100%; display: block; }
.tank .turtle .tf { font-size: 40px; }
.tank .flake { position: absolute; left: 0; top: 0; width: 7px; height: 5px; border-radius: 2px; background: #c8733a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); z-index: 1; }
.tank .bubble { position: absolute; bottom: -20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .25); z-index: 5; animation: tank-bub 2.2s ease-in forwards; pointer-events: none; }
@keyframes tank-bub { to { transform: translateY(-420px) translateX(10px); opacity: 0; } }
.tank .tap { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); z-index: 5; animation: tank-tap .7s ease-out forwards; pointer-events: none; }
@keyframes tank-tap { to { transform: scale(4); opacity: 0; } }
.tank-msg { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); margin: 0; z-index: 6; background: rgba(255, 255, 255, .88); color: #333; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 14px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; pointer-events: none; transition: transform .2s; }
.tank-msg:empty { display: none; }
.tank-msg.pop { transform: translateX(-50%) scale(1.06); }
.pet-actions.three { grid-template-columns: repeat(3, 1fr); }
.tank-guest .tg-sil { position: relative; flex: none; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.tank-guest .tg-sil img { width: 64px; height: 64px; object-fit: contain; filter: brightness(0) opacity(.3); }
.tank-guest .tg-sil .tf { font-size: 40px; filter: brightness(0) opacity(.3); }
.tank-guest .tg-sil i { position: absolute; font-style: normal; font-size: 26px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.fish-cele { width: 120px; height: 120px; object-fit: contain; }
.ad-emo { font-size: 56px; line-height: 76px; display: block; }
.pp-emo { font-size: 90px; line-height: 200px; display: block; }
.pet-peek .pp-img.clear img { filter: none; }
.pet-peek .pp-rare { color: #8a5cf6; font-weight: 700; }
.pet-peek .btn.weak { margin-top: 8px; width: 100%; }
.hub-fish .hf-ic { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; font-size: 58px; flex: none; }
.kind-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 16px; background: var(--grey100); margin: 0 0 12px; }
.kind-seg > * { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 9px 4px; border-radius: 12px; font-weight: 700; font-size: var(--t6); color: var(--text2); text-decoration: none; text-align: center; font-family: Tossface, var(--font), system-ui, sans-serif; }
.kind-seg .on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.kind-seg button { border: 0; background: transparent; cursor: pointer; }   /* 🐱/🐶 탭(2026-11-06) */
.kind-seg .off { opacity: .55; }
.kind-seg small { font-size: 10px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .tank .bubble, .tank .tap { animation-duration: .01s; } }
.pet-name.tank-title { cursor: default; } .pet-name.tank-title::after { content: none; }
.fish-cele-row { display: flex; justify-content: center; gap: 4px; } .fish-cele-row .fish-cele { width: 84px; height: 84px; }
/* 쉬운 설명 카드(2026-10-16 회장님 「초등생도 · 유치원생도 나이 든 분도」 — KKOOK 시험 카드와 같은 모양, 색은 지원금모야 테마 --primary). detail.js easyHtml */
.easy { --ez-ink: #191f28; --ez-bub: #fff8dc; --ez-pic: var(--weak-bg); --ez-warn-bg: #fff3e0; --ez-warn: #f59f00; --ez-warn-ink: #8a4b00; --ez-mark: #ffe066;
  margin: 16px 0 14px; padding: 18px 16px 16px; display: grid; gap: 14px; border-radius: var(--r-card); background: var(--card); }
html.dark .easy { --ez-ink: #e5e8eb; --ez-bub: #3a3420; --ez-warn-bg: #3a2c18; --ez-warn: #f5b041; --ez-warn-ink: #ffd8a0; --ez-mark: #7a6200; }
@media (prefers-color-scheme: dark) { html.auto .easy { --ez-ink: #e5e8eb; --ez-bub: #3a3420; --ez-warn-bg: #3a2c18; --ez-warn: #f5b041; --ez-warn-ink: #ffd8a0; --ez-mark: #7a6200; } }
.easy-top { display: flex; align-items: center; gap: 14px; }
.easy-face { flex: none; width: 64px; height: 64px; }
.easy-bubble { position: relative; flex: 1; min-width: 0; display: grid; gap: 4px; padding: 12px 14px; background: var(--ez-bub); border: 3px solid var(--ez-ink); border-radius: 18px; }
.easy-bubble::before { content: ''; position: absolute; left: -11px; top: 50%; width: 16px; height: 16px; background: var(--ez-bub); border-left: 3px solid var(--ez-ink); border-bottom: 3px solid var(--ez-ink); transform: translateY(-50%) rotate(45deg); }
.easy-bubble b { font-size: 20px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; word-break: keep-all; color: var(--text); }
.easy-bubble span { font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--primary); word-break: keep-all; }
.easy-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.easy-step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "pic t" "pic s"; column-gap: 14px; align-items: center; margin-left: 4px; padding: 14px 14px 14px 16px; background: var(--card); border: 3px solid var(--ez-ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ez-ink); }
.easy-n { position: absolute; left: -9px; top: -13px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 16px; border: 3px solid var(--ez-ink); }
.easy-pic { grid-area: pic; align-self: center; display: grid; place-items: center; width: 64px; height: 64px; font-size: 40px; line-height: 1; border-radius: 16px; background: var(--ez-pic); }
.easy-t { grid-area: t; margin: 0; font-size: 18px; line-height: 1.4; font-weight: 800; word-break: keep-all; color: var(--text); }
.easy-s { grid-area: s; margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--text2); font-weight: 600; word-break: keep-all; }
.easy-or { display: flex; justify-content: center; }
.easy-or span { padding: 3px 18px; border-radius: 999px; background: var(--ez-ink); color: var(--card); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.easy-go span { background: var(--primary); color: #fff; }
.easy mark.em { background: linear-gradient(transparent 52%, var(--ez-mark) 52%); color: inherit; font-weight: 800; padding: 0 1px; }
.easy-warn { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--ez-warn-bg); border: 3px dashed var(--ez-warn); color: var(--ez-warn-ink); font-size: 16px; line-height: 1.4; font-weight: 800; word-break: keep-all; }
.easy-warn > span:first-child { font-size: 30px; flex: none; }
.btn.easy-cta { height: auto; min-height: 58px; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-align: center; }
/* 대출 카드 맨 위 띠(관제 #173) — 「빌리는 돈」을 먼저 보이게 */
.easy-loan { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #fff0f1; border: 3px solid #f04452; color: #191f28; }
.easy-loan b { font-size: 18px; line-height: 1.35; font-weight: 800; color: #d22030; word-break: keep-all; }
.easy-loan > span { font-size: 14px; line-height: 1.45; font-weight: 600; color: #4e5968; word-break: keep-all; }
.easy-loan dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; margin: 6px 0 0; padding-top: 8px; border-top: 2px dashed #f7a3aa; }
.easy-loan dt { font-size: 15px; font-weight: 800; white-space: nowrap; }
.easy-loan dd { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 700; word-break: keep-all; }
html.dark .easy-loan { background: #3a1e22; color: #e5e8eb; } html.dark .easy-loan b { color: #ff9aa2; } html.dark .easy-loan > span { color: #b0b8c1; }
@media (prefers-color-scheme: dark) { html.auto .easy-loan { background: #3a1e22; color: #e5e8eb; } html.auto .easy-loan b { color: #ff9aa2; } html.auto .easy-loan > span { color: #b0b8c1; } }
.easy-foot { display: flex; align-items: center; gap: 10px; }
.easy-foot .speak { flex: none; }
.easy-foot span { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); }
details.easy-more { margin: 4px 0 8px; }
.easy-orig { margin: 4px 0 12px; display: grid; gap: 6px; }   /* 앱: 긴 원문 대신 공식 원문 버튼(관제 #156) */
.easy-orig .btn { width: 100%; }
.easy-orig p { margin: 0; text-align: center; }
details.easy-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: var(--z-row); padding: 0 20px; border-radius: var(--r-card); background: var(--card); font-size: var(--t5); font-weight: 700; color: var(--text); -webkit-tap-highlight-color: transparent; }
details.easy-more > summary::-webkit-details-marker { display: none; }
details.easy-more > summary .fold-hint { margin-left: auto; font-size: var(--t7); color: var(--text3); font-weight: 500; }
details.easy-more > summary .fold-hint::after { content: ' ▾'; }
details.easy-more[open] > summary .fold-hint::after { content: ' ▴'; }

/* ── 공식 사이트 따라 하기(2026-10-16 관제 #157) — 만화 칸 + 단순화한 가짜 화면 위 빨간 박스·번호·손가락. 실제 캡처 아님 ── */
.follow { --ez-ink: #191f28; --ez-bub: #fff8dc; --ez-pic: var(--weak-bg); --ez-mark: #ffe066; --fs-red: #f04452; --fs-bg: #f2f4f6; --fs-line: #d1d6db; }
html.dark .follow { --ez-ink: #e5e8eb; --ez-bub: #3a3420; --ez-mark: #7a6200; --fs-red: #ff6b76; --fs-bg: #2c2f36; --fs-line: #4e5968; }
@media (prefers-color-scheme: dark) { html.auto .follow { --ez-ink: #e5e8eb; --ez-bub: #3a3420; --ez-mark: #7a6200; --fs-red: #ff6b76; --fs-bg: #2c2f36; --fs-line: #4e5968; } }
.follow mark.em { background: linear-gradient(transparent 52%, var(--ez-mark) 52%); color: inherit; font-weight: 800; padding: 0 1px; }
.fol-note { margin: 0; font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); }
.fol-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.fol-step { position: relative; margin-left: 4px; padding: 16px 14px 18px; background: var(--card); border: 3px solid var(--ez-ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ez-ink); display: grid; gap: 12px; }
.fol-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
.fol-head .easy-pic, .fol-head .easy-t, .fol-head .easy-s, .fol-index .easy-pic { grid-area: auto; }
.fol-head .easy-pic { width: 52px; height: 52px; font-size: 32px; display: grid; place-items: center; border-radius: 14px; background: var(--ez-pic); }
.fol-head .easy-t { margin: 0; }
.fol-head .easy-s { margin: 2px 0 0; }
.fs { margin: 0; display: grid; justify-items: center; gap: 8px; }
.fs figcaption { font-size: 12px; color: var(--text3); }
.fs-phone { width: min(100%, 270px); padding: 14px 14px 18px; background: var(--fs-bg); border: 3px solid var(--ez-ink); border-radius: 26px; display: grid; gap: 10px; position: relative; }
.fs-phone::before { content: ''; justify-self: center; width: 54px; height: 5px; border-radius: 9px; background: var(--fs-line); margin-bottom: 2px; }
.fs-r { position: relative; display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 10px; border-radius: 10px; background: var(--card); font-size: 13px; line-height: 1.35; color: var(--text); word-break: keep-all; }
.fs-r small { color: var(--text3); font-size: 11.5px; }
.fs-url { background: transparent; border: 1.5px solid var(--fs-line); border-radius: 999px; font-size: 12.5px; color: var(--text2); }
.fs-bar { justify-content: space-between; background: transparent; padding: 2px 4px; }
.fs-bar b { font-size: 14px; }
.fs-mini { font-size: 11px; color: var(--text3); }
.fs-search { border: 2px solid var(--primary); border-radius: 999px; justify-content: space-between; }
.fs-in { flex: 1; min-width: 0; }
.fs-in.ph { color: var(--text3); }
.fs-mag { font-size: 13px; }
.fs-lines { display: grid; gap: 6px; background: transparent; padding: 2px 4px; }
.fs-line { display: block; height: 8px; border-radius: 9px; background: var(--fs-line); }
.fs-tiles, .fs-opts, .fs-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: transparent; padding: 0; }
.fs-tabs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.fs-it { position: relative; display: grid; place-items: center; min-height: 38px; padding: 4px 6px; border-radius: 10px; background: var(--card); font-size: 12px; font-weight: 700; text-align: center; }
.fs-tabs .fs-it { min-height: 30px; font-weight: 600; color: var(--text2); }
.fs-item { justify-content: space-between; }
.fs-t { display: grid; min-width: 0; }
.fs-b { flex: none; padding: 5px 12px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.fs-b2 { flex: none; padding: 5px 12px; border-radius: 8px; border: 1.5px solid var(--fs-line); font-size: 12px; font-weight: 700; color: var(--text2); }
.fs-btn { justify-content: flex-end; background: transparent; padding: 2px 0; }
.fs-btn .fs-b { flex: 1; text-align: center; padding: 9px 12px; font-size: 13.5px; }
.fs-popup { flex-direction: column; align-items: stretch; text-align: center; padding: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.fs-popup .fs-b { padding: 7px; }
.fs-field, .fs-row { justify-content: space-between; }
.fs-field .fs-in { flex: none; text-align: right; }
.fs-pic { flex-direction: column; text-align: center; padding: 10px; }
.fs-big { font-size: 40px; line-height: 1; }
.fs-callb { font-weight: 800; font-size: 15px; }
.fs-call { justify-content: space-between; background: var(--grey900); color: #fff; }
.fs-call small { color: rgba(255, 255, 255, .8); }
/* 빨간 박스 + 번호 + 손가락(「여기를 눌러요」) */
.fs-hit { outline: 3px solid var(--fs-red); outline-offset: 2px; z-index: 1; }
.fs-badge { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--fs-red); color: #fff; font-size: 13px; font-weight: 800; border: 2px solid var(--card); }
.fs-hint { position: absolute; right: -6px; bottom: -14px; padding: 2px 8px; border-radius: 999px; background: var(--fs-red); color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 6px rgba(240, 68, 82, .35); }
.fs-it .fs-hint { right: auto; left: 50%; transform: translateX(-50%); bottom: -16px; }
.fol-tips ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.fol-phones { margin-top: 12px; }
.fol-more .fol-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fol-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--weak-bg); color: var(--text); font-weight: 700; font-size: var(--t6); text-decoration: none; }
.fol-index { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.fol-index a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-card); background: var(--card); color: var(--text); text-decoration: none; }
.fol-index .easy-pic { width: 52px; height: 52px; font-size: 30px; display: grid; place-items: center; border-radius: 14px; background: var(--weak-bg); }
.fol-index b { display: block; font-size: var(--t5); }
.fol-index small { color: var(--text3); }
/* 쉬운 카드 안 「○○ 신청 순서 보기」(신청 칸 아래) */
.easy-how { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding-top: 10px; border-top: 2px dashed #d1d6db; }
.easy-how a { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; background: #fff0f1; color: #d22030; border: 2px solid #f04452; font-weight: 800; font-size: 14px; text-decoration: none; }
html.dark .easy-how a { background: #3a1e22; color: #ff9aa2; }
@media (prefers-color-scheme: dark) { html.auto .easy-how a { background: #3a1e22; color: #ff9aa2; } }
.easy-how span { font-size: 13px; font-weight: 700; color: var(--text2); }

/* 따라 하기: 실제 공식 화면(빨간 네모) — 2026-10-17 */
.fs-real { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line, #e5e8eb); background: #f2f4f6; }

/* ── 고르기 시트(2026-10-17 관제 #201 · static/picker.js) — 폰 기본 select 팝업 대신 · 색은 모두 변수(다크 자동) ── */
.pk-lab { display: block; font-size: var(--t6); line-height: var(--t6-lh); font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.pk-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: var(--z-input); padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-input); background: var(--card); color: var(--text3); font: inherit; font-size: var(--t5); text-align: left; cursor: pointer; }
.pk-btn.set { color: var(--text); font-weight: 700; border-color: var(--primary); background: var(--weak-bg); }
.pk-btn.set .pk-v { color: var(--weak-text); }
.pk-btn:disabled { opacity: .55; cursor: default; }
.pk-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pk-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-caret { font-size: 22px; color: var(--text3); transform: rotate(90deg); }
.pk-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pk-segb { min-height: 56px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; font-size: var(--t4); font-weight: 700; cursor: pointer; display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.pk-segb small { font-size: var(--t7); font-weight: 600; color: var(--text3); }
.pk-segb.on { border-color: var(--primary); background: var(--weak-bg); color: var(--weak-text); }
.pk-segb.on small { color: var(--weak-text); }
.kid-age { margin-top: 10px; }
.pk-box { max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.pk-head { display: flex; align-items: flex-start; gap: 12px; }
.pk-head > div { flex: 1; }
.pk-head .sheet-title:focus { outline: none; }
.pk-x { flex: none; width: 48px; height: 48px; margin: -8px -10px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--text2); font-size: 20px; cursor: pointer; }
.pk-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; margin: 12px -4px 0; padding: 0 4px 4px; }
.pk-zone { font-size: var(--t7); line-height: var(--t7-lh); font-weight: 700; color: var(--text3); margin: 14px 2px 8px; }
.pk-zone:first-child { margin-top: 2px; }
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pk-grid.y { grid-template-columns: repeat(4, 1fr); }
.pk-grid.g { grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
.pk-grid.k { grid-template-columns: repeat(4, 1fr); }
.pk-chip { position: relative; min-height: 56px; padding: 8px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; word-break: keep-all; }
.pk-chip b { font-size: var(--t5); line-height: 1.25; font-weight: 700; }
.pk-chip small { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); font-weight: 500; }
.pk-chip.on { border: 2px solid var(--primary); background: var(--weak-bg); color: var(--weak-text); }
.pk-chip.on small { color: var(--weak-text); }
.pk-chip[hidden] { display: none; }
.pk-ck { position: absolute; top: 4px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; line-height: 18px; font-weight: 800; }
.pk-chip:active, .pk-segb:active { transform: scale(.97); }
.pk-step { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--grey50); }
.pk-step-l { flex: 1; font-size: var(--t6); font-weight: 600; color: var(--text2); }
.pk-sb { width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); color: var(--text); font-size: 22px; font-weight: 700; cursor: pointer; }
.pk-age { min-width: 56px; text-align: center; font-size: var(--t4); }
.pk-ok { height: 48px; padding: 0 14px; font-size: var(--t6); }
.pk-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 14px -4px 10px; padding: 0 4px 2px; scrollbar-width: none; }
.pk-tabs::-webkit-scrollbar { display: none; }
.pk-tab { flex: none; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text2); font: inherit; font-size: var(--t6); font-weight: 600; cursor: pointer; }
.pk-tab.on { border-color: var(--primary); background: var(--primary); color: #fff; }
.pk-search { width: 100%; height: var(--z-input); padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-input); background: var(--card); color: var(--text); font: inherit; font-size: var(--t5); }
.pk-search:focus { outline: none; border-color: var(--primary); }
.pk-note { margin: 12px 2px 0; }
.pk-empty { text-align: center; margin: 16px 0; }
.pk-none { margin-top: 14px; }
html.big .pk-chip, html.big .pk-segb { min-height: 64px; }
@media (max-width: 360px) { .pk-grid, .pk-grid.y, .pk-grid.k { grid-template-columns: repeat(3, 1fr); } .pk-seg { grid-template-columns: repeat(4, 1fr); } .pk-step { flex-wrap: wrap; } }

/* 「잠자는 내 돈」 카드 아이콘(2026-10-19 회장님 「잠자는 돈 각각 글 앞에 이모티콘 · 움직이는 것도」) — 홈 3카드 + /money/ 목록.
   GIF 대신 3D 그림(jm_*.png) + CSS 움직임(transform·opacity 만 — 그리기 부담 없음). 박자를 서로 다르게(3.2s·2.3s·2.8s).
   화면에 보일 때만 움직인다: ui.js 가 IntersectionObserver 로 .on 을 붙였다 뗀다. 「동작 줄이기」면 멈춘 그림(자는 Z·반짝은 그대로 보임) */
.mc-h { display: flex; align-items: center; gap: 10px; }
.mc-h > span:last-child { flex: 1; min-width: 0; }
.mc-ic { position: relative; flex: 0 0 auto; display: inline-flex; width: 40px; height: 40px; }
.mc-ic img.ic3 { width: 40px; height: 40px; vertical-align: 0; }
.money-head .mc-ic { flex-basis: 44px; width: 44px; height: 44px; align-items: center; justify-content: center; }
html.big .mc-ic, html.big .mc-ic img.ic3 { width: 46px; height: 46px; }
html.big .money-head .mc-ic { flex-basis: 48px; width: 48px; height: 48px; }
.mc-ic img.ic3, .mc-ic::before, .mc-ic::after { animation-play-state: paused; }
.mc-ic.on img.ic3, .mc-ic.on::before, .mc-ic.on::after { animation-play-state: running; }
/* 🐷 휴면 = 새근새근 숨쉬기 + z·Z 가 차례로 떠오름 */
.mfx-sleep img.ic3 { transform-origin: 50% 90%; animation: mfx-breathe 3.2s ease-in-out infinite; }
.mfx-sleep::before, .mfx-sleep::after { content: 'z'; position: absolute; right: -4px; top: -2px; font: 800 12px/1 system-ui, sans-serif; color: var(--primary); opacity: 0; pointer-events: none; animation: mfx-z 3.2s ease-out infinite; }
.mfx-sleep::after { content: 'Z'; font-size: 15px; animation-delay: 1.6s; }
@keyframes mfx-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06, 1.03); } }
@keyframes mfx-z { 0% { opacity: 0; transform: translate(0, 4px) scale(.6); } 25% { opacity: 1; } 80% { opacity: .8; } 100% { opacity: 0; transform: translate(9px, -16px) scale(1.1); } }
/* 💸 미환급금 = 날개 달린 돈이 파닥이며 돌아옴 */
.mfx-fly img.ic3 { animation: mfx-fly 2.3s ease-in-out infinite; }
@keyframes mfx-fly { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 25% { transform: translate(2px, -5px) rotate(3deg); } 50% { transform: translate(0, -1px) rotate(-4deg); } 75% { transform: translate(-2px, -5px) rotate(5deg); } }
/* 🛡️ 숨은 보험금 = 방패가 「톡」 + 반짝 */
.mfx-shine img.ic3 { animation: mfx-guard 2.8s ease-in-out infinite; }
.mfx-shine::after { content: '✦'; position: absolute; right: -3px; top: -4px; font: 700 14px/1 system-ui, sans-serif; color: #ffb800; opacity: 0; pointer-events: none; animation: mfx-twinkle 2.8s ease-in-out infinite; }
@keyframes mfx-guard { 0%, 62%, 100% { transform: none; } 72% { transform: scale(1.1) rotate(-4deg); } 84% { transform: scale(.97) rotate(2deg); } }
@keyframes mfx-twinkle { 0%, 66%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 76% { opacity: 1; transform: scale(1.2) rotate(45deg); } 90% { opacity: 0; transform: scale(.8) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) {
  .mc-ic img.ic3, .mc-ic::before, .mc-ic::after { animation: none !important; }
  .mfx-sleep::after, .mfx-shine::after { opacity: 1; transform: none; }
  .mfx-sleep::before { opacity: .7; transform: translate(-6px, 6px); }
}

/* ── 사장님 지원사업 /biz/ (2026-10-19 관제 #266) — 개인 화면과 떨어진 구역. 색은 토큰만, 파랑은 공식 신청 단추·D-day 에만 ── */
.biz-warn { margin: 12px 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--grey300); color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.biz-warn b { color: var(--text); }
.bz-sel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 0 0 6px; }
.bz-sel .field { margin: 0; }
.bz-sel select:disabled { opacity: .55; }
.bz-nat { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--t6); color: var(--text2); }
.bz-nat input { width: 20px; height: 20px; accent-color: var(--primary); }
.bz-q { margin: 0 0 10px; }
.bz-q input { width: 100%; }
.bz-out { display: grid; gap: 10px; }
.card.bz { display: block; color: var(--text); text-decoration: none; padding: 16px 18px; }
.bz-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.chip.bzk { background: var(--grey100); color: var(--text); }
.bz-ar { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); }
.bz-top em { margin-left: auto; font-style: normal; font-size: var(--t7); line-height: var(--t7-lh); font-weight: 700; white-space: nowrap; }
.bz-dd { color: var(--primary); } .bz-dd.hot { color: var(--danger); }
.bz-al { color: var(--text2); } .bz-end { color: var(--text3); }
.card.bz h3 { margin: 0 0 8px; font-size: var(--t5); line-height: var(--t5-lh); word-break: keep-all; overflow-wrap: anywhere; }
.bz-dl { margin: 0; display: grid; gap: 4px; }
.bz-dl div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
.bz-dl dt { color: var(--text3); font-size: var(--t7); line-height: var(--t6-lh); }
.bz-dl dd { margin: 0; color: var(--text2); font-size: var(--t7); line-height: var(--t6-lh); overflow-wrap: anywhere; }
.bz-dl dd b { color: var(--text); }
html.big .bz-dl div { grid-template-columns: 62px minmax(0, 1fr); }
#bz-more { margin-top: 12px; }
.biz-check { margin: 12px 0; }
.biz-check h2 { font-size: var(--t5); margin: 0 0 6px; }
.biz-check p { margin: 0; color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.bz-chk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px !important; }
.bz-chk .chip.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--grey300); color: var(--text2); }
.biz-about { margin: 20px 0 8px; }
.biz-about h2 { font-size: var(--t5); margin: 0 0 8px; }
.biz-about ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text2); font-size: var(--t6); line-height: var(--t6-lh); }
.biz-about b { color: var(--text); }
.bz-rel { margin-top: 20px; }
/* 홈 입구 카드 「사장님이세요?」 — 하나만, 조용하게(개인 홈을 복잡하게 하지 않게) */
.bizgo { margin-top: 12px; display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding: 14px 16px; }
.bizgo .bg-ic { flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--grey100); font-size: 24px; }
.bizgo .bg-ic img.ic3 { width: 36px; height: 36px; }
.bizgo .bg-t { flex: 1; min-width: 0; }
.bizgo .bg-t b { display: block; font-size: var(--t6); line-height: var(--t6-lh); }
.bizgo .bg-t small { display: block; font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); }
.bizgo .bg-go { color: var(--text3); font-size: var(--t5); }
/* 지금 모집 중인 공고(2026-10-19 관제 #267) — 카드 전체가 아니라 제목·출처 줄이 원문 링크 */
.card.bzn h3 a { color: var(--text); text-decoration: none; }
.card.bzn h3 a::after { content: ' ↗'; color: var(--text3); font-weight: 500; }
.bzn-src { margin: 10px 0 0; display: flex; flex-direction: column; gap: 2px; }
.bzn-src a { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--t7); font-weight: 600; color: var(--primary); text-decoration: none; }
.bz-now-pre { margin: 8px 0 4px; }

/* 첫 화면 바로가기 4칸 — 급해요·중요해요·준비해요·숨은 돈 (2026-10-19 회장님 「더 중요하고 빨리 해야 하는 것을 분류해서 누르면 바로」) */
.hook-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.hq { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px 9px; border-radius: 14px; background: var(--grey100); color: var(--text); text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent; transition: transform .12s; }
.hq:active { transform: scale(.96); }
.hq img { width: 34px; height: 34px; object-fit: contain; margin-bottom: 2px; }
.hq b { font-size: var(--t6); line-height: var(--t6-lh); font-weight: 800; white-space: nowrap; }
.hq .hq-v { font-size: var(--t7); line-height: var(--t7-lh); font-weight: 800; font-variant-numeric: tabular-nums; }
.hq small { font-size: 11px; line-height: 1.3; color: var(--text3, var(--text2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hq-urgent { background: #fff0f0; } .hq-urgent .hq-v { color: #e5484d; }
.hq-important .hq-v { color: var(--primary); }
.hq-prepare { background: #eefaf3; } .hq-prepare .hq-v { color: #18a058; }
.hq-money { background: #fff7e8; } .hq-money .hq-v { color: #d97706; }
[data-sec="soon"], #month-sec { scroll-margin-top: 72px; }
html.dark .hq-urgent { background: #3a1f22; } html.dark .hq-prepare { background: #1b3326; } html.dark .hq-money { background: #3a2e17; }
@media (prefers-color-scheme: dark) { html.auto .hq-urgent { background: #3a1f22; } html.auto .hq-prepare { background: #1b3326; } html.auto .hq-money { background: #3a2e17; } }

/* 움직이는 3D 아이콘(2026-10-19 관제 #298 · tools/make_anim.py) — 숨은 돈 카드는 <picture>, 탭바 「숨은 돈」은 켜진 화면에서만 빙글 */
.money-head picture { display: contents; }
.tabbar a .t-anim { display: none; }
.tabbar a.on .t-anim { display: block; }
.tabbar a.on .t-still { display: none; }
@media (prefers-reduced-motion: reduce) { .tabbar a.on .t-anim { display: none; } .tabbar a.on .t-still { display: block; } }
.money-list .fol-go { margin-top: 8px; }   /* 숨은 돈 「그림 보고 따라 하기」(관제 #298) */

/* ── 홈 즉시 검색 결과 판(2026-10-22 관제 #476 · static/home_search.js) — 검색창 바로 아래 카드 20 · 줄 56+ · 묶음 머리 · 키보드가 가려도 판 안에서 스크롤 · 색은 변수라 어둡게 자동 ── */
.hs { margin: 0 0 12px; background: var(--card); border-radius: var(--r-card); max-height: 62vh; max-height: min(62dvh, 560px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 0 6px; }
.hs .hs-g { display: flex; align-items: baseline; gap: 8px; padding: 12px var(--s-card-pad) 2px; }
.hs .hs-g b { font-size: var(--t6); line-height: var(--t6-lh); }
.hs .hs-g span { font-size: var(--t7); color: var(--primary); font-weight: 700; }
.hs .rl { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.hs .rl-t small { white-space: normal; }
.hs .rl-t small .chip { margin-right: 2px; vertical-align: 1px; }
.hs .chip.ez { background: var(--weak-bg); color: var(--weak-text); }
.hs .rl-more { margin-top: 0; border: 0; border-top: 1px solid var(--line); background: none; width: 100%; font-family: inherit; cursor: pointer; padding: 12px; }
.hs .hs-all { display: block; padding: 14px; text-align: center; color: var(--primary); font-weight: 700; font-size: var(--t6); border-top: 1px solid var(--line); }
.hs .hs-wait, .hs .hs-note { margin: 0; padding: 12px var(--s-card-pad); color: var(--text3); font-size: var(--t7); line-height: var(--t7-lh); }
.hs .hs-empty { padding: 18px var(--s-card-pad) 8px; }
.hs .hs-empty b { display: block; font-size: var(--t5); line-height: var(--t5-lh); }
.hs .hs-empty span { display: block; color: var(--text2); font-size: var(--t7); line-height: var(--t7-lh); margin-top: 4px; }
.hs .hs-k { padding: 10px var(--s-card-pad) 6px; font-size: var(--t7); color: var(--text3); font-weight: 600; }
.hs .hs-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--s-card-pad) 10px; }
.hs .hs-chips button { border: 0; background: var(--grey100); color: var(--text); border-radius: var(--r-chip); padding: 10px 14px; min-height: 40px; font: inherit; font-size: var(--t6); font-weight: 600; cursor: pointer; }
.hs .hs-chips button:active { background: var(--grey200); }

/* 사업자 정보 접힘 한 줄(2026-10-22 회장님 「꼬옥앱처럼」 · KKOOK .biz-info 와 같은 모양) — 바닥글·더보기 */
.biz-info { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text2); }
.biz-info summary { cursor: pointer; font-weight: 700; padding: 6px 0; color: var(--text2); list-style: none; display: flex; align-items: center; gap: 6px; min-height: 40px; }
.biz-info summary::-webkit-details-marker { display: none; }
.biz-info summary::after { content: '›'; font-weight: 700; color: var(--text3); transform: rotate(90deg); transition: transform .12s; }
.biz-info[open] summary::after { transform: rotate(-90deg); }
.biz-info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0 2px; }
.biz-info dt { font-weight: 600; color: var(--text3); } .biz-info dd { margin: 0; word-break: keep-all; }
.foot .biz-info { margin: 0 0 8px; } .foot .biz-info a { color: var(--text2); }

/* ── 다크 모드 단추 색(2026-10-22 밤 회장님 「검은 배경화면일 때 버튼색이 이질감 · 고양이·어항 버튼도 · 잘 어울리게 눈에 잘 띄게」)
   grey900 바탕·흰 글씨 단추(말로 넣기·전화·따라 하기 전화)는 어두운 화면에서 바탕이 밝은 회색이 되므로 글씨를 어둡게 · 토스트는 짙은 회색 · 모야냥·어항 카드는 크림색 대신 어두운 호박·바다색 + 테두리
   (+ html.dark 팔레트에 grey400~800 을 넣어 기본 .btn(건너뛰기)·.chip 글씨가 어두운 바탕에서 보이게) ── */
html.dark .btn.voice, .btn.tel, .tel-big, .fs-call { background: #e5e8eb; color: #17171c; }
html.dark .btn.voice small, html.dark .tel-big small { color: #4e5968; }
html.dark .btn.tel small, html.dark .fs-call small { color: rgba(23, 23, 28, .72); }
html.dark .toast { background: #3a3a44; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
html.dark .hub-pet { background: linear-gradient(120deg, #3a2a12 0%, #2a2420 100%); box-shadow: inset 0 0 0 1.5px #6a4a1c; }
html.dark .hub-pet em { color: #ffb547; }
html.dark .hub-pet.hub-fish { background: linear-gradient(120deg, #0f2f4a 0%, #1b2436 100%); box-shadow: inset 0 0 0 1.5px #24507a; }
html.dark .hub-pet.hub-fish em { color: #64c8ff; }
html.dark .pet-actions button { box-shadow: inset 0 0 0 1px #2c2c35; }
html.dark .kind-seg .on, html.dark .seg button.on { box-shadow: inset 0 0 0 1px #3a3a44; }
html.dark .rf-tag.grant { background: #1b3326; color: #5fd48f; } html.dark .rf-tag.loan { background: #3a2e17; color: #f5b041; }
@media (prefers-color-scheme: dark) {
  html.auto .btn.voice, .btn.tel, .tel-big, .fs-call { background: #e5e8eb; color: #17171c; }
  html.auto .btn.voice small, html.auto .tel-big small { color: #4e5968; }
  html.auto .btn.tel small, html.auto .fs-call small { color: rgba(23, 23, 28, .72); }
  html.auto .toast { background: #3a3a44; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
  html.auto .hub-pet { background: linear-gradient(120deg, #3a2a12 0%, #2a2420 100%); box-shadow: inset 0 0 0 1.5px #6a4a1c; }
  html.auto .hub-pet em { color: #ffb547; }
  html.auto .hub-pet.hub-fish { background: linear-gradient(120deg, #0f2f4a 0%, #1b2436 100%); box-shadow: inset 0 0 0 1.5px #24507a; }
  html.auto .hub-pet.hub-fish em { color: #64c8ff; }
  html.auto .pet-actions button { box-shadow: inset 0 0 0 1px #2c2c35; }
  html.auto .kind-seg .on, html.auto .seg button.on { box-shadow: inset 0 0 0 1px #3a3a44; }
  html.auto .rf-tag.grant { background: #1b3326; color: #5fd48f; } html.auto .rf-tag.loan { background: #3a2e17; color: #f5b041; }
}

/* ── 첫 질문 「어떤 분이세요?」 4칸(2026-10-22 밤 회장님 「처음 선택할 때 개인·프리랜서·사업자·법인」) — find.js rWho ── */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 118px; padding: 14px 14px 12px; border: 1.5px solid transparent; border-radius: 18px; background: var(--card); color: var(--text); text-align: left; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; transition: transform .08s ease, background-color .12s ease; }
.who:active { transform: scale(.985); }
.who img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 4px; }
.who b { font-size: var(--t4); line-height: var(--t4-lh); font-weight: 800; }
.who small { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); font-weight: 500; }
.who.on { background: var(--weak-bg); border-color: var(--primary); color: var(--weak-text); }
.who.on small { color: var(--weak-text); }
html.big .who b { font-size: var(--t3); line-height: var(--t3-lh); }
.who-link { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; text-decoration: none; }
.who-link img.ic3, .who-link .tf { width: 36px; height: 36px; flex: none; font-size: 30px; line-height: 36px; text-align: center; }
.who-link > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who-link b { font-size: var(--t6); line-height: var(--t6-lh); }
.who-link small { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); }
.who-link .go { margin-left: auto; color: var(--text3); font-weight: 700; }

/* ── 돌려받을 수 있는 돈 전체 목록(/refund/ · 2026-10-22 밤) — refund.html · refund.js ── */
.rf-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px; border-radius: 16px; background: var(--grey200); margin: 0 0 12px; }
.rf-who button { min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 12px; background: none; color: var(--text2); font: inherit; font-size: var(--t7); font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rf-who button .tf { font-size: 22px; line-height: 1; }
.rf-who button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
html.big .rf-who button { font-size: var(--t6); }
.rf-prog { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 12px; }
.rf-prog b { font-size: var(--t3); line-height: 1; color: var(--primary); }
.rf-prog .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--grey200); overflow: hidden; }
.rf-prog .bar i { display: block; height: 100%; background: var(--primary); transition: width .25s; }
.rf-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 16px; }
.rf-kind { padding: 12px 12px 10px; border-radius: 14px; background: var(--grey50); }
.rf-kind b { display: block; font-size: var(--t6); line-height: var(--t6-lh); }
.rf-kind small { display: block; font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); margin-top: 2px; }
.rf-kind .tf { font-size: 22px; line-height: 1; display: block; margin-bottom: 6px; }
.rf-group { padding: 16px 16px 8px; margin-bottom: 12px; }
.rf-group[hidden] { display: none; }
.rf-gh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rf-gh h2 { margin: 0; font-size: var(--t4); line-height: var(--t4-lh); min-width: 0; }
.rf-gh .tf { font-size: 24px; line-height: 1; flex: none; }
.rf-tag { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.rf-tag.refund { background: var(--weak-bg); color: var(--weak-text); }
.rf-tag.grant { background: #eefaf3; color: #18a058; }
.rf-tag.loan { background: #fff7e8; color: #d97706; }
.rf-intro { font-size: var(--t6); line-height: var(--t6-lh); color: var(--text2); margin: 0 0 8px; }
.rf-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rf-ck { flex: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--grey300); background: none; cursor: pointer; color: transparent; font-size: 15px; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.rf-item.done .rf-ck { background: var(--primary); border-color: var(--primary); color: #fff; }
.rf-item.done .rf-t b { color: var(--text3); text-decoration: line-through; }
.rf-t { flex: 1; min-width: 0; }
.rf-t b { display: block; font-size: var(--t6); line-height: var(--t6-lh); }
.rf-t small { display: block; font-size: var(--t7); line-height: var(--t7-lh); color: var(--text2); margin-top: 1px; }
.rf-go { flex: none; align-self: center; font-size: var(--t7); font-weight: 700; color: var(--weak-text); background: var(--weak-bg); border-radius: 999px; padding: 7px 10px; white-space: nowrap; text-decoration: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.rf-tip { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); background: var(--grey50); border-radius: 12px; padding: 10px 12px; margin: 8px 0 6px; }
.rf-sub { font-size: var(--t7); font-weight: 700; color: var(--text3); margin: 10px 0 2px; }
.rf-mine { margin: 4px 0 12px; padding: 0 0 8px; }
.rf-mine summary { cursor: pointer; font-weight: 700; padding: 14px 16px; list-style: none; display: flex; align-items: center; gap: 8px; }
.rf-mine summary::-webkit-details-marker { display: none; }
.rf-mine summary::after { content: '⌄'; margin-left: auto; color: var(--text3); }
.rf-mine[open] summary::after { content: '⌃'; }
.rf-mine .rf-group { margin: 0 8px 8px; background: var(--grey50); }
.rf-cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 12px; text-decoration: none; }
.rf-cta img.ic3, .rf-cta .tf { width: 40px; height: 40px; flex: none; font-size: 32px; line-height: 40px; text-align: center; }
.rf-cta > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-cta b { font-size: var(--t5); line-height: var(--t5-lh); }
.rf-cta small { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); }
.rf-cta .go { margin-left: auto; color: var(--text3); font-weight: 700; }
/* ── 결과 안 돌려받을 수 있는 돈 줄(2026-10-23 · refund_match.js · match.js rfCard) ── */
.svc.rf .rf-open { margin-top: 8px; font-size: var(--t6); line-height: var(--t6-lh); font-weight: 700; color: var(--primary); }
.chip.rfk.refund { background: var(--weak-bg); color: var(--weak-text); }
.chip.rfk.grant { background: #eefaf3; color: #18a058; }
.chip.rfk.loan { background: #fff7e8; color: #d97706; }
html.dark .chip.rfk.grant { background: #1b3326; color: #5fd48f; } html.dark .chip.rfk.loan { background: #3a2e17; color: #f5b041; }
@media (prefers-color-scheme: dark) { html.auto .chip.rfk.grant { background: #1b3326; color: #5fd48f; } html.auto .chip.rfk.loan { background: #3a2e17; color: #f5b041; } }
.rf-strip { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; margin: 0 0 12px; border: 0; text-align: left; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rf-strip img.ic3, .rf-strip .tf { width: 40px; height: 40px; flex: none; font-size: 32px; line-height: 40px; text-align: center; }
.rf-strip > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-strip b { font-size: var(--t5); line-height: var(--t5-lh); }
.rf-strip small { font-size: var(--t7); line-height: var(--t7-lh); color: var(--text3); }
.rf-strip .go { margin-left: auto; color: var(--primary); font-weight: 700; white-space: nowrap; }

/* 🐉 황금 복 어항 입구·전체 화면(fish.js · 2026-10-25) */
.bok-entry { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0; padding: 14px 16px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  border: 1.5px solid #f0c75a; background: linear-gradient(135deg, #fff6d6 0%, #ffffff 70%); }
.bok-entry[hidden] { display: none; }
.bok-ico { font-size: 34px; line-height: 1; }
.bok-t { flex: 1; min-width: 0; } .bok-t b { display: block; font-size: 17px; } .bok-t small { display: block; margin-top: 3px; color: #8a6d1d; font-size: 13px; }
.bok-go { font-size: 24px; color: #c99a1d; }
html.dark .bok-entry { border-color: #7a6220; background: linear-gradient(135deg, #3a3018 0%, #202027 70%); } html.dark .bok-t small { color: #e8c766; } html.dark .bok-go { color: #e8c766; }
@media (prefers-color-scheme: dark) {
  html.auto .bok-entry { border-color: #7a6220; background: linear-gradient(135deg, #3a3018 0%, #202027 70%); } html.auto .bok-t small { color: #e8c766; } html.auto .bok-go { color: #e8c766; }
}
.bok-ov { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; background: #0b2a33; padding-bottom: calc(var(--ad-h, 0px) + env(safe-area-inset-bottom)); }
.bok-bar { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 6px) 12px 6px; color: #fff; }
.bok-bar b { font-size: 16px; } .bok-bar small { color: #9fd3df; font-size: 12px; }
.bok-x { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; cursor: pointer; }
.bok-ov iframe { flex: 1; width: 100%; border: 0; display: block; background: #0b2a33; }
.bok-load { position: absolute; left: 0; right: 0; top: 45%; margin: 0; text-align: center; color: #cfeef5; font-size: 15px; pointer-events: none; }
html.bok-lock, html.bok-lock body { overflow: hidden; }

/* 🐉 어항 탭 = 황금 복 어항(reward_fish.html · 2026-10-25) — 머리 아래 ~ 알약 메뉴 위를 어항이 채운다 */
/* 2026-11-06 어항 아래 안내: 액자는 흐름 안에(fixed 아님) → 아래로 내리면 규칙·크는 방법 카드가 나온다 */
.bok-wrap { min-height: 60vh; padding-bottom: 0; }
.bok-snap { position: absolute; left: 0; right: 0; z-index: 3; width: 100%; height: 70vh; object-fit: cover; border-radius: 24px 24px 0 0; pointer-events: none; transition: opacity .45s; }   /* 어항 사진(3D 준비 전) */
.bok-snap.off { opacity: 0; }
.bok-wrap { position: relative; }
.bok-wrap .bok-load { margin: 40px 0 0; text-align: center; color: var(--text3); }
.bok-frame { position: relative; z-index: 1; display: block; width: calc(100% + 2 * var(--s-gutter)); margin: -22px calc(-1 * var(--s-gutter)) 0; height: 70vh; border: 0; border-radius: 24px 24px 0 0; background: #0b2a33; }
.bok-frame[hidden] { display: none; }
/* 안 보이는 쪽 액자(2026-11-15 회장님 「화면이 바뀔 때 빈 화면 없애 줘」): 같은 자리에 겹쳐 두고 숨기기만 한다 — 크기가 같아 바꾸면 바로 보인다(그리기는 액자 속에서 멈춤) */
.bok-stage { display: grid; }
.bok-stage > .bok-frame { grid-area: 1 / 1; }
.bok-frame.off { visibility: hidden; pointer-events: none; z-index: 0; }
/* 👀 감상 모드(2026-11-15 회장님 「전체가 연못이 되게 하는 감상 모드」): 파란 머리를 숨기고 연못 액자를 화면 가득(폰 상태바는 앱이 숨긴다) */
body.pond-watch { overflow: hidden; }
body.pond-watch .rw-head { display: none; }
body.pond-watch #pond-frame { position: fixed; left: 0; top: 0; margin: 0 !important; border-radius: 0; z-index: 60; }   /* 크기는 reward_fish.html watchSize 가 화면 크기로 넣는다 */   /* 어항 탭의 액자 둘(연못 · 황금 복 어항) 가운데 안 보이는 쪽(2026-11-15) */
.bok-more { display: flex; justify-content: center; padding: 10px 0 2px; }
.bok-more button { border: 0; background: var(--card); color: var(--primary); font: 700 var(--t6) / 1 inherit; font-family: inherit; padding: 11px 16px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); cursor: pointer; }
.bok-guide { padding: 8px 0 calc(110px + env(safe-area-inset-bottom)); }
.bok-guide .bok-up { margin-top: 4px; }

/* 올해 챙긴 지원금 · 올해 받은 돈 — 홈 큰 카드 바로 아래 작은 카드(home.js #hook-mine · 2026-10-25 회장님 「다른 곳으로 · 버튼이 이 구간에」) */
.hook-mine { margin-top: 10px; padding: 4px 16px; }
.hook-mine[hidden] { display: none; }
.hm-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: inherit; text-decoration: none; }
.hm-row + .hm-row { border-top: 1px solid rgba(127, 127, 127, .18); }
.hm-ic { flex: none; font-size: 24px; line-height: 1; }
.hm-t { flex: 1; min-width: 0; } .hm-t b { display: block; font-size: 17px; } .hm-t small { display: block; margin-top: 2px; color: var(--text3); font-size: 14px; }
.hm-row em { flex: none; font-style: normal; font-weight: 700; font-size: 14px; color: var(--primary); }
/* 혜택 카드 「황금 복 어항」 로고 = 대표 황금 아로와나(2026-10-25 회장님 「어항 로고에 대표 황금 물고기」) — 가로로 긴 물고기라 그림 칸을 넓게 */
.hub-pet img.hf-fish { width: 120px; height: 84px; flex: none; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(120, 80, 0, .35)); animation: hf-swim 3.2s ease-in-out infinite; }
@keyframes hf-swim { 0%, 100% { transform: translateX(-3px) rotate(-1.5deg); } 50% { transform: translateX(3px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hub-pet img.hf-fish { animation: none; } }
/* 오른쪽 위 내 동그라미(2026-10-25 회장님 「큰 글씨 말고 개인 로고 · 누르면 개인 정보」) — 이름 첫 글자 · 파랑 입체(흰·파랑 3D 아이콘과 같은 결) */
.mebtn { flex-shrink: 0; margin-left: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.me-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 800; line-height: 1; letter-spacing: 0;
  background: radial-gradient(circle at 32% 28%, #8cc0ff 0%, #4a92ff 38%, #1b64da 100%); box-shadow: 0 4px 10px rgba(27, 100, 218, .32), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 4px rgba(0, 40, 120, .25); transition: transform .15s; }
.mebtn:active .me-av { transform: scale(.92); }
.me-av.none { color: var(--primary); background: var(--weak-bg); box-shadow: inset 0 0 0 1px var(--line); }
html:not(.app) .top .bar > .mebtn { order: 2; }


/* 🔍 화면 크기 「작게·아주 작게」에서 냥이 화면도 같이 줄어들게(2026-11-06 밤 회장님 「화면 크기를 작게 해도 고양이 화면은 작게 안 되는데」):
   방은 폭이 100% 라 zoom 을 줄여도 CSS 폭만 넓어져 실제 크기가 그대로였다 → 작게 모드에서는 냥이 화면 기둥을 380px(보통 때 폰 폭)로 묶어 가운데 두면 방·고양이·단추가 비율대로 줄어든다 */
/* ★2026-11-07 회장님 「프레임 크기가 이렇게 되어 있어, 딱 맞게」 → 380px 묶음을 뺌: 방은 다른 카드와 같은 폭 · 작게 모드에선 방이 낮아지고(zoom) 고양이도 reward.js draw 에서 zoom 만큼 작아진다 */
html[data-zoomlv="s"] .rw-body.pet-page, html[data-zoomlv="xs"] .rw-body.pet-page { max-width: none; }

/* 🐱 2026-11-07 회장님 「1·2번부터 하양이로」 — ① 합성: 발밑 접촉 그림자 + 창(왼쪽 위) 반대쪽 긴 그림자 · 방(따뜻한 베이지)에 색 맞춤 · 밤엔 고양이도 어둡게 ② 2.5D 퍼펫 캔버스(reward.js PUP · static/game/puppet.js) */
.pet-cat canvas.pet-pup { position: absolute; left: 50%; bottom: 0; width: var(--vmw, 250%); max-width: none; height: auto; transform: translate(-50%, 4%); transform-origin: 50% 100%; opacity: 0; pointer-events: none; z-index: 1; display: block; }
.pet-cat.vm.pup canvas.pet-pup { opacity: 1; z-index: 3; }
/* 11/7: 퍼펫 ↔ 영상 0.25초 교차(퍼펫이 위 z3) — 영상은 reward.js pupShow 가 0.3초 뒤 끈다 */
.pet-cat canvas.pet-pup { transition: opacity .25s ease; }
.pet-cat.vm video.on, .pet-cat.vm.pup canvas.pet-pup { filter: sepia(.07) saturate(.96) brightness(.985); }
.pet-room.lights-off .pet-cat.vm video.on, .pet-room.lights-off .pet-cat.vm.pup canvas.pet-pup { filter: brightness(.55) saturate(.65) sepia(.12); }
.pet-cat.inhouse.vm video.on, .pet-cat.inhouse.vm.pup canvas.pet-pup { filter: brightness(.8) saturate(.92); }
.pet-cat::before { width: 58%; height: 9%; bottom: -2px; background: radial-gradient(ellipse at center, rgba(60, 35, 10, .46), rgba(60, 35, 10, 0) 70%); }   /* 접촉 그림자: 작고 진하게 */
.pet-cat::after { content: ''; position: absolute; left: 26%; bottom: -2px; width: 104%; height: 9%; transform: scale(var(--sh, 1)); transform-origin: 0 50%; opacity: calc(var(--sho, 1) * .55); border-radius: 50%; background: radial-gradient(ellipse at 22% 50%, rgba(60, 35, 10, .32), rgba(60, 35, 10, 0) 70%); filter: blur(2px); pointer-events: none; z-index: -1; }   /* 긴 그림자: 창이 왼쪽 위라 오른쪽으로 */
.pet-cat.inhouse::after, .pet-cat.perched::after, .pet-cat.fallback::after, .pet-cat.sleep::after { display: none; }
.pet-room.lights-off .pet-cat::before { opacity: calc(var(--sho, 1) * .5); } .pet-room.lights-off .pet-cat::after { opacity: calc(var(--sho, 1) * .18); }
@keyframes vm-breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.006 1.014; } }
.pet-cat.vm.vhold video.on { animation: vm-breathe 4.2s ease-in-out infinite; }   /* 눕기·잠 끝 장에서 멈춘 뒤에도 숨은 쉰다 */
@media (prefers-reduced-motion: reduce) { .pet-cat.vm.vhold video.on { animation: none; } }

/* 🔍 가까이 보기(2026-11-07) — 방 왼쪽 아래 단추 · 방 위에 덮는 상자(방은 흐리게) · 정면 퍼펫 캔버스(위치·크기는 reward.js nearFit) */
.pet-near { position: absolute; left: 10px; bottom: 10px; z-index: 6; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); cursor: pointer; font-size: 19px; line-height: 40px; -webkit-tap-highlight-color: transparent; }
.pet-near .tf { display: block; line-height: 40px; }
.pet-room.near .pet-near { display: none; }
.pet-room.scene .pet-near { display: none; }
.pet-nearbox { position: absolute; inset: 0; z-index: 8; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; background: rgba(245, 236, 222, .72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); touch-action: none; cursor: grab; }
.pet-nearbox[hidden] { display: none; }
.pet-nearcv { position: absolute; left: 0; top: 0; display: block; max-width: none; pointer-events: none; filter: sepia(.05) saturate(.98); }
.pet-room.lights-off .pet-nearbox { background: rgba(40, 46, 80, .7); } .pet-room.lights-off .pet-nearcv { filter: brightness(.62) saturate(.7); }
.pet-nearx { position: absolute; right: 10px; top: 10px; z-index: 2; border: 0; border-radius: 999px; padding: 9px 13px; background: rgba(255, 255, 255, .92); color: var(--text); font: 700 13px/1 inherit; font-family: inherit; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); cursor: pointer; }
.pet-nearhint { position: absolute; left: 10px; right: 10px; bottom: 8px; margin: 0; text-align: center; font-size: 12px; font-weight: 600; color: #5a4a3a; text-shadow: 0 1px 5px rgba(255, 255, 255, .9); pointer-events: none; }
.pet-room.near { height: 440px; }   /* 얼굴이 크게 들어오게 */
.pet-room.near .pet-heart { z-index: 9; }
.pet-room.near .pet-light, .pet-room.near .pet-bgm, .pet-room.near .pet-bub { display: none; }

/* 🏠 우리 집(2026-11-07 회장님 「1분 영상 … 어항·고양이·노래」) — static/home_scene.js */
.hm-wrap { padding-bottom: 8px; }
.hm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.hm-weather { display: flex; gap: 5px; flex-wrap: wrap; }
.hm-weather button { border: 0; border-radius: 999px; padding: 7px 9px; background: var(--card); color: var(--text2); font: 600 12px/1 inherit; font-family: inherit; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); cursor: pointer; white-space: nowrap; }
.hm-weather button.on { background: var(--primary); color: #fff; }
.hm-music { border: 0; border-radius: 999px; padding: 7px 10px; background: var(--card); color: var(--text2); font: 700 12px/1 inherit; font-family: inherit; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); cursor: pointer; display: flex; gap: 5px; align-items: center; white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.hm-music.on { background: #ffe9a3; color: #5a3f00; }
.hm-scene { position: relative; width: 100%; aspect-ratio: 768 / 1376; border-radius: 24px; overflow: hidden; background: #2a2622; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hm-scene[data-weather="rain"] .hm-bg { filter: saturate(.9) brightness(.94); }
.hm-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hm-spot { position: absolute; display: block; border-radius: 16px; -webkit-tap-highlight-color: transparent; }
.hm-spot:active { background: rgba(255, 255, 255, .12); }
.hm-spot-fish { left: 57%; top: 78%; width: 42%; height: 21%; }
.hm-spot-tv { left: 78%; top: 40%; width: 21%; height: 12%; }
.hm-chip { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); white-space: nowrap; background: rgba(255, 255, 255, .92); color: #2a1d00; font: 700 12px/1 inherit; padding: 7px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); animation: hm-bob 2.4s ease-in-out infinite; pointer-events: none; }
.hm-spot-fish .hm-chip { top: 12%; }   /* 연못 위쪽에 — 아래 알약 메뉴에 가리지 않게(11/7 시험폰) */
.hm-spot-tv .hm-chip { top: -32px; }
@keyframes hm-bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
.hm-cat { position: absolute; display: block; -webkit-tap-highlight-color: transparent; }
.hm-cat[hidden] { display: none; }
.hm-catcv { position: absolute; left: 0; top: 0; display: block; max-width: none; filter: sepia(.12) saturate(.95) brightness(.94); }
.hm-shadow { position: absolute; left: 50%; bottom: 0; width: 86%; height: 9%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(40, 25, 10, .42), rgba(40, 25, 10, 0) 70%); z-index: -1; }
.hm-chip-cat { top: 36%; }   /* 고양이 칸은 위쪽이 비어 있어(셀 여백) 머리 바로 위로 */
.hm-hint { position: absolute; left: 10px; right: 10px; bottom: 8px; margin: 0; text-align: center; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); pointer-events: none; transition: opacity .6s; }
.hm-hint.off { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hm-chip { animation: none; } }
/* 🎵 음악 스튜디오 — static/music.js */
.mu-hero { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #2b2340, #4a3a6a); color: #fff; border-radius: 20px; padding: 16px; margin-bottom: 12px; min-height: 88px; }
.mu-hero .mu-play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: #ffe9a3; color: #2a1d00; font-size: 24px; cursor: pointer; flex: none; }
.mu-hero b { display: block; font-size: 17px; margin: 2px 0; } .mu-hero small { display: block; opacity: .82; font-size: 12px; }
.mu-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.mu-track { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 12px 14px; border: 0; width: 100%; text-align: left; font-family: inherit; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }
.mu-track .mu-e { font-size: 24px; width: 34px; text-align: center; flex: none; } .mu-track b { display: block; font-size: 15px; color: var(--text); } .mu-track small { color: var(--text3); font-size: 12px; }
.mu-track.on { outline: 2px solid var(--primary); } .mu-track.off { opacity: .5; } .mu-track .mu-st { margin-left: auto; font-size: 12px; color: var(--primary); font-weight: 700; white-space: nowrap; }
.mu-card { background: var(--card); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.mu-card h3 { margin: 0 0 10px; font-size: 15px; }
.mu-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; } .mu-row label { width: 84px; font-size: 14px; font-weight: 600; flex: none; } .mu-row input[type=range] { flex: 1; accent-color: var(--primary); }
.mu-chips { display: flex; gap: 6px; flex-wrap: wrap; } .mu-chips button { border: 0; border-radius: 999px; padding: 8px 12px; background: var(--grey50, #f1f3f5); color: var(--text2); font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; } .mu-chips button.on { background: var(--primary); color: #fff; }
.rw-pill a span:last-child { font-size: 11px; letter-spacing: -.2px; }   /* 알약 메뉴가 10칸(집 추가)이라 글자 살짝 작게 */

/* 🎬 혜택 첫 화면 영상(2026-11-07 회장님 1분 힐링 영상 · templates/reward.html) — 9:16 · 눌림 영역은 영상 비율 % */
.hv-scene { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #2a2622 url(/static/game/v/home/home_poster.webp) center bottom / cover no-repeat; margin: -4px 0 14px; user-select: none; -webkit-user-select: none; }
.hv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; display: block; pointer-events: none; }   /* 상자가 9:16 보다 낮으면 아래(거실·연못)를 남기고 위를 자른다 */
.hv-scene.nov .hv-video { display: none; }
.hv-spot { position: absolute; display: block; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.hv-spot:active { background: rgba(255, 255, 255, .12); }
.hv-spot-cat { left: 8%; top: 66%; width: 52%; height: 26%; }     /* 러그·소파 앞(고양이가 노는 자리) */
.hv-spot-fish { left: 60%; top: 82%; width: 40%; height: 18%; }   /* 연못 */
.hv-spot-tv { left: 76%; top: 38%; width: 24%; height: 13%; }     /* TV */
/* (옛 칩 자리 → 말풍선 .hv-bub · 2026-11-07) */
.hv-music { position: absolute; right: 10px; top: 10px; z-index: 3; height: 38px; padding: 0 12px 0 10px; border: 1px solid rgba(255, 226, 170, .45); border-radius: 999px; background: rgba(40, 28, 16, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; display: flex; align-items: center; gap: 6px; font: 700 13px/1 inherit; font-family: inherit; color: #ffe9b3; max-width: 62%; -webkit-tap-highlight-color: transparent; }   /* 11/7: 배경(따뜻한 거실)에 어울리는 어두운 유리 + 금빛 글자 */
.hv-music .tf { font-size: 18px; } .hv-music .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-music.on { background: rgba(255, 214, 120, .9); color: #3a2400; border-color: transparent; }
.rw-pill a span:last-child { font-size: 12px; letter-spacing: 0; }   /* 집 칸을 빼 9칸 — 글자 원래대로 */

/* 🖼️ 음악 화면 장면 상자(2026-11-07) — 곡마다 사진 교차 · 천천히 확대 · 분위기 덧칠 */
.mu-scene { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #2b2340; margin-bottom: 12px; }
.mu-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: 0; transition: opacity 1.2s ease; }
.mu-scene img.on { opacity: 1; }
.mu-scene.playing img.on { animation: ms-zoom 28s ease-in-out infinite alternate; }
@keyframes ms-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.mu-scene .ms-fx { position: absolute; inset: 0; pointer-events: none; }
.mu-scene[data-mood="rain"] .ms-fx { background: linear-gradient(rgba(70, 100, 150, .22), rgba(40, 60, 100, .35)), repeating-linear-gradient(100deg, transparent 0 11px, rgba(255, 255, 255, .13) 11px 12px); background-size: auto, 240px 240px; animation: ms-rain .55s linear infinite; }
@keyframes ms-rain { to { background-position: 0 0, -40px 240px; } }
.mu-scene[data-mood="snow"] .ms-fx { background: radial-gradient(circle, rgba(255,255,255,.9) 1.2px, transparent 2px) 0 0 / 90px 90px, radial-gradient(circle, rgba(255,255,255,.7) 1px, transparent 1.6px) 30px 50px / 140px 140px; animation: ms-snow 9s linear infinite; }
@keyframes ms-snow { to { background-position: 20px 90px, 50px 190px; } }
.mu-scene[data-mood="fire"] .ms-fx { background: radial-gradient(ellipse at 78% 62%, rgba(255, 160, 60, .28), transparent 45%); animation: ms-fire 1.1s ease-in-out infinite alternate; }
@keyframes ms-fire { to { opacity: .55; } }
.mu-scene[data-mood="night"] .ms-fx { background: linear-gradient(rgba(10, 16, 48, .35), rgba(10, 16, 48, .15)); }
.mu-scene .mu-hero { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; background: rgba(20, 14, 40, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .mu-scene.playing img.on, .mu-scene .ms-fx { animation: none; } }

/* 👆 첫 화면 안내 순서(2026-11-07) — 어두운 막에 동그란 구멍(가리키는 곳) · 손 모양 · 말풍선 · 눌림 영역은 그대로 눌린다(pointer-events: none) */
.hv-tour { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hv-tour[hidden] { display: none; }
.hv-dim { position: absolute; inset: 0; transition: background .5s ease; }
.hv-hand { position: absolute; transform: translate(-30%, -10%); font-size: 44px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); animation: hv-hand 1s ease-in-out infinite; }
@keyframes hv-hand { 0%, 100% { transform: translate(-30%, -10%) scale(1); } 50% { transform: translate(-30%, 4%) scale(.88); } }
.hv-tip { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255, 255, 255, .96); color: #1a1a1a; border-radius: 18px; padding: 14px 14px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); pointer-events: auto; }
.hv-tip.up { bottom: auto; top: 14px; }
.hv-tip b { display: block; font-size: 16px; line-height: 1.3; margin-bottom: 4px; padding-right: 78px; }   /* 건너뛰기 단추 자리 */
.hv-tip small { display: block; font-size: 13px; color: #555; }
.hv-skip { position: absolute; right: 10px; top: 10px; border: 0; background: #f1f3f5; color: #666; border-radius: 999px; padding: 6px 10px; font: 600 12px/1 inherit; font-family: inherit; cursor: pointer; }
.hv-tour.in .hv-tip { animation: hv-pop .35s ease-out; }
@keyframes hv-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hv-hand, .hv-tour.in .hv-tip { animation: none; } }

/* 🖼️ 장면 방식(SI · 2026-11-07) — 방 = 3:4 장면 사진(두 장 교차 1초 · 재생 중 느린 확대) · 고양이 칸은 보이지 않는 눌림 영역 · 가구·영상·퍼펫 숨김 · 불 끄면 어둡게 */
.pet-room.si { height: auto; aspect-ratio: 9 / 16; background: #e9dcc8; }   /* 11/7: 플로우 움직임 영상과 같은 9:16 */
.pet-si { position: absolute; inset: 0; z-index: 0; }
.pet-si[hidden] { display: none; }
.pet-si img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.pet-si img.on { opacity: 1; animation: si-zoom 22s ease-in-out infinite alternate; }
@keyframes si-zoom { from { transform: scale(1); } to { transform: scale(1.035); } }
.pet-room.si .pet-cat { position: absolute; z-index: 3; animation: none; transform: none; opacity: 0; cursor: pointer; }   /* 보이지 않는 눌림 영역(쓰다듬기) */
.pet-room.si .pet-cat::before, .pet-room.si .pet-cat::after { display: none; }
.pet-room.si .pet-furn, .pet-room.si .pet-cat video, .pet-room.si .pet-cat canvas, .pet-room.si .pet-floor { display: none !important; }
.pet-room.si .pet-heart { z-index: 5; }
.pet-room.si.lights-off { background: #2a2e44; } .pet-room.si.lights-off .pet-si img { filter: brightness(.42) saturate(.7) sepia(.15); }
.pet-room.si .pet-dirt, .pet-room.si .pet-poop { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .pet-si img.on { animation: none; } .pet-si img { transition: none; } }

/* 🔍 장면 방식 가까이 보기(2026-11-07) — agy 클로즈업 두 장(바라봄 ↔ 눈 감고 행복) 교차 · 캔버스는 숨김 */
.pet-nearbox img.nr-a, .pet-nearbox img.nr-b { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; display: none; }
.pet-nearbox.img img.nr-a, .pet-nearbox.img img.nr-b { display: block; }
.pet-nearbox.img img.on { opacity: 1; animation: si-zoom 18s ease-in-out infinite alternate; }
.pet-nearbox.img .pet-nearcv { display: none; }
.pet-nearbox.img { background: #e9dcc8; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* 🎬 장면 사이 움직임 영상(2026-11-07) — 장면 그림 위에 같은 틀로 · 첫 프레임이 뜬 뒤 보임(.on) · 끝나면 끝 장면 그림으로 */
.pet-si video.si-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 1; pointer-events: none; transition: opacity .35s ease; }   /* 11/7 회장님 「끊김·색 바뀜 없이 자연스럽게」 — 영상도 .35초 교차 */
.pet-si video.si-v.on { opacity: 1; }
.pet-room.si.lights-off .pet-si video.si-v { filter: brightness(.42) saturate(.7) sepia(.15); }

/* 💬 첫 화면 말풍선(2026-11-07 회장님 「말풍선으로 고양이·어항·TV 위에」) — 따뜻한 크림색 반투명 유리 · 아래 꼬리가 대상을 가리킴 · 살짝 둥실 */
.hv-bub { position: absolute; transform: translateX(-50%); width: 70px; height: 70px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; background: #fff; color: #2a2a2a; font-size: 8.7px; font-weight: 700; line-height: 1.28; -webkit-text-size-adjust: none; text-size-adjust: none; overflow: hidden; padding: 0; border-radius: 50%; border: 0; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); pointer-events: none; animation: hm-bob 2.6s ease-in-out infinite; }   /* 11/7 회장님 「글자 50% 작게 · 말풍선은 원으로 · 화면을 덜 가리게」 — 지름 64px 동그라미 · 세 줄 */
.hv-bub::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 9px; height: 9px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0; }
.hv-spot .hv-bub { overflow: visible; }   /* 꼬리가 보이게 — 글자는 줄바꿈이라 안 넘침 */
.hv-bub-cat { left: 67%; top: 36%; transform: translate(-50%, -100%); }     /* 고양이(러그) 머리 위 */
.hv-bub-fish { left: auto; right: 4%; top: 24%; transform: translate(0, -100%); }    /* 연못 위 · 오른쪽 끝에 맞춰(프레임 밖으로 안 나가게) */
.hv-spot-fish .hv-bub::after { left: auto; right: 26%; transform: rotate(45deg); }
.hv-bub-tv { left: 50%; top: -6px; transform: translate(-50%, -100%); animation-delay: .8s; }   /* TV 위 */
.hv-bub-fish { animation-delay: 1.4s; }
.hv-spot-tv .hv-bub { left: auto; right: 0; transform: translate(0, -100%); } .hv-spot-tv .hv-bub::after { left: auto; right: 22px; transform: rotate(45deg); }
@keyframes hm-bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -4px; } }   /* 말풍선은 transform 을 자리잡기에 쓰므로 둥실은 margin 으로 */
.hm-chip { animation: none; }
@media (max-width: 380px) { .hv-bub { width: 64px; height: 64px; font-size: 8px; } }

/* ☰ 냥이 방 접이 메뉴(2026-11-07) — 오른쪽 아래 작은 단추 · 열면 식구 줄·이름·도감 패널 */
.pet-menu-btn { position: absolute; right: 10px; bottom: 10px; z-index: 6; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 6px rgba(0, 0, 0, .22); cursor: pointer; font-size: 17px; line-height: 38px; color: #333; -webkit-tap-highlight-color: transparent; }
.pet-menu-btn.open { background: var(--primary); color: #fff; }
.pet-menu { position: absolute; right: 10px; bottom: 54px; z-index: 7; width: min(86%, 320px); background: rgba(255, 255, 255, .97); border-radius: 18px; padding: 12px 12px 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.pet-menu[hidden] { display: none; }
.pet-menu .pet-family { padding: 0 0 8px; } .pet-menu .pet-top { margin: 0; }
.pet-room.near .pet-menu-btn, .pet-room.near .pet-menu { display: none; }
.pet-room.si { aspect-ratio: auto; height: 560px; }   /* 11/7: 실제 높이는 reward.js petFit() 이 머리 아래 ~ 배너·메뉴 위로 맞춘다(첫 화면과 같은 식) · 이 값은 뜨기 전 기본 */

/* 📸 사진 찍기 번쩍(2026-11-07) */
.pet-room.flash::after { content: ''; position: absolute; inset: 0; background: #fff; z-index: 20; animation: pet-flash .35s ease-out forwards; pointer-events: none; }
@keyframes pet-flash { from { opacity: .9; } to { opacity: 0; } }

/* 🥰 가까이 보기 말풍선 글(2026-11-07) */
.pet-nearhint.say { color: #fff; background: rgba(40, 28, 16, .55); border-radius: 999px; padding: 6px 12px; text-shadow: none; font-size: 14px; display: inline-block; left: 50%; right: auto; transform: translateX(-50%); bottom: 12px; }

/* 🎡 룰렛 광고 한 번 더(2026-11-07) */
.spin-ad { margin-top: 10px; } .spin-ad:disabled { opacity: .55; }

/* 🎬 가까이 보기 영상(2026-11-07) — 정지 그림 위에 같은 틀로 · 첫 프레임이 뜬 뒤 .on · 두 개 번갈아 */
.pet-nearbox video.nr-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; z-index: 1; pointer-events: none; display: none; }
.pet-nearbox.img video.nr-v { display: block; }
.pet-nearbox video.nr-v.on { opacity: 1; }
.pet-nearbox.img img.on { animation: none; }   /* 영상이 있을 땐 정지 그림 확대 애니메이션은 끔(영상과 어긋남) */

/* 📸 사진 카드(2026-11-07) — 찰칵 뒤 폴라로이드처럼 올라오는 사진(장면 그림 + 이름·날짜) · 공유하기 · 닫기 */
.pet-photo { position: fixed; inset: 0; z-index: 70; background: rgba(25, 31, 40, .55); display: flex; align-items: center; justify-content: center; padding: 20px 16px; opacity: 0; transition: opacity .25s ease; }
.pet-photo.on { opacity: 1; }
.pet-photo .pp-card { background: #fff; border-radius: 16px; padding: 12px 12px 10px; width: fit-content; max-width: 86vw; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); transform: translateY(40px) rotate(-3deg); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.pet-photo.on .pp-card { transform: none; }
.pet-photo .pp-cv { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 210px); margin: 0 auto; border-radius: 10px; background: #eee; }
.pet-photo .pp-cap { text-align: center; font-size: 14px; font-weight: 700; color: #191f28; margin: 10px 0 8px; }
.pet-photo .pp-btns { display: flex; gap: 8px; }
.pet-photo .pp-btns .btn { flex: 1; min-height: 44px; font-size: 15px; }

/* 🎵 11/7 회장님 「음악 제목은 3초 뒤 자동으로 사라지게 · 작은 단추 누르면 생기고 끄고」 — 평소엔 🎵 동그란 작은 단추, 제목은 들어올 때·곡 바뀔 때·누를 때 3초만 옆으로 펼쳐짐 */
.hv-music { height: 36px; min-width: 36px; padding: 0 8px; justify-content: center; gap: 0; }
.hv-music .t { max-width: 0; opacity: 0; margin: 0; transition: max-width .3s ease, opacity .25s ease, margin .3s ease; }
.hv-music.show { padding: 0 12px 0 9px; }
.hv-music.show .t { max-width: 220px; opacity: 1; margin-left: 6px; }

/* 🐹 마스코트 「콩이」(2026-11-07 회장님 「동물 캐릭터 귀여운 걸로 하나」) — 첫 화면 결과 카드 인사 · 처음 사용법 안내 · 빈 결과 */
.hook { position: relative; }
/* 2026-11-19 관제 #634: 카드 위 콩이는 CSS 그림(.hook::after)에서 누를 수 있는 단추(#kong-ask · 맨 아래 「콩이에게 물어보기」 절)로 바뀜 — 누르면 /ask/ */
.hook .hook-k, .hook .hook-v { padding-right: 96px; }
@keyframes kong-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.coach-mascot { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; margin: -6px 4px -4px -4px; }
.empty-kong { padding-top: 18px; }
.empty-kong img { display: block; margin: 0 auto 6px; width: 96px; height: 96px; object-fit: contain; }
.empty-kong p { margin: 0; }

/* 💩 똥피하기(2026-11-07) — 두더지 기계 틀 안의 하늘 놀이판 · 하트 · 첫 안내 */
.poop-field { position: relative; border-radius: 18px; overflow: hidden; box-shadow: inset 0 6px 14px rgba(0, 0, 0, .3); background: #bfe3ff; touch-action: pan-y; -webkit-user-select: none; user-select: none; }   /* 11/7 회장님 「위아래 드래그」: 게임 전·후엔 세로로 끌어 화면을 넘길 수 있게 · 게임 중에만 none */
.poop-field.playing { touch-action: none; }
.poop-field canvas { display: block; width: 100%; height: auto; }
.poop-field.shake { animation: m-shake .18s linear 1; }
.poop-hearts { position: absolute; left: 10px; top: 8px; font-size: 18px; letter-spacing: 2px; pointer-events: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .2)); }
.poop-hint { position: absolute; left: 12px; right: 12px; bottom: 46px; text-align: center; font-size: 13px; font-weight: 700; color: #1b64da; background: rgba(255, 255, 255, .88); border-radius: 12px; padding: 8px 10px; pointer-events: none; }

/* 💬 첫 화면 말풍선 3초 보임 · 5초 숨김(2026-11-07) */
.hv-bub { transition: opacity .45s ease; }
.hv-bub.off { opacity: 0; pointer-events: none; }

/* 🫁 장면 숨쉬기 영상(2026-11-07) — 정지 그림 위에 같은 틀 · .on 으로 교차 */
.pet-si video.si-v { transition: opacity .35s ease; }
.pet-si video.si-idle { z-index: 2; }

/* 🔇 음악 스튜디오 음소거·완전 끄기(2026-11-07) */
.mu-off { margin-top: 8px; }
.mu-off button.on { background: var(--primary); color: #fff; border-color: transparent; }
.mu-off button.danger { color: #f04452; }

/* 💬 말풍선 다시 나올 땐 90% 투명(2026-11-07) — .off 가 뒤에 있어 숨김이 우선 */
.hv-bub.ghost { opacity: .1; }
.hv-bub.off { opacity: 0; pointer-events: none; }

/* 🎞️ 2026-11-07 회장님 「화면을 누르면 재생 모양이 나온다」 — 브라우저가 그리는 영상 재생 단추·컨트롤 겹을 전부 숨김(우리 영상은 장식이라 손댈 일 없음) */
video::-webkit-media-controls, video::-webkit-media-controls-enclosure, video::-webkit-media-controls-panel, video::-webkit-media-controls-overlay-play-button, video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none !important; opacity: 0 !important; }
.hv-video { pointer-events: none; }
/* 영상이 있는 방은 정지 그림 확대 애니메이션을 끈다(영상과 어긋나 튀어 보임) · 교차는 조금 느리게 */
.pet-si.has-vid img.on { animation: none; }
.pet-si video.si-v { transition: opacity .55s ease; }
.pet-si img { transition: opacity .7s ease; }

/* 🎞️ 2026-11-07 회장님 「깜빡이는 느낌 없애줘」 — 정지 그림 확대 애니메이션은 장면이 바뀔 때마다 배율이 튀어 깜빡여 보여서 완전히 끔 */
.pet-si img.on { animation: none !important; transform: none; }

/* 🎞️ 2026-11-08 회장님 「아직 영상 재생 모양이 검게 나온다(화면을 터치하거나 당기면)」 — 안 보이는 영상은 opacity 만이 아니라 visibility 로도 숨겨 브라우저가 검은 네모·재생 단추를 그릴 틈을 없앤다 · 끌기·길게 누르기·선택 금지 · 첫 화면 영상은 자체 합성 층 */
.pet-si video.si-v, .pet-scene video, .pet-nearbox video.nr-v, .pet-cat video, .hv-video { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; backface-visibility: hidden; }
.pet-si video.si-v:not(.on) { visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.pet-si video.si-v.on { visibility: visible; transition: opacity .55s ease, visibility 0s; }
.pet-scene video:not(.on), .pet-cat.vm video:not(.on) { visibility: hidden; }
.pet-nearbox video.nr-v:not(.on) { visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.pet-nearbox video.nr-v.on { visibility: visible; transition: opacity .25s ease, visibility 0s; }
.hv-video { transform: translateZ(0); }

/* 🫘 혜택 허브 「광고 보고 모야콩 받기」(2026-11-08 회장님 「버튼 파란색으로 · 로고는 모야콩」) — 글 링크를 파란 알약 단추로 · 그림은 모야콩 · 어두운 모드에서도 흰 글자 파란 바탕 */
.hub-ad em { display: inline-block; align-self: flex-start; margin-top: 8px; padding: 9px 16px; border-radius: 999px; background: var(--primary); color: #fff !important; font-weight: 800; font-size: var(--t6); line-height: 1.2; box-shadow: 0 3px 8px rgba(49, 130, 246, .3); }
.hub-ad:active em { background: var(--primary-hover); }
.hub-ad img { animation: none; filter: drop-shadow(0 4px 6px rgba(120, 80, 0, .25)); }

/* 🛒 쿠팡 파트너스 대체 배너(2026-11-08 회장님 「대체형으로 진행」) — 애드몹 하단 배너가 광고를 못 채웠을 때만 같은 자리(알약·탭 바 위)에 50px · 고지 문구 포함 · app.js cpFallback */
.cp-fb { position: fixed; left: 0; right: 0; z-index: 60; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 8px rgba(0, 0, 0, .06); color: var(--text); text-decoration: none; }
.cp-fb .cp-fb-logo { flex: none; font-weight: 900; font-size: 15px; letter-spacing: -.3px; color: #e62d1e; }
.cp-fb .cp-fb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.cp-fb .cp-fb-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-fb .cp-fb-t small { font-size: 10px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-fb .cp-fb-go { flex: none; font-size: 13px; font-weight: 800; color: #fff; background: var(--primary); padding: 7px 12px; border-radius: 999px; }
.cp-fb[hidden] { display: none; }
html.dark .cp-fb { background: #1e2230; border-top-color: #2e3446; }
@media (prefers-color-scheme: dark) { html.auto .cp-fb { background: #1e2230; border-top-color: #2e3446; } }

/* 🫘 「광고 보고 모야콩 받기」 카드 전체를 파란 단추로 · 더 얇게(2026-11-08 회장님 「전체 버튼 파란색으로 해 주고 두께도 조금 더 작게」) — 안쪽 알약은 흰 글자 화살표로 */
.card.hub-pet.hub-ad { background: var(--primary); color: #fff; padding: 10px 16px; gap: 12px; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(49, 130, 246, .28); }
.card.hub-pet.hub-ad:active { background: var(--primary-hover); }
.card.hub-pet.hub-ad img { width: 46px; height: 46px; }
.card.hub-pet.hub-ad b { color: #fff; font-size: var(--t5); }
.card.hub-pet.hub-ad small { color: rgba(255, 255, 255, .85); }
.card.hub-pet.hub-ad em { display: inline; margin-top: 2px; padding: 0; background: transparent; box-shadow: none; color: #fff !important; font-weight: 800; font-size: var(--t6); }
html.dark .card.hub-pet.hub-ad, html.auto .card.hub-pet.hub-ad { background: var(--primary); box-shadow: none; }
html.dark .card.hub-pet.hub-ad em, html.auto .card.hub-pet.hub-ad em { color: #fff; }

/* 📸 사진 카드(2026-11-08 회장님 「버튼 누를 수 있게 · 앨범에 저장」) — 배너 높이만큼 아래를 비우고 카드가 화면에 다 들어오게 · 단추 3개 */
.pet-photo { padding-bottom: calc(20px + var(--ad-h, 0px) + env(safe-area-inset-bottom)); }
.pet-photo .pp-cv { max-height: calc(100vh - 240px - var(--ad-h, 0px)); }
.pet-photo .pp-btns .btn { min-height: 42px; font-size: 14px; padding: 0 6px; white-space: nowrap; }
/* ✅ 저장 확인창(2026-11-12 회장님 「사진저장 누르면 확인창이 뜨게」) — 사진 카드 위에 한 겹 · 카드가 흰 고정 색이라 창도 고정 색(다크 모드에서도 같은 모습) · 「확인」만 닫는다 */
.pet-photo .pp-done { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(25, 31, 40, .5); opacity: 0; transition: opacity .2s ease; }
.pet-photo .pp-done.on { opacity: 1; }
.pet-photo .pp-done-box { width: 100%; max-width: 300px; background: #fff; color: #191f28; border-radius: 20px; padding: 24px 20px 16px; text-align: center; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); transform: scale(.92); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.pet-photo .pp-done.on .pp-done-box { transform: none; }
.pet-photo .pp-done-i { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.pet-photo .pp-done-t { display: block; font-size: 19px; font-weight: 700; line-height: 1.35; color: #191f28; word-break: keep-all; }
.pet-photo .pp-done-d { margin: 6px 0 16px; font-size: 15px; line-height: 1.5; color: #4e5968; word-break: keep-all; }
.pet-photo .pp-done-box .btn { width: 100%; min-height: 48px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .pet-photo .pp-done, .pet-photo .pp-done-box { transition: none; } }

/* 📐 혜택 목록 오와 열(2026-11-08 회장님 「여기 오와 열을 맞춰봐」) — 그림 40 · 글 · 단추 96px 세 칸 격자 · 줄 높이 같게 · 설명은 2줄까지 · 오른쪽 알약은 같은 너비 가운데 글자 */
.rw-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 96px; align-items: center; gap: 14px; min-height: 84px; padding: 10px 0; }
.rw-list .rw-ic, .rw-list img.rw-ic { justify-self: center; }
.rw-t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.rw-list em { justify-self: end; min-width: 96px; box-sizing: border-box; text-align: center; padding: 8px 10px; }
.cp-fb { min-height: 50px; }

/* 📷 최저가 찾기(2026-11-10 회장님 「마트에서 찍으면 최저가」 · 밤 2판 「정사각형 큰 단추 · 검증 애니메이션 · 가격 추이 그래프 · 더 이쁘게」) — 홈 바로가기는 9칸이라 3×3 */
.quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pr-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }   /* 11/12: 1fr 1fr 이면 좁은 폰(320 · 화면 줄임)에서 정사각형 단추가 칸보다 넓어져 화면이 옆으로 38px 밀렸다 → minmax(0, 1fr) + min-width 0 */
.pr-tile { min-width: 0; aspect-ratio: 1 / 1; border: 0; border-radius: 22px; background: var(--card, #fff); color: var(--text, #191f28); box-shadow: 0 4px 16px rgba(25, 31, 40, .08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; padding: 10px; }
.pr-tile small { display: block; font-size: 12px; font-weight: 500; color: var(--text2, #6b7684); margin-top: -6px; }
.pr-tile.primary { background: linear-gradient(160deg, #3182f6, #1b64da); color: #fff; }
.pr-tile.primary small { color: rgba(255,255,255,.8); }
.pr-tile:active { transform: scale(.97); }
.pr-bc { width: 96px; height: 50px; border-radius: 6px; background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px, currentColor 6px 8px, transparent 8px 12px, currentColor 12px 17px, transparent 17px 20px, currentColor 20px 22px, transparent 22px 26px); opacity: .95; }
.pr-tile .pr-em { font-size: 52px; line-height: 1; }
.pr-cam, .pr-shot { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; margin-bottom: 12px; }
.pr-cam video, .pr-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-frame { position: absolute; left: 10%; right: 10%; top: 28%; bottom: 28%; border: 3px solid rgba(255,255,255,.95); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.pr-laser { position: absolute; left: 6%; right: 6%; top: 10%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #4da3ff 20%, #fff 50%, #4da3ff 80%, transparent); box-shadow: 0 0 14px 3px rgba(77, 163, 255, .75); animation: pr-laser 1.5s ease-in-out infinite alternate; pointer-events: none; }
@keyframes pr-laser { from { top: 8%; } to { top: 90%; } }
.pr-shot .pr-st { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pr-shot .pr-st i { width: 10px; height: 10px; border-radius: 50%; background: #4da3ff; box-shadow: 0 0 10px #4da3ff; animation: pr-blink .8s ease-in-out infinite alternate; }
@keyframes pr-blink { from { opacity: .3; } to { opacity: 1; } }
.pr-shot .pr-ok { background: linear-gradient(transparent, rgba(10, 143, 78, .85)); }
.pr-form { display: grid; gap: 10px; }
.pr-form label { display: grid; gap: 4px; font-size: 13px; color: var(--text2, #555); }
.pr-form input { font-size: 16px; padding: 13px 14px; border: 1px solid var(--line, #d9dee5); border-radius: 14px; width: 100%; box-sizing: border-box; background: var(--card, #fff); color: inherit; }
/* 📸 화면 안 카메라로 상품 사진 찍기(2026-11-12 회장님 「상품사진으로찾기 될수있도록해봐」) — 정사각형 보기 · 점선 네모 안이 그대로 찍힌다 · 큰 「찍기」 단추 */
.pr-cam { scroll-margin-top: 108px; }   /* 위에 붙어 있는 머리말(웹은 메뉴 줄까지 약 95px)에 가리지 않게 */
.pr-cam.pr-pm { aspect-ratio: 1 / 1; }
.pr-cam.pr-pm .pr-frame { left: 4%; right: 4%; top: 4%; bottom: 4%; border: 2px dashed rgba(255, 255, 255, .9); box-shadow: none; }
.pr-cam.pr-pm .pr-laser { display: none; }
.pr-snap { margin: 0 0 10px; min-height: 56px; font-size: 18px; }
.pr-hint { margin: 0 0 12px; font-size: 14px; color: var(--text2, #555); }
.pr-hint b { color: var(--blue, #1a73e8); }
.pr-top { text-align: center; padding: 18px 14px 14px; }
.pr-top small { display: block; color: var(--text2, #666); font-size: 13px; }
.pr-top > b { display: block; font-size: 34px; font-weight: 800; color: var(--blue, #1a73e8); letter-spacing: -.5px; margin-top: 2px; }
.pr-save { display: block; font-style: normal; margin-top: 6px; color: #0a8f4e; font-weight: 700; }
.pr-save.bad { color: var(--text2, #666); font-weight: 500; }
.pr-name { margin: 8px 0 0; font-size: 14px; color: var(--text2, #555); }
.pr-chart { margin: 14px 0 4px; text-align: left; }
.pr-chart svg { width: 100%; height: 96px; display: block; }
.pr-chart .pr-cl { display: flex; justify-content: space-between; font-size: 11px; color: var(--text2, #666); margin-top: 2px; }
.pr-chart .pr-ct { font-size: 12px; color: var(--text2, #666); margin: 6px 0 0; }
.pr-buy { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 15px; border-radius: 14px; background: var(--blue, #1a73e8); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; }
.pr-buy:active { opacity: .85; }
.pr-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; margin-bottom: 8px; padding: 12px; }
.pr-row > img, .pr-noimg { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; background: #f1f3f6; display: grid; place-items: center; font-size: 28px; }
.pr-t { display: grid; gap: 3px; min-width: 0; }
.pr-t b { font-size: 18px; }
.pr-t small { font-size: 12px; color: var(--text2, #666); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pr-tag { font-style: normal; font-size: 11px; font-weight: 700; background: #e8f0fe; color: #1a73e8; border-radius: 6px; padding: 2px 7px; justify-self: start; }
.pr-tag.rk { background: #ffe9e9; color: #e52528; }
.pr-tag.soft { background: #f1f3f6; color: #555; }
.pr-go { font-weight: 800; color: #fff; background: var(--blue, #1a73e8); border-radius: 10px; padding: 8px 10px; white-space: nowrap; font-size: 13px; }
.pr-nv { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: inherit; padding: 14px; }
.pr-nv b { color: #03c75a; }
.pr-disc { font-size: 12px; }
html.dark .pr-tile { box-shadow: none; }
html.dark .pr-row > img, html.dark .pr-noimg, html.dark .pr-tag.soft { background: #2a2f36; }
html.dark .pr-tag { background: #1e2a3d; color: #7fb3ff; }
html.dark .pr-tag.rk { background: #3a1e1e; color: #ff7a7a; }
/* 🏷️ 쿠팡·네이버 로고 · 📊 가격 비교 · 📈 가격 추이(2026-11-12 밤 회장님 「찍으면 바로 나열 · 로고 · 가격 비교 그래프 · 가격 추이 그래프」)
   결과(.pr-out)는 사진 바로 아래 — 스크롤은 price.js reveal() 이 찍은 사진의 확인 글 띠부터 보이게 맞춘다.
   그래프: 막대 16px · 값 쪽 끝만 4px 둥글게 · 0원부터 · 한 가지 색(매장 가격만 회색) · 글자는 본문 색 · 선 2px · 점은 바탕색 테두리 · 면은 10% · 눈금선은 가는 실선 */
.pr-lg { display: inline-block; vertical-align: middle; height: 14px; width: auto; margin-right: 5px; }
.pr-lg.nv { height: 22px; width: 22px; margin: 0; flex: none; }
.pr-top small .pr-lg { height: 15px; vertical-align: -3px; }
.pr-lgchip { display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 5px 8px; }
.pr-lgchip .pr-lg { height: 15px; margin: 0; }
.pr-h { display: flex; align-items: center; gap: 4px; margin: 18px 4px 10px; }
.pr-h .pr-lg { height: 20px; }
.pr-tags { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.pr-tag.lg { display: inline-flex; align-items: center; background: #fff; border: 1px solid #e5e8eb; padding: 4px 7px; line-height: 0; }
.pr-tag.lg .pr-lg { height: 12px; width: auto; max-width: none; margin: 0; display: block; }
.pr-nv b { color: inherit; }
.pr-nvl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pr-nvl small { display: block; font-size: 12px; color: var(--text2, #666); }
.pr-viz { --pr-series: #3182f6; --pr-ref: #6b7684; margin-top: 8px; }
html.dark .pr-viz { --pr-series: #4593fc; --pr-ref: #8b95a1; }
html.dark .pr-top small .pr-lg, html.dark .pr-h .pr-lg, html.dark .pr-vs .pr-lg { background: #fff; border-radius: 4px; padding: 2px 4px; box-sizing: content-box; }
html.dark .pr-tag.lg { background: #fff; border-color: #fff; }
@media (prefers-color-scheme: dark) {
  html.auto .pr-viz { --pr-series: #4593fc; --pr-ref: #8b95a1; }
  html.auto .pr-top small .pr-lg, html.auto .pr-h .pr-lg, html.auto .pr-vs .pr-lg { background: #fff; border-radius: 4px; padding: 2px 4px; box-sizing: content-box; }
  html.auto .pr-tag.lg { background: #fff; border-color: #fff; }
}
.pr-viz h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.pr-vs { margin: 0 0 14px; font-size: 13px; color: var(--text2, #666); }
.pr-vs .pr-lg { height: 12px; vertical-align: -1px; }
.pr-bars { display: grid; gap: 12px; }
.pr-bar { display: grid; gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
.pr-bl { font-size: 13px; color: var(--text2, #555); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-bt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pr-bt i { display: block; flex: none; height: 16px; min-width: 3px; background: var(--pr-series); border-radius: 0 4px 4px 0; }
.pr-bar.st .pr-bt i { background: var(--pr-ref); }
.pr-bt b { font-size: 14px; font-weight: 700; color: var(--text, #191f28); white-space: nowrap; }
.pr-bt em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text2, #555); border: 1px solid var(--line, #e5e8eb); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.pr-bar:active .pr-bt i { opacity: .8; }
.pr-tsvg { display: block; width: 100%; height: auto; touch-action: pan-y; overflow: visible; }
.pr-tsvg .g { stroke: var(--line, #e5e8eb); stroke-width: 1; }
.pr-tsvg .gt, .pr-tsvg .xt { font-size: 10px; fill: var(--text2, #6b7684); }
.pr-tsvg .el { font-size: 12px; font-weight: 700; fill: var(--text, #191f28); }
.pr-tsvg .a { fill: var(--pr-series); opacity: .1; }
.pr-tsvg .l { fill: none; stroke: var(--pr-series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pr-tsvg .d, .pr-tsvg .hd { fill: var(--pr-series); stroke: var(--card, #fff); stroke-width: 2; }
.pr-tsvg .ch { stroke: var(--text2, #6b7684); stroke-width: 1; }
.pr-ro { margin: 8px 0 0; font-size: 13px; color: var(--text2, #666); }

/* 안내 글 대표 사진 · 글 끝 앱 받기 상자(2026-11-12 관제 #567 — 앞머리 image·appbox 가 있는 새 글만) */
.guide-hero { margin: 12px 0 16px; }
.guide-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); background: var(--grey100); }
.guide-app { background: var(--grey50); border-radius: var(--r-card); padding: 20px; margin: 28px 0 12px; }
.guide-app p { margin: 0 0 6px; }
.guide-app .guide-app-t { font-weight: 700; font-size: var(--t4); line-height: var(--t4-lh); }
.guide-app .guide-app-d { color: var(--text2); margin-bottom: 14px; }
.guide-app .btn { color: #fff; text-decoration: none; }
html.app .guide-app, html.no-android .guide-app { display: none; }

/* 안내 글 버튼 @> [글자](주소) — 2026-11-17 */
.gbtn-wrap { margin: 18px 0; }
.gbtn-wrap .gbtn { color: #fff; text-decoration: none; }

/* 안내 글 목차(2026-11-17) */
.guide-toc { background: var(--grey50); border-radius: var(--r-card); padding: 14px 18px; margin: 14px 0 18px; }
.guide-toc summary { font-weight: 700; cursor: pointer; }
.guide-toc ol { margin: 10px 0 0; padding-left: 20px; }
.guide-toc li { margin: 4px 0; }
.guide-toc a { color: var(--text2); text-decoration: none; }
.prose.guide h2 { scroll-margin-top: 72px; }

/* 광고 자리(애드센스 승인 뒤) — 본문과 구분되게 「광고」 표시 + 여백. 2026-11-17 */
.ad-mid, .prose .ad { margin: 32px 0; }
.ad-mid::before { content: "광고"; display: block; font-size: 11px; color: var(--text3); margin-bottom: 6px; }

/* 🐹 콩이에게 물어보기(2026-11-19 관제 #634 · 회장님 「지원금모야 캐릭터에게도 궁금한 점 등을 물어서 답할 수 있게」 · 「캐릭터는 살짝 움직이게 — 숨쉬기·손 흔들기 정도」)
 * .kongl = 살아 있는 콩이: 몸(kong_hi_body) + 흔드는 팔(kong_hi_arm · 어깨 80% 55.9% 중심 — tools/make_kong_wave.py PIVOT). 합성 단계(transform)만 써서 가볍다. 움직임 줄이기 설정이면 가만히.
 * 홈 = #kong-ask(카드 오른쪽 위 · 누르면 /ask/) · 대화 화면 = body.askp(말풍선 .ab · 아래 고정 입력 띠 .ask-dock). 색은 변수만 써서 어두운 화면도 그대로. */
.kongl { display: inline-block; position: relative; aspect-ratio: 340 / 415; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12)); }
.kongl-in { display: block; position: absolute; inset: 0; transform-origin: 50% 100%; animation: kong-breathe 3.4s ease-in-out infinite; }
.kongl img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.kongl-arm { transform-origin: 80% 55.9%; animation: kong-wave 4.6s ease-in-out infinite; }
@keyframes kong-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.028); } }
@keyframes kong-wave { 0%, 52%, 100% { transform: rotate(0deg); } 60% { transform: rotate(-9deg); } 68% { transform: rotate(7deg); } 76% { transform: rotate(-9deg); } 84% { transform: rotate(7deg); } 92% { transform: rotate(0deg); } }
.kongl.talk .kongl-in { animation: kong-talk .42s ease-in-out infinite; }
.kongl.talk .kongl-arm { animation: kong-wave-fast .7s ease-in-out infinite; }
@keyframes kong-talk { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-2px) scale(1.01, 1.02); } }
@keyframes kong-wave-fast { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(7deg); } }
.kong-ask { position: absolute; right: 8px; top: 4px; z-index: 2; width: 92px; display: flex; flex-direction: column; align-items: center; text-decoration: none; -webkit-tap-highlight-color: transparent; }
/* 📸 확대 화면의 사진 단추(2026-11-19 회장님 「확대할 때 사진 찍으면 그 순간을 찰칵」) — 「방으로」 맞은편(왼쪽 위) · 누르면 지금 보이는 그 순간을 찍는다(reward.js NEAR.shot) */
.pet-nearshot { position: absolute; left: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); font-size: 20px; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); cursor: pointer; }
.pet-nearshot:active { transform: scale(.92); }
.kong-ask:hover { text-decoration: none; }
.hook .hook-s { padding-right: 70px; }   /* 「내 지원금 87개」처럼 숫자 줄이 한 줄이면 그 아래 줄이 「물어보기」 꼬리표 높이에 온다 — 글이 길거나 큰 글씨여도 겹치지 않고 줄이 바뀌게(11/19 시험폰) */
.kong-ask .kongl { width: 82px; transition: transform .12s ease; }
.kong-ask:active .kongl { transform: scale(.95); }
.kong-tag { position: relative; margin-top: -12px; padding: 3px 10px; border-radius: 999px; background: var(--card); color: var(--weak-text); font-size: 12px; font-weight: 700; line-height: 1.35; white-space: nowrap; box-shadow: 0 1px 5px rgba(0, 0, 0, .16); }
body.askp main.wrap { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
body.app.askp main.wrap { padding-bottom: calc(196px + var(--ad-h, 0px) + env(safe-area-inset-bottom)); }
body.askp .foot { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
body.app.askp .foot { padding-bottom: calc(210px + var(--ad-h, 0px) + env(safe-area-inset-bottom)); }
body.askp .jm-appcta { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
.ask-head { display: flex; align-items: center; gap: 12px; padding: 14px 0 6px; }
.ask-head .kongl { flex: 0 0 62px; width: 62px; }
.ask-head-t { flex: 1; min-width: 0; }
.ask-head-t h1 { margin: 0; font-size: var(--t4); line-height: var(--t4-lh); }
.ask-head-t p { margin: 2px 0 0; color: var(--text2); font-size: var(--t7); line-height: var(--t7-lh); }
.ask-reset { flex: 0 0 auto; border: 0; background: var(--grey100); color: var(--text2); font-size: var(--t7); font-weight: 600; padding: 8px 12px; border-radius: 10px; font-family: inherit; cursor: pointer; }
.ask-chat { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 6px; min-height: 36vh; }
.ab { display: flex; gap: 8px; align-items: flex-start; scroll-margin-top: 76px; }
.ab.me { justify-content: flex-end; }
.ab-av { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--weak-bg); overflow: hidden; display: flex; align-items: flex-start; justify-content: center; }
.ab-av img { width: 30px; height: auto; margin-top: 3px; }
.ab-b { min-width: 0; max-width: calc(100% - 42px); background: var(--card); color: var(--text); border-radius: 4px 18px 18px 18px; padding: 12px 14px; font-size: var(--t6); line-height: var(--t6-lh); word-break: keep-all; overflow-wrap: anywhere; }
.ab.me .ab-b { max-width: 82%; background: var(--weak-bg); color: var(--weak-text); border-radius: 18px 4px 18px 18px; font-weight: 600; }
.ab-b p { margin: 0 0 8px; }
.ab-b p:last-child { margin-bottom: 0; }
.ab-b a { color: var(--weak-text); }
.ab-b .ab-note { margin-top: 8px; color: var(--text3); font-size: var(--t7); line-height: var(--t7-lh); }
.ab-list { margin: 8px -4px; border-radius: 14px; background: var(--bg); overflow: hidden; }
.ab-list .rl { min-height: 64px; padding: 10px; gap: 10px; color: var(--text); }
.ab-list .rl + .rl { border-top: 1px solid var(--line); }
.ab-list .rl-ico { flex-basis: 40px; width: 40px; height: 40px; border-radius: 13px; background: var(--card); font-size: 22px; }
.ab-list .rl-ico img { width: 26px; height: 26px; }
.ab-list .rl-t b { font-size: var(--t6); line-height: var(--t6-lh); }
.ab-list .rl-go { padding: 6px 10px; background: var(--card); }
.ab-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ab-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--grey100); color: var(--text2); font-size: var(--t7); font-weight: 600; line-height: 1.3; text-decoration: none; font-family: inherit; cursor: pointer; text-align: left; }
.ab-chip:hover { text-decoration: none; }
.ab-b a.ab-chip.go, .ab-chip.go { background: var(--weak-bg); color: var(--weak-text); }
.ab-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 8px 0 0; font-size: var(--t7); line-height: var(--t7-lh); }
.ab-dl dt { color: var(--text3); font-weight: 600; white-space: nowrap; }
.ab-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ab-dl .dd { font-style: normal; font-weight: 700; color: var(--danger); }
.ab-ol { margin: 6px 0 0; padding-left: 20px; }
.ab-ol li { margin: 6px 0; }
.ab-dots { display: inline-flex; gap: 4px; padding: 5px 2px; }
.ab-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey400); animation: ab-dot 1s ease-in-out infinite; }
.ab-dots i:nth-child(2) { animation-delay: .15s; }
.ab-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ab-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ask-opts { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 8px 42px; }
.ask-opts[hidden] { display: none; }
.ask-opts .ab-chip.opt { min-height: 40px; padding: 8px 14px; background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t6); }
.ask-opts .ab-chip.skip { background: transparent; color: var(--text3); }
.ask-note { margin: 14px 0 0; color: var(--text3); font-size: 12px; line-height: 1.5; }
.ask-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--bg); padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
body.app .ask-dock { bottom: calc(60px + var(--ad-h, 0px) + env(safe-area-inset-bottom)); padding-bottom: 8px; }
.ask-dock-in { max-width: var(--s-max); margin: 0 auto; padding: 0 var(--s-gutter); }
.ask-faq { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--s-gutter)); padding: 0 var(--s-gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ask-faq::-webkit-scrollbar { display: none; }
.ask-q { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--card); color: var(--text); font-size: var(--t7); font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); font-family: inherit; cursor: pointer; }
.ask-form { display: flex; align-items: center; gap: 8px; }
.ask-form input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); color: var(--text); font-size: 16px; font-family: inherit; outline: none; }
.ask-form input:focus { border-color: var(--primary); }
.ask-form button { flex: 0 0 48px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--primary); cursor: pointer; }
.ask-form button svg { width: 22px; height: 22px; fill: #fff; }
@media (prefers-reduced-motion: reduce) { .kongl-in, .kongl-arm, .ab-dots i { animation: none !important; } }
