/* 글꼴은 직접 만든 서브셋이다(SIL OFL · assets/fonts/ 의 라이선스 파일). 외부 글꼴 주소를 쓰지 않는다. */
@font-face { font-family: "Gowun Batang"; src: url(fonts/gowun-batang-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gowun Batang"; src: url(fonts/gowun-batang-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans KR"; src: url(fonts/noto-sans-kr-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans KR"; src: url(fonts/noto-sans-kr-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* 장면별 색 값은 시안 Main.dc.html · PC_Home.dc.html 의 표를 옮겼다. */
:root, [data-scene="dawn"] { --chipDark:rgba(20,18,16,.45); --chipDarkFg:#FFF8F0; --dim:rgba(10,12,20,.42); --base:#E6D3C9; --top:#FFF8F0; --topSub:#F1E6DA; --pill:rgba(20,18,16,.42); --accentSoft:#E08A4E; --ring:#FFF4EA; --ringFill:rgba(10,12,20,.24); --card:rgba(255,251,246,.96); --ink:#2B2622; --sub:#6A5E55; --line:rgba(90,70,55,.14); --chip:rgba(184,95,46,.07); --accent:#A9542A; --accentFg:#fff; --tab:#FFFBF6; --tabInk:#8A7D73; --item:#fff; --navOn:#A9542A; --navOnFg:#fff; }
[data-scene="day"] { --chipDark:rgba(20,18,16,.45); --chipDarkFg:#FFF8F0; --dim:rgba(10,12,20,.42); --base:#CFE3CF; --top:#FFF8F0; --topSub:#F1E6DA; --pill:rgba(20,18,16,.42); --accentSoft:#5E9E6E; --ring:#FFF4EA; --ringFill:rgba(10,12,20,.24); --card:rgba(250,253,249,.96); --ink:#1C2A21; --sub:#4E6255; --line:rgba(40,80,55,.14); --chip:rgba(46,106,75,.07); --accent:#2B6447; --accentFg:#fff; --tab:#FAFDF9; --tabInk:#6F8476; --item:#fff; --navOn:#2B6447; --navOnFg:#fff; }
[data-scene="eve"] { --chipDark:rgba(42,30,60,.55); --chipDarkFg:#FFF4EA; --dim:rgba(30,20,44,.45); --base:#3A2C4E; --top:#FFF4EA; --topSub:#F6DCCB; --pill:rgba(58,40,70,.5); --accentSoft:#FBD08E; --ring:#FFE3BF; --ringFill:rgba(30,20,44,.26); --card:rgba(253,247,244,.97); --ink:#2C2131; --sub:#6B5868; --line:rgba(90,60,90,.14); --chip:rgba(160,80,90,.07); --accent:#9C4B5A; --accentFg:#fff; --tab:#FDF7F4; --tabInk:#8A7886; --item:#fff; --navOn:#FFF4EA; --navOnFg:#2C2131; }
[data-scene="night"] { --chipDark:rgba(30,38,84,.7); --chipDarkFg:#ECEAF6; --dim:rgba(5,8,20,.34); --base:#0B1029; --top:#ECEAF6; --topSub:#B9B6D3; --pill:rgba(30,38,84,.7); --accentSoft:#F0CF7A; --ring:#F0CF7A; --ringFill:rgba(240,207,122,.10); --card:rgba(20,26,60,.97); --ink:#ECEAF6; --sub:#B3B0CF; --line:rgba(200,200,240,.14); --chip:rgba(240,207,122,.08); --accent:#F0CF7A; --accentFg:#1A1E3A; --tab:#10163A; --tabInk:#9A97BD; --item:rgba(236,234,246,.05); --navOn:#F0CF7A; --navOnFg:#1A1E3A; }

/* 글자 크기 배율(MD-FONT): 이용자가 고르지 않았으면 휴대폰 1.25 · PC 1.5(아래 PC 절). 고른 값은 app.js 가 html 의 style 에 넣는다. */
:root { --fs: 1.25; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--base); color: var(--ink); font-family: "Noto Sans KR", sans-serif; font-size: calc(15px * var(--fs)); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; overflow-x: hidden; transition: background 4s; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, .serif { font-family: "Gowun Batang", serif; font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 장면 */
#scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
#scene .layer { position: absolute; inset: 0; opacity: 0; transition: opacity 4s ease; background: center / cover no-repeat; }
#scene .layer.on { opacity: 1; }
#scene.now .layer { transition: none; }
/* 영상은 화면 전체를 덮는다. 파일이 처음과 끝이 이어지게 만들어져 있어 요소 하나의 loop 로 반복한다. */
#scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s linear; }
#scene video.on { opacity: 1; }
/* 글자 대비: 휴대폰은 위쪽 260px 어두운 그러데이션(시안 Main.dc.html) */
#scene .shade { position: absolute; left: 0; right: 0; top: 0; height: calc(60px + 240px * var(--fs)); background: linear-gradient(180deg, rgba(10,12,20,.62), rgba(10,12,20,.3) 55%, rgba(10,12,20,0)); }   /* MD-SCENE: 밝은 안개 · 햇빛 장면에서 글자 대비를 위해 조금 진하고 길게. MD-FONT: 글자가 커져 아래로 내려가는 만큼 길게(배율 1 = 300px) */
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#lights { position: absolute; inset: 0; pointer-events: none; }
#lights i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accentSoft); box-shadow: 0 0 10px 2px var(--accentSoft); opacity: .7; animation: tw 5s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

/* 틀 */
#app { position: relative; z-index: 1; min-height: 100%; padding-bottom: 84px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px 10px; color: var(--top); gap: 10px; }
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.brand b { font-family: "Gowun Batang", serif; font-size: calc(22px * var(--fs)); letter-spacing: .02em; line-height: 1.2; }
.brand span { font-size: calc(11px * var(--fs)); letter-spacing: .12em; color: var(--topSub); }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--pill); color: var(--top); font-size: calc(12px * var(--fs)); font-weight: 500; }
.topbar .pill { white-space: normal; min-width: 0; }   /* 위쪽 장면 이름: 글자가 크면 낱말 단위로 줄을 바꾼다(MD-FONT) */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; height: 72px; z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 8px 10px; background: var(--tab); border-top: 1px solid var(--line); }
#tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--tabInk); font-size: calc(11px * var(--fs)); position: relative; }
#tabs a.on { color: var(--accent); font-weight: 700; }
#tabs svg { width: 22px; height: 22px; }
.dot { position: absolute; top: 2px; left: 58%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
#pcnav { display: none; }

.sheet { background: var(--card); color: var(--ink); border-radius: 26px 26px 0 0; padding: 22px 20px 26px; min-height: 60vh; display: flex; flex-direction: column; gap: 14px; }
.sheet h1 { font-size: calc(21px * var(--fs)); }
.pagehead { padding: 0 20px 12px; color: var(--top); }
.pagehead h1 { font-size: calc(24px * var(--fs)); }
.pagehead p { font-size: calc(13px * var(--fs)); color: var(--topSub); }
.sub { color: var(--sub); font-size: calc(13px * var(--fs)); }
.tiny { color: var(--sub); font-size: calc(12px * var(--fs)); }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; width: 100%; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); font-size: calc(13px * var(--fs)); }
.chip.on { background: var(--accent); color: var(--accentFg); border-color: var(--accent); font-weight: 700; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }   /* 글자가 커지면 다음 줄로 넘긴다(MD-FONT · 이전: 가로로 밀기) */
.seg button { flex: 1 0 auto; min-height: 38px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--chip); color: var(--accent); font-size: calc(13px * var(--fs)); font-weight: 500; }
.seg button.on { background: var(--accent); color: var(--accentFg); font-weight: 700; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--item); color: var(--ink); font-weight: 500; text-decoration: none; }
.btn.main { background: var(--accent); color: var(--accentFg); border-color: var(--accent); font-weight: 700; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--sub); font-size: calc(13px * var(--fs)); text-decoration: underline; }
.item { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--item); border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: left; width: 100%; }
.item.lonely { border: 2px solid var(--accent); }
.item .t { font-weight: 700; }
.item.sel { outline: 2px solid var(--accent); }
.stat { flex: 1; padding: 10px 12px; border-radius: 14px; background: var(--chip); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat span { font-size: calc(11px * var(--fs)); color: var(--sub); }
.stat b { font-size: calc(16px * var(--fs)); color: var(--accent); }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: calc(13px * var(--fs)); color: var(--sub); }
input[type=text], input[type=email], input[type=password], textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--item); color: var(--ink); font-size: calc(16px * var(--fs)); }
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: calc(13px * var(--fs)); color: var(--ink); }
.note { padding: 12px 14px; border-radius: 12px; background: var(--chip); font-size: calc(13px * var(--fs)); color: var(--ink); white-space: pre-line; }
.err { color: #B3261E; font-size: calc(13px * var(--fs)); }
[data-scene="night"] .err { color: #FFB4A9; }
.care { padding: 14px; border-radius: 14px; border: 2px solid var(--accent); background: var(--chip); white-space: pre-line; font-size: calc(14px * var(--fs)); }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 30; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--card); font-size: calc(13px * var(--fs)); }
.modal { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.modal > div { background: var(--tab); color: var(--ink); border-radius: 22px 22px 0 0; padding: 20px; width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 10px; max-height: 80vh; overflow-y: auto; }

/* 머무름 */
.hero { position: relative; min-height: 330px; color: var(--top); }   /* MD-FONT: 글자가 커져 위 줄이 늘면 함께 늘어난다(이전: 높이 330px 고정) */
.presence { padding: 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: calc(13px * var(--fs)); color: var(--top); }
.presence i { width: calc(8px * var(--fs)); height: calc(8px * var(--fs)); border-radius: 50%; background: var(--accentSoft); }
.breath1 { position: relative; width: 160px; height: 160px; margin: 26px auto 0; border: 0; background: transparent; color: var(--top); padding: 0; }
.breath1 .o { position: absolute; inset: 8px; border-radius: 50%; border: 1.5px solid var(--ring); animation: br 10s ease-in-out infinite; }
.breath1 .c { position: absolute; inset: 36px; border-radius: 50%; background: var(--ringFill); }
.breath1 b, .breath1 span { text-shadow: 0 1px 8px rgba(10,12,20,.7), 0 0 2px rgba(10,12,20,.6); }
.breath1::before { content: ""; position: absolute; inset: min(14px, calc(84px - 50px * var(--fs))); border-radius: 50%; background: radial-gradient(circle, rgba(10,12,20,.5), rgba(10,12,20,.3) 55%, rgba(10,12,20,0) 72%); }   /* 밝은 장면에서 숨 한 번 글자 대비(MD-SCENE). MD-FONT: 글자가 원보다 넓어지는 140% 넘는 배율에서는 어두운 바탕을 원 밖까지 넓힌다(200% 에서 -16px) */
.presence span { text-shadow: 0 1px 6px rgba(10,12,20,.75); padding: 2px 8px; margin-left: -8px; border-radius: 999px; background: rgba(10,12,20,.22); }   /* 햇빛이 든 장면에서 사람 수 글자 대비 */
#scene.fast .layer { transition-duration: 1.6s; }
.breath1 b { position: absolute; left: 0; right: 0; bottom: 50%; line-height: 1.25; font-family: "Gowun Batang", serif; font-size: calc(17px * var(--fs)); }
.breath1 span { position: absolute; left: 0; right: 0; top: 50%; margin-top: 2px; line-height: 1.3; font-size: calc(11px * var(--fs)); opacity: .85; }
@keyframes br { 0%, 10% { transform: scale(.82); opacity: .5; } 45%, 55% { transform: scale(1.1); opacity: 1; } 95%, 100% { transform: scale(.82); opacity: .5; } }
.dots { display: flex; gap: 6px; }
.dots button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); padding: 0; }
.dots button.on { border-color: var(--top); }

