/* 모바일 청첩장 */
:root {
  color-scheme: light only;
  --outer: #e9e6e1;
  --bg: #fbfaf8;
  --bg2: #f3f1ed;
  --ink: #232321;
  --ink2: #44423e;
  --sub: #77736c;
  --mute: #a5a19a;
  --line: #e4e0d9;
  --line2: #d6d1c9;
  --point: #3e4b3a;
  --sun: #b4574c;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --en: 'Poppins', var(--sans);
  --script: 'Mrs Saint Delafield', cursive;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--outer);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
body.editing { padding-bottom: 76px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
.en { font-family: var(--en); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 480px) {
  .page { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* 공통 섹션 */
.sec { position: relative; padding: 96px 28px; }
.sec.alt { background: var(--bg2); }
.hd { margin-bottom: 40px; }
.hd-en { font-family: var(--en); font-size: 36px; font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
.hd-ko { margin-top: 10px; font-size: 13px; color: var(--sub); }
.title { margin-bottom: 18px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.text { font-size: 15px; line-height: 2; color: var(--ink2); }
.note { font-size: 14px; line-height: 1.8; color: var(--sub); }
.empty { padding: 20px 0; font-size: 14px; color: var(--mute); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { background: var(--bg2); }
.btn.primary { border-color: var(--point); background: var(--point); color: #fff; }
.btn.primary:active { opacity: 0.88; }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 8px; }
.map-btns .btn { padding: 0 8px; font-size: 14px; }

/* 나타나는 효과 */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.rv.in { opacity: 1; transform: none; }
body.editing .rv { opacity: 1; transform: none; transition: none; }

/* 커버: 에디토리얼 */
.cover { position: relative; padding: 0; overflow: hidden; }
.cv-ed {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  max-height: 940px;
  background: #2b3128;
  color: #fff;
}
.cv-ed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: cv-in 2.4s ease both; }
.cv-ed .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.34));
}
.cv-ed.dark { color: #1d1d1b; }
.cv-ed.dark .scrim { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.36)); }
.ed-big {
  font-family: var(--en);
  font-size: clamp(40px, 12.4vw, 54px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
  white-space: pre-line;
}
.ed-small { font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.ed-top { position: absolute; top: calc(env(safe-area-inset-top) + 44px); left: 28px; right: 28px; animation: up-in 1.4s 0.3s ease both; }
.ed-top .ed-small { margin-top: 14px; }
.ed-bottom { position: absolute; right: 28px; bottom: 108px; left: 28px; text-align: right; animation: up-in 1.4s 0.6s ease both; }
.ed-last { display: flex; align-items: baseline; justify-content: flex-end; gap: 16px; }
.ed-bottom > .ed-small { margin-top: 12px; }
.ed-names {
  position: absolute;
  right: 28px;
  bottom: calc(env(safe-area-inset-bottom) + 40px);
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
  animation: up-in 1.4s 0.9s ease both;
}
.ed-names svg { width: 36px; height: 12px; }
@keyframes cv-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes up-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 커버: 손글씨 */
.cv-sc .photo { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg2); }
.cv-sc .photo img { width: 100%; height: 100%; object-fit: cover; animation: cv-in 2.4s ease both; }
.cv-sc .lettering {
  position: absolute;
  top: 6%;
  right: 0;
  left: 0;
  font-family: var(--script);
  font-size: clamp(44px, 14vw, 62px);
  line-height: 1;
  text-align: center;
  color: var(--point);
  transform: rotate(-5deg);
  animation: up-in 1.6s 0.4s ease both;
}
.cv-sc .lettering.white { color: #fff; }
.cv-sc .lettering.ink { color: var(--ink); }
.cv-sc .info { padding: 44px 28px 72px; text-align: center; }
.cv-sc .date { font-family: var(--en); font-size: 22px; font-weight: 300; letter-spacing: 0.14em; color: var(--point); }
.cv-sc .names { margin: 18px 0 14px; font-size: 24px; font-weight: 600; }
.cv-sc .names span { margin: 0 12px; font-size: 14px; font-weight: 400; color: var(--sub); vertical-align: 3px; }
.cv-sc .when { font-size: 15px; line-height: 1.8; color: var(--sub); }


/* 신랑 신부 */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-photo { aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 18px; border-radius: 4px; background: var(--bg2); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-role { font-size: 13px; font-weight: 500; color: var(--point); }
.pf-name { margin: 2px 0 8px; font-size: 20px; font-weight: 600; }
.pf-parents { font-size: 13px; line-height: 1.7; color: var(--sub); }
.pf-parents b { font-weight: 500; color: var(--ink2); }
.pf-grid + .btn { margin-top: 40px; }

/* 연락하기 */
.ct-group + .ct-group { margin-top: 24px; }
.ct-group h3 { margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--point); }
.ct-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ct-row .who { flex: 1; font-size: 15px; }
.ct-row .who small { margin-right: 8px; font-size: 13px; color: var(--sub); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  background: #fff;
  color: var(--ink2);
}
.icon-btn svg { width: 18px; height: 18px; }

/* 예식 일시 */
.cal-big { font-family: var(--en); font-size: 30px; font-weight: 300; letter-spacing: 0.02em; }
.cal-sub { margin: 4px 0 36px; font-size: 15px; color: var(--sub); }
.cal { width: 100%; padding: 20px 0 16px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); text-align: center; }
.cal-month { margin-bottom: 14px; font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--point); }
.cal-head, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head span { padding-bottom: 10px; font-size: 13px; color: var(--sub); }
.cal-days span { display: flex; align-items: center; justify-content: center; height: 40px; font-size: 15px; }
.cal-head span:first-child, .cal-days .sun { color: var(--sun); }
.cal-days .day { position: relative; z-index: 0; font-weight: 600; color: #fff; }
.cal-days .day::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--point);
}
.dday-wrap { display: flex; align-items: baseline; gap: 14px; margin-top: 32px; }
.dday-big { font-family: var(--en); font-size: 40px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; color: var(--point); }
.dday { font-size: 14px; color: var(--sub); }

