/* ===== 첫눈 · 성에 낀 창문 ===== */
:root {
  --ivory: #f8f6f1;
  --paper: #fffdf9;
  --frost: #e6edf3;
  --ice: #cbd9e5;
  --ink: #1f262e;
  --mute: #5a6672;
  --line: #e6e3dc;
  --blue: #5b7a99;
  --blue-soft: #a9bccd;
  --red: #c47a7a;
  --serif-ko: "Gowun Batang", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --serif-en: "Cormorant Garamond", "Gowun Batang", Georgia, serif;
  --w: 430px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif-ko);
  color: var(--ink);
  background: #e9eef2 radial-gradient(120% 80% at 50% 0%, #f7f9fb 0%, #e3e9ee 60%, #d8e0e7 100%) fixed;
  word-break: keep-all;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ===== 페이지 (폰 폭) ===== */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--w);
  margin: 0 auto;
  background: var(--paper);
  min-height: 100dvh;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 30px 80px rgba(60,80,100,.18);
  padding-bottom: 56px;
  overflow: hidden;
}
@media (max-width: 480px) { .page { box-shadow: none; } }

/* ===== 인트로 ===== */
#intro {
  position: fixed; inset: 0; z-index: 50;
  touch-action: none;
  overscroll-behavior: none;
  transition: opacity 1.1s ease;
}
#intro.done { opacity: 0; pointer-events: none; }
body[data-intro="none"] #intro { display: none; }
body[data-intro="none"] .bgm { opacity: 1; }
.intro-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 60% at 50% 20%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #e3ecf3 0%, #f3f1ec 100%);
  display: grid; place-items: center;
}
.intro-content { text-align: center; padding: 0 24px; transform: translateY(-4vh); }
.intro-eyebrow {
  font-family: var(--serif-en); font-weight: 300; letter-spacing: .38em; text-transform: uppercase;
  font-size: 12px; color: var(--mute); margin: 0 0 18px;
}
.intro-names { font-weight: 400; font-size: clamp(34px, 9vw, 44px); margin: 0; letter-spacing: .06em; }
.intro-names .amp { font-family: var(--serif-en); font-style: italic; font-weight: 300; color: var(--blue); margin: 0 .1em; }
.intro-date { font-family: var(--serif-en); font-size: 22px; letter-spacing: .3em; margin: 18px 0 0; color: var(--ink); }

#frost { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 1.2s ease; }
#frost.clear { opacity: 0; }

.intro-hint {
  position: absolute; left: 50%; bottom: 18vh; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #4d5c6b; font-size: 14px; letter-spacing: .08em;
  pointer-events: none; transition: opacity .5s;
  animation: hint 2.2s ease-in-out infinite;
}
.intro-hint.hide { opacity: 0; }
@keyframes hint {
  0%,100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}
.intro-skip {
  position: absolute; right: 18px; top: calc(env(safe-area-inset-top, 0px) + 16px);
  background: none; border: 0; font-size: 12px; letter-spacing: .12em; color: #6b7a89;
  padding: 8px; opacity: .8;
}

/* ===== 눈 ===== */
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* ===== BGM ===== */
.bgm {
  position: fixed; z-index: 20;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 50%; transform: translateX(calc(var(--w) / 2 - 52px));
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(91,122,153,.25);
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--blue); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(60,80,100,.12);
  opacity: 0; transition: opacity .6s;
}
@media (max-width: 480px) { .bgm { left: auto; right: 14px; transform: none; } }
body.ready .bgm { opacity: 1; }
.bgm svg { transition: opacity .25s; }
.bgm-bars { position: absolute; display: none; gap: 2px; align-items: flex-end; height: 14px; }
.bgm-bars i { width: 3px; background: var(--blue); border-radius: 2px; animation: bar 1s ease-in-out infinite; height: 40%; }
.bgm-bars i:nth-child(2) { animation-delay: .2s; } .bgm-bars i:nth-child(3) { animation-delay: .4s; }
@keyframes bar { 0%,100% { height: 30%; } 50% { height: 100%; } }
.bgm[aria-pressed="true"] svg { opacity: 0; }
.bgm[aria-pressed="true"] .bgm-bars { display: flex; }

/* ===== 공통 섹션 ===== */
.sec { padding: 72px 28px 24px; text-align: center; }
.sec-label {
  font-family: var(--serif-en); font-weight: 400; letter-spacing: .36em; text-transform: uppercase;
  font-size: 11px; color: var(--blue); margin: 0 0 10px;
}
.sec-title { font-weight: 700; font-size: 22px; margin: 0 0 8px; letter-spacing: .02em; }
.sub { color: var(--mute); font-size: 15px; margin: 0 0 26px; }
.note { font-size: 13px; color: var(--mute); background: var(--frost); border-radius: 8px; padding: 8px 12px; margin: 0 0 18px; }

