/* 라인이 체크 페이지 — 체크표 그림과 같은 색(어두운 보라 회색 + 주황). 연세 있으신 분도 읽기 쉽게 글씨를 크게 */
:root {
	--bg: #3a363d;
	--panel: rgba(255, 255, 255, 0.07);
	--line: rgba(255, 255, 255, 0.16);
	--text: #fff;
	--muted: rgba(255, 255, 255, 0.66);
	--accent: #ff6b3d;
	--bad: #ff6060;
	--good: #7be0a4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
	background: var(--bg);
	color: var(--text);
	font-family: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	word-break: keep-all;
}
main { max-width: 560px; margin: 0 auto; padding: 22px 20px calc(40px + env(safe-area-inset-bottom)); }
a { color: inherit; }
b { font-weight: 800; }
.loading { color: var(--muted); padding: 40px 0; }

.top { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--muted); }
.top b { color: var(--text); }
.top a { text-decoration: none; }
.back { display: inline-block; margin-top: 14px; font-size: 16px; color: var(--muted); text-decoration: none; }

h1 { margin-top: 14px; font-size: 38px; line-height: 1.18; font-weight: 900; letter-spacing: -0.5px; }
h1 span { color: var(--accent); }
.dose { display: inline-block; margin-top: 14px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 17px; font-weight: 700; }
.dose em { font-style: normal; color: var(--muted); font-weight: 500; }

/* 오늘 패널 */
.today { margin-top: 22px; padding: 20px; border-radius: 22px; background: var(--panel); }
.today .day { font-size: 17px; color: var(--muted); }
.today .day b { color: var(--text); font-size: 22px; }
.bar { margin-top: 12px; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.3s; }
.count { margin-top: 8px; font-size: 16px; color: var(--muted); }
.count b { color: var(--text); }
.btn {
	text-align: center; text-decoration: none;
	display: block; width: 100%; margin-top: 16px; padding: 18px 16px; border: 0; border-radius: 16px;
	background: var(--accent); color: #fff; font: inherit; font-size: 21px; font-weight: 800; cursor: pointer;
	-webkit-tap-highlight-color: transparent; transition: transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--text); font-size: 17px; font-weight: 700; padding: 14px; }
.btn[disabled] { background: rgba(123, 224, 164, 0.18); color: var(--good); cursor: default; transform: none; }
.hint { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* 칸 */
.sec { margin-top: 34px; font-size: 22px; font-weight: 800; }
.sec span { margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.week { padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.week .wk { font-size: 17px; font-weight: 800; }
.dots { display: grid; grid-template-columns: repeat(7, minmax(0, 44px)); gap: 7px; margin-top: 10px; }
.dot {
	width: 100%; aspect-ratio: 1; border-radius: 50%; padding: 0; border: 2.5px solid rgba(255, 255, 255, 0.8);
	background: transparent; color: rgba(255, 255, 255, 0.4); font: inherit; font-size: 14px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dot.on { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 20px; }
.week .note { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.week .note b { color: var(--text); }
.note .r { color: var(--accent); font-weight: 800; }

/* 하는 법 */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.cards.wide { grid-template-columns: 1fr; }
.cards.wide .card { aspect-ratio: 16 / 10; }
.card { position: relative; border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, 0.2); aspect-ratio: 3 / 4; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .badge { position: absolute; top: 8px; left: 8px; right: 8px; width: fit-content; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); font-size: 15px; font-weight: 800; }
.card.good .badge { color: var(--good); }
.card.bad .badge { color: var(--bad); }
.card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 12px; font-size: 16px; line-height: 1.35; font-weight: 700; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82) 45%); }
.warmup { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--panel); font-size: 16px; }
.steps { list-style: none; counter-reset: s; margin-top: 16px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 42px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.steps li b { color: var(--text); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sets { margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--accent); border-radius: 14px; font-size: 16px; }
.mistakes { list-style: none; margin-top: 10px; }
.mistakes li { position: relative; padding: 0 0 10px 28px; font-size: 17px; color: var(--muted); }
.mistakes li b { color: var(--text); }
.mistakes li::before { content: "✕"; position: absolute; left: 2px; color: var(--bad); font-weight: 800; }

/* 기록 */
.record { margin-top: 30px; padding: 18px; border-radius: 20px; border: 1.5px solid var(--line); }
.record h2 { font-size: 19px; font-weight: 800; }
.fields { margin-top: 10px; font-size: 17px; font-weight: 700; }
.fields label { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.fields label span:first-child { width: 64px; }
.fields input { width: 76px; padding: 8px; border: 0; border-bottom: 2px solid var(--muted); background: transparent; color: var(--text); font: inherit; font-size: 20px; text-align: center; border-radius: 0; }
.record p { margin-top: 10px; font-size: 15px; color: var(--muted); }

.donebox { margin-top: 22px; padding: 20px; border-radius: 22px; background: rgba(255, 107, 61, 0.16); border: 1.5px solid var(--accent); }
.donebox h2 { font-size: 22px; }
.donebox p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* 다음 체크표 · 모음 */
.list { display: grid; gap: 12px; margin-top: 14px; }
.item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--panel); text-decoration: none; }
.item img { width: 76px; height: 100px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.item .t { font-size: 19px; font-weight: 800; line-height: 1.3; }
.item .t span { color: var(--accent); }
.item .d { margin-top: 4px; font-size: 14px; color: var(--muted); }
.item .p { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--good); }
.intro { margin-top: 12px; font-size: 17px; color: var(--muted); }

.foot { margin-top: 30px; font-size: 14px; color: var(--muted); }
.follow { display: block; margin-top: 26px; text-align: center; text-decoration: none; }

/* 언어 */
.top .tr { display: flex; align-items: center; gap: 10px; }
.lbtn { border: 1.5px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 14px; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.picker { position: fixed; inset: 0; z-index: 10; background: rgba(20, 18, 22, 0.78); display: flex; align-items: flex-end; justify-content: center; }
.picker .sheet { width: 100%; max-width: 560px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); }
.picker h2 { font-size: 22px; }
.picker .sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.picker .lang { margin-top: 12px; font-size: 19px; }
.picker .lang.cur { border-color: var(--accent); color: var(--accent); }

/* 소개·개인정보 */
.doc { margin-top: 18px; }
.doc p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.doc p a, .links a { color: var(--text); }
.doc .upd { font-size: 14px; }
.links { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