/* 갤러리 */
.gallery { padding-right: 16px; padding-left: 16px; }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 6px; }
.g-item { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: var(--bg2); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.g-item:active img { transform: scale(0.98); }
.g-p { aspect-ratio: 2 / 3; }
.g-l { grid-column: span 2; aspect-ratio: 3 / 2; }
.g-best { grid-column: span 2; }
.g-more { margin-top: 24px; }

/* 오시는 길 */
.venue { font-size: 19px; font-weight: 600; }
.venue-sub { margin-top: 4px; font-size: 14px; color: var(--sub); }
.venue-addr { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 0; border: 0; background: none; font-size: 14px; color: var(--sub); }
.venue-addr svg { width: 14px; height: 14px; }
.map-img { display: block; width: 100%; margin: 28px 0 10px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; cursor: zoom-in; }
.map-img img { width: 100%; }
.loc-list { margin-top: 36px; text-align: left; }
.loc-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.loc-item:last-child { border-bottom: 1px solid var(--line); }
.loc-item h3 { font-size: 14px; font-weight: 600; color: var(--point); }
.loc-item p { font-size: 14px; line-height: 1.8; color: var(--ink2); white-space: pre-line; }

/* 마음 전하실 곳 */
.acc { margin-top: 28px; text-align: left; }
.acc-box { border: 1px solid var(--line2); border-radius: 6px; background: #fff; overflow: hidden; }
.acc-box + .acc-box { margin-top: 10px; }
.acc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
}
.acc-toggle svg { width: 18px; height: 18px; color: var(--sub); transition: transform 0.25s ease; }
.acc-box.open .acc-toggle svg { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 18px 6px; border-top: 1px solid var(--line); }
.acc-box.open .acc-body { display: block; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.acc-row + .acc-row { border-top: 1px solid var(--line); }
.acc-row .who { flex: 1; min-width: 0; }
.acc-row .who small { display: block; font-size: 13px; color: var(--sub); }
.acc-row .who span { font-size: 15px; }

/* 참석 의사 */
.rsvp-deadline { margin: 10px 0 28px; font-size: 14px; color: var(--point); }

/* 마무리 */
.closing.has-photo { padding-top: 0; }
.closing-photo { aspect-ratio: 4 / 5; margin: 0 -28px 80px; overflow: hidden; background: var(--bg2); }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; }
.closing .text { margin-bottom: 40px; }

.foot { padding: 36px 28px 48px; text-align: center; background: var(--bg2); }
.foot-edit { padding: 8px; border: 0; background: none; font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }

/* 수정 모드 */
.edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--point);
  border-radius: 4px;
  background: #fff;
  color: var(--point);
  font-size: 13px;
  font-weight: 600;
}
.edit-btn svg { width: 14px; height: 14px; }
body.editing .sec::after {
  content: '';
  position: absolute;
  inset: 6px;
  z-index: 4;
  border: 1px dashed var(--point);
  pointer-events: none;
  opacity: 0.55;
}
body.editing.previewing .sec::after, body.editing.previewing .edit-btn { display: none; }
body.editing .cover *, body.editing .cover { animation: none !important; }
.hid-badge { position: absolute; top: 14px; left: 14px; z-index: 5; padding: 0 10px; border-radius: 4px; background: var(--ink); font-size: 12px; line-height: 30px; color: #fff; }
.is-hidden > :not(.edit-btn):not(.hid-badge) { opacity: 0.35; }

.editbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px);
  border-top: 1px solid var(--line2);
  background: #fff;
}
.eb-status { flex: 1; min-width: 0; line-height: 1.35; }
.eb-status b { display: block; font-size: 14px; }
.eb-status span { font-size: 12px; color: var(--sub); }
.eb-status span.dirty { color: var(--sun); }
.editbar .btn { height: 42px; padding: 0 14px; font-size: 14px; }

