/* 우리 언제 만날까? — 화면 꾸밈 v1.3
   v1.3 (2026-12-02): 달력이 말풍선, 홈 화면 설치 카드, 공지 띠, 관리자 화면
   v1.2 (2026-11-28): 첫 화면 소개(예시 격자 움직임·3단계), 모임 열기 단계 카드, 종류 아이콘 타일(줄바꿈), 기간 달력 표시
   v1 (2026-11-28): 처음 만듦. 공통 부품 규격(글자 6단계, 모서리 카드 14·단추 10·알약), 밝게/어둡게, 큰 글자 3단계
   v1.1 (2026-11-28): 어둡게 보기에서 빈 칸이 너무 안 보여서 칸 바탕·테두리를 조금 밝게 */

/* ── 색과 규격 ───────────────────────────── */
:root {
  --house: #1E3932; --green: #00704A; --mint: #D4E9E2; --cream: #F2F0EB; --gold: #8A6410; --gold-bright: #E3B54A;
  --peach: #FBE8D8;
  --bg: #F2F0EB; --bg-soft: #F7F6F2; --card: #FFFFFF; --ink: #1E3932; --muted: #4A5A55; --faint: #6B7A75;
  --line: #E4E0D7; --chip: #F2F0EB; --cell-empty: #F5F3EE; --input: #FFFFFF;
  --heat0: #FAF9F6; --heat1: #F7ECCB; --heat2: #E9C766; --heat3: #B9862A;
  --dot: #5A4307; --dot-on3: #FFFFFF;
  --primary: #00704A; --primary-ink: #FFFFFF; --dark-btn: #1E3932; --dark-btn-ink: #FFFFFF;
  --shadow: 0 6px 20px rgba(30, 57, 50, .08); --shadow-s: 0 1px 4px rgba(30, 57, 50, .12);
  --r-card: 14px; --r-btn: 10px; --r-pill: 999px;
  --fs-1: .75rem; --fs-2: .8125rem; --fs-3: .9375rem; --fs-4: 1.125rem; --fs-5: 1.5rem; --fs-6: 1.75rem;
  --btn: 38px; --btn-s: 32px; --btn-t: 28px; --font: 'IBM Plex Sans KR', system-ui, -apple-system, 'Malgun Gothic', sans-serif;
}
[data-theme="dark"] {
  --bg: #0F1E1A; --bg-soft: #15271F; --card: #172B25; --ink: #EEF2EF; --muted: #B7C6C0; --faint: #9AABA4;
  --line: #34504A; --chip: #213731; --cell-empty: #243D35; --input: #12231E;
  --mint: #24463B; --peach: #3A2B20;
  --heat0: #233B33; --heat1: #4A4224; --heat2: #8A7330; --heat3: #E3B54A;
  --dot: #F2E3B8; --dot-on3: #1E1606;
  --primary: #2E9E71; --primary-ink: #04140E; --dark-btn: #E3B54A; --dark-btn-ink: #1E1606; --gold: #E3B54A;
  --shadow: 0 6px 20px rgba(0, 0, 0, .3); --shadow-s: 0 1px 4px rgba(0, 0, 0, .35);
}
html[data-size="m"] { font-size: 16px; }
html[data-size="l"] { font-size: 18px; }
html[data-size="xl"] { font-size: 20px; }
@media (max-width: 640px) { :root { --btn: 40px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; display: inline-block; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; user-select: none; }
.ms.fill { font-variation-settings: 'FILL' 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

/* ── 로딩 화면 ───────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 50; background: radial-gradient(120% 80% at 50% 0%, #1E3932 0%, #0B1714 70%); display: flex; align-items: center; justify-content: center; transition: opacity .4s; }
.loader.hide { opacity: 0; pointer-events: none; }
.sky { position: absolute; inset: 0; overflow: hidden; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #F2F0EB; animation: twinkle 2.4s infinite ease-in-out; }
.star:nth-child(2n) { animation-delay: .8s; width: 3px; height: 3px; }
.star:nth-child(3n) { animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.shoot { position: absolute; top: 14%; left: 70%; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), #F2E3B8); transform: rotate(-28deg); animation: shoot 3.2s infinite ease-in; opacity: 0; }
.shoot.s2 { top: 34%; left: 90%; animation-delay: 1.6s; }
@keyframes shoot { 0% { opacity: 0; transform: translate(0,0) rotate(-28deg); } 8% { opacity: 1; } 30% { opacity: 0; transform: translate(-260px, 140px) rotate(-28deg); } 100% { opacity: 0; } }
.loader-text { position: relative; text-align: center; color: #F2F0EB; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.loader-title { font-size: 1.375rem; font-weight: 700; }
.loader-sub { font-size: var(--fs-2); color: #C9D6D0; }

/* ── 바탕 구조 ───────────────────────────── */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding-bottom: calc(96px + env(safe-area-inset-bottom)); animation: fadeIn .3s ease; }
.app.wide { max-width: 1120px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 8px; }
.head .grow { flex: 1; min-width: 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-3); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: block; }
.title { font-size: var(--fs-4); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.sub { font-size: var(--fs-1); color: var(--muted); margin-top: 2px; }
.icon-btn { width: var(--btn); height: var(--btn); border-radius: 12px; border: 0; background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-s); flex: none; transition: transform .08s; }
.icon-btn:active, .btn:active, .chip-btn:active, .top-card:active { transform: scale(.96); }
.icon-btn.plain { background: transparent; box-shadow: none; }
.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.section { padding: 0 16px; }
.label { font-size: var(--fs-2); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.hint { font-size: var(--fs-1); color: var(--muted); }

/* 단추 */
.btn { height: var(--btn); border-radius: var(--r-btn); border: 0; padding: 0 16px; font-size: var(--fs-3); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--chip); color: var(--ink); transition: transform .08s, filter .15s; }
.btn.big { height: 52px; border-radius: 16px; font-size: 1rem; }
.btn.pill { border-radius: var(--r-pill); }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.dark { background: var(--dark-btn); color: var(--dark-btn-ink); }
.btn.white { background: var(--card); box-shadow: var(--shadow-s); }
.btn.line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { height: var(--btn-s); font-size: var(--fs-2); padding: 0 12px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:hover:not(:disabled) { filter: brightness(1.05); }
.chip-btn { height: var(--btn-s); padding: 0 12px; border-radius: var(--r-pill); border: 0; background: var(--chip); color: var(--ink); font-size: var(--fs-2); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.chip-btn.on { background: var(--primary); color: var(--primary-ink); }
.seg { display: inline-flex; background: var(--chip); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 0; background: transparent; font-size: var(--fs-2); font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--primary); color: var(--primary-ink); }
.seg.light button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }
.switch { width: 52px; height: 30px; border-radius: var(--r-pill); border: 0; background: #CFCBC2; position: relative; padding: 0; flex: none; transition: background .2s; }
[data-theme="dark"] .switch { background: #3A4F48; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { left: 25px; }

/* 입력칸 */
.field { display: flex; flex-direction: column; gap: 6px; }
.input { height: var(--btn); border-radius: 12px; border: 1.5px solid var(--line); background: var(--input); padding: 0 14px; font-size: var(--fs-3); color: var(--ink); width: 100%; }
.input:focus { border-color: var(--primary); outline: none; }
textarea.input { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.big-input { width: 100%; height: 54px; border: 0; border-bottom: 2px solid var(--primary); background: transparent; font-size: 1.3rem; font-weight: 600; color: var(--ink); padding: 0 2px; border-radius: 0; }
.big-input:focus { outline: none; border-bottom-width: 3px; }
.big-input::placeholder, .input::placeholder { color: var(--faint); font-weight: 400; }

/* ── 만들기 화면 ─────────────────────────── */
.hero { position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob.b1 { width: 240px; height: 240px; background: var(--mint); top: -130px; right: -80px; }
.blob.b2 { width: 96px; height: 96px; background: var(--peach); top: 40px; right: 130px; }
.home-bg { background: var(--card); }
.make-title { font-size: var(--fs-6); font-weight: 700; line-height: 1.3; margin: 0; }
.tags { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tags::-webkit-scrollbar { display: none; }
.cal-head { display: flex; align-items: center; gap: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal .dow { font-size: var(--fs-1); color: var(--muted); padding: 4px 0; }
.cal .dow.sun { color: #B3412E; }
[data-theme="dark"] .cal .dow.sun { color: #F0937F; }
.day { height: 40px; border-radius: 12px; border: 0; background: var(--bg-soft); font-size: var(--fs-2); font-weight: 600; color: var(--ink); padding: 0; }
.day.on { background: var(--primary); color: var(--primary-ink); }
.day.past { background: transparent; color: var(--faint); opacity: .5; cursor: default; }
.day.today { box-shadow: inset 0 0 0 1.5px var(--primary); }
.day.blank { visibility: hidden; }
.range { position: relative; height: 34px; margin: 0 12px; }
.range .track { position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 99px; background: var(--chip); }
.range .fill { position: absolute; top: 13px; height: 8px; border-radius: 99px; background: var(--primary); }
.range input { position: absolute; left: -13px; width: calc(100% + 26px); top: 0; height: 34px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: grab; }
.range input::-webkit-slider-runnable-track, .range input::-moz-range-track { background: none; }
.range-scale { display: flex; justify-content: space-between; font-size: var(--fs-1); color: var(--muted); margin-top: 4px; }
.opt-box { background: var(--bg-soft); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.opt-row { display: flex; align-items: center; gap: 10px; }
.opt-row .grow { flex: 1; min-width: 0; }
.opt-row .ms { color: var(--primary); }
.name-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.recent { display: flex; flex-direction: column; gap: 8px; }
.recent a { text-decoration: none; color: inherit; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--bg-soft); }
.recent-item .ms { color: var(--primary); }

/* ── 첫 화면 소개 ────────────────────────── */
.intro-top { position: relative; padding: 22px 22px 14px; }
.intro-title { margin: 0; font-size: var(--fs-6); line-height: 1.35; font-weight: 700; letter-spacing: -.3px; }
.intro-title span { color: var(--primary); box-shadow: inset 0 -.45em 0 var(--heat1); }
.intro-sub { margin: 10px 0 0; font-size: var(--fs-3); color: var(--muted); line-height: 1.6; }
.demo { padding: 16px; }
.demo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.demo-grid { display: grid; grid-template-columns: 52px repeat(5, minmax(0, 1fr)); gap: 5px; align-items: center; }
.demo-grid b { text-align: center; font-size: var(--fs-1); color: var(--muted); }
.demo-grid em { font-style: normal; font-size: 10px; color: var(--muted); text-align: right; padding-right: 4px; }
.dc { position: relative; height: 30px; border-radius: 8px; background: var(--cell-empty); display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 4px; animation: dfill 7s var(--d) infinite both; }
.dc i { width: 4px; height: 4px; border-radius: 50%; background: var(--dot); opacity: 0; animation: dfade 7s var(--d) infinite both; }
.dc .ms { position: absolute; top: 4px; font-size: 13px; color: #fff; opacity: 0; animation: dstar 7s infinite both; }
.dc.best { animation: dfill 7s var(--d) infinite both, dglow 7s infinite both; }
.dc.best i { background: #fff; }
@keyframes dfill { 0%, 6% { background: var(--cell-empty); } 16%, 88% { background: var(--c); } 100% { background: var(--cell-empty); } }
@keyframes dfade { 0%, 8% { opacity: 0; } 18%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dstar { 0%, 44% { opacity: 0; transform: scale(.4); } 52%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes dglow { 0%, 44% { box-shadow: none; } 52%, 88% { box-shadow: 0 0 0 3px var(--gold-bright), 0 0 16px rgba(227,181,74,.7); } 100% { box-shadow: none; } }
.demo-badge { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--house); color: #fff; font-size: var(--fs-2); animation: dbadge 7s infinite both; }
.demo-badge .ms { color: var(--gold-bright); }
[data-theme="dark"] .demo-badge { background: #2A4A3F; }
@keyframes dbadge { 0%, 46% { opacity: .15; transform: translateY(4px); } 54%, 88% { opacity: 1; transform: none; } 100% { opacity: .15; } }
.how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.how li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--bg-soft); }
.how li > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.how li > div b { font-size: var(--fs-3); }
.how li > div span { font-size: var(--fs-1); color: var(--muted); line-height: 1.5; }
.how li > .ms { color: var(--primary); font-size: 24px; }
.how-n { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: var(--fs-2); display: flex; align-items: center; justify-content: center; flex: none; }
.feat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.feat span { height: 30px; padding: 0 10px; border-radius: var(--r-pill); background: var(--mint); font-size: var(--fs-1); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.feat .ms { font-size: 16px; color: var(--primary); }
.foot { text-align: center; padding: 30px 22px 6px; font-size: var(--fs-1); color: var(--muted); }
.foot span { color: var(--faint); }

.char-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.char { width: 64px; height: 64px; flex: none; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
.bubble { position: relative; background: var(--card); border-radius: 16px; padding: 10px 14px; font-size: var(--fs-2); font-weight: 600; box-shadow: var(--shadow-s); }
.bubble::before { content: ''; position: absolute; left: -6px; top: 50%; width: 12px; height: 12px; background: var(--card); transform: translateY(-50%) rotate(45deg); }
.install-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 1.5px dashed var(--primary); background: var(--card); color: var(--ink); text-align: left; }
.install-card img { border-radius: 12px; flex: none; }
.install-card b { display: block; font-size: var(--fs-3); }
.install-card .grow > span { font-size: var(--fs-1); color: var(--muted); }
.install-card > .ms { color: var(--primary); }
.notice { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 9px 16px; background: var(--gold-bright); color: #1E1606; font-size: var(--fs-2); font-weight: 600; text-align: center; }
.notice .ms { font-size: 18px; }

/* ── 관리자 화면 ─────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.kpi small { display: block; font-size: var(--fs-1); color: var(--muted); }
.kpi b { font-size: 1.6rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; font-size: 10px; color: var(--muted); }
.bars i { width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--primary); min-height: 3px; }
.bars div:last-child i { background: var(--gold-bright); }
.list-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-2); }
.list-row:first-child { border-top: 0; }
.list-row .grow { min-width: 0; }
.list-row .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.err-msg { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }

/* ── 모임 열기 단계 ──────────────────────── */
.progress { display: flex; gap: 4px; margin-top: 6px; max-width: 180px; }
.progress i { flex: 1; height: 5px; border-radius: 9px; background: var(--chip); }
.progress i.on { background: var(--primary); }
.step-card { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.home-bg .step-card { background: var(--bg-soft); box-shadow: none; }
.step-label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-3); font-weight: 700; margin-bottom: 10px; }
.step-label .ms { color: var(--primary); font-size: 20px; }
.step-label .opt { font-weight: 400; font-size: var(--fs-1); color: var(--muted); }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.tag-tile { height: 68px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: var(--fs-2); font-weight: 600; padding: 0; transition: transform .08s; }
.tag-tile .ms { font-size: 24px; color: var(--primary); }
.tag-tile.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.tag-tile.on .ms { color: var(--primary-ink); }
.tag-tile:active { transform: scale(.95); }
.mode-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 14px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.mode .ms { color: var(--primary); font-size: 22px; margin-bottom: 4px; }
.mode b { font-size: var(--fs-3); }
.mode span { font-size: var(--fs-1); color: var(--muted); }
.mode.on { border-color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); background: var(--mint); }
#monthLabel { white-space: nowrap; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.day.in { background: var(--mint); color: var(--ink); border-radius: 6px; }
.day.r-start { border-radius: 12px 6px 6px 12px; }
.day.r-end { border-radius: 6px 12px 12px 6px; }
.sum-pill { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--house); color: #fff; font-size: var(--fs-3); font-weight: 600; }
[data-theme="dark"] .sum-pill { background: #2A4A3F; }
.sum-pill .ms { color: var(--gold-bright); }
.time-read { margin: 14px 2px 6px; font-size: var(--fs-3); }
.time-read b { color: var(--primary); font-size: var(--fs-4); }
.summary { border-radius: 18px; padding: 16px; background: var(--house); color: #fff; display: flex; flex-direction: column; gap: 8px; }
[data-theme="dark"] .summary { background: #2A4A3F; }
.sum-row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-3); }
.sum-row .ms { color: var(--gold-bright); font-size: 18px; }

/* ── 모임 화면 ───────────────────────────── */
.meet-grid { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) {
  .meet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; padding: 0 20px; }
  .meet-grid .side { position: sticky; top: 16px; }
  .meet-grid .section { padding: 0; }
}
.banner { margin: 0 16px; border-radius: 18px; padding: 14px 16px; background: var(--house); color: #fff; display: flex; flex-direction: column; gap: 10px; }
[data-theme="dark"] .banner { background: #23463B; }
.banner .row { display: flex; align-items: center; gap: 10px; }
.banner .btn { height: 36px; font-size: var(--fs-2); }
.banner .btn.on-dark { background: rgba(255,255,255,.14); color: #fff; }
.banner .btn.gold { background: var(--gold-bright); color: #1E1606; }
.tops { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 6px; scrollbar-width: none; }
.tops::-webkit-scrollbar { display: none; }
.side .tops { flex-direction: column; overflow: visible; padding: 4px 0 0; }
.top-card { flex: 1 0 104px; border: 0; border-radius: 16px; padding: 10px 10px; text-align: left; display: flex; flex-direction: column; gap: 2px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); transition: transform .08s; }
.top-card.best { background: var(--house); color: #fff; }
[data-theme="dark"] .top-card.best { background: #2A4A3F; box-shadow: inset 0 0 0 1.5px var(--gold-bright); }
.top-card .k { font-size: var(--fs-1); opacity: .9; display: flex; align-items: center; gap: 3px; }
.top-card .d { font-size: var(--fs-3); font-weight: 700; }
.top-card .t { font-size: var(--fs-1); opacity: .9; }
.side .top-card { flex: none; flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; }
.side .top-card .txt { flex: 1; }
.ring { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.ring b { width: 30px; height: 30px; border-radius: 50%; background: var(--card); color: var(--ink); font-size: var(--fs-1); display: flex; align-items: center; justify-content: center; }
.top-card.best .ring b { background: var(--house); color: #fff; }
[data-theme="dark"] .top-card.best .ring b { background: #2A4A3F; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px 16px; color: var(--muted); font-size: var(--fs-2); }
.empty svg { width: 84px; height: 64px; }

.paint { margin: 0 12px; padding: 12px 8px 12px 4px; }
.only-wide { display: none !important; }
@media (min-width: 900px) {
  .only-wide { display: flex !important; }
  .only-narrow { display: none !important; }
  .meet-grid .main .paint, .meet-grid .main .tip { margin: 0; }
}
.paint-head { display: flex; align-items: center; gap: 6px; padding: 0 4px 10px 10px; flex-wrap: wrap; }
.paint-head .grow { flex: 1; min-width: 120px; }
.grid-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.g { display: grid; gap: 4px; min-width: 100%; }
.g .corner, .g .tl { position: sticky; left: 0; z-index: 2; background: var(--card); }
.g .dh { text-align: center; font-size: var(--fs-1); line-height: 1.25; padding-bottom: 4px; }
.g .dh b { display: block; font-size: var(--fs-2); }
.g .dh.sun b { color: #B3412E; }
[data-theme="dark"] .g .dh.sun b { color: #F0937F; }
.g .dh span { color: var(--muted); }
.g .tl { font-size: 10px; color: var(--muted); text-align: right; padding-right: 6px; display: flex; align-items: flex-start; justify-content: flex-end; line-height: 1; transform: translateY(-5px); }
.cell { position: relative; border: 0; border-radius: 9px; padding: 0; background: var(--cell-empty); touch-action: none; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 4px; transition: background .12s; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cell.h0 { background: var(--heat0); box-shadow: inset 0 0 0 1px var(--line); }
.cell.h1 { background: var(--heat1); }
.cell.h2 { background: var(--heat2); }
.cell.h3 { background: var(--heat3); }
.cell.mine-solid { background: var(--primary); }
.cell.ring-full { box-shadow: inset 0 0 0 2.5px var(--primary); }
.cell.ring-part { box-shadow: inset 0 0 0 2px var(--primary); outline: 1.5px dashed var(--primary); outline-offset: -5px; }
.cell .chk { position: absolute; top: 2px; left: 3px; font-size: 14px; color: var(--primary); font-variation-settings: 'FILL' 1; }
.cell.h3 .chk, .cell.mine-solid .chk { color: #fff; }
[data-theme="dark"] .cell.h3 .chk { color: #0F1E1A; }
.cell .pl { position: absolute; top: 2px; right: 3px; font-size: 9px; font-weight: 700; color: var(--primary); }
.cell .dt { width: 4px; height: 4px; border-radius: 50%; background: var(--dot); flex: none; }
.cell .dt.hollow { background: transparent; box-shadow: inset 0 0 0 1px var(--dot); }
.cell.h3 .dt { background: var(--dot-on3); }
.cell.h3 .dt.hollow { background: transparent; box-shadow: inset 0 0 0 1px var(--dot-on3); }
.cell .num { font-size: 10px; font-weight: 700; color: var(--dot); }
.cell.h3 .num { color: var(--dot-on3); }
.cell.pressing { transform: scale(.94); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 6px 0 10px; font-size: var(--fs-1); color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 4px; }
.legend .ld { width: 4px; height: 4px; border-radius: 50%; background: var(--dot); margin-right: 3px; }
.legend .ld.hollow { background: transparent; box-shadow: inset 0 0 0 1px var(--dot); }
.tip { margin: 0 16px; min-height: 40px; border-radius: 12px; background: var(--mint); color: var(--ink); font-size: var(--fs-1); font-weight: 600; display: flex; align-items: center; gap: 6px; padding: 8px 12px; }
.tip .ms { color: var(--primary); font-size: 18px; }
.people-row { display: flex; align-items: center; gap: 8px; }
.faces { display: flex; }
.face { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--ink); }
.face:first-child { margin-left: 0; }

/* 아래 고정 단추 줄 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(0,0,0,0), var(--bg) 30%); }
.dock-inner { max-width: 560px; margin: 0 auto; display: flex; gap: 8px; }
.app.wide + .dock .dock-inner, .dock.wide .dock-inner { max-width: 1120px; }
.save-state { font-size: var(--fs-1); color: var(--muted); display: flex; align-items: center; gap: 4px; justify-content: center; padding-bottom: 6px; }

/* ── 서랍 ───────────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 30, 26, .45); animation: fadeOnly .2s; }
@keyframes fadeOnly { from { opacity: 0; } }
.sheet { position: relative; background: var(--card); color: var(--ink); border-radius: 26px 26px 0 0; padding: 12px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; width: 100%; max-width: 560px; margin: 0 auto; animation: up .25s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 900px) { .sheet-wrap { justify-content: center; align-items: center; } .sheet { border-radius: 24px; max-width: 520px; } }
.grab { width: 40px; height: 4px; border-radius: 9px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-head .grow { flex: 1; min-width: 0; }
.sheet-title { font-size: var(--fs-4); font-weight: 700; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }

/* 사람별 막대 */
.tl-grid { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: center; }
.tl-name { font-size: var(--fs-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-name.no { color: var(--faint); font-weight: 400; }
.tl-bar { position: relative; height: 20px; border-radius: 6px; background: var(--cell-empty); overflow: hidden; }
.tl-bar i { position: absolute; top: 0; bottom: 0; background: #8CC4A8; border-radius: 4px; }
[data-theme="dark"] .tl-bar i { background: #3F8A6A; }
.tl-bar .hl { position: absolute; top: 0; bottom: 0; background: rgba(227,181,74,.35); box-shadow: inset 0 0 0 2px var(--gold-bright); border-radius: 4px; }
.tl-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }

/* 세부 시간 */
.fine-read { text-align: center; font-size: 2rem; font-weight: 700; letter-spacing: -.5px; }
.fine-read small { color: var(--faint); font-weight: 500; }
.fine-bar { position: relative; height: 60px; border-radius: 14px; background: var(--cell-empty); overflow: hidden; touch-action: none; cursor: pointer; }
.fine-bar .ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; display: flex; }
.fine-bar .ticks span { flex: 1; border-left: 1px solid var(--line); align-self: flex-end; height: 8px; }
.fine-bar .ticks span.major { height: 16px; border-color: var(--faint); }
.fine-bar .sel { position: absolute; top: 6px; bottom: 6px; border-radius: 10px; background: rgba(0,112,74,.2); box-shadow: inset 0 0 0 2px var(--primary); }
.fine-bar .hd { position: absolute; top: 10px; bottom: 10px; width: 10px; margin-left: -5px; border-radius: 6px; background: var(--primary); }
.fine-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 4px; }
.stepper { flex: 1; background: var(--bg-soft); border-radius: 14px; padding: 8px; display: flex; align-items: center; justify-content: space-between; }
.stepper .v { text-align: center; }
.stepper .v small { display: block; font-size: 10px; color: var(--muted); }
.stepper .v b { font-size: var(--fs-3); }
.stepper button { width: var(--btn); height: var(--btn); border-radius: 10px; border: 0; background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-s); }
.heat-strip { display: flex; gap: 2px; }
.heat-strip div { flex: 1; height: 30px; border-radius: 5px; display: flex; align-items: flex-end; justify-content: center; gap: 1px; padding-bottom: 3px; }
.heat-strip .dt { width: 3px; height: 3px; border-radius: 50%; background: var(--dot); }
.heat-strip .h3 .dt { background: var(--dot-on3); }

/* 붙여넣기 미리보기 */
.parse-list { display: flex; flex-direction: column; gap: 6px; }
.parse-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); font-size: var(--fs-2); }
.parse-item b { min-width: 76px; }
.parse-item.warn { background: var(--peach); }

/* 설정 서랍 */
.set-group { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-group:first-of-type { border-top: 0; }
.maker { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--mint); }
.maker img { width: 44px; height: 44px; border-radius: 12px; }

/* 알림 띠 */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--house); color: #fff; font-size: var(--fs-2); font-weight: 600; padding: 10px 16px; border-radius: var(--r-pill); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
[data-theme="dark"] .toast { background: var(--gold-bright); color: #1E1606; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
