/* Cinema Ballad — 옛 영화관의 어둠과 금빛 */
:root {
  --bg: #0d0b09;
  --ink: #f3ece0;
  --muted: #b5a993;
  --gold: #d9b26a;
  --gold-soft: rgba(217, 178, 106, .18);
  --glass: rgba(20, 16, 12, .55);
  --line: rgba(243, 236, 224, .14);
  --serif: "Cormorant Garamond", "Noto Serif", "Noto Serif KR", Georgia, serif;
  --sans: system-ui, "Noto Sans", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--muted); }
[hidden] { display: none !important; }

/* 필름 결 */
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 50; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

.screen {
  min-height: 100dvh; max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 20px);
  position: relative;
}

/* 머리 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 5; min-height: 48px; }
.brand { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; }
.brand-mark { color: var(--gold); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.chip {
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px);
  padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--ink); min-height: 40px;
}
.chip.on { border-color: var(--gold); color: var(--gold); }
.lang-menu {
  position: absolute; right: 0; top: 52px; background: #1b1612; border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; display: grid; min-width: 160px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.lang-menu button { text-align: left; padding: 12px 14px; border-radius: 10px; }
.lang-menu button:hover { background: var(--gold-soft); }

/* 인사 */
.hello { margin: 28px 0 22px; }
.greet { color: var(--gold); margin: 0 0 6px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.hello h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 8vw, 38px); line-height: 1.15; margin: 0; }

/* 모드 카드 */
.modes { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mode {
  position: relative; overflow: hidden; border-radius: 20px; min-height: 96px;
  text-align: left; display: flex; align-items: flex-end; isolation: isolate;
  background: linear-gradient(160deg, #2a2118, #120e0b);
  border: 1px solid var(--line);
  transition: transform .25s ease;
}
.mode:active { transform: scale(.98); }
.mode.rec { aspect-ratio: 4 / 3; border-color: rgba(217,178,106,.45); margin-bottom: 4px; }
.mode:not(.rec) { align-items: center; }
.mode:not(.rec)::after { background: linear-gradient(to right, rgba(10,8,6,.92) 25%, rgba(10,8,6,.25)); }
.mode:not(.rec) .mode-txt { padding: 14px 18px; }
.mode-bg {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  filter: saturate(.85) brightness(.75); transform: scale(1.04); transition: transform 6s ease;
}
.mode:hover .mode-bg { transform: scale(1.1); }
.mode::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,8,6,.92) 8%, rgba(10,8,6,.15) 65%); }
.mode-txt { padding: 16px; display: grid; gap: 4px; }
.mode-txt em { font-style: normal; font-size: 12px; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.mode-txt strong { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.mode.rec .mode-txt strong { font-size: 34px; }
.mode-txt small { color: var(--muted); font-size: 13px; line-height: 1.35; }

.foot { margin-top: 28px; text-align: center; font-size: 13px; color: var(--muted); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.foot .by { width: 100%; margin: 6px 0 0; font-size: 12px; opacity: .6; letter-spacing: .12em; }

/* 재생 화면 */
.player { display: flex; flex-direction: column; overflow: hidden; }
.scene {
  position: fixed; inset: 0; background-size: cover; background-position: center; opacity: 0;
  transition: opacity 1.6s ease; animation: drift 40s ease-in-out infinite alternate; z-index: 0;
}
.scene.show { opacity: 1; }
@keyframes drift { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.18) translate(-2%, -2%); } }
@media (prefers-reduced-motion: reduce) { .scene { animation: none; } }
.scene-shade { position: fixed; inset: 0; z-index: 0; background: linear-gradient(to bottom, rgba(10,8,6,.55), rgba(10,8,6,.2) 35%, rgba(10,8,6,.92) 75%); }
.player > *:not(.scene):not(.scene-shade) { position: relative; z-index: 2; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.done svg { stroke: var(--gold); }
.icon-btn.busy { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.mode-name { font-family: var(--serif); font-size: 22px; letter-spacing: .05em; }

.now { margin-top: 22px; }
/* 움직이는 표지: 곡 장면 영상(없으면 그림이 천천히 다가옴). 뒤 배경은 같은 그림을 흐리게 */
.movie {
  margin-top: auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; position: relative;
  background: #1a140d; border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px); transition: opacity .9s ease, transform .9s ease;
}
.movie.show { opacity: 1; transform: none; }
.movie-img, .movie video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: center / cover no-repeat; }
.movie-img { animation: drift 30s ease-in-out infinite alternate; }
.movie video { opacity: 0; transition: opacity .8s ease; }
.movie video.on { opacity: 1; }
.player .scene { filter: blur(26px) brightness(.75) saturate(1.15); }
.now-label { color: var(--gold); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; }
.track-title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 8vw, 40px); line-height: 1.1; margin: 0; }
.track-album { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.mv-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 8px 16px 8px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px);
}
.mv-link:active { background: rgba(255,0,51,.22); }
.mv-link .yt { width: 30px; height: 21px; flex: none; }

.controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 22px 0 16px; }
.controls > span { display: none; }
.skip { order: -1; display: flex; align-items: center; gap: 26px; }
.icon-btn.big { width: 54px; height: 54px; }
.icon-btn.big svg { width: 24px; height: 24px; fill: var(--ink); }
.play { width: 78px; height: 78px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(243,236,224,.08); }
.play svg { width: 30px; height: 30px; fill: var(--bg); }
.play .i-pause, .playing .play .i-play { display: none; }
.playing .play .i-pause { display: block; }
.playing .play { animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 16px rgba(217,178,106,.12); } }

.mixer { background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px 10px; }
.mixer-title { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.slider { display: grid; gap: 2px; font-size: 13px; padding: 6px 0; }
.slider.music { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.layers:empty + .slider.music { border-top: 0; margin-top: 0; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: var(--line); border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); margin-top: -7.5px; }
input[type=range]::-moz-range-track { height: 3px; background: var(--line); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translateX(-50%);
  background: #1b1612; border: 1px solid var(--line); padding: 12px 18px; border-radius: 14px; font-size: 14px;
  z-index: 60; max-width: calc(100% - 32px); text-align: center;
}

/* 타이머 시트 */
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { background: #17130f; border: 1px solid var(--line); border-radius: 24px 24px 0 0; padding: 20px 16px calc(env(safe-area-inset-bottom) + 24px); width: 100%; max-width: 560px; }
.sheet-title { font-family: var(--serif); font-size: 22px; margin: 0 0 14px; }
.sheet-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* 안드로이드 앱 안: 곡이 이미 앱 안에 있어 받아 두기 버튼이 필요 없다 */
.native #dlBtn { display: none; }

/* ================= 2차: 탭·소리·수면·호흡 ================= */
:root { --nav-h: 64px; --card: rgba(255, 245, 225, .045); }
.tab { padding-bottom: calc(env(safe-area-inset-bottom) + var(--nav-h) + 24px); }
.has-mini .tab { padding-bottom: calc(env(safe-area-inset-bottom) + var(--nav-h) + 96px); }
.in-player .nav, .in-player .mini, .in-player .tab { display: none !important; }
.page-title { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 8px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 6px 0 12px; }
.hint.gold { color: var(--gold); }
.sec-title { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 28px 0 12px; }

/* 아래 탭 */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(13, 11, 9, .92); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.nav button { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; color: var(--muted); }
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav button.on { color: var(--gold); }

/* 작은 재생 막대 */
.mini {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 29;
  max-width: 540px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px;
  background: rgba(36, 29, 22, .94); backdrop-filter: blur(16px); border: 1px solid rgba(217,178,106,.3); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.mini-open { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; }
.mini-img { width: 44px; height: 44px; border-radius: 12px; background: #2a2118 center/cover; flex: none; }
.mini-txt { display: grid; min-width: 0; }
.mini-txt b, .mini-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-txt b { font-weight: 600; font-size: 14px; }
.mini-txt small { color: var(--muted); font-size: 12px; }
.mini-play { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.mini-play svg { width: 18px; height: 18px; fill: var(--bg); }
.mini-play .i-pause, .playing .mini-play .i-play { display: none; }
.playing .mini-play .i-pause { display: block; }

/* 홈: 바로가기·오늘의 곡 */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 12px;
  display: grid; gap: 4px; justify-items: start; text-align: left; min-height: 104px; align-content: start;
}
.tile svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.tile b { font-size: 15px; font-weight: 600; }
.tile small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.pick { flex: 0 0 42%; max-width: 200px; scroll-snap-align: start; cursor: pointer; display: grid; gap: 4px; align-content: start; }
.pick-img { aspect-ratio: 1; border-radius: 16px; background: #2a2118 center/cover; border: 1px solid var(--line); }
.pick b { font-size: 14px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
.pick small { color: var(--muted); font-size: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px; margin-bottom: 14px; }
.card.ask { border-color: rgba(217,178,106,.45); }
.card.ask p { margin: 0 0 8px; }
.card-title { font-family: var(--serif); font-size: 21px; margin: 0 0 10px; }
.card-title.sp { margin-top: 26px; }

/* 고르기 칩 줄 */
.cats { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 8px; padding: 0 16px 4px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats .chip { white-space: nowrap; flex: none; min-height: 36px; padding: 7px 14px; }
.chip.wide { width: 100%; margin-top: 10px; }

/* 곡 목록 */
.track-list { display: grid; gap: 4px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 14px; cursor: pointer; }
.row:active, .row.cur { background: var(--gold-soft); }
.thumb { width: 52px; height: 52px; border-radius: 12px; background: #2a2118 center/cover; flex: none; position: relative; }
.row-txt { flex: 1; display: grid; min-width: 0; }
.row-txt b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-txt small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.cur .row-txt b { color: var(--gold); }
.heart { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.heart svg, #favBtn svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
#favBtn svg { stroke: var(--ink); }
.heart.on svg, #favBtn.on svg { fill: #d9667a; stroke: #d9667a; }
.top-r { display: flex; gap: 8px; }
.pv { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); border-radius: 12px; }
.pv svg { width: 20px; height: 20px; fill: #fff; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-right: 8px; }
.radio.on { border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 10px var(--gold); }

/* 소리: 금빛 명판 */
.plaques { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; margin-top: 10px; }
.plaque { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; font-size: 13px; color: var(--muted); }
.pl-ic {
  width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(155deg, #4a3b28, #2b2117); border: 1px solid rgba(217,178,106,.22);
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease;
}
.pl-ic svg { width: 36px; height: 36px; fill: none; stroke: #c9ab72; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: #c9ab72; }
.plaque small { font-size: 11px; margin-top: -4px; opacity: .8; }
.plaque.on { color: var(--ink); }
.plaque.on .pl-ic {
  background: linear-gradient(155deg, #f0d79e, #c99a4e); border-color: #f3dfae; transform: scale(1.06);
  box-shadow: 0 0 0 4px rgba(217,178,106,.15), 0 10px 26px rgba(217,178,106,.25), inset 0 -3px 6px rgba(90,60,20,.35);
}
.plaque.on .pl-ic svg { stroke: #4a3216; color: #4a3216; }
.plaque:active .pl-ic { transform: scale(.94); }
.active-panel { margin-top: 22px; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px 12px; }
.active-panel .hint { margin: 0; text-align: center; }
.sheet-row.end { justify-content: flex-end; margin-top: 10px; }
.sheet-row.center { justify-content: center; margin: 18px 0; }

/* 믹스 */
.mix-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mix { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; min-height: 96px; cursor: pointer; display: grid; align-content: space-between; gap: 10px; }
.mix:active { background: var(--gold-soft); }
.mix-ics { display: flex; gap: 6px; }
.mix-ics svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--gold); }
.mix b { font-size: 15px; font-weight: 600; }
.mix .x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; color: var(--muted); font-size: 20px; }

/* 수면 */
.sleep-now { display: grid; gap: 12px; }
.sleep-now .label { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.sleep-now .muted { margin: 0; }
.btn-gold {
  width: 100%; min-height: 56px; border-radius: 18px; font-size: 17px; font-weight: 600; color: #2b1d0c;
  background: linear-gradient(155deg, #f0d79e, #c99a4e); display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 26px rgba(217,178,106,.2);
}
.btn-gold svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.big-moon { margin: 4px 0 0; text-align: center; }
.big-moon svg { width: 56px; height: 56px; fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1.2; }
.sleep-since { text-align: center; font-family: var(--serif); font-size: 22px; margin: 0; }
.sleep-now .big-moon ~ .muted { text-align: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-between .card-title { margin: 0; }
.time-in {
  width: 100%; margin: 12px 0 6px; font: 500 46px var(--serif); color: var(--ink); text-align: center;
  background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 18px; padding: 8px; color-scheme: dark;
}
.time-in:disabled { opacity: .5; }
.set-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 2px; border-top: 1px solid var(--line); font-size: 15px; text-align: left; flex-wrap: wrap; }
.chips-sm { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-sm .chip { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.warn { display: flex; align-items: center; gap: 10px; background: rgba(217,178,106,.1); border: 1px solid rgba(217,178,106,.35); border-radius: 14px; padding: 10px 12px; margin: 8px 0; font-size: 13px; }
.warn span { flex: 1; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: rgba(243,236,224,.18); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { opacity: .4; }
.arc { position: relative; max-width: 320px; margin: 0 auto 8px; }
.arc svg { width: 100%; display: block; }
.arc-mid { position: absolute; left: 0; right: 0; top: 50%; text-align: center; font-family: var(--serif); font-size: 26px; }
.arc-l, .arc-r { position: absolute; bottom: -10px; display: grid; justify-items: center; font-size: 13px; color: var(--muted); }
.arc-l { left: 0; } .arc-r { right: 0; }
.arc-l svg, .arc-r svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; }
.bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; justify-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.bar i { width: 60%; align-self: end; min-height: 3px; border-radius: 8px; background: linear-gradient(to top, #7d6a9e, #d9b26a); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.stats div { background: rgba(0,0,0,.2); border-radius: 14px; padding: 12px; display: grid; gap: 4px; }
.stats small { color: var(--muted); font-size: 12px; }
.stats b { font-family: var(--serif); font-size: 20px; font-weight: 500; }

/* 시트(믹스 이름·알람 소리) */
.sheet { z-index: 50; }
.sheet-box.tall { max-height: 78vh; overflow-y: auto; }
.text-in { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }

/* 호흡 */
.breath {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(circle at 50% 40%, #2a2030, #0d0b09 70%);
}
.breath .top { max-width: 560px; margin: 0 auto; }
.breath-setup { max-width: 560px; margin: 24px auto 0; display: grid; gap: 10px; }
.pat { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 4px; }
.pat b { font-size: 16px; font-weight: 600; }
.pat small { color: var(--muted); font-size: 13px; }
.pat.on { border-color: var(--gold); background: var(--gold-soft); }
.breath-run { display: grid; justify-items: center; gap: 22px; margin-top: 8vh; }
.breath-ring { width: min(76vw, 320px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(217,178,106,.25); display: grid; place-items: center; position: relative; }
.breath-ball {
  position: absolute; inset: 8%; border-radius: 50%; transform: scale(.45);
  background: radial-gradient(circle at 40% 35%, rgba(240,215,158,.9), rgba(201,154,78,.55) 55%, rgba(125,106,158,.25));
  box-shadow: 0 0 60px rgba(217,178,106,.35);
}
.breath-word { position: relative; font-family: var(--serif); font-size: 30px; margin: 0; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

@media (min-width: 600px) {
  .plaques { grid-template-columns: repeat(4, 1fr); }
  .pick { flex-basis: 30%; }
}

/* 정보 탭 */
#tab-info { padding-top: 22px; }
.chan { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 26px 18px 22px; }
.chan-logo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.chan-name { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 8px 0 0; }
.chan p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.how { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 14px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.how li::before { content: counter(how); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--bg); background: var(--gold); margin-top: 1px; }
.btn-gold.mail { margin-top: 12px; text-decoration: none; }

/* 자체 광고: 탭 아래 작은 띠 하나 + 우리 앱 더 보기 */
.house:empty { display: none; }
.house { margin: 22px 0 6px; }
.house-band, .more-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.house-band img, .more-item img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; background: #000; }
.house-band .h-txt, .more-item .h-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.house-band b, .more-item b { font-size: 14px; font-weight: 600; }
.house-band small, .more-item small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.house-band i, .more-item i { font-style: normal; color: var(--gold); font-size: 20px; }
.more-list { display: flex; flex-direction: column; gap: 10px; }
.more-item small { white-space: normal; }
#moreCard .chip.wide { margin-top: 12px; }

/* 공용 부품(duriup-kit.js) 색을 앱에 맞춤 — 의견 보내기·아이폰 설치 안내 시트 */
:root { --surf2: #17130f; --bd: rgba(243, 236, 224, .14); --bd2: rgba(243, 236, 224, .26); --t1: #f3ece0; --t2: #b5a993;
  --bg2: #1f1913; --green: #d9b26a; --onAccent: #1a140c; --greenT: #d9b26a; --greenB: rgba(217, 178, 106, .18); }
.dk-fb-wrap { margin-top: 10px; }
/* kit 1.1 Mais 탭 색(공용 틀이 이 변수를 따름) */
:root { --surf: rgba(255, 245, 225, .045); --surf3: rgba(255, 245, 225, .09); --t3: #8f846f; --green2: #e7c487; --sh: 0 10px 30px rgba(0, 0, 0, .35); }
#dkMais { margin-bottom: 14px; }

/* 앱 소개 페이지 카드(1205) */
.about .aboutLink { display: inline-block; margin-top: 12px; text-decoration: none; }