/* 아래에서 올라오는 편집 창 */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sh-back { position: absolute; inset: 0; background: rgba(20, 20, 18, 0.45); }
.sh-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  max-height: 88vh;
  max-height: 88dvh;
  margin: 0 auto;
  border-radius: 12px 12px 0 0;
  background: #fff;
  animation: sheet-in 0.28s ease both;
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sh-head { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; height: 56px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.sh-head h2 { font-size: 16px; font-weight: 600; text-align: center; }
.sh-head button { height: 40px; border: 0; background: none; font-size: 15px; color: var(--sub); }
.sh-head .sh-done { font-weight: 600; color: var(--point); }
.sh-body { flex: 1; padding: 20px 20px calc(env(safe-area-inset-bottom) + 28px); overflow-y: auto; overscroll-behavior: contain; }

.f { display: block; margin-bottom: 16px; }
.f > span, .f-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--sub); }
.f input[type='text'], .f input[type='tel'], .f input[type='date'], .f input[type='time'], .f input[type='password'], .f input[type='number'], .f select, .f textarea, .inp {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.f select { padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377736c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.f textarea { height: auto; min-height: 120px; padding: 12px; line-height: 1.7; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { border-color: var(--point); outline: none; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.chk { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; }
.chk input { width: 20px; height: 20px; accent-color: var(--point); }
.fs { margin: 8px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.fs:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fs > h3 { margin-bottom: 14px; font-size: 15px; font-weight: 600; }

.seg { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.seg input:checked + span { border-color: var(--point); background: var(--point); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--point); outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { position: relative; text-align: center; font-size: 12px; color: var(--sub); }
.swatches input { position: absolute; opacity: 0; }
.swatches i { display: block; width: 44px; height: 44px; margin-bottom: 4px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line2); }
.swatches input:checked + i { box-shadow: 0 0 0 2px var(--ink); }

.photo-field { display: flex; gap: 14px; align-items: flex-start; }
.photo-field .thumb { flex: none; width: 84px; height: 112px; border-radius: 4px; overflow: hidden; background: var(--bg2); }
.photo-field .thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-field .side { flex: 1; display: grid; gap: 8px; }
.photo-field .side .f { margin: 0; }

.pick-grid, .ge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pick-grid button, .ge-grid button { position: relative; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: var(--bg2); }
.pick-grid img, .ge-grid img { width: 100%; height: 100%; object-fit: cover; }
.ge-grid button.sel { outline: 3px solid var(--point); outline-offset: -3px; }
.ge-grid .num {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(20, 20, 18, 0.7);
  font-size: 12px;
  line-height: 22px;
  color: #fff;
}
.ge-actions {
  position: sticky;
  bottom: calc(-28px - env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 16px -20px 0;
  padding: 12px 20px calc(env(safe-area-inset-bottom) + 12px);
  border-top: 1px solid var(--line);
  background: #fff;
}
.ge-actions .btn { height: 42px; padding: 0 6px; font-size: 13px; }
.ge-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ge-top p { font-size: 13px; color: var(--sub); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.acc-edit { padding: 14px; border: 1px solid var(--line); border-radius: 6px; }
.acc-edit + .acc-edit { margin-top: 10px; }
.acc-edit .f { margin-bottom: 10px; }
.acc-edit .rm { display: flex; justify-content: flex-end; }

.rs-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.rs-sum div { padding: 12px 8px; border-radius: 6px; background: var(--bg2); text-align: center; }
.rs-sum b { display: block; font-size: 20px; font-weight: 600; }
.rs-sum small { font-size: 12px; color: var(--sub); }
.rs-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rs-row .who { flex: 1; min-width: 0; font-size: 14px; }
.rs-row .who small { display: block; font-size: 12px; color: var(--sub); }
.rs-row .icon-btn { width: 34px; height: 34px; }

.msg { margin-top: 8px; font-size: 13px; color: var(--sun); min-height: 18px; }

/* 수정 코드 입력 */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 20, 18, 0.45); }
.modal-card { width: 100%; max-width: 340px; padding: 28px 24px 20px; border-radius: 10px; background: #fff; animation: sheet-in 0.25s ease both; }
.modal-card h2 { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.modal-card p { margin-bottom: 18px; font-size: 14px; color: var(--sub); }
.modal-card .btn-row { margin-top: 12px; }

/* 사진 크게 보기 */
.lb { position: fixed; inset: 0; z-index: 70; background: #111; color: #fff; touch-action: pan-y; }
.lb-stage { position: absolute; inset: 56px 0; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-count { position: absolute; top: 0; left: 0; right: 0; height: 56px; font-family: var(--en); font-size: 14px; line-height: 56px; text-align: center; color: rgba(255, 255, 255, 0.8); }
.lb button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: none; color: #fff; }
.lb button svg { width: 24px; height: 24px; }
.lb-close { top: 4px; right: 4px; }
.lb-prev { top: 50%; left: 4px; margin-top: -24px; }
.lb-next { top: 50%; right: 4px; margin-top: -24px; }

.toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 96px);
  left: 50%;
  z-index: 80;
  max-width: calc(100% - 48px);
  padding: 12px 18px;
  border-radius: 6px;
  background: rgba(30, 30, 28, 0.92);
  font-size: 14px;
  color: #fff;
  transform: translateX(-50%);
  animation: up-in 0.25s ease both;
}

.load { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px; font-size: 15px; color: var(--sub); text-align: center; }

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

/* 배경음악 */
.music {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 14px);
  right: max(14px, calc((100vw - 440px) / 2 + 14px));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 28, 26, 0.42);
  color: #fff;
}
.music svg { width: 18px; height: 18px; }
body.editing .music { top: calc(env(safe-area-inset-top) + 60px); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.eq i { width: 3px; height: 100%; border-radius: 1px; background: #fff; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.4s; }
.eq i:nth-child(3) { animation-delay: -0.7s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.np {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 20px);
  right: calc(max(14px, calc((100vw - 440px) / 2 + 14px)) + 48px);
  z-index: 30;
  max-width: 240px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(28, 28, 26, 0.42);
  font-size: 12px;
  line-height: 28px;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.6s ease;
  animation: up-in 0.4s ease both;
}
.np.out { opacity: 0; }
body.editing .np { top: calc(env(safe-area-inset-top) + 66px); }

/* 오프닝 화면 */
.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 28px;
  background: var(--point);
  color: #fff;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.intro.out { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.intro-in > * { animation: up-in 1.2s ease both; }
.intro-in > :nth-child(2) { animation-delay: 0.25s; }
.intro-in > :nth-child(3) { animation-delay: 0.5s; }
.intro-date { font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.intro-big { margin: 22px 0 26px; font-family: var(--en); font-size: clamp(38px, 11.5vw, 50px); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; white-space: pre-line; }
.intro-names { font-size: 16px; font-weight: 500; }
.intro-names span { margin: 0 10px; font-size: 13px; font-weight: 400; opacity: 0.75; }
body.intro-on .cover, body.intro-on .cover * { animation-play-state: paused; }

.bgm-scale { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--en); font-size: 12px; color: var(--mute); }