/* ===== 표지 ===== */
.cover { padding: calc(env(safe-area-inset-top, 0px) + 68px) 28px 20px; text-align: center; }
.eyebrow { font-size: 14px; letter-spacing: .2em; color: var(--mute); margin: 0 0 14px; }
.cover-names { font-weight: 700; font-size: 31px; margin: 0; letter-spacing: .12em; display: flex; justify-content: center; align-items: center; gap: 10px; }
.cover-names .dot { color: var(--blue-soft); font-size: 20px; }
.cover-en { font-family: var(--serif-en); font-weight: 300; font-size: 19px; letter-spacing: .14em; color: var(--mute); margin: 6px 0 26px; }
.cover-en i { color: var(--blue); }
.cover-date { font-family: var(--serif-en); font-size: 20px; letter-spacing: .16em; margin: 24px 0 2px; }
.cover-date .sun { font-size: 13px; letter-spacing: .3em; color: var(--blue); vertical-align: 2px; }
.cover-venue { margin: 0; font-size: 15px; color: var(--ink); letter-spacing: .06em; }

/* ===== 사진 자리표시 ===== */
.photo { margin: 0; border: 0; padding: 0; display: block; width: 100%; }
.ph {
  position: relative; overflow: hidden; border-radius: 6px;
  background: linear-gradient(160deg, #e7eef4, #f5f3ee);
  box-shadow: inset 0 0 0 1px rgba(91,122,153,.12);
}
.ph-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif-en); font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(91,122,153,.55); white-space: nowrap;
  padding: 6px 12px; border: 1px dashed rgba(91,122,153,.35); border-radius: 999px;
  background: rgba(255,255,255,.4);
}
.ph-main { aspect-ratio: 3 / 4; border-radius: 160px 160px 8px 8px; }
.ph-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.main-photo { margin: 0 8px; }