/* 숨 원 */
.stage { --tlh: calc(36px + 20px * var(--fs)); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: var(--tlh) 20px 110px; color: var(--top); text-align: center; position: relative; z-index: 6; }
.stage.dim::before { content: ""; position: fixed; inset: 0; background: var(--dim); z-index: -1; }
.bigcircle { width: 220px; height: 220px; border-radius: 50%; border: 2px solid var(--ring); background: var(--ringFill); display: flex; align-items: center; justify-content: center; font-family: "Gowun Batang", serif; font-size: calc(20px * var(--fs)); transition: transform 1s ease-in-out; }
.closex { position: fixed; top: 14px; right: 14px; z-index: 7; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pill); color: var(--top); font-size: 20px; }

/* 명상 재생 */
.playline { font-family: "Gowun Batang", serif; font-size: calc(23px * var(--fs)); line-height: 1.7; min-height: 150px; display: flex; align-items: center; justify-content: center; max-width: 560px; padding: 0 6px; transition: opacity .8s; word-break: keep-all; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.parts { display: flex; gap: 4px; width: 100%; max-width: 480px; }
.parts div { height: 4px; border-radius: 2px; background: var(--pill); overflow: hidden; }
.parts div i { display: block; height: 100%; background: var(--accentSoft); width: 0; }
.ctrl { display: flex; align-items: center; gap: 14px; }
.ctrl button { min-width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--pill); color: var(--top); font-size: calc(14px * var(--fs)); }
.ctrl button.big { width: 68px; height: 68px; font-weight: 700; }
.moods { display: flex; gap: 8px; justify-content: center; }
.moods button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: var(--pill); color: var(--top); font-size: calc(12px * var(--fs)); padding: 0; }
.moods button.on { background: var(--accent); color: var(--accentFg); }
input[type=range] { width: 100%; max-width: 280px; accent-color: var(--accentSoft); }

/* 의례 */
.count { font-family: "Gowun Batang", serif; font-size: calc(54px * var(--fs)); line-height: 1; }