/* ===== 축하 하늘 ===== */
.sky {
  position: relative; height: 56vh; min-height: 400px; max-height: 560px; overflow: hidden;
  margin-top: 40px;
  background: linear-gradient(180deg, var(--paper) 0%, #e9f0f5 28%, #dde7ef 70%, var(--paper) 100%);
}
.sky-head { position: absolute; left: 0; right: 0; top: 26px; text-align: center; z-index: 2; pointer-events: none; transition: opacity 1.2s ease; }
.sky-head.faded { opacity: 0; }
.sky-head.faded .sky-cta { pointer-events: none; }
.sky-head .sec-label { margin-bottom: 6px; }
.sky-title { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.sky-field { position: absolute; inset: 0; }
.wish {
  position: absolute; top: -72px; left: 0; max-width: 76%;
  will-change: transform; animation: wish-fall var(--dur, 13s) linear forwards; animation-delay: var(--delay, 0s);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.wish-in {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 11px; border-radius: 999px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(91,122,153,.22);
  box-shadow: 0 8px 22px rgba(60,80,100,.10);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 15px; line-height: 1.45; color: var(--ink);
  animation: wish-sway var(--sway, 4.5s) ease-in-out infinite alternate;
}
.wish-in::before { content: "❄"; color: var(--blue-soft); font-size: 13px; flex: 0 0 auto; }
.wish-msg {
  overflow: hidden; max-width: min(56vw, 240px); word-break: keep-all; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.wish-in { align-items: flex-start; border-radius: 18px; }
.wish-in::before { margin-top: 1px; }
.wish-name { flex: 0 0 auto; font-size: 12.5px; color: var(--mute); letter-spacing: .04em; }
.wish.ghost .wish-in { background: rgba(255,255,255,.45); border-style: dashed; color: var(--mute); }
.wish.special .wish-in { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(91,122,153,.35); }
.wish.special .wish-in::before { content: "♥"; color: #fff; }
.wish.ghost .wish-in::before { content: "❅"; }
@keyframes wish-fall {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(var(--fall, 70vh)); opacity: 0; }
}
@keyframes wish-sway { from { transform: translateX(-10px) rotate(-1deg); } to { transform: translateX(10px) rotate(1deg); } }
.sky-cta {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; margin-top: 12px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 12.5px; letter-spacing: .06em;
  box-shadow: 0 8px 20px rgba(91,122,153,.3); pointer-events: auto;
}
.wish.static { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .wish-in, .chip { animation: none; }
}

/* ===== 이스터에그 ===== */
/* 2. 사진 다섯 번 탭 → 비밀 사진 */
.secret { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none; background: #1f262e; display: grid; place-items: center; }
.secret img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.secret.noimg img { display: none; }
.secret-label { display: none; color: #fff; font-size: 15px; letter-spacing: .1em; }
.secret.noimg .secret-label { display: block; }
.ph-main.reveal-secret .secret { opacity: 1; }
/* 4. Thank you 길게 누르기 */
.thanks { cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.met {
  margin: -24px auto 40px; padding: 18px 22px; width: fit-content; border-radius: 14px;
  background: #fff; border: 1px solid var(--ice); box-shadow: 0 14px 40px rgba(60,80,100,.14);
  display: grid; gap: 4px; text-align: center; animation: met-in .5s cubic-bezier(.2,.8,.2,1.2) both;
}
.met[hidden] { display: none; }
.met-k, .met-s { font-size: 13px; color: var(--mute); letter-spacing: .06em; }
.met b { font-family: var(--serif-en); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--blue); }
.met b span { font-size: 36px; }
@keyframes met-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
/* 5. 당일 배너 */
.today-banner {
  margin: 0 0 22px; padding: 12px 16px; border-radius: 12px; background: var(--blue); color: #fff;
  display: grid; gap: 2px; text-align: center; box-shadow: 0 10px 26px rgba(91,122,153,.3);
}
.today-banner[hidden] { display: none; }
.today-banner b { font-size: 17px; letter-spacing: .2em; }
.today-banner span { font-size: 13px; opacity: .92; }

/* ===== 인사말 ===== */
.greeting { font-size: 16.5px; line-height: 2.05; color: var(--ink); }
.greeting p { margin: 0 0 22px; }
.snowline { display: flex; justify-content: center; gap: 10px; margin: 6px 0 28px; }
.snowline i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-soft); opacity: .7; }
.snowline i:nth-child(2) { width: 7px; height: 7px; opacity: 1; }
.parents { font-size: 16px; line-height: 2.2; }
.parents p { margin: 0; }
.parents .rel { color: var(--mute); font-size: 14.5px; margin: 0 2px; }
.parents b { font-weight: 700; letter-spacing: .08em; }

/* ===== 달력 ===== */
.sec-calendar { background: linear-gradient(180deg, var(--paper), var(--ivory)); }
.calendar { max-width: 320px; margin: 0 auto 30px; padding: 20px 10px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head span { font-size: 13px; color: var(--mute); letter-spacing: .1em; padding-bottom: 10px; }
.cal-head .sun, .cal-grid .sun { color: var(--red); }
.cal-head .sat, .cal-grid .sat { color: var(--blue); }
.cal-grid span { height: 40px; display: grid; place-items: center; font-family: var(--serif-en); font-size: 18px; font-weight: 500; }
.cal-grid span.today {
  position: relative; z-index: 0; color: #fff; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cal-grid span.today:active::before { transform: scale(.92); }
.cal-grid span.today::before {
  content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); z-index: -1;
  box-shadow: 0 0 0 5px rgba(91,122,153,.14);
}
.cal-grid span.today::after {
  content: "♥"; position: absolute; top: -8px; right: 2px; font-size: 9px; color: var(--red);
}
.dday { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.dday-box {
  width: 64px; padding: 10px 0 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 6px 18px rgba(60,80,100,.06);
}
.dday-box b { font-family: var(--serif-en); font-weight: 400; font-size: 26px; line-height: 1; }
.dday-box span { font-size: 9px; letter-spacing: .25em; color: var(--mute); margin-top: 6px; }
.dday-text { font-size: 15px; color: var(--ink); margin: 0; }
.dday-text b { color: var(--ink); font-weight: 700; }
.heart { color: var(--red); }

/* ===== 실제 사진 ===== */
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.has-img .ph-label { display: none; }
.ph.has-img { background: #e9eef2; }

/* ===== 갤러리 ===== */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery .ph { aspect-ratio: 1; cursor: pointer; transition: transform .35s ease; }
.gallery .ph:active { transform: scale(.97); }
.gallery .g1 { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery .g4 { grid-row: span 2; aspect-ratio: auto; }
.gallery .g7 { grid-column: span 2; aspect-ratio: 4 / 3; }

/* ===== 오시는 길 ===== */
.venue { margin-bottom: 18px; }
.venue-name { font-size: 18px; margin: 0; }
.venue-name span { color: var(--mute); font-size: 15px; margin-left: 4px; }
.venue-addr { color: var(--ink); font-size: 15px; margin: 2px 0 10px; }
.map { aspect-ratio: 16 / 10; border-radius: 10px; margin-bottom: 12px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-btns { display: flex; gap: 8px; margin-bottom: 26px; }
.map-btns .btn { flex: 1; }
.how { text-align: left; margin: 0; font-size: 15px; }
.how > div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.how > div:last-child { border-bottom: 1px solid var(--line); }
.how dt { color: var(--blue); letter-spacing: .1em; }
.how dd { margin: 0; color: var(--ink); }
.todo { font-style: normal; font-size: 11px; color: var(--red); opacity: .8; }

/* ===== 버튼 · 칩 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 18px; border-radius: 10px; width: 100%;
  border: 1px solid #c9d1d9; background: #fff; font-size: 15px; letter-spacing: .04em; color: var(--ink);
  transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.kakao { background: #fee500; border-color: #fee500; color: #191919; }
.chip {
  display: inline-block; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--blue-soft); background: #fff; font-size: 13px; color: #3f5f80; letter-spacing: .04em;
}

/* ===== 계좌 ===== */
.acc { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin: 0 0 10px; text-align: left; overflow: hidden; }
.acc summary { list-style: none; padding: 14px 16px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--serif-en); font-size: 20px; color: var(--blue); transition: transform .25s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc-row {
  display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 8px; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14.5px;
}
.acc-row small { display: block; font-size: 12px; color: var(--mute); line-height: 1.2; }
.acc-row span:nth-child(2) { color: var(--ink); font-family: var(--serif-en); font-size: 15.5px; letter-spacing: .02em; }

/* ===== 폼 ===== */
.field {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #c9d1d9; background: #fff;
  font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; color: var(--ink);
}
.field::placeholder { color: #7a8591; }
.field:focus { border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(91,122,153,.12); }
textarea.field { height: auto; padding: 12px 14px; resize: none; line-height: 1.6; }
.rsvp, .guest-form { display: grid; gap: 10px; text-align: left; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--ivory); border-radius: 10px; padding: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; height: 38px; line-height: 38px; border-radius: 8px; font-size: 14px; color: var(--mute); transition: all .2s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(60,80,100,.1); }

/* ===== 방명록 ===== */
.sec-guest { background: linear-gradient(180deg, var(--paper), var(--ivory)); }
.sec-guest.after-sky { padding-top: 30px; }
.sky { margin-top: 56px; }
.sky-cta { border: 0; font-family: inherit; }
.guest-more {
  display: block; width: 100%; margin-top: 10px; height: 42px; border-radius: 10px;
  border: 1px dashed var(--ice); background: transparent; color: var(--blue); font-size: 13px; letter-spacing: .04em;
}
.guest-more[hidden] { display: none; }
.guest-list { list-style: none; padding: 0; margin: 24px 0 0; text-align: left; display: grid; gap: 10px; }
.guest-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; position: relative; }
.guest-list .gname { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.guest-list .gdate { font-family: var(--serif-en); font-size: 12px; color: var(--mute); margin-left: 8px; }
.guest-list .gmsg { margin: 6px 0 0; font-size: 15px; color: var(--ink); white-space: pre-wrap; }
.guest-list .gdel { position: absolute; right: 10px; top: 10px; border: 0; background: none; color: var(--mute); font-size: 18px; line-height: 1; padding: 4px 6px; }
.guest-empty { text-align: center; color: var(--mute); font-size: 13px; border-style: dashed !important; }

/* ===== 공유 · 푸터 ===== */
.sec-share { padding-bottom: 20px; }
.share { display: grid; gap: 8px; margin-bottom: 56px; }
.thanks { display: flex; flex-direction: column; gap: 6px; margin: 0 0 40px; }
.thanks-en { font-family: var(--serif-en); font-style: italic; font-weight: 300; font-size: 34px; color: var(--blue); line-height: 1; }
.thanks span:last-child { font-size: 16px; letter-spacing: .14em; color: var(--ink); }
.foot { font-family: var(--serif-en); font-size: 12px; letter-spacing: .3em; color: var(--mute); margin: 0; }

/* ===== 라이트박스 ===== */
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(20,26,32,.9); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-body { width: min(100%, 420px); display: grid; place-items: center; }
.lb-img { max-width: 100%; max-height: 86dvh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-img[src=""] { display: none; }
.lb-ph { aspect-ratio: 3 / 4; width: 100%; }
.lb-ph[hidden] { display: none; }
.lb-close { position: absolute; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 12px); background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; }

/* ===== 토스트 ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); transform: translate(-50%, 12px);
  background: rgba(43,51,61,.92); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 60; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 스크롤 등장 ===== */
body.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
body.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .intro-hint { animation: none; }
}

/* 내가 쓴 글: 하늘에서 또렷하게 */
.wish.mine { z-index: 3; }
.wish.mine .wish-in {
  background: #fff; border: 2px solid var(--blue); color: var(--ink); font-weight: 700;
  box-shadow: 0 0 0 4px rgba(91,122,153,.16), 0 12px 28px rgba(91,122,153,.28);
  transform-origin: center; animation: wish-sway var(--sway, 4.5s) ease-in-out infinite alternate, mine-pop .6s cubic-bezier(.2,.8,.2,1.3) both;
}
.wish.mine .wish-in::before { content: "❄"; color: var(--blue); }
.wish.mine .wish-name { color: var(--blue); font-weight: 700; }
@keyframes mine-pop { from { scale: .85; } to { scale: 1.06; } }

/* 하트가 하는 말 */
.heart-say {
  position: fixed; z-index: 6; transform: translate(-50%, -100%); pointer-events: none;
  background: #fff; border: 2px solid #ec7f97; color: #c2455f; font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 26px rgba(236,127,151,.3); animation: mine-pop .4s cubic-bezier(.2,.8,.2,1.3) both;
}
.heart-say[hidden] { display: none; }
.heart-say::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: #fff; border-right: 2px solid #ec7f97; border-bottom: 2px solid #ec7f97; transform: translateX(-50%) rotate(45deg); }

/* Thank you · 달력 24일 가끔 흔들흔들 */
.thanks.wiggle, .cal-grid span.today.wiggle { animation: wiggle 1.1s ease-in-out; }
@keyframes wiggle {
  0%,100% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-2.2deg) scale(1.02); }
  40% { transform: rotate(2deg) scale(1.03); }
  60% { transform: rotate(-1.4deg) scale(1.02); }
  80% { transform: rotate(1deg) scale(1.01); }
}
.thanks:active { transform: scale(.97); }

/* ===== 비밀의 방 ===== */
.room { position: fixed; inset: 0; z-index: 45; background: #0e1522; color: #d9dde6; overflow: auto; -webkit-overflow-scrolling: touch; }
.room[hidden] { display: none; }
.door { position: fixed; top: 0; bottom: 0; width: 50%; z-index: 2; background: linear-gradient(90deg, #1a2334, #223049); box-shadow: inset 0 0 0 1px rgba(232,184,109,.15); transition: transform 1.1s cubic-bezier(.7,0,.3,1) .15s; }
.door-l { left: 0; border-right: 2px solid rgba(232,184,109,.35); }
.door-r { right: 0; border-left: 2px solid rgba(232,184,109,.35); }
.door::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #e8b86d; box-shadow: 0 0 18px rgba(232,184,109,.8); }
.door-l::after { right: 16px; } .door-r::after { left: 16px; }
.room.open .door-l { transform: translateX(-100%); }
.room.open .door-r { transform: translateX(100%); }
.room-in {
  position: relative; z-index: 1; max-width: var(--w); margin: 0 auto; min-height: 100dvh;
  padding: calc(env(safe-area-inset-top, 0px) + 56px) 28px calc(env(safe-area-inset-bottom, 0px) + 40px);
  text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .8s ease 1s, transform .8s ease 1s;
  background: radial-gradient(90% 50% at 50% 0%, rgba(232,184,109,.14) 0%, rgba(232,184,109,0) 60%);
}
.room.open .room-in { opacity: 1; transform: none; }
.room-label { font-family: var(--serif-en); letter-spacing: .36em; text-transform: uppercase; font-size: 11px; color: #e8b86d; margin: 0 0 10px; }
.room-title { font-weight: 700; font-size: 24px; margin: 0 0 8px; color: #f3e9d8; }
.room-sub { color: #8f9bb0; font-size: 14.5px; margin: 0 0 30px; }
.room-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.room-ph { margin: 0; }
.room-ph .ph { aspect-ratio: 3 / 4; background: linear-gradient(160deg, #1c2638, #121a29); box-shadow: inset 0 0 0 1px rgba(232,184,109,.25); border-radius: 8px; }
.room-ph .ph-label { color: rgba(232,184,109,.75); border-color: rgba(232,184,109,.4); background: rgba(12,18,29,.5); font-size: 11px; }
.room-ph figcaption { margin-top: 8px; font-size: 13px; color: #c9c4b8; }
.room-letter { background: rgba(255,255,255,.04); border: 1px solid rgba(232,184,109,.22); border-radius: 12px; padding: 22px 20px; margin-bottom: 22px; }
.room-letter-k { font-size: 12.5px; letter-spacing: .14em; color: #e8b86d; margin: 0 0 12px; }
.room-letter-body { font-size: 15.5px; line-height: 2; color: #e4e1da; margin: 0 0 14px; }
.room-letter-s { font-size: 13px; color: #8f9bb0; margin: 0; }
.room-met { display: grid; gap: 4px; margin-bottom: 30px; }
.room-met .met-k { color: #8f9bb0; }
.room-met b { font-family: var(--serif-en); font-weight: 500; font-size: 30px; color: #f6d9a4; line-height: 1.1; }
.room-met b span { font-size: 36px; }
.room-exit { background: transparent; color: #f3e9d8; border-color: rgba(243,233,216,.35); }
body.room-open { overflow: hidden; }

/* 비밀의 방 입구: 사진을 옆으로 밀면 미닫이문 */
html, body { touch-action: manipulation; } /* 아이폰 두 번 탭 확대 방지 */
#gallery .g6 { touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; background: #0e1522; }
#gallery .g6 img { -webkit-user-drag: none; user-drag: none; z-index: 1; will-change: transform; }
#gallery .g6::before {
  content: "비밀의 방"; position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  color: #e8b86d; font-family: var(--serif-ko); font-size: 14px; letter-spacing: .3em;
  background: radial-gradient(60% 50% at 50% 50%, rgba(232,184,109,.18), rgba(14,21,34,0) 70%), #0e1522;
}
#gallery .g6::after {
  content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; z-index: 0;
  background: #e8b86d; box-shadow: 0 0 14px rgba(232,184,109,.9);
}

/* 비밀의 방 상단 돌아가기 */
.room-back {
  position: fixed; left: 16px; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 3;
  height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(243,233,216,.35);
  background: rgba(14,21,34,.7); color: #f3e9d8; font-size: 13.5px; letter-spacing: .04em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .5s ease .6s;
}
.room.open .room-back { opacity: 1; }

/* 실제 지도 · 캘린더 저장 */
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map { background: #e9eef2; }
.cal-save { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }

/* 지도: 보기만, 누르면 앱 선택 */
button.map { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden; border-radius: 10px; }
.map-frame { pointer-events: none; }
.map-hint {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap;
  font-size: 12px; color: #fff; background: rgba(31,38,46,.72); padding: 6px 12px; border-radius: 999px; letter-spacing: .04em;
}
.sheet { position: fixed; inset: 0; z-index: 55; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20,26,32,.5); }
.sheet-body {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, var(--w));
  background: var(--paper); border-radius: 18px 18px 0 0; padding: 18px 20px calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: grid; gap: 8px; animation: sheet-up .3s cubic-bezier(.2,.8,.2,1) both;
}
.sheet-title { margin: 0 0 6px; text-align: center; font-size: 15px; color: var(--ink); }
.sheet-cancel { border-color: transparent; background: var(--ivory); color: var(--mute); }
@keyframes sheet-up { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ===== 달력 24일 눈사람 ===== */
.calendar { position: relative; }
.snowman { position: absolute; z-index: 5; width: 60px; transform: translate(-50%, 0); pointer-events: none; }
.snowman[hidden] { display: none; }
.sm-body { position: relative; width: 60px; height: 74px; animation: sm-up .55s cubic-bezier(.2,.8,.2,1.25) both; transform-origin: 50% 100%; }
.snowman.down .sm-body { animation: sm-down .4s ease-in both; }
.sm-head { position: absolute; left: 50%; top: 0; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: #fff; box-shadow: inset -3px -3px 0 rgba(91,122,153,.12), 0 2px 6px rgba(60,80,100,.15); z-index: 2; }
.sm-torso { position: absolute; left: 50%; bottom: 0; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: #fff; box-shadow: inset -4px -4px 0 rgba(91,122,153,.12), 0 2px 6px rgba(60,80,100,.15); z-index: 1; }
.sm-eye { position: absolute; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: #2b333d; }
.sm-eye.l { left: 9px; } .sm-eye.r { left: 17px; }
.sm-nose { position: absolute; left: 14px; top: 14px; width: 0; height: 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 9px solid #e8853a; transform: rotate(8deg); }
.sm-mouth { position: absolute; left: 11px; top: 20px; width: 9px; height: 4px; border-bottom: 2px solid #2b333d; border-radius: 0 0 8px 8px; }
.sm-scarf { position: absolute; left: 50%; top: 27px; width: 32px; height: 7px; margin-left: -16px; border-radius: 4px; background: var(--blue); z-index: 3; }
.sm-scarf::after { content: ""; position: absolute; right: 2px; top: 5px; width: 7px; height: 14px; border-radius: 3px; background: var(--blue); transform: rotate(-12deg); }
.sm-btn { position: absolute; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #2b333d; }
.sm-btn:nth-child(1) { top: 14px; } .sm-btn:nth-child(2) { top: 24px; }
.sm-arm { position: absolute; right: -2px; bottom: 30px; width: 20px; height: 2.5px; background: #7a5a3a; border-radius: 2px; transform-origin: 0 50%; transform: rotate(-40deg); animation: sm-wave .5s ease-in-out .5s 4 alternate; z-index: 3; }
.sm-arm::after { content: ""; position: absolute; right: -1px; top: -5px; width: 7px; height: 2.5px; background: #7a5a3a; border-radius: 2px; transform: rotate(-50deg); }
.sm-say {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -8px); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; padding: 8px 13px; border-radius: 999px;
  animation: sm-say .35s cubic-bezier(.2,.8,.2,1.3) .45s both;
}
.sm-say::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: var(--ink); transform: rotate(45deg); }
.snowman.down .sm-say { animation: sm-say-out .25s ease-in both; }
@keyframes sm-up { from { transform: translateY(40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sm-down { to { transform: translateY(40px) scale(.6); opacity: 0; } }
@keyframes sm-wave { from { transform: rotate(-40deg); } to { transform: rotate(-80deg); } }
@keyframes sm-say { from { transform: translate(-50%, 0) scale(.7); opacity: 0; } to { transform: translate(-50%, -8px) scale(1); opacity: 1; } }
@keyframes sm-say-out { to { opacity: 0; transform: translate(-50%, 0) scale(.8); } }

/* 지도는 정적 이미지 (살아있는 지도는 스크롤을 잡아먹어서 제거) */
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 24일 말풍선만 (눈사람 제거) */
.snowman { width: 0; height: 0; }
.sm-say { transform: translate(-50%, -10px); }
.sm-say::after { left: calc(50% + var(--tail, 0px)); }
@keyframes sm-say { from { transform: translate(-50%, 0) scale(.7); opacity: 0; } to { transform: translate(-50%, -10px) scale(1); opacity: 1; } }
.sm-say { animation-delay: 0s; }

/* 1) 소제목 키우기 */
.sec-label { font-size: 14px; font-weight: 500; letter-spacing: .3em; color: #3f5f80; margin-bottom: 12px; }
.sky-head .sec-label { font-size: 14px; }

/* 4) 캘린더에 저장: 글자 + 아이콘 두 개 */
.cal-save { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.cal-save-k { font-size: 15px; color: var(--ink); margin-right: 4px; }
.cal-ic {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid #c9d1d9; background: #fff; color: var(--ink); font-size: 13px; letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(60,80,100,.08);
}
.cal-ic:active { transform: scale(.97); }

/* 5) 비밀의 방 흔적 남기기 */
.room-form { display: grid; gap: 8px; text-align: left; margin-bottom: 18px; }
.room-form-k { margin: 0 0 4px; text-align: center; font-size: 13px; letter-spacing: .14em; color: #e8b86d; }
.room-form .field { background: rgba(255,255,255,.06); border-color: rgba(243,233,216,.22); color: #f3e9d8; }
.room-form .field::placeholder { color: #8f9bb0; }
.room-submit { background: #e8b86d; color: #1a1408; border-color: #e8b86d; }
.room-note { margin: 2px 0 0; font-size: 12px; color: #8f9bb0; text-align: center; }
.room-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; text-align: left; }
.room-list li { background: rgba(255,255,255,.04); border: 1px solid rgba(243,233,216,.14); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #d9dde6; }
.room-list li b { color: #f3e9d8; }
.room-list .rc { margin-left: 8px; font-size: 12px; color: #8f9bb0; }
.room-list li p { margin: 4px 0 0; color: #c9c4b8; }
.room-list .r-empty { text-align: center; color: #8f9bb0; border-style: dashed; font-size: 13px; }

/* 지도 그림을 지도 칸 안에 가둠 (이게 빠져서 페이지 전체를 덮었음) */
.map { position: relative; }

/* 약도 */
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* 지도 앱 버튼: 로고 + 한 줄 */
.map-btns .btn.app { padding: 0 8px; gap: 7px; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
.app-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-weight: 800; font-size: 13px; font-family: "Helvetica Neue", Arial, sans-serif; flex: 0 0 auto; }
.app-ic.naver { background: #03c75a; color: #fff; }
.app-ic.kakao { background: #fee500; }
.app-ic.tmap { background: #0f6ee5; color: #fff; }

/* 영문 이름 사이 & → and (글리프 모양 피드백) */
.cover-en .and { font-style: italic; font-weight: 300; font-size: .85em; letter-spacing: .06em; color: var(--blue); margin: 0 .15em; }
/* 소제목 볼드 */
.sec-label { font-weight: 700; }

/* 계좌: 펼침 없이 바로 보이게 */
.acc-h { margin: 0; padding: 12px 16px; font-size: 14px; letter-spacing: .06em; color: var(--mute); background: var(--ivory); }
.acc .acc-row { grid-template-columns: 1fr auto; row-gap: 2px; }
.acc .acc-row span:nth-child(2) { grid-column: 1; font-size: 17px; letter-spacing: .03em; }
.acc .acc-row .chip { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* 영문 이름 사이 & : Playfair Display 이탤릭의 고전적인 앰퍼샌드 */
/* 평범한 & : 기울이지 않은 정자체 */
.cover-en .amp2 { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-style: normal; font-weight: 400; font-size: 1em; color: var(--blue); margin: 0 .1em; }

/* ===== 베스트 포토상 ===== */
/* 갤러리 아래 입구 버튼 */
.bp-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 14px 14px 14px 12px;
  border-radius: 12px; border: 1px solid var(--ice); background: linear-gradient(180deg, #fff, #f3f7fa); text-align: left;
  box-shadow: 0 8px 22px rgba(60,80,100,.10);
}
.bp-btn:active { transform: scale(.99); }
.bp-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; flex: 0 0 auto; }
.bp-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.bp-txt b { font-size: 16px; color: var(--ink); letter-spacing: .02em; }
.bp-txt small { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-arr { font-size: 24px; color: var(--blue); line-height: 1; }

/* 방 */
.proom { position: fixed; inset: 0; z-index: 46; background: var(--ivory); color: var(--ink); overflow: auto; -webkit-overflow-scrolling: touch; }
.proom[hidden] { display: none; }
.proom > * { max-width: var(--w); margin-left: auto; margin-right: auto; }
.pr-head { position: relative; padding: calc(env(safe-area-inset-top, 0px) + 60px) 28px 18px; text-align: center; background: linear-gradient(180deg, #fff, var(--ivory)); }
.pr-back { position: fixed; left: 16px; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 3; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #c9d1d9; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13.5px; color: var(--ink); }
.pr-title { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.pr-sub { margin: 0 0 14px; font-size: 14.5px; color: var(--mute); }
.pr-stats { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.pr-stats b { color: var(--ink); font-family: var(--serif-en); font-size: 15px; }
.pr-up { padding: 6px 20px 10px; }
.pr-pick { height: 48px; gap: 6px; cursor: pointer; }
.pr-note { margin: 10px 0 0; font-size: 12.5px; color: var(--mute); text-align: center; }
.pr-progress { margin-top: 10px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; font-size: 13px; color: var(--ink); }
.pr-progress[hidden] { display: none; }
.pr-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(91,122,153,.18); transition: width .3s; }
.pr-progress span { position: relative; }
.pr-tabs { display: flex; gap: 6px; padding: 8px 20px 12px; }
.pr-tab { flex: 1; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--mute); font-size: 13.5px; }
.pr-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pr-grid { columns: 2; column-gap: 8px; padding: 0 12px calc(env(safe-area-inset-bottom, 0px) + 40px); }
.pr-card { break-inside: avoid; margin: 0 0 8px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(60,80,100,.10); position: relative; }
.pr-card img { display: block; width: 100%; height: auto; cursor: pointer; }
.pr-meta { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 12.5px; color: var(--mute); }
.pr-meta b { color: var(--ink); font-weight: 700; }
.pr-like { border: 1px solid var(--line); background: #fff; color: var(--mute); border-radius: 999px; height: 28px; padding: 0 10px; font-size: 13px; }
.pr-like.on { background: #fde8ee; color: #c2455f; border-color: #f3c9d3; }
.pr-empty { text-align: center; color: var(--mute); font-size: 14px; padding: 40px 20px 80px; }
.pr-empty[hidden] { display: none; }
.pr-view { position: fixed; inset: 0; z-index: 48; background: rgba(10,14,20,.96); display: grid; grid-template-rows: 1fr auto; }
.pr-view[hidden] { display: none; }
.pr-view img { width: 100%; height: 100%; object-fit: contain; }
.pr-close { position: absolute; right: 14px; top: calc(env(safe-area-inset-top, 0px) + 10px); background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; }
.pr-view-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 14px); color: #fff; font-size: 14px; }
.pr-view .pr-like { height: 36px; padding: 0 14px; font-size: 15px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.pr-view .pr-like.on { background: #e88aa0; border-color: #e88aa0; }
body.proom-open { overflow: hidden; }

/* 베스트 포토상: 본인 사진만 */
.bp-txt small { white-space: normal; }
.pr-priv { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.pr-mine-k { margin: 6px 20px 10px; font-size: 14px; color: var(--ink); }
.pr-mine-k b { font-family: var(--serif-en); font-size: 16px; }
.pr-del { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 14px; }

/* 베스트 포토상 입구: 아이콘·화살표 대신 click 배지 */
.bp-btn { padding: 14px 16px; justify-content: space-between; }
.bp-click {
  flex: 0 0 auto; font-family: var(--serif-en); font-style: italic; font-size: 15px; letter-spacing: .08em; color: #fff;
  background: var(--blue); padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(91,122,153,.35);
  animation: click-pulse 1.8s ease-in-out infinite;
}
@keyframes click-pulse {
  0%,100% { transform: scale(1); box-shadow: 0 6px 16px rgba(91,122,153,.35), 0 0 0 0 rgba(91,122,153,.35); }
  50% { transform: scale(1.06); box-shadow: 0 6px 16px rgba(91,122,153,.35), 0 0 0 10px rgba(91,122,153,0); }
}
@media (prefers-reduced-motion: reduce) { .bp-click { animation: none; } }

/* 베스트 포토상: 당일 전 안내 */
.pr-closed { margin: 6px 20px 14px; padding: 18px 16px; border-radius: 12px; background: #fff; border: 1px dashed var(--blue-soft); text-align: center; display: grid; gap: 6px; }
.pr-closed[hidden] { display: none; }
.pr-closed b { font-size: 15.5px; color: var(--ink); }
.pr-closed span { font-size: 13.5px; color: var(--mute); line-height: 1.7; }
.pr-up[hidden] { display: none; }
.sky-head { transition: opacity .6s ease; }

/* 비밀의 방 문고리 */
#gallery .g6::after {
  width: 14px; height: 14px; margin-top: -7px; left: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2cf, #e8b86d 55%, #a67a35);
  box-shadow: 0 0 0 3px rgba(232,184,109,.25), 0 0 16px rgba(232,184,109,.9);
}

/* 라이트박스: 이전/다음·카운터, 확대·저장 방지 */
.lightbox { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.lb-img { -webkit-touch-callout: none; -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 38px; line-height: 1; font-family: var(--serif-en);
}
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-count { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%); color: rgba(255,255,255,.75); font-family: var(--serif-en); font-size: 14px; letter-spacing: .12em; }
#gallery img, .ph-main img { -webkit-touch-callout: none; -webkit-user-drag: none; user-drag: none; }

/* 사진은 손가락이 직접 못 건드리게 (길게 눌러 저장 메뉴 원천 차단, 탭은 뒤의 버튼이 받음) */
#gallery .ph-img, .ph-main .ph-img, .room-ph img, .pr-card img { pointer-events: none; -webkit-user-select: none; user-select: none; }
.pr-card { cursor: pointer; }
.how dd b { font-weight: 700; color: var(--ink); }
.how > div { grid-template-columns: 64px 1fr; }

/* 오시는 길: 정리된 목록 */
.way { list-style: none; padding: 0; margin: 0; text-align: left; border-top: 1px solid var(--line); }
.way li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.way-k { display: inline-block; margin-top: 1px; padding: 3px 0; font-size: 13px; letter-spacing: .08em; color: var(--blue); font-weight: 700; }
.way-b { font-size: 15px; line-height: 1.6; color: var(--ink); }
.way-b b { font-weight: 700; }
.way-b small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; letter-spacing: .02em; }
.way-stop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; }
.way-stop + .way-stop { margin-top: 7px; }
.way-stop span { font-size: 14px; color: var(--ink); margin-right: 4px; }
.way-stop i { font-style: normal; font-family: var(--serif-en); font-size: 13px; font-weight: 500; letter-spacing: .02em; color: #3f5f80; background: #eef3f7; border: 1px solid var(--ice); border-radius: 999px; padding: 1px 8px; line-height: 1.5; }
/* 버스: 정류장 이름 위, 번호 칩 아래 */
.way-stop { display: block; }
.way-stop small { display: block; margin: 0 0 4px; font-size: 12.5px; color: var(--mute); letter-spacing: .02em; }
.way-stop + .way-stop { margin-top: 9px; }
.way-nums { display: flex; flex-wrap: wrap; gap: 5px; }
.way-nums i { font-style: normal; font-family: var(--serif-en); font-size: 14px; font-weight: 500; color: #3f5f80; background: #eef3f7; border: 1px solid var(--ice); border-radius: 999px; padding: 1px 10px; line-height: 1.5; }
/* 버스 번호: 굵고 진하게 (칩은 연하게) */
.way-nums i { font-family: var(--serif-ko); font-weight: 700; font-size: 15px; color: var(--ink); background: #f3f6f9; border-color: #d6dee6; padding: 2px 11px; }
.way-stop small { color: #4e5a66; font-size: 13px; }
/* 버스: 칩 제거, 정류장 굵게 · 번호 일반 */
.way-nums i { background: none; border: 0; padding: 0; font-weight: 400; font-size: 15px; color: var(--ink); }
.way-nums { gap: 0 10px; }
.way-nums i + i::before { content: "·"; color: var(--mute); margin-right: 10px; }
.way-stop small { font-weight: 700; color: var(--ink); font-size: 14px; }
/* 버스 번호 간격 좁게 */
.way-nums { gap: 0 5px; }
.way-nums i + i::before { margin-right: 5px; }
/* 버스 번호 색을 보조 글씨와 비슷하게 옅게 */
.way-nums i { color: var(--mute); }