/* 날리기 */
.flyer { width: 56px; height: 56px; animation: rise 7s ease-in forwards; }
.flyer.lantern { width: 34px; height: 44px; border-radius: 12px; background: #F2B45A; box-shadow: 0 0 40px 14px rgba(242,180,90,.45); }
@keyframes rise { 0% { transform: translateY(120px) scale(1.1); opacity: 1; } 100% { transform: translateY(-46vh) scale(.5); opacity: .15; } }

/* 소리 조절 · 호흡 신호: 위쪽 왼쪽 단추와 접히는 판(휴대폰은 아래에서 올라오는 판) */
.tl { position: fixed; top: 14px; left: 14px; z-index: 7; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100vw - 80px); }
.tl .pill { border: 0; min-height: 36px; font-size: calc(12.5px * var(--fs)); }
.spanel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-height: 78vh; overflow-y: auto; padding: 18px 18px 22px; border-radius: 22px 22px 0 0; background: var(--tab); color: var(--ink); text-align: left; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: up .25s ease-out; }
.spanel h2 { font-size: calc(15px * var(--fs)); }
.spanel .seg button { min-height: 36px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.mlist { display: flex; flex-direction: column; gap: 6px; }
.mlist button { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--item); color: var(--ink); text-align: left; font-size: calc(14px * var(--fs)); }
.mlist button span { font-size: calc(12px * var(--fs)); color: var(--sub); }
.mlist button.on { border: 2px solid var(--accent); }
.mlist button.on b { color: var(--accent); }
.spanel .vol { display: flex; flex-direction: column; gap: 4px; color: var(--sub); }
.seg.mini { justify-content: center; }
.seg.mini button { flex: 0 0 auto; min-height: 34px; padding: 0 14px; background: var(--pill); color: var(--top); }
.seg.mini button.on { background: var(--accentSoft); color: #1A1E3A; }
.cuebox { display: flex; flex-direction: column; gap: 8px; }
.stage .check { color: inherit; }

/* 소원 등불 · 걱정 하늘 · 의례 그림(움직임 견본) */
.sprite { position: absolute; left: 0; top: 0; will-change: transform, opacity; pointer-events: none; }
.glow { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; will-change: transform, opacity; }
.wish { position: absolute; left: 0; top: 0; font-family: "Gowun Batang", serif; color: #5a3216; text-align: center; line-height: 1.3; pointer-events: none; opacity: .85; word-break: keep-all; }
.stage.lantern { justify-content: flex-start; padding-top: max(64px, var(--tlh)); }
.stage.lantern .lctl { margin-top: auto; }
.lctl .check { flex-direction: row; align-items: center; white-space: nowrap; }
.lstage { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lcv { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: -1; pointer-events: none; }
.lctl { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 360px; padding: 12px; border-radius: 18px; background: rgba(10,12,24,.42); backdrop-filter: blur(6px); }
.lctl input { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.35); color: #fff; padding: 10px 12px; font-family: "Gowun Batang", serif; }
.ringwrap { position: relative; width: min(92vw, 420px); height: 300px; }
.ringwrap.bow { height: 260px; }
.ringwrap canvas, .cwrap canvas, .tartwrap canvas, .tgwrap canvas, .skybox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ringwrap canvas { cursor: pointer; }
.ringwrap.bow canvas { cursor: default; }
.ringnum { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ringnum .count { font-size: calc(60px * var(--fs)); font-weight: 700; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.stage.ritual { gap: 14px; padding-top: max(64px, var(--tlh)); }   /* MD-FONT: 위쪽 고정 단추가 커지면 함께 내린다 */
.cwrap { position: relative; width: min(100vw, 420px); height: 46vh; min-height: 300px; }
.tartwrap { position: relative; width: min(92vw, 420px); height: 46vh; min-height: 300px; }
.tbox { text-align: center; }
.tbox .tnum { font-family: "Gowun Batang", serif; font-weight: 700; font-size: calc(54px * var(--fs)); letter-spacing: .04em; line-height: 1.1; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.tbox .tnum.small { font-size: calc(30px * var(--fs)); min-height: 40px; }
.tbox small { display: block; font-size: calc(13px * var(--fs)); opacity: .9; margin-top: 2px; }
.stage.together { gap: 12px; padding-top: max(64px, var(--tlh)); }
.tgwrap { position: relative; width: min(92vw, 420px); height: 46vh; min-height: 300px; }
.skysheet { gap: 12px; }
.skybox { position: relative; height: calc(100vh - 330px); height: calc(100dvh - 330px); min-height: 340px; overflow: hidden; }   /* 걱정 하늘: 배경은 장면 층의 걱정 하늘 영상(MD-SCENE) */
.skybox canvas { cursor: pointer; }
.skyhint { position: absolute; left: 12px; top: 10px; color: #e9e6f5; text-shadow: 0 1px 6px #000; pointer-events: none; }
.skycard { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; background: rgba(20,22,40,.86); backdrop-filter: blur(8px); color: #f1eef9; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: calc(13.5px * var(--fs)); }
.skycard .skytext { font-size: calc(15px * var(--fs)); font-weight: 400; line-height: 1.55; }
.skycard .btn { min-height: 40px; padding: 0 12px; font-size: calc(13px * var(--fs)); }
.skycard .btn:not(.main) { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.skycard .btn.on { outline: 2px solid var(--accentSoft); }
.skycard .link { color: #f1eef9; }
.row.wrap { flex-wrap: wrap; }
.dlan { position: relative; height: 96px; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 80%, rgba(40,32,64,.9), rgba(10,10,24,.95)); }
.dlan canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dlan p { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; color: #fbe9c2; }
.presence .pill { text-decoration: none; }
.presence .pp { margin-left: auto; display: flex; gap: 8px; }   /* 함께 숨쉬기 단추(MD-NAV: 풍경 단추를 뺐다) */
.chips { display: none; }

/* 걱정 탭(MD-SCENE): 배경은 늘 걱정 하늘. 위쪽 선택 두 줄 · 반투명 판 */
.wtop { padding: 0 20px 10px; }
.wsegs { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wsegs .seg { flex: 0 1 auto; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.35); }
.wsegs .seg button { flex: 0 0 auto; min-height: 34px; border-radius: 999px; background: transparent; color: #ddd; font-size: calc(12.5px * var(--fs)); }
.wsegs .seg button.on { background: var(--accentSoft); color: #1A1E3A; }
.skywrap { position: relative; padding: 0 12px; }
.skywrap .wbottom { display: flex; justify-content: center; padding: 6px 0 4px; }
.skywrap .skyguest { text-align: center; color: #d9d5ea; }
.sheet.wsheet { background: rgba(14,16,36,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wsheet .item { background: rgba(20,24,52,.72); }
.stage.release { justify-content: space-between; padding-top: max(72px, var(--tlh)); }
.release .rtop { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.release .rbot { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.release h1, .release p { text-shadow: 0 1px 10px rgba(0,0,0,.7); }

/* 소원 등불 고르기 · 기도 초(MD-SCENE) */
.lkinds { justify-content: center; }
.stage .lkinds .chip { background: rgba(0,0,0,.3); color: #fff; border-color: rgba(255,255,255,.25); }
.stage .lkinds .chip.on { background: var(--accentSoft); color: #1A1E3A; border-color: transparent; }
.v-candle #scene .layer { filter: brightness(.55) saturate(.7); }
.stage.cnd { justify-content: flex-start; padding-bottom: 28px; }
.stage.cnd .cbar { margin-top: auto; }
.stage.cnd h1 { font-size: calc(17px * var(--fs)) !important; opacity: .85; }
.cbar { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 420px; }
.cbar .link { color: #d8cfc0; text-decoration: underline dotted; font-size: calc(12.5px * var(--fs)); }
.cbar #cmsg { color: #fbe9c2; font-family: "Gowun Batang", serif; font-size: calc(16px * var(--fs)); }

/* 기록 */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: calc(12px * var(--fs)); color: var(--sub); }
.week i { display: block; width: 30px; height: 30px; margin: 0 auto 2px; border-radius: 50%; border: 1.5px dashed var(--line); }
.week i.on { background: var(--accent); border: 0; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-size: calc(12px * var(--fs)); text-align: center; }
.month span { padding: 5px 0; border-radius: 8px; color: var(--sub); }
.month span.on { background: var(--accent); color: var(--accentFg); }

/* 내 정보 · 장면(장소 · 계절) */
.scpick { display: flex; gap: 12px; align-items: flex-start; }
.scpick img { width: 96px; height: 150px; object-fit: cover; border-radius: 14px; flex: none; }
.scrows { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.scrows .chip { min-height: 32px; padding: 0 11px; }
/* 내 정보 · 글자 크기(MD-FONT): 칩 안에 이름과 배율 숫자를 두 줄로 */
.fsz .chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; padding: 6px 14px; }
.fsz .chip small { font-size: calc(11px * var(--fs)); opacity: .8; }
.fsprev { font-family: "Gowun Batang", serif; font-size: calc(16px * var(--fs)); padding: 10px 12px; border-radius: 12px; background: var(--chip); word-break: keep-all; }
/* 내 정보 */
.scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
/* 장면 미리보기는 영상 첫 화면 그림이다(시안 Settings.dc.html · PC_Settings.dc.html) */
.scenes button { display: flex; flex-direction: column; gap: 4px; align-items: stretch; border: 0; padding: 0; background: transparent; color: var(--ink); font-size: calc(12px * var(--fs)); text-align: left; min-width: 0; }
.scenes button img { display: block; width: 100%; height: 64px; object-fit: cover; border-radius: 12px; outline: 2px solid transparent; outline-offset: 2px; }
.scenes button.on img { outline-color: var(--accent); }
.scenes button.on .nm { font-weight: 700; }
.scenes button .tiny { font-size: calc(10px * var(--fs)); }
.voices { display: flex; flex-direction: column; gap: 8px; }
.vrow { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--item); }
.vrow.on { border: 2px solid var(--accent); }
.vrow .vpick { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; border: 0; padding: 0; background: transparent; color: var(--ink); font-size: calc(14px * var(--fs)); text-align: left; }
.vrow.on .vpick span:first-child { font-weight: 700; }
.vrow .vpick .tiny { color: var(--accent); }
.vrow .vpick[disabled] { cursor: default; opacity: .6; }
.vrow .link { color: var(--accent); white-space: nowrap; }
.foot { display: flex; gap: 12px; flex-wrap: wrap; font-size: calc(12px * var(--fs)); color: var(--sub); }

/* ===== MD-NAV: 메뉴 5개 · 쉬어가기 · 명상 · 의식 · 내 정보(시안 MD_2026-11-11 · 글자 크기는 시안 픽셀 ÷ 기준 배율 1.25(휴대폰) · 1.5(PC)) ===== */
.pagehead.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-top: 24px; }
.pagehead.top > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pagehead.top .pill { text-decoration: none; min-height: 36px; padding: 4px 14px; white-space: normal; text-align: right; flex: 0 1 auto; }   /* 큰 글자에서 "선택하지 않음 · 바꾸기"가 낱말 단위로 줄을 바꾼다 */
.h2 { font-family: "Noto Sans KR", sans-serif; font-size: calc(14.4px * var(--fs)); font-weight: 700; }

/* 명상 · 마음잡기 */
.medmind { display: flex; flex-direction: column; gap: 14px; }
.medmind .mm-main { display: flex; flex-direction: column; gap: 10px; }
.medmind .mm-side { order: -1; display: flex; flex-direction: column; gap: 12px; }
.moodgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
[data-fs="175"] .moodgrid, [data-fs="200"] .moodgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 큰 글자에서 한 줄에 2칸(낱말이 칸보다 넓어지지 않게) */
.mcell { min-height: 62px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--item); color: var(--ink); text-align: left; }
.mcell b { font-size: calc(12px * var(--fs)); }
.mcell span { font-size: calc(10.4px * var(--fs)); color: var(--sub); }
.sgcard { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; background: var(--accent); color: var(--accentFg); }
.sgcard b { font-size: calc(16px * var(--fs)); }
.sgcard > span, .sgcard .tiny { font-size: calc(12px * var(--fs)); color: inherit; opacity: .92; }
.sgcard input[type=text] { background: rgba(255,255,255,.94); color: #1C2A21; border-color: transparent; }
.lastcard { display: none; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; background: var(--chip); color: var(--ink); text-decoration: none; }
.lastcard b { font-size: calc(13px * var(--fs)); }
.lastcard .go { color: var(--accent); font-size: calc(11px * var(--fs)); }

/* 명상 · 도구 */
/* 명상 도구(MD-TOOL · 시안 MD_2026-11-12): 목록 카드 셋 · 준비 화면 · 진행 화면 · 마침 */
.tline { font-size: calc(11.2px * var(--fs)); color: var(--sub); }
.tcards { display: flex; flex-direction: column; gap: 12px; }
.tcard2 { display: flex; flex-direction: column; border-radius: 20px; background: var(--item); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.tc-main { display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--ink); text-decoration: none; min-width: 0; }
.tc-art { flex: none; width: calc(92px * var(--fs)); min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--accent); }
.tc-art .tc-ic { width: 40px; height: 40px; }
.tc-art small { font-size: calc(9.6px * var(--fs)); color: var(--sub); white-space: nowrap; }
.tc-art .rbar { width: 100%; height: 22px; }
.tc-art .rbar span { display: none; }
.tc-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-txt b { font-size: calc(16px * var(--fs)); }
.tc-txt span { font-size: calc(11.2px * var(--fs)); color: var(--sub); }
.tc-go { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px; background: var(--chip); border-top: 1px solid var(--line); color: var(--accent); text-decoration: none; }
.tc-go svg { width: 20px; height: 20px; flex: none; }
.tc-go span { display: flex; flex-direction: column; min-width: 0; }
.tc-go b { font-size: calc(12.5px * var(--fs)); }
.tc-go small { font-size: calc(10.4px * var(--fs)); color: var(--sub); }
.digits { display: inline-flex; gap: 3px; }
.digits i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; min-width: calc(16px * var(--fs)); height: calc(24px * var(--fs)); border-radius: 5px; background: var(--accent); color: var(--accentFg); font-family: "Gowun Batang", serif; font-weight: 700; font-size: calc(14px * var(--fs)); }
/* 리피터 구간 막대: 강조 색의 짙고 옅음을 번갈아 */
.rbar { display: flex; gap: 3px; width: 100%; height: calc(30px * var(--fs)); }
.rbar i { min-width: 6px; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--accent); color: var(--accentFg); font-style: normal; }
.rbar i.lt { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.rbar span { min-width: 0; font-size: calc(10px * var(--fs)); white-space: nowrap; overflow: hidden; padding: 0 4px; }   /* 칸에 들어가지 않는 글자는 app.js fitBar 가 시간만 남기거나 숨긴다 */

.tprep { display: flex; flex-direction: column; gap: 16px; }
.tinfo { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--chip); font-size: calc(12px * var(--fs)); }
.tp-cols { display: flex; flex-direction: column; gap: 16px; }
.tp-prev { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.tp-prev .tartwrap.prev { height: 34vh; min-height: 300px; }
.tp-prev .rsum { font-size: calc(13px * var(--fs)); font-weight: 700; color: var(--accent); text-align: center; }
.tp-prev .tiny { text-align: center; }
.cprev { width: 100%; max-width: 420px; aspect-ratio: 16 / 10; border-radius: 18px; background: center / cover no-repeat; display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.cprev > div { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: rgba(10,12,20,.5); color: #fff; }
.cprev > div > span { font-size: calc(12px * var(--fs)); }
.tp-fields { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tfs { display: flex; flex-direction: column; gap: 8px; }
.tfs h2 { display: flex; align-items: center; gap: 8px; font-size: calc(15px * var(--fs)); }
.tfs h2 i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: calc(22px * var(--fs)); height: calc(22px * var(--fs)); border-radius: 50%; background: var(--accent); color: var(--accentFg); font-family: "Noto Sans KR", sans-serif; font-size: calc(12px * var(--fs)); flex: none; }
.tshapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tshapes.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tshape { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--item); color: var(--ink); min-width: 0; }
.tshape img { width: 100%; height: 72px; object-fit: contain; border-radius: 10px; }
.tshapes.four .tshape img { object-fit: cover; }
.tshape span { font-size: calc(12px * var(--fs)); }
.tshape.on { border: 2px solid var(--accent); }
.tshape.on span { color: var(--accent); font-weight: 700; }
.rpre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rpre .chip.mine { border-style: dashed; }
.rsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rstep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "no name del" "len len len" "snd snd mv"; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: 14px; background: var(--item); border: 1px solid var(--line); }
.rstep.drag { opacity: .5; }
.rno { grid-area: no; display: inline-flex; align-items: center; justify-content: center; width: calc(22px * var(--fs)); height: calc(22px * var(--fs)); border-radius: 50%; background: var(--chip); color: var(--accent); font-size: calc(12px * var(--fs)); font-weight: 700; }
.rname { grid-area: name; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: calc(13px * var(--fs)); }
.rlen { grid-area: len; display: flex; align-items: center; gap: 6px; }
.rlen button, .rsnd, .rmv button, .rdel { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--chip); color: var(--accent); font-size: calc(13px * var(--fs)); }
.rlen .rpm { width: 44px; flex: none; font-size: calc(16px * var(--fs)); }
.rlen .rt { flex: 1; font-weight: 700; color: var(--ink); background: transparent; }
.rsnd { grid-area: snd; justify-self: start; padding: 0 12px; }
.rmv { grid-area: mv; display: flex; gap: 6px; }
.rmv button { width: 44px; }
.rmv button[disabled], .rdel[disabled] { opacity: .35; }
.rdel { grid-area: del; min-width: 40px; padding: 0 6px; border: 0; background: transparent; color: var(--sub); font-size: calc(18px * var(--fs)); }
.rgrip { display: none; }

/* 진행 화면: 메뉴 없이 · 상태 한 줄 · 가운데 원 · 아래 단추 셋 */
.stage.tplay { justify-content: flex-start; gap: 14px; padding-top: max(64px, var(--tlh)); padding-bottom: 28px; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tplay .tstat { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: calc(13px * var(--fs)); opacity: .95; }
.tplay .tminus { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); color: inherit; font-size: calc(12px * var(--fs)); text-decoration: none; }
.tplay .tmid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 560px; }
.tcirc { position: relative; width: min(72vw, 300px); aspect-ratio: 1; }
.tring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tring circle { fill: none; stroke-width: 6; }
.tring .tr-bg { stroke: rgba(255,255,255,.18); }
.tring .tr-fg { stroke: var(--accentSoft); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.tnumbox { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.tnumbox .count { font-size: calc(58px * var(--fs)); font-weight: 700; }
.tnumbox .tgoal { font-size: calc(14px * var(--fs)); }
.tplay .thint, .tplay .rnext { font-size: calc(12.5px * var(--fs)); opacity: .9; }
.tplay .tbtns { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; width: 100%; max-width: 560px; }
.tplay .tbtns .btn { flex: 1 1 auto; background: rgba(0,0,0,.3); color: inherit; border-color: rgba(255,255,255,.3); }
.tplay .tbtns .btn.on { background: var(--accentSoft); color: #1A1E3A; }
.tplay .tbtns .tbig { flex: 2 1 auto; min-height: 60px; background: var(--accentSoft); color: #1A1E3A; border-color: transparent; font-weight: 700; }
.tplay #rbw { width: 100%; }
.tplay .rbar i.past { opacity: .35; }
.tplay .rbar i.next { opacity: .7; }
.tplay .rbar i.now { outline: 2px solid #fff; outline-offset: 1px; }
.tplay .tartwrap { height: 40vh; min-height: 240px; }
/* 카운터: 고른 모양의 실사 그림이 배경 · 누를 때 그 모양의 짧은 움직임(코드로 그린다 · 동작 줄이기면 없음) */
.tcount .tbg { position: fixed; inset: 0; z-index: -2; background: center / cover no-repeat; }
.tcount .tbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,20,.45), rgba(10,12,20,.15) 40%, rgba(10,12,20,.55)); }
.tplay .tstat, .tplay .thint, .tplay .rnext { text-shadow: 0 1px 10px rgba(0,0,0,.85); }
.ctfx { position: absolute; inset: 0; pointer-events: none; }
.ctfx i { position: absolute; display: block; opacity: 0; }
.ctfx[data-shape="tally"] i:first-child { left: 50%; top: 22%; width: 34px; height: 4px; margin-left: -17px; border-radius: 2px; background: #fff; }
.ctfx[data-shape="tally"].go i:first-child { animation: cf-tally .35s ease-out; }
@keyframes cf-tally { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-26px); } }
.ctfx[data-shape="pebble"] i:first-child { left: 22%; top: 70%; width: 18px; height: 14px; border-radius: 50%; background: #cfc6b8; box-shadow: inset -3px -3px 4px rgba(0,0,0,.3); }
.ctfx[data-shape="pebble"].go i:first-child { animation: cf-pebble .45s ease-in-out; }
@keyframes cf-pebble { 0% { opacity: 1; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(28vw, -40px); } 100% { opacity: 0; transform: translate(min(56vw, 160px), 0); } }
.ctfx[data-shape="drop"] i { left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); }
.ctfx[data-shape="drop"].go i:first-child { animation: cf-drop .7s ease-out; }
.ctfx[data-shape="drop"].go i:last-child { animation: cf-drop .7s .12s ease-out; }
@keyframes cf-drop { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(4); } }
.ctfx[data-shape="abacus"] i:first-child { left: 50%; top: 74%; width: 30px; height: 18px; margin-left: -15px; border-radius: 50% / 50%; background: #8a5a34; box-shadow: inset 0 -4px 6px rgba(0,0,0,.35); }
.ctfx[data-shape="abacus"].go i:first-child { animation: cf-abacus .35s ease-out; }
@keyframes cf-abacus { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-34px); } }
.stage.tdone { justify-content: center; }
.tdcard { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 420px; padding: 28px 22px; border-radius: 22px; background: rgba(10,12,20,.45); }
.tdcard h2 { font-size: calc(22px * var(--fs)); }
.tdcard p, .tdcard .tiny { font-size: calc(13px * var(--fs)); color: inherit; opacity: .9; }
.tdbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
.tdbtns .btn { flex: 1 1 auto; }
.tdbtns .btn:not(.main) { background: rgba(0,0,0,.3); color: inherit; border-color: rgba(255,255,255,.3); }

.wchip { min-height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(240,207,122,.12); color: #ECEAF6; display: inline-flex; align-items: center; text-decoration: none; font-size: calc(11.2px * var(--fs)); }

/* 내 정보 · 기록 · 설정 */
.mecols { display: flex; flex-direction: column; gap: 20px; }
.mecol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.me2[data-seg="record"] .mecol.set, .me2[data-seg="settings"] .mecol.rec { display: none; }
.recin { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.colh { display: none; font-size: calc(17px * var(--fs)); }
.mecol h3 { font-family: "Noto Sans KR", sans-serif; font-size: calc(13.6px * var(--fs)); }
.sum3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sum3 > div { padding: 10px 12px; border-radius: 14px; background: var(--chip); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sum3 b { font-size: calc(18px * var(--fs)); color: var(--accent); }
.sum3 span { font-size: calc(10.4px * var(--fs)); color: var(--sub); }
.streak { font-size: calc(17px * var(--fs)); color: var(--accent); }
.revcard { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--accent); color: var(--ink); text-decoration: none; font-size: calc(12px * var(--fs)); }
.revcard svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.rrecs { display: flex; flex-direction: column; }
.rrec { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rrec .d { width: calc(52px * var(--fs)); flex: none; font-size: calc(10.4px * var(--fs)); color: var(--sub); }
.rrec .w { flex: 1; min-width: 0; font-size: calc(12px * var(--fs)); }
.rrec .k { flex: none; font-size: calc(10.4px * var(--fs)); color: var(--accent); }
#meset { display: flex; flex-direction: column; gap: 14px; }
.setrow summary { display: none; }
.setrow .setin { display: flex; flex-direction: column; gap: 10px; }
.setrow .mh { font-size: calc(16px * var(--fs)); }
.setrow h3 { font-size: calc(14px * var(--fs)); }
.setrow + .setrow { border-top: 1px solid var(--line); padding-top: 14px; }

/* 쉬어가기(이전 풍경): 배경 영상 위에 늘 어두운 판(시안 색 값 그대로 · 장면과 상관없음) */
.rest { position: relative; z-index: 6; min-height: 100vh; min-height: 100dvh; color: #FFF8F0; }
.rs-box { display: contents; }
.rs-head { position: fixed; left: 0; right: 0; top: 0; z-index: 7; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 20px 20px 48px; background: linear-gradient(180deg, rgba(10,12,20,.6), rgba(10,12,20,0)); }
.rs-head h1 { font-size: calc(21.6px * var(--fs)); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.rs-head p { font-size: calc(12px * var(--fs)); color: #F1E6DA; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.rs-hide { flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(20,18,16,.5); color: #FFF8F0; display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--fs)); }
.rs-hide svg { width: 18px; height: 18px; flex: none; }
.rs-panel { position: fixed; left: 0; right: 0; bottom: 72px; z-index: 7; max-height: calc(100vh - 72px - 64px - 40px * var(--fs)); max-height: calc(100dvh - 72px - 64px - 40px * var(--fs)); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; border-radius: 26px 26px 0 0; background: rgba(14,16,28,.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rs-now { display: flex; align-items: center; gap: 12px; }
.rs-play { width: 54px; height: 54px; flex: none; border-radius: 50%; border: 0; background: #F0CF7A; color: #1E1A12; display: flex; align-items: center; justify-content: center; padding: 0; }
.rs-play svg { width: 22px; height: 22px; }
.rs-tr { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rs-tr b { font-size: calc(14.4px * var(--fs)); line-height: 1.35; }
.rs-tr span { font-size: calc(11.2px * var(--fs)); color: #D9CFC2; }
.rs-next { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #FFF8F0; display: flex; align-items: center; justify-content: center; padding: 0; }
.rs-next svg { width: 20px; height: 20px; }
.rs-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.08); }
.rs-tabs button { min-height: 42px; padding: 2px 4px; border-radius: 10px; border: 0; background: transparent; color: #E8DED2; font-size: calc(12.8px * var(--fs)); line-height: 1.3; }
.rs-tabs button.on { background: #FFF8F0; color: #1E1A12; font-weight: 700; }
.rs-sec { display: none; flex-direction: column; gap: 10px; }
.rest[data-tab="bg"] .rs-sec[data-s="bg"], .rest[data-tab="mu"] .rs-sec[data-s="mu"], .rest[data-tab="mode"] .rs-sec[data-s="mode"] { display: flex; }
.rs-sec h2 { display: none; }
.rest .chip { min-height: 38px; padding: 0 16px; background: rgba(255,255,255,.07); color: #FFF8F0; border-color: rgba(255,255,255,.18); font-size: calc(12px * var(--fs)); }
.rest .chip.on { background: #F0CF7A; color: #1E1A12; border-color: #F0CF7A; }
.rs-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rs-thumb { padding: 0; border-radius: 14px; overflow: hidden; border: 3px solid rgba(255,255,255,.1); background: rgba(0,0,0,.3); color: #FFF8F0; display: flex; flex-direction: column; min-width: 0; }
.rs-thumb.on { border-color: #F0CF7A; }
.rs-thumb img { display: block; width: 100%; height: 78px; object-fit: cover; }
.rs-thumb span { padding: 6px 2px; font-size: calc(11.2px * var(--fs)); text-align: center; line-height: 1.3; }
.rs-list { display: flex; flex-direction: column; gap: 6px; max-height: 232px; overflow-y: auto; }
.rs-track { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 6px 14px; border-radius: 12px; border: 0; background: rgba(255,255,255,.05); color: #FFF8F0; text-align: left; }
.rs-track .ic { width: 20px; height: 20px; flex: none; color: #D9CFC2; }
.rs-track.on { background: rgba(240,207,122,.16); }
.rs-track.on .ic, .rs-track.on b { color: #F0CF7A; }
.rs-track .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rs-track b { font-size: calc(12.8px * var(--fs)); }
.rs-track small { font-size: calc(10.4px * var(--fs)); color: #D9CFC2; }
.rs-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rs-modes button { min-height: 72px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #FFF8F0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px 4px; font-size: calc(12px * var(--fs)); line-height: 1.3; }
.rs-modes button svg { width: 22px; height: 22px; flex: none; }
.rs-modes button.on { background: #F0CF7A; color: #1E1A12; font-weight: 700; }
.rs-note { font-size: calc(11.2px * var(--fs)); color: #D9CFC2; }
.rs-vol { display: flex; align-items: center; gap: 12px; font-size: calc(11.2px * var(--fs)); color: #D9CFC2; }
.rs-vol input[type=range] { flex: 1; max-width: none; accent-color: #F0CF7A; }
.rest .check { align-items: center; font-size: calc(11.2px * var(--fs)); color: #FFF8F0; }
.rest .check input { width: 20px; height: 20px; flex: none; accent-color: #F0CF7A; }
.rs-show { position: fixed; inset: 0; z-index: 8; border: 0; padding: 0; background: transparent; color: #FFF8F0; }
.rs-show .cap { position: absolute; left: 16px; right: 16px; bottom: 92px; text-align: center; font-size: calc(11.2px * var(--fs)); color: rgba(255,248,240,.9); text-shadow: 0 1px 6px rgba(0,0,0,.8); padding: 2px 8px; }
.rs-show .pillb { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); min-height: 42px; padding: 0 20px; border-radius: 999px; background: rgba(20,18,16,.55); display: flex; align-items: center; white-space: nowrap; font-size: calc(12px * var(--fs)); }
.v-rest #app { padding-bottom: 0; }
.v-rest #tabs { background: rgba(12,14,24,.92); border-top-color: rgba(255,255,255,.08); }
.v-rest #tabs a { color: #A9A3B8; }
.v-rest #tabs a.on { color: #F0CF7A; }

@media (min-width: 1025px) {
  .pagehead.top { align-items: flex-end; padding-top: 8px; }
  .pagehead.top > div { flex-direction: row; align-items: baseline; gap: 16px; flex-wrap: wrap; }
  .pagehead.top p { font-size: calc(12px * var(--fs)); }
  .medmind { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, calc(227px * var(--fs))); gap: 28px; align-items: start; }
  .medmind .mm-side { order: 0; }
  .moodgrid, [data-fs="175"] .moodgrid, [data-fs="200"] .moodgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mcell { min-height: 92px; }
  .lastcard { display: flex; }
  .tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  .tcard2 .tc-main { flex: 1; flex-direction: column; align-items: flex-start; }
  .tc-art { width: 100%; align-items: flex-start; }
  .tp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
  .tp-prev { position: sticky; top: calc(var(--navh, 90px) + 12px); }
  .tprep .tstart { align-self: flex-end; width: auto; min-width: 50%; }
  .rstep { display: flex; flex-wrap: wrap; cursor: grab; }   /* 들어가면 한 줄(시안 11-3) · 글자가 커서 넘치면 다음 줄로 */
  .rstep .rname { flex: 1 1 calc(56px * var(--fs)); }
  .rstep .rlen, .rstep .rsnd, .rstep .rdel { flex: none; }
  .rstep .rmv { display: none; }
  .rstep .rgrip { display: inline-flex; grid-area: grip; color: var(--sub); font-size: calc(13px * var(--fs)); letter-spacing: -2px; }
  .rlen .rt { min-width: calc(64px * var(--fs)); }
  .mecols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(calc(280px * var(--fs)), 46%)); gap: 36px; align-items: start; }
  .me2[data-seg] .mecol.set, .me2[data-seg] .mecol.rec { display: flex; }
  .me2 .seg2 { display: none; }
  .colh { display: block; }
  #meset { gap: 0; }
  .setrow + .setrow { border-top: 0; padding-top: 0; }
  .setrow summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
  .setrow summary::-webkit-details-marker { display: none; }
  .setrow summary b { font-size: calc(12.7px * var(--fs)); }
  .setrow summary .val { font-size: calc(11.3px * var(--fs)); color: var(--sub); text-align: right; }
  .setrow .mh { display: none; }
  .setrow .setin { padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
  #meset > .btn.main { margin-bottom: 8px; }
  #meset > .foot, #meset > #insh, #meset > #ins { margin-top: 12px; }
  /* 쉬어가기 PC: 오른쪽 판 하나(시안 7-1 · 너비 480px = 배율 1.5 기준) */
  .rest { min-height: calc(100vh - var(--navh, 90px)); }
  .rs-box { display: flex; flex-direction: column; gap: 16px; position: fixed; right: 32px; top: calc(var(--navh, 90px) + 8px); bottom: 32px; z-index: 7; width: min(calc(320px * var(--fs)), 50vw); padding: 22px 24px; border-radius: 26px; background: rgba(14,16,28,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-y: auto; }
  .rs-head { position: static; padding: 0; background: none; }
  .rs-head h1 { font-size: calc(20px * var(--fs)); text-shadow: none; }
  .rs-head p { font-size: calc(11.3px * var(--fs)); text-shadow: none; }
  .rs-hide { border: 1px solid rgba(255,255,255,.2); background: transparent; min-height: 44px; font-size: calc(10.7px * var(--fs)); }
  .rs-panel { position: static; max-height: none; overflow: visible; padding: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; gap: 16px; }
  .rs-now { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .rs-play { width: 58px; height: 58px; }
  .rs-tr b { font-size: calc(13.3px * var(--fs)); }
  .rs-tr span { font-size: calc(10px * var(--fs)); }
  .rs-tabs { display: none; }
  .rest[data-tab] .rs-sec { display: flex; }
  .rs-sec h2 { display: block; font-family: "Noto Sans KR", sans-serif; font-size: calc(12px * var(--fs)); }
  .rest .chip { min-height: 40px; font-size: calc(10.7px * var(--fs)); }
  .rs-thumb img { height: 66px; }
  .rs-thumb span { font-size: calc(10px * var(--fs)); }
  .rs-list { max-height: 176px; }
  .rs-track b { font-size: calc(11.3px * var(--fs)); }
  .rs-track small { font-size: calc(9.3px * var(--fs)); }
  .rs-modes button { font-size: calc(10.7px * var(--fs)); }
  .rs-note, .rs-vol, .rest .check { font-size: calc(10px * var(--fs)); }
  .rs-show .cap { left: 40px; right: auto; bottom: 40px; text-align: left; font-size: calc(11.3px * var(--fs)); }
  .rs-show .pillb { left: auto; right: 40px; bottom: 32px; transform: none; min-height: 46px; padding: 0 22px; font-size: calc(10.7px * var(--fs)); }
}

/* 움직임은 운영체제의 동작 줄이기 설정이 켜진 경우에만 멈춘다 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* PC: 1025 이상 */
@media (min-width: 1025px) {
  :root { --fs: 1.5; }
  #tabs { display: none; }
  #app { padding-bottom: 28px; }
  /* 글자 대비: 왼쪽에서 오른쪽 그러데이션 + 위쪽 180px 그러데이션(시안 PC_Home.dc.html) */
  #scene .shade { height: auto; bottom: 0; background: linear-gradient(180deg, rgba(10,12,20,.45), rgba(10,12,20,0) calc(60px + 120px * var(--fs))), linear-gradient(90deg, rgba(10,12,20,.5), rgba(10,12,20,.08) 55%, rgba(10,12,20,0)); }
  #pcnav { display: flex; position: sticky; top: 0; z-index: 5; align-items: center; justify-content: space-between; padding: 22px 48px 12px; color: var(--top); }
  #pcnav nav { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--pill); }
  #pcnav nav a { padding: 8px 18px; border-radius: 999px; color: var(--top); text-decoration: none; font-size: calc(14px * var(--fs)); position: relative; }
  #pcnav nav a.on { background: var(--navOn); color: var(--navOnFg); font-weight: 700; }
  #pcnav .brand { flex-direction: row; align-items: baseline; gap: 10px; }
  #pcnav .brand b { font-size: calc(26px * var(--fs)); }
  .topbar { display: none; }
  .wide { max-width: 1184px; margin: 0 auto; }
  .pagehead { padding: 8px 48px 14px; max-width: 1280px; margin: 0 auto; }
  .sheet { border-radius: 22px; max-width: 1184px; margin: 0 auto; min-height: 0; padding: 26px 28px; }
  .sheet.narrow { max-width: 720px; }
  .home { display: grid; grid-template-columns: 1fr 440px; gap: 32px; max-width: 1184px; margin: 0 auto; align-items: start; }
  .home .hero { height: 480px; }
  .home .breath1 { position: absolute; left: 200px; top: 120px; margin: 0 0 0 -80px; transform: scale(1.25); }
  .home .sheet { max-width: none; margin-top: 12px; }
  .presence { padding: 0; }
  .home .dots { padding: 8px 0 !important; }
  .split { display: grid; grid-template-columns: 420px 1fr; gap: 20px; max-width: 1184px; margin: 0 auto; align-items: start; }
  .split > .sheet { margin: 0; max-width: none; }
  .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .modal { align-items: center; }
  .modal > div { border-radius: 22px; }
  .toast { bottom: 28px; }
  .stage { padding-bottom: 40px; }
  .playline { font-size: calc(28px * var(--fs)); max-width: 760px; }
  .scenes { gap: 12px; }
  .scenes button { font-size: calc(14px * var(--fs)); gap: 6px; }
  .scenes button img { height: 120px; border-radius: 14px; outline-offset: 3px; }
  .scenes button .tiny { font-size: calc(12px * var(--fs)); }
  /* PC: 소리 판은 오른쪽 아래 작은 판 */
  .spanel { left: auto; right: 24px; bottom: 24px; width: 360px; border-radius: 18px; max-height: 70vh; }
  /* PC 첫 화면 바로가기 칩(시안 PC_Home.dc.html 칩 자리 · 왼쪽 아래) */
  .chips { display: flex; flex-wrap: wrap; gap: 10px; position: absolute; left: 0; bottom: 0; max-width: 640px; }
  .chips a { height: 48px; padding: 0 16px; border-radius: 14px; background: var(--chipDark); color: var(--chipDarkFg); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: calc(14px * var(--fs)); }
  .chips svg { width: calc(18px * var(--fs)); height: calc(18px * var(--fs)); flex: none; }   /* 글자 옆 아이콘은 글자와 함께 키운다(MD-FONT) */
  .skybox { height: calc(100vh - 290px); }
  .wtop, .skywrap { max-width: 1184px; margin: 0 auto; padding-left: 0; padding-right: 0; }
  .scpick img { width: 240px; height: 135px; }
  .ringwrap { height: 340px; }
}

/* ===== MD-RITE: 의식 공통 틀 · 화면 위쪽 통일 · 소원 등불 · 108배 · 기도 초(시안 MD_2026-11-11b · 글자 크기는 시안 픽셀 ÷ 1.25(휴대폰) · 1.5(PC)) =====
 * 의식 화면의 판과 글자는 시안의 밤 색(어두운 유리 판 · 흰 글자 · 금색 강조)으로 고정한다. 배경이 밝은 장면이어도 판 위 글자의 대비가 같다. */
/* 안쪽 화면의 위쪽: ← 돌아갈 곳 + 화면 이름(메뉴 화면은 pageHead · 브랜드는 머무름과 PC 위쪽 막대에만) */
.pagehead.bh { align-items: center; padding-top: 16px; }
.pagehead.bh > .bh-l { flex-direction: row; align-items: center; gap: 2px; flex: 1 1 auto; }
.bh .bh-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bh h1 { font-size: calc(21.6px * var(--fs)); line-height: 1.3; text-shadow: 0 1px 8px rgba(10,12,20,.6); }
.bk { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--top); padding: 0; margin-left: -10px; text-decoration: none; }
.bk svg { width: 24px; height: 24px; }
.bk.info { margin: 0 -10px 0 0; color: var(--topSub); }
.pc-only { display: none; }
/* 진행 화면의 위쪽 고정 막대(← · 화면 이름 · 소리 단추). 본문은 막대 높이(--shh) 아래에서 시작한다. */
.shead { position: fixed; top: 0; left: 0; right: 0; z-index: 7; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px 8px; color: var(--top); text-align: left; }
.shead .bk { margin: 0; background: var(--pill); }
.shead h1 { flex: 1 1 4em; min-width: 0; font-size: calc(16px * var(--fs)); line-height: 1.3; text-shadow: 0 1px 8px rgba(0,0,0,.65); }
.shead .tl { position: static; max-width: none; margin-left: auto; justify-content: flex-end; }
#app[data-sh] .stage { padding-top: calc(var(--shh, 64px) + 14px); }
/* 명상 > 도구: 제목 두 개(타이머 · 카운터) */
.tsec { display: flex; flex-direction: column; gap: 8px; }
.beads > .between { flex-wrap: wrap; }   /* 제목 "카운터(숫자 세기)"가 큰 글자에서 옆 안내 때문에 낱말 가운데서 끊기지 않게 줄을 바꾼다 */
/* 쉬어가기 곡 줄 오른쪽 곡 길이 */
.rs-track .ln { flex: none; font-size: calc(10.4px * var(--fs)); color: #D9CFC2; font-variant-numeric: tabular-nums; }

/* 의식 공통: 칸 세 개 · 안내 카드 · 쓰기 판 · 공개 범위 · 반응 단추 · 글 */
.rwrap { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.rwrap.rtop { padding-bottom: 12px; }
.rtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(16,20,44,.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rtabs a { min-height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; color: #ECEAF6; text-decoration: none; font-size: calc(12.8px * var(--fs)); font-weight: 500; padding: 2px 4px; line-height: 1.25; }
.rtabs a.on { background: #ECEAF6; color: #1A1E3A; font-weight: 700; }
.rintro { position: relative; padding: 12px calc(30px + 12px * var(--fs)) 12px 14px; border-radius: 16px; background: linear-gradient(rgba(240,207,122,.13), rgba(240,207,122,.13)), rgba(16,20,44,.88); border: 1px solid rgba(240,207,122,.35); display: flex; flex-direction: column; gap: 6px; color: #ECEAF6; }
.rintro > div { display: flex; gap: 10px; align-items: baseline; }
.rintro b { flex: none; min-width: 3.4em; font-size: calc(11.2px * var(--fs)); color: #F0CF7A; }
.rintro span { font-size: calc(12px * var(--fs)); }
.rintro .ix { position: absolute; right: 2px; top: 2px; width: calc(28px + 12.8px * var(--fs)); height: calc(28px + 12.8px * var(--fs)); border: 0; background: transparent; color: #C3C0DC; font-size: calc(16px * var(--fs)); line-height: 1; }   /* 글자 없는 닫기(×)도 배율을 따른다(MD-FONT 결정 4번 · 125% 에서 44px · 20px) */
#rintro:empty { display: none; }
.rdo .rmain, .rside { display: flex; flex-direction: column; gap: 12px; }
.rside { display: none; }
.rform { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: rgba(16,20,44,.86); border: 1px solid rgba(220,220,255,.16); color: #ECEAF6; }
.rform > label, .rform .rlabel2 { font-size: calc(12px * var(--fs)); color: #C3C0DC; }
.rform textarea, .rform input[type=text] { width: 100%; border-radius: 12px; border: 1px solid rgba(220,220,255,.24); background: rgba(0,0,0,.28); color: #ECEAF6; padding: 10px 12px; font-size: calc(12.8px * var(--fs)); }
.rform textarea { min-height: 110px; resize: vertical; }
.rform input::placeholder, .rform textarea::placeholder { color: #9E9BBD; }
.rcount { font-size: calc(10.4px * var(--fs)); color: #C3C0DC; flex-wrap: wrap; }
.rlabel { font-size: calc(12px * var(--fs)); color: #ECEAF6; padding: 2px 10px; align-self: flex-start; border-radius: 999px; background: rgba(16,20,44,.6); }
.rscope { display: flex; gap: 8px; flex-wrap: wrap; }
.rscope button { flex: 1 1 auto; min-height: 44px; border-radius: 12px; border: 1px solid rgba(220,220,255,.16); background: transparent; color: #ECEAF6; font-size: calc(12px * var(--fs)); font-weight: 500; padding: 0 10px; }
.rscope button.on { border-color: #F0CF7A; background: rgba(240,207,122,.13); font-weight: 700; }
.rscope button[disabled] { opacity: .5; cursor: default; }
.rgo { min-height: 54px; border-radius: 16px; border: 0; background: #F0CF7A; color: #1A1E3A; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: calc(13.6px * var(--fs)); font-weight: 700; padding: 6px 16px; text-align: center; width: 100%; }
.rgo svg { width: 22px; height: 22px; flex: none; }
.rgo[aria-disabled=true], .rgo[disabled] { opacity: .5; pointer-events: none; }
.rhint { font-size: calc(11.2px * var(--fs)); color: #C3C0DC; }
.rnote { font-size: calc(11.2px * var(--fs)); color: #ECEAF6; padding: 8px 12px; border-radius: 12px; background: rgba(16,20,44,.62); }
.rwrap .err { color: #FFC2B8; padding: 0 4px; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.rwrap .err:empty { display: none; }
.rguide, .rempty { font-size: calc(11.2px * var(--fs)); color: #ECEAF6; padding: 10px 12px; border-radius: 12px; background: rgba(16,20,44,.74); }
.rwrap .chip, .rchipsw .chip { background: rgba(16,20,44,.76); color: #ECEAF6; border-color: rgba(220,220,255,.22); }
.rwrap .chip.on, .rchipsw .chip.on { background: #F0CF7A; color: #1A1E3A; border-color: #F0CF7A; }
.rposts { display: flex; flex-direction: column; gap: 10px; }
.rpost { padding: 14px; border-radius: 20px; background: rgba(16,20,44,.86); border: 1px solid rgba(220,220,255,.16); display: flex; flex-direction: column; gap: 8px; color: #ECEAF6; text-align: left; }
.rmeta { font-size: calc(10.4px * var(--fs)); color: #F0CF7A; }
.rtext { font-size: calc(12.8px * var(--fs)); line-height: 1.5; white-space: pre-line; }
.rtext.muted { color: #A6A3C6; }
.rrow2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rrow2 .link { color: #C3C0DC; min-height: 32px; }
.rpill { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #F0CF7A; background: transparent; color: #F0CF7A; display: inline-flex; align-items: center; gap: 6px; font-size: calc(11.2px * var(--fs)); font-weight: 700; text-decoration: none; }
.rpill svg { width: calc(14.4px * var(--fs)); height: calc(14.4px * var(--fs)); flex: none; }
.rpill.on { background: #F0CF7A; color: #1A1E3A; }
.rpill[disabled] { opacity: .55; cursor: default; }
.rgot { font-size: calc(11.2px * var(--fs)); color: #F0CF7A; }

/* 의식 첫 화면(시안 8-1 · 9-1) */
.rite3 { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 16px; }
.r3-side { order: -1; display: flex; flex-direction: column; gap: 10px; }
.r3-l { font-size: calc(11.2px * var(--fs)); color: #ECEAF6; padding: 0 4px; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.rgot3 { position: relative; display: flex; padding: 12px 8px; border-radius: 18px; background: rgba(16,20,44,.82); border: 1px solid rgba(220,220,255,.16); text-decoration: none; color: #ECEAF6; }
.rgot3 > span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.rgot3 i { color: #F0CF7A; display: flex; }
.rgot3 i svg { width: 20px; height: 20px; }
.rgot3 b { font-size: calc(14.4px * var(--fs)); }
.rgot3 small { font-size: calc(11.2px * var(--fs)); color: #C3C0DC; }
.rgot3 .rnew { position: absolute; right: 12px; top: -9px; padding: 0 8px; border-radius: 999px; background: #F0CF7A; color: #1A1E3A; font-size: calc(9.6px * var(--fs)); font-style: normal; font-weight: 700; }
.rgot3.guest { padding: 14px 16px; }
.rgot3 .gl { font-size: calc(12px * var(--fs)); }
.rlatest { display: none; }
.r3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.r3card { min-height: 184px; min-width: 0; padding: 16px; border-radius: 20px; background: rgba(16,20,44,.82); border: 1px solid rgba(220,220,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: #ECEAF6; }
.r3card .ri { width: 46px; height: 46px; flex: none; border-radius: 50%; background: rgba(240,207,122,.13); display: flex; align-items: center; justify-content: center; color: #F0CF7A; }
.r3card .ri svg { width: 26px; height: 26px; }
.r3card b { font-size: calc(15.2px * var(--fs)); line-height: 1.3; }
.r3card .d { font-size: calc(11.2px * var(--fs)); color: #C3C0DC; flex: 1; }
.r3card .n { font-size: calc(10.4px * var(--fs)); color: #F0CF7A; display: flex; align-items: center; gap: 6px; }
.r3card .n i { width: 7px; height: 7px; border-radius: 50%; background: #F0CF7A; flex: none; }
.rgot3.flat { pointer-events: none; }
.rrecv { display: flex; flex-direction: column; gap: 8px; }
.rrecv a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(16,20,44,.86); border: 1px solid rgba(220,220,255,.16); color: #ECEAF6; text-decoration: none; }
.rrecv a.new { border-color: #F0CF7A; }
.rrecv i { color: #F0CF7A; flex: none; display: flex; padding-top: 2px; }
.rrecv i svg { width: 20px; height: 20px; }
.rrecv span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rrecv b { font-weight: 500; font-size: calc(12px * var(--fs)); }
.rrecv small { font-size: calc(10.4px * var(--fs)); color: #C3C0DC; }

/* 걱정 날리기: 하늘 · 목록 선택 줄 */
.wtop { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 10px; }
.wtoday { font-size: calc(11.2px * var(--fs)); color: #ECEAF6; padding: 2px 10px; border-radius: 999px; background: rgba(16,20,44,.6); align-self: center; }

/* 소원 등불: 계절 영상의 첫 장면을 배경으로 깔고, 보내기를 누르면 그 영상을 한 번 재생한다 */
.wishbg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.wishbg img, .wishbg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wishbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,24,.62), rgba(8,10,24,.1) 38%, rgba(8,10,24,.1) 55%, rgba(8,10,24,.66)); pointer-events: none; }
.wsym { align-items: center; text-align: center; gap: 4px; }
.wsym .wsi { width: 30px; height: 30px; color: #F0CF7A; }
.wsym b { font-size: calc(15.2px * var(--fs)); color: #F0CF7A; }
.wsym span { font-size: calc(12px * var(--fs)); }
.wdone { align-items: center; text-align: center; padding: 16px; border-radius: 20px; background: rgba(16,20,44,.82); color: #ECEAF6; margin-top: 30vh; }
.wdone p { font-size: calc(14.4px * var(--fs)); line-height: 1.5; }
.wdone .btn { background: transparent; color: #ECEAF6; border-color: rgba(220,220,255,.3); width: 100%; }
.wfly { position: fixed; left: 24px; right: 24px; top: 42%; z-index: 0; text-align: center; font-family: "Gowun Batang", serif; font-size: calc(16px * var(--fs)); color: #FFF3D1; text-shadow: 0 2px 14px rgba(0,0,0,.8); pointer-events: none; }

/* 108배 하기 · 진행(시안 8-5 · 8-6 · 9-4) */
.rtog { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(16,20,44,.82); color: #ECEAF6; font-size: calc(12px * var(--fs)); text-align: left; }
.rtog b { color: #F0CF7A; }
.dots3 { display: inline-flex; flex: none; padding-left: 3px; }
.dots3 i { width: 10px; height: 10px; border-radius: 50%; background: #F0CF7A; margin-left: -3px; box-shadow: 0 0 6px rgba(240,207,122,.7); border: 1px solid rgba(16,20,44,.8); }
.rpick { display: flex; gap: 10px; }
.rpick button { flex: 1 1 0; min-width: 0; padding: 14px; border-radius: 16px; border: 1px solid rgba(220,220,255,.16); background: rgba(16,20,44,.86); color: #ECEAF6; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.rpick button.on { border: 2px solid #F0CF7A; background: linear-gradient(rgba(240,207,122,.13), rgba(240,207,122,.13)), rgba(16,20,44,.86); }
.rpick .h { display: flex; align-items: center; gap: 8px; }
.rpick .h svg { width: 22px; height: 22px; flex: none; }
.rpick button.on .h { color: #F0CF7A; }
.rpick b { font-size: calc(13.6px * var(--fs)); color: #ECEAF6; }
.rpick small { font-size: calc(11.2px * var(--fs)); color: #C3C0DC; }
.rspeed { flex-direction: column; gap: 6px; font-size: calc(12px * var(--fs)); }
.rspeed input { max-width: none; }
.bowplay { gap: 12px; }
.bp-l { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 420px; }
.bp-vow { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 14px; background: rgba(16,20,44,.66); color: #ECEAF6; font-size: calc(11.2px * var(--fs)); text-align: left; }
.bp-vow b { font-size: calc(14px * var(--fs)); }
.bp-vow em { font-style: normal; color: #F0CF7A; }
.bp-c { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.bp-guide { font-size: calc(13.6px * var(--fs)); line-height: 1.5; text-shadow: 0 1px 8px rgba(0,0,0,.75); }
.bp-guide span { font-size: calc(12px * var(--fs)); opacity: .92; }
.bp-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bp-btns .btn { min-height: 48px; background: rgba(16,20,44,.74); color: #ECEAF6; border-color: rgba(220,220,255,.22); }
.bp-btns .rpill { min-height: 48px; background: rgba(16,20,44,.74); }
.bp-btns .rpill.on { background: #F0CF7A; }
.bp-tap { min-width: 180px; min-height: 60px; }
.bp-done { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 480px; }
.bp-today { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.bp-today h3 { font-size: calc(13.6px * var(--fs)); text-shadow: 0 1px 8px rgba(0,0,0,.75); }
.bp-r { display: none; }

/* 기도 초: 내 제단(초 자리 5개) · 새 초 세우기 */
.altar { padding: 16px 10px; border-radius: 20px; background: radial-gradient(ellipse at 50% 90%, rgba(240,170,80,.2), rgba(14,10,8,.88) 72%); border: 1px solid rgba(240,207,122,.22); }
.cslots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
[data-fs="150"] .cslots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-fs="175"] .cslots, [data-fs="200"] .cslots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cslot { min-height: 150px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 4px; border-radius: 14px; border: 1px dashed rgba(240,207,122,.4); background: transparent; color: #F0CF7A; text-decoration: none; text-align: center; font-size: calc(10.4px * var(--fs)); }
.cslot i { font-style: normal; font-size: calc(16px * var(--fs)); line-height: 1; }
.cslot.lit { justify-content: flex-start; border: 1px solid rgba(240,207,122,.3); background: rgba(24,16,10,.6); color: #ECEAF6; }
.cslot .fl { width: 26px; height: 56px; flex: none; }
.cslot b { font-size: calc(10.4px * var(--fs)); font-weight: 500; line-height: 1.35; }
.cslot em { font-style: normal; color: #F0CF7A; font-size: calc(9.6px * var(--fs)); }
.cslot small { font-size: calc(9.6px * var(--fs)); color: #C3C0DC; }
.cmus { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 14px; border: 1px solid rgba(220,220,255,.16); background: rgba(16,20,44,.86); color: #ECEAF6; font-size: calc(11.2px * var(--fs)); text-align: left; }
.cmus svg { width: 20px; height: 20px; flex: none; color: #F0CF7A; }
.cmus > span { flex: 1; min-width: 0; }
.cmus em { font-style: normal; color: #F0CF7A; flex: none; }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rchips button { flex: 1 0 auto; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(220,220,255,.16); background: transparent; color: #ECEAF6; font-size: calc(12px * var(--fs)); }
.rchips button.on { background: #F0CF7A; color: #1A1E3A; border-color: #F0CF7A; font-weight: 700; }
.rchips button[disabled] { opacity: .45; cursor: default; }
.stage.cnd .cbar #cmsg { text-shadow: 0 1px 8px rgba(0,0,0,.8); }

@media (min-width: 1025px) {
  .pc-only { display: block; }
  .pagehead.bh { padding-top: 8px; }
  .bh h1 { font-size: calc(25.3px * var(--fs)); }
  .pagehead.bh .bh-t { flex-direction: row; align-items: baseline; gap: 16px; flex-wrap: wrap; }
  .rwrap, .wtop { max-width: 1184px; margin: 0 auto; padding: 0; }
  .rwrap.rtop { padding-bottom: 14px; }
  .rtop .rtabs { max-width: min(100%, calc(373px * var(--fs))); width: 100%; }
  .rtabs a { font-size: calc(12px * var(--fs)); }
  .wtop { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-bottom: 12px; }
  .wtop #rintro { flex: 1 1 100%; }
  .rdo { display: grid; grid-template-columns: minmax(0, 600fr) minmax(0, 520fr); gap: 40px; align-items: start; }
  .rside { display: flex; }
  .rlist { max-width: 760px; }
  .rite3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(calc(213px * var(--fs)), 36%)); gap: 32px; max-width: 1184px; margin: 0 auto; padding: 0; align-items: start; }
  .r3-side { order: 0; }
  .r3card { min-height: 200px; padding: 22px; }
  .r3card b { font-size: calc(16px * var(--fs)); }
  .rlatest { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: rgba(16,20,44,.82); border: 1px solid rgba(220,220,255,.16); color: #ECEAF6; text-decoration: none; }
  .rlatest small { font-size: calc(10.7px * var(--fs)); color: #C3C0DC; }
  .rlatest span { font-size: calc(12px * var(--fs)); font-weight: 400; line-height: 1.5; }
  .rlatest em { font-style: normal; font-size: calc(10px * var(--fs)); color: #F0CF7A; }
  .wdone { margin-top: 12vh; }
  .stage.bowplay { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 380px); align-items: center; gap: 32px; max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
  .bp-l, .bp-r { align-self: center; }
  .bp-r { display: flex; flex-direction: column; gap: 10px; }
  [data-fs="150"] .cslots, [data-fs="175"] .cslots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  [data-fs="200"] .cslots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
