/* ============================================================
   시안 A 「필름」 — 사진이 전부인 청첩장 (밝은 톤 · 앨범 페이지)
   웜 화이트 캔버스 위: 풀블리드 인물 사진(인트로·클로징) · 밝은 앨범 프레임 와이드 스프레드 ·
   교차하는 순백 정보 카드. 팔레트 = 사진 + 근흑/회색 + 와인 1색.
   모바일 375 우선. 사진은 스크롤 시 느린 스케일만, 카드는 페이드 1회.
   ============================================================ */

:root {
  color-scheme: light;
  --film: #ffffff;         /* 순백 캔버스 — 사용자 흰톤 고정 지시(#FFFFFF), 웜톤 드리프트 3회 재발로 교정 7/24 */
  --film-soft: #f3efe8;
  --paper: #ffffff;        /* 순백 카드 */
  --paper-edge: #ece6dd;
  --cream: #F1EBE2;        /* LQIP 실패 시 슬롯 기본 크림(순수 공백 방지) */
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #857f73;
  --wine: #6b2737;         /* 와인 포인트 1색 */
  --wine-soft: #8a3b4c;
  --holiday: #b0475a;      /* 공휴일·일요일 붉은 계열 (와인과 조화, 일요일 열과 동일) */
  --white: #ffffff;
  --line: rgba(26, 26, 26, .12);
  --line-on-dark: rgba(253, 248, 241, .18);
  --accent-large: #6b2737;
  --accent-shadow-rgb: 107, 39, 55;
  --paper-shadow-rgb: 60, 45, 38;
  --story-accent-deep: #a77a35;
  --story-accent-soft: #e8c56a;
  --story-underline: rgba(184, 137, 58, .72);
  --desktop-shell-bg: #eae4da;
  --shorts-bg-bottom: #1a2138;
  --shorts-bg-top: #0d1322;
  --shorts-bg-mid: #0b0f1c;
  --shorts-bg-end: #0a0d17;
  --shorts-light-rgb: 245, 234, 208;
  --shorts-film-accent: #ead9ae;
  --shorts-title-base: #f7efdb;
  --shorts-title-flash: #fffbe9;
  --shorts-title-highlight: #ffe9ae;
  --shorts-comet-core: #fff3d6;
  --shorts-ticket-start: #f3e8cf;
  --shorts-ticket-end: #e8d9b8;
  --shorts-ticket-text: #2a2313;
  --shorts-copy-rgb: 255, 250, 240;
  /* Georgia = 라틴 디스플레이, Maru Buri = 한글 제목 부리 세리프 (글리프별 폴백) */
  --serif: Georgia, "Maru Buri", "Times New Roman", "Noto Serif KR", serif;
  --sans: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* 관리자 저장값을 본편이 data-theme로 적용한다. HTML 기본값도 tiffany라 API가 늦거나
   실패해도 첫 화면은 승인 대기 중인 민트 팔레트로 유지된다. */
:root[data-theme="tiffany"] {
  --film: #F7FBFA;
  --film-soft: #F3F8F7;
  --paper-edge: #D5E5E2;
  --cream: #E7F1EF;
  --muted: #6E7A78;
  --wine: #2F8A85;
  --wine-soft: #81D8D0;
  --holiday: #C45C6A;
  --accent-large: #81D8D0;
  --accent-shadow-rgb: 47, 138, 133;
  --paper-shadow-rgb: 47, 138, 133;
  --story-accent-deep: #5BB8B1;
  --story-accent-soft: #81D8D0;
  --story-underline: rgba(129, 216, 208, .85);
  --desktop-shell-bg: #E7F1EF;
  --shorts-bg-bottom: #163832;
  --shorts-bg-top: #0c1918;
  --shorts-bg-mid: #0a1413;
  --shorts-bg-end: #081211;
  --shorts-light-rgb: 129, 216, 208;
  --shorts-film-accent: #b8ebe4;
  --shorts-title-base: #dff7f4;
  --shorts-title-flash: #eafffb;
  --shorts-title-highlight: #81D8D0;
  --shorts-comet-core: #eafffb;
  --shorts-ticket-start: #c8efe9;
  --shorts-ticket-end: #81D8D0;
  --shorts-ticket-text: #0c2e2b;
  --shorts-copy-rgb: 223, 247, 244;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: clip; color: var(--ink); font-family: var(--sans);
  line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  background-color: var(--film);
  /* 웜 화이트 캔버스 미세 그레인 (SVG feTurbulence, ~0.4KB data URI) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 160px 160px;
}
img { display: block; width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #6db6ff; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--paper); color: var(--ink); transform: translateY(-160%); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- 공통 LQIP 블러업 (사진 뒤 저해상 placeholder) ---- */
.film-shot__lqip { position: absolute; inset: 0; background-color: var(--cream); background-size: cover; background-position: 50% 42%; filter: blur(14px); transform: scale(1.08); z-index: 0; }

/* ============================================================
   인트로 · 필름 커버
   ============================================================ */
/* 히어로: 교체 사진(1088×1808)을 잘림 없이 통째로 보여준다.
   컨테이너를 사진 비율에 맞추고(aspect-ratio), 데스크톱에선 화면보다 커지지 않게 max-height 로 가둔다.
   이미지는 아래에서 object-fit:contain — 모바일은 꽉 차고, 세로가 모자란 화면에선 잘리는 대신 여백이 생긴다. */
.film-hero { position: relative; aspect-ratio: 1088 / 1808; max-height: 100svh; min-height: 0; overflow: hidden; background: var(--film); display: flex; flex-direction: column; justify-content: flex-end; }
.film-hero__media { position: absolute; inset: 0; z-index: 0; }
.film-hero__img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 26%;
  animation: hero-bloom 1.9s cubic-bezier(.22,.65,.2,1) both;
}
/* 단일 교체본은 잘리지 않게 contain — 컨테이너가 사진 비율과 같아 모바일에선 꽉 찬다 */
.film-hero__img--main { object-fit: contain; object-position: 50% 50%; }
/* 히어로 슬라이드 — 두 컷이 겹쳐 있고 활성 컷만 보인다.
   전환은 단순 디졸브가 아니라 필름 디졸브: 3.4초에 걸쳐 녹으면서
   들어오는 컷은 아주 살짝 확대돼 들어오고, 나가는 컷은 계속 밀려나간다.
   비활성 컷도 카메라가 멈추지 않으므로 정지 사진으로 굳지 않는다. */
.film-hero__img[data-hero-slide] {
  opacity: 0;
  /* transform은 절대 transition으로 건드리지 않는다.
     아래 pan 애니메이션과 같은 속성을 두고 싸우면 전환 때마다 확대가 튄다. */
  transition: opacity 2.6s cubic-bezier(.4, 0, .3, 1);
  /* 카메라는 활성 여부와 무관하게 계속 돈다 — 재시작이 없으니 끊기지 않는다.
     alternate라 끝에서 되감지 않고 방향만 바꾼다. */
  animation: hero-pan-a 32s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
.film-hero__img[data-hero-slide].is-active { opacity: 1; }
/* 베일 컷은 두 얼굴이 상단에 붙어 있어 조금 더 위를 잡아야 잘리지 않는다 */
/* 가로 중심 56% = 두 사람 얼굴의 실측 중심(신랑 44.8% · 신부 67.7% → 쌍의 중심 55.7%).
   히어로는 100svh 풀블리드라 cover가 사진 좌우를 ~24% 잘라낸다. 50%로 두면 왼쪽(신랑 쪽)
   배경이 더 남아 신랑이 커 보인다 — 발주자가 비율을 맞춰 크롭한 의도가 브라우저에서 무효가 됨.
   56%로 두면 두 얼굴의 좌우 여백이 각각 13.7% / 13.75%로 대칭이 된다. */
.film-hero__img[data-hero-slide]:nth-of-type(1) { object-position: 76% 24%; }
/* 부케 컷은 인물이 프레임 가운데라 살짝 아래를 본다.
   주기를 32s/27s로 어긋나게 둬서 두 컷이 같은 박자로 움직이지 않는다. */
.film-hero__img[data-hero-slide]:nth-of-type(2) {
  object-position: 50% 30%;
  animation-name: hero-pan-b;
  animation-duration: 27s;
}
/* 서로 반대 방향으로 아주 천천히 — 전환 순간 밀고 당기는 느낌이 생긴다 */
@keyframes hero-pan-a {
  from { transform: scale(1.12) translate3d(0.8%, 0.6%, 0); }
  to   { transform: scale(1.02) translate3d(-0.6%, -1.0%, 0); }
}
@keyframes hero-pan-b {
  from { transform: scale(1.03) translate3d(-1.2%, -0.4%, 0); }
  to   { transform: scale(1.11) translate3d(0.9%, 0.7%, 0); }
}
/* 첫 등장 블룸은 래퍼가 한 번만 재생한다 — 슬라이드에 걸면 전환마다 되살아난다 */
.film-hero__media { animation: hero-bloom 1.9s cubic-bezier(.22, .65, .2, 1) both; }

/* 꽃잎 — 두 겹. 먼 겹은 글자 뒤에서 작고 또렷하게, 가까운 겹은 글자 앞에서
   크고 흐리게(보케) 떨어져 화면에 깊이가 생긴다. */
.film-hero__petals { position: absolute; inset: 0; pointer-events: none; }
.film-hero__petals--far { z-index: 2; }
.film-hero__petals--near { z-index: 5; opacity: .85; }

/* 라이트 리크 — 따뜻한 빛이 아주 느리게 화면을 가로지른다. 필름 냄새의 8할 */
.film-hero__glow {
  position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  background:
    radial-gradient(42% 34% at 22% 18%, rgba(255,226,196,.30), rgba(255,226,196,0) 70%),
    radial-gradient(36% 28% at 78% 72%, rgba(255,206,214,.22), rgba(255,206,214,0) 70%);
  mix-blend-mode: screen;
  animation: hero-leak 34s ease-in-out infinite alternate;
}
@keyframes hero-leak {
  from { transform: translate3d(-3%, -2%, 0) scale(1);    opacity: .85; }
  to   { transform: translate3d(4%, 3%, 0)  scale(1.12); opacity: 1; }
}

/* 비네트 — 가장자리를 아주 살짝 눌러 시선을 가운데로 모은다 */
.film-hero__vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(78% 62% at 50% 42%, rgba(0,0,0,0) 55%, rgba(24,18,16,.28) 100%);
}

/* 필름 그레인 — 아주 미세하게. 이게 없으면 사진이 디지털처럼 매끈해 보인다 */
.film-hero__grain {
  position: absolute; inset: -50%; z-index: 6; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  animation: hero-grain 1.1s steps(4) infinite;
}
@keyframes hero-grain {
  0%   { transform: translate3d(0,0,0); }
  25%  { transform: translate3d(-3%,2%,0); }
  50%  { transform: translate3d(2%,-3%,0); }
  75%  { transform: translate3d(-2%,-2%,0); }
  100% { transform: translate3d(0,0,0); }
}
/* 하단 스크림 — 밝은 톤에 맞춰 하단만 은은하게(사진 위 흰 세리프 가독 확보) */
.film-hero__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  /* 새 히어로 두 컷이 전보다 훨씬 밝아(흰 드레스·창 역광) 흰 세리프가 묻힌다.
     아래를 조금 더 깊게, 그러나 사진이 어두워 보이지 않도록 60%부터만. */
  background:
    linear-gradient(180deg, rgba(28,22,18,.18) 0%, rgba(28,22,18,0) 22%),
    linear-gradient(0deg, rgba(24,18,15,.82) 0%, rgba(24,18,15,.5) 20%, rgba(24,18,15,.18) 40%, rgba(28,22,18,0) 58%);
}
/* 흰 베일 — 열리며 사진이 화이트에서 서서히 밝아진다 */
.film-hero__veil { position: absolute; inset: 0; z-index: 3; background: var(--film); animation: veil-open 1.7s ease-out both; }
/* 사진을 최대한 안 가리도록 타입 블록을 하단 끝으로 내리고 작게 — 얼굴(사진 중앙)을 침범하지 않는다. */
.film-hero__type { position: relative; z-index: 4; margin-top: auto; padding: 0 26px calc(30px + env(safe-area-inset-bottom)); width: 100%; }
.film-hero__kicker {
  margin: 0 0 11px; color: rgba(253,248,241,.82); font: 650 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  animation: fade-rise .8s .55s both;
}
.film-hero__names { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .12em; color: var(--white); font: 400 clamp(30px, 8.6vw, 46px)/1.05 var(--serif); letter-spacing: .01em; text-shadow: 0 2px 26px rgba(0,0,0,.45); }
.film-hero__name { display: inline-block; }
/* 자식 순서: 이름(1) · 하트(2) · 이름(3) — 셋 다 span이므로 :nth-of-type은 태그 기준이라
   기존 :nth-of-type(2)는 '2번째 span이면서 이름 클래스'를 찾다가 아무것도 못 맞혔다.
   그 결과 ①둘째 이름의 줄바꿈 강제가 걸리지 않아 폭에 따라 한 줄↔두 줄로 튀고
   ②둘째 이름만 등장 애니메이션 없이 튀어나왔다. :nth-child로 교정. */
.film-hero__names > :nth-child(1) { animation: name-engrave .95s 1.0s both; }
.film-hero__names > :nth-child(3) { flex-basis: 100%; animation: name-engrave .95s 1.55s both; }   /* 둘째 이름 → 항상 다음 줄, 0.55s 스태거 */
.film-hero__heart { display: inline-block; margin: 0; color: var(--wine-soft); font-size: .5em; align-self: center; transform: translateY(-.06em); animation: heart-in .7s 1.9s both; }
.film-hero__date { margin: 14px 0 0; color: rgba(253,248,241,.92); font: 400 14px/1 var(--serif); letter-spacing: .3em; font-variant-numeric: tabular-nums; animation: fade-rise .8s 2.35s both; }
.film-hero__where { margin: 10px 0 0; color: rgba(253,248,241,.88); font-size: 11px; font-weight: 600; letter-spacing: .08em; animation: fade-rise .8s 2.55s both; }
.film-hero__scroll {
  position: absolute; z-index: 4; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
  color: rgba(253,248,241,.78); font: 650 9px/1 var(--sans); letter-spacing: .3em;
  animation: fade-rise .8s 2.9s both;
}
.film-hero__arrow { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(253,248,241,.7), rgba(253,248,241,0)); animation: scroll-cue 2.4s 3.4s ease-in-out infinite; }

/* ============================================================
   종이 정보 카드 (필름 캔버스 위에 뜬 크림 카드)
   ============================================================ */
.film-card { padding: clamp(64px, 16vw, 132px) 18px; display: flex; justify-content: center; }
.card {
  width: 100%; max-width: 500px; padding: clamp(34px, 8vw, 56px) clamp(24px, 6.5vw, 46px);
  background: var(--paper); color: var(--ink); border-radius: 3px;
  border: 1px solid var(--paper-edge);
  box-shadow: 0 28px 60px -42px rgba(var(--paper-shadow-rgb),.28), 0 1px 2px rgba(var(--paper-shadow-rgb),.05);
  /* 종이 질감 미세 노이즈 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='q'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23q)' opacity='0.02'/%3E%3C/svg%3E");
}
.card--center { text-align: center; }
.card__eyebrow { margin: 0 0 22px; padding-top: 20px; position: relative; color: var(--wine); font: 650 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.card__eyebrow::before { content: ""; position: absolute; top: 0; left: 0; width: 32px; height: 1px; background: var(--wine); }
.card--center .card__eyebrow::before { left: 50%; transform: translateX(-50%); }
.card__title { margin: 0; color: var(--ink); font: 400 clamp(30px, 8.6vw, 46px)/1.24 var(--serif); letter-spacing: -.03em; word-break: keep-all; }
.card__lead { margin: 30px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 2; word-break: keep-all; }
.card__lead--center { margin-top: 22px; }

.card__names { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 16px; margin-top: 40px; }
.card__names p { margin: 0; }
.card__names p:last-child { text-align: right; }
.card__names span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .15em; margin-bottom: 6px; }
.card__names strong { font: 400 23px/1.3 var(--serif); }
.card__names-line { width: 100%; height: 1px; background: var(--line); }
.card__parents { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.card__parents p { margin: 8px 0; color: var(--muted); font-size: 12.5px; }
.card__parents span, .card__parents strong { color: var(--ink); font-weight: 600; }

/* ---- 날짜 카드 ---- */
.card__bigdate { position: relative; width: max-content; margin: 8px auto 0; color: var(--accent-large); font: 400 clamp(96px, 30vw, 150px)/.8 var(--serif); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.card__bigdate span { position: absolute; top: .1em; left: -1.5em; color: var(--ink); font: 650 10px/1 var(--sans); letter-spacing: .22em; writing-mode: vertical-rl; transform: rotate(180deg); }
.card__daymeta { margin: 24px 0 0; color: var(--ink-soft); font: italic 400 15px/1.4 var(--serif); }
/* 한글날 공휴일 안내 — 하객에게 '연휴 낀 금요일' 유용 정보 (붉은 계열) */
.card__holiday { margin: 11px auto 0; max-width: 320px; color: var(--holiday); font-size: 12px; font-weight: 650; line-height: 1.55; letter-spacing: .01em; word-break: keep-all; }
.card__holiday-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--holiday); vertical-align: middle; margin-right: 5px; }
.card__facts { max-width: 340px; margin: 34px auto 0; text-align: left; }
.card__facts div { display: grid; grid-template-columns: 52px 1fr; padding: 15px 0; border-top: 1px solid var(--line); }
.card__facts div:last-child { border-bottom: 1px solid var(--line); }
.card__facts dt { color: var(--muted); font-size: 11px; align-self: center; }
.card__facts dd { margin: 0; font-size: 14px; color: var(--ink); align-self: center; }

/* ---- D-day 라이브 카운트다운 ---- */
.dday { width: fit-content; margin: 30px auto 6px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.dday__pending { margin: 0; }
.dday__live { display: inline-flex; align-items: baseline; gap: 0; margin: 0; }
.dday__unit { display: inline-flex; align-items: baseline; }
.dday__num { min-width: 1.6ch; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-size: 15px; font-weight: 800; letter-spacing: .01em; text-align: right; color: var(--wine); }
.dday__lab { margin: 0 9px 0 3px; font-size: 10px; font-weight: 650; color: var(--muted); }
.dday__unit:last-child .dday__lab { margin-right: 0; }
.dday__thanks { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--wine); }

/* ---- 미니 캘린더 (2026-10, 9일 wine 마킹) ---- */
.cal { max-width: 300px; margin: 30px auto 8px; padding: 20px 18px 24px; background: var(--white); color: var(--ink); border-radius: 4px; box-shadow: 0 14px 34px -22px rgba(0,0,0,.6); border: 1px solid var(--paper-edge); }
.cal__month { margin: 0 0 14px; font: italic 400 15px/1 var(--serif); letter-spacing: .04em; color: var(--wine); text-align: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 2px; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.cal__dow { padding-bottom: 6px; font: 700 9px/1 var(--sans); letter-spacing: .04em; color: var(--muted); text-align: center; }
.cal__dow--sun { color: var(--holiday); }
.cal__d { display: grid; place-items: center; aspect-ratio: 1; font-size: 12px; font-weight: 550; color: #2b2823; }
.cal__grid > span:nth-child(7n+1):not(.cal__dow) { color: var(--holiday); }
.cal__d--wed { position: relative; color: var(--white); font-weight: 800; z-index: 1; }
.cal__d--wed::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); background: var(--accent-large); border-radius: 50%; box-shadow: 0 3px 8px rgba(var(--accent-shadow-rgb),.35); z-index: -1; }
.cal__d--wed::after { content: "결혼"; position: absolute; top: calc(100% - 1px); left: 50%; transform: translateX(-50%); font: 700 8px/1 var(--sans); color: var(--wine); white-space: nowrap; }
/* 공휴일(한글날) 붉은 점 — 9일은 예식 와인 마커를 유지하되 셀 모서리에 공휴일 표식 병기 */
.cal__d--holiday .cal__holi { position: absolute; top: 1px; right: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--holiday); box-shadow: 0 0 0 1.5px var(--white); z-index: 2; }
/* 달력 아래 범례 — "9일 · 한글날" 붉은 소형 라벨 병기 */
.cal__note { margin: 13px 0 0; font: 650 10px/1.4 var(--sans); color: var(--muted); text-align: center; letter-spacing: .01em; }
.cal__note-holiday { color: var(--holiday); font-weight: 800; }

/* ============================================================
   필름 프레임 (와이드 앨범 스프레드 — 크롭 없이 시네마 프레임으로)
   ============================================================ */
.film-shot { position: relative; margin: 0; padding: clamp(30px, 8vw, 64px) 0; display: flex; justify-content: center; align-items: center; min-height: 62svh; }
/* 밝은 앨범 페이지: 순백 매트(굵은 흰 테두리) + 바깥 헤어라인 + 은은한 그림자 */
.film-shot a { position: relative; display: block; width: 100%; max-width: 780px; overflow: hidden; background: var(--paper); border: clamp(8px, 2.4vw, 13px) solid var(--paper); outline: 1px solid var(--paper-edge); outline-offset: 0; cursor: zoom-in; box-shadow: 0 26px 54px -36px rgba(var(--paper-shadow-rgb),.38); }
.film-shot__img { position: relative; z-index: 1; width: 100%; height: auto; will-change: transform; transform: scale(var(--kb, 1)); }

/* 사진 페이드인(로드 시) — JS 있을 때만, 없으면 즉시 표시 */
.film-shot__img { transition: opacity .35s ease; }
.js .film-shot__img { opacity: 0; }
.js .film-shot__img.is-loaded { opacity: 1; }
.js .film-hero__img:not([data-hero-slide]) { opacity: 0; }
/* 슬라이드는 로드 여부가 아니라 .is-active가 투명도를 정한다.
   이 규칙이 슬라이드에도 걸리면 두 컷이 동시에 불투명해져 전환이 사라진다. */
.js .film-hero__img.is-loaded:not([data-hero-slide]) { opacity: 1; }

/* ============================================================
   클로징 — 마지막 사진 위 "그날, 반갑게 만나요"
   ============================================================ */
.film-closing { position: relative; min-height: 100svh; overflow: hidden; background: var(--film); display: flex; }
.film-closing__media { position: absolute; inset: 0; z-index: 0; }
.film-closing__img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.1); }
.film-closing__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(28,22,18,.66) 4%, rgba(28,22,18,.22) 42%, rgba(28,22,18,.08) 68%); }
.film-closing__copy { position: relative; z-index: 3; margin-top: auto; width: 100%; padding: 0 26px calc(72px + env(safe-area-inset-bottom)); }
.film-closing__copy h2 { margin: 0 0 24px; color: var(--white); font: italic 400 clamp(44px, 14vw, 78px)/.98 var(--serif); letter-spacing: -.03em; text-shadow: 0 2px 26px rgba(0,0,0,.45); word-break: keep-all; }
.film-closing__copy p { margin: 0; color: rgba(253,248,241,.9); font-size: 13px; letter-spacing: .1em; line-height: 1.8; font-variant-numeric: tabular-nums; }
.closing__share { margin-top: 22px; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(253,248,241,.85); background: transparent; color: var(--white); cursor: pointer; font-size: 13px; }

/* ============================================================
   이야기 입구 — 종이 속 아치 창. 광고 포스터가 아니라 문틈.
   빛은 밝기가 아니라 광원(등불 호박 · 달 청회색)과 종이 재질로.
   W12-B: 창 안만 밝히지 않고, 중톤 호박이 창 아래 종이에 묻게.
   무한 루프 없음. 다가오면 열리고, 손을 대면 한 번 번진다.
   ============================================================ */
.film-game { padding: 48px 18px clamp(64px, 16vw, 120px); display: flex; justify-content: center; }
.game-entry {
  width: 100%; max-width: 500px; position: relative; overflow: visible;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='q'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23q)' opacity='0.02'/%3E%3C/svg%3E");
  border-radius: 3px;
  border: 1px solid var(--paper-edge);
  box-shadow:
    0 2px 0 #e7e0d7,
    0 18px 42px -34px rgba(45,35,29,.42),
    0 1px 2px rgba(var(--paper-shadow-rgb),.05);
}
.game-entry::after {
  content: "";
  position: absolute; inset: auto 8px -6px; height: 6px; pointer-events: none;
  background: linear-gradient(90deg, #ddd4c9, #f8f5f0 45%, #d8cfc4);
  border-radius: 0 0 3px 3px;
}
.game-entry__cta {
  display: block; color: inherit; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.game-entry__frame { position: relative; z-index: 2; padding: 18px 16px 0; overflow: visible; }
.game-entry__window {
  position: relative; z-index: 2; isolation: isolate; overflow: hidden;
  height: clamp(176px, 48vw, 228px);
  background: #0b1519;
  border: 1px solid rgba(194,151,77,.62);
  border-radius: 50% 50% 5px 5px / 18% 18% 5px 5px;
  box-shadow:
    inset 0 0 0 4px rgba(12, 8, 6, .34),
    inset 0 0 0 5px rgba(194, 151, 77, .36),
    inset 0 10px 18px rgba(4, 10, 13, .16),
    inset 0 -28px 46px rgba(4, 10, 13, .34),
    0 0 0 1px rgba(70, 52, 32, .14),
    0 9px 16px -6px rgba(28, 16, 8, .26),
    0 3px 7px -1px rgba(28, 16, 8, .1);
}
.game-entry__window img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%;
}
/* 원경 달빛 — 창 안, 달 좌표의 청회색만. 호박과 섞지 않는다. */
.game-entry__window::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 74% 14%, rgba(186,210,224,.32), transparent 24%);
  opacity: .5;
}
/* 창틀 아래턱 — 안쪽 광원이 바깥 종이로 그림자를 눕힌다. */
.game-entry__window::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(16, 10, 6, .46));
  box-shadow: 0 1px 0 rgba(194, 151, 77, .32);
}
.game-entry__lanterns { z-index: 2; opacity: .5; mix-blend-mode: screen; }
.game-entry__water { z-index: 3; opacity: .36; mix-blend-mode: screen; }
.game-entry__bloom {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle at var(--bloom-x, 50%) var(--bloom-y, 62%),
    rgba(255,186,82,.44), rgba(255,186,82,.1) 26%, transparent 54%);
  opacity: 0; mix-blend-mode: screen;
}
.game-entry__spill {
  position: absolute; pointer-events: none; z-index: 1;
}
/* 달빛은 아치 위 금테에 짧게만. 흰 종이 위 회색 얼룩이 되면 실패. */
.game-entry__spill--moon {
  left: 60%; width: 24%; top: 12px; height: 14px;
  background: radial-gradient(ellipse 90% 70% at 55% 92%,
    rgba(186, 208, 224, .2), transparent 72%);
  opacity: .28;
}
/* 중톤 호박 — 흰 종이를 더 희게 만들지 않고 물들인다. 왼쪽 등불·오른쪽 집·창턱 아래. */
.game-entry__spill--lamp {
  left: 0; right: 0; bottom: -36px; height: 56px;
  background:
    radial-gradient(ellipse 46% 100% at 18% 0, rgba(168, 102, 30, .3), transparent 74%),
    radial-gradient(ellipse 40% 90% at 84% 8%, rgba(168, 102, 30, .24), transparent 72%),
    radial-gradient(ellipse 92% 80% at 50% 0, rgba(160, 94, 26, .22), transparent 76%);
  opacity: .18;
}
/* 손 댐 — 창 안 bloom 과 같은 좌표로 종이 위에 한 번 더 묻는다. blend 없음. */
.game-entry__spill--bloom {
  left: 2%; right: 2%; bottom: -40px; height: 48px;
  background: radial-gradient(ellipse 58% 86% at var(--bloom-x, 50%) 0,
    rgba(168, 102, 30, .3), transparent 74%);
  opacity: 0;
}
.film-game.is-lit .game-entry__window::before { opacity: .82; transform: translate3d(0,-1px,0); }
.film-game.is-lit .game-entry__lanterns { opacity: .82; transform: translate3d(0,-2px,0); }
.film-game.is-lit .game-entry__water { opacity: .6; transform: translate3d(0,-4px,0); }
.film-game.is-lit .game-entry__spill--moon { opacity: .52; }
.film-game.is-lit .game-entry__spill--lamp { opacity: .94; }
.film-game.is-lit .game-entry__body::before { opacity: 1; }
.film-game.is-bloom .game-entry__bloom { opacity: 1; }
.film-game.is-bloom .game-entry__spill--lamp { opacity: 1; }
.film-game.is-bloom .game-entry__spill--bloom { opacity: 1; }
.game-entry__window::before,
.game-entry__lanterns,
.game-entry__water,
.game-entry__spill,
.game-entry__bloom,
.game-entry__body::before {
  transition: opacity .7s ease, transform .7s ease;
}
.game-entry__bloom,
.game-entry__spill--bloom { transition-duration: .45s; }
.game-entry__body {
  position: relative; z-index: 1;
  padding: 26px 22px 28px; text-align: center; color: var(--ink);
}
/* 제목~CTA 여백: 요소를 넣지 않는다. 위에서 호박, 아래로 식는 종이. */
.game-entry__body::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(150, 80, 18, .09) 0,
    rgba(150, 80, 18, .04) 24%,
    rgba(126, 134, 144, .024) 66%,
    transparent 100%);
  opacity: .3;
}
.game-entry__body > * { position: relative; z-index: 1; }
.game-entry__body h2 {
  margin: 0; font: 400 clamp(25px, 6.6vw, 34px)/1.26 var(--serif);
  letter-spacing: -.02em; word-break: keep-all; color: var(--ink);
}
.game-entry__body h2::after {
  content: ""; display: block; width: 28px; height: 1px; margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--story-accent-deep) 18%, var(--story-accent-soft) 50%, var(--story-accent-deep) 82%, transparent);
}
.game-entry__sub {
  margin: 16px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; word-break: keep-all;
}
.game-entry__enter {
  display: inline-block; margin-top: 20px; padding: 12px 0 8px;
  color: var(--wine); font-size: 15px; font-weight: 700;
  border-bottom: 1px solid var(--story-underline);
}
.game-entry__cta:hover .game-entry__enter,
.game-entry__cta:focus-visible .game-entry__enter { border-bottom-color: var(--story-accent-soft); }

/* ============================================================
   오시는 길: 지도 + 딥링크
   ============================================================ */
.mapframe { position: relative; overflow: hidden; border-radius: 3px; margin-top: 28px; background: var(--cream); }
.mapframe__lqip { position: absolute; inset: 0; z-index: 0; background-color: var(--cream); background-size: cover; background-position: 50% 50%; filter: blur(12px); transform: scale(1.08); }
/* R2(판정 #1): 지도 타일이 씻겨 보여 대비·채도 보정 — 마커·도로가 읽히는 수준까지만 */
/* ⚠ 2026-08-14 — 여기 필터가 `saturate(1.35) contrast(1.14)` 였다. **CSS 가 그림을 구조하고 있었다** —
   원본(CARTO light_all)이 거의 백지라 화면에서 억지로 끌어올리던 것이다. 원본을 voyager 로 갈고
   톤을 이미지 쪽에서 맞췄으니 여기서는 살짝만 만진다. 원본을 되돌리면 이 값도 같이 되돌려야 한다. */
.mapframe img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 1000 / 640; object-fit: cover; filter: saturate(1.06) contrast(1.03); }
/* 지도판 자체가 카카오맵 버튼이다 — 발주자 지시(「카카오톡 오는길로해」). */
.mapframe--tap { display: block; width: 100%; padding: 0; border: 1px solid var(--line); cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mapframe--tap:hover, .mapframe--tap:focus-visible { border-color: var(--wine); }
/* ⚠ 위쪽이다. 아래에 두었더니 가운데 이름표(`.mapframe__label`)를 **덮어서**
   「서울대연구공원웨…」로 잘렸다. 이름표는 핀 바로 밑(50%+22px)이 자리다 — 비워 둬라. */
.mapframe__tap { position: absolute; z-index: 2; right: 10px; top: 10px; padding: 7px 13px; border-radius: 999px; background: #ffcd00; color: #191600; font-size: 12px; font-weight: 750; box-shadow: 0 2px 10px rgba(0,0,0,.22); }
/* ⚠ `z-index: 2` 가 있어야 보인다. `.mapframe img` 가 `z-index: 1` 이라, 이게 없으면
   이름표가 **지도 그림 아래로 깔린다** — 배포본에서도 내내 안 보이고 있었다(2026-08-14 발견). */
.mapframe__label { position: absolute; z-index: 2; top: calc(50% + 22px); left: 50%; transform: translateX(-50%); padding: 5px 11px; border-radius: 999px; background: var(--wine); color: #fff; font-size: 11px; font-weight: 650; white-space: nowrap; box-shadow: 0 2px 8px rgba(var(--accent-shadow-rgb),.3); }
.mapframe__attr { margin: 7px 2px 0; color: var(--muted); font-size: 10px; text-align: right; }
.mapframe__attr a { text-decoration: underline; text-underline-offset: 2px; }
.card__when { margin: 28px 0 2px; color: var(--wine); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
/* 연회 시간 — 예식 시각(.card__when) 바로 아래 딸린 줄. 예식 시각보다 약하게(muted·비굵게) 두어
   「예식은 3시, 연회는 그 앞뒤로 열려 있다」가 한눈에 읽히게 한다. 숫자는 tabular 로 흔들림 없이. */
.card__banquet { margin: 0 0 4px; color: var(--muted); font-size: 12px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.card__place { margin: 0; font: 400 24px/1.3 var(--serif); color: var(--ink); }
.card__addr { margin: 12px 0 14px; font-size: 15px; line-height: 1.7; color: var(--ink); }
.card__addr span { display: inline-block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.mapbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.mapbtn { flex: 1 1 30%; min-width: 104px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; white-space: nowrap; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 650; cursor: pointer; transition: border-color .2s, background .2s; }
.mapbtn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.mapbtn--kakao::before { background: #ffcd00; }
.mapbtn--naver::before { background: #03c75a; }
.mapbtn--tmap::before { background: #3617ce; }
.mapbtn--copy { margin: 0; border-color: var(--wine); color: var(--wine); }
.mapbtn--tel { text-decoration: none; }
.mapbtn--tel::before { background: var(--wine); }
.mapbtns--apps { margin-top: 10px; }
/* 카카오맵이 기본 길찾기다. 나머지 둘은 쓰는 앱이 다른 하객용으로 남긴다. */
.mapbtn--primary { flex: 1 1 100%; background: #ffcd00; border-color: #f0bf00; color: #191600; font-size: 14px; min-height: 50px; }
.mapbtn--primary::before { background: #391b1b; }
.mapbtn--primary:hover { border-color: #191600; }
.mapbtn--copy::before { content: ""; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 3px -3px 0 -1px var(--white), 3px -3px 0 0 currentColor; }
.mapbtn:hover { border-color: var(--ink); }
.transit { margin: 0; }
.transit div { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.transit div:last-child { border-bottom: 1px solid var(--line); }
.transit dt { color: var(--wine); font-size: 12px; font-weight: 700; }
.transit dd { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; word-break: keep-all; }

/* 신랑 측 전세버스 안내 — 오시는 길 카드 하단 (2026-08-21 발주자 확정: 편도·왕복/추후안내 없음).
   테마 토큰만 쓴다(--wine=딥민트·--accent-large=민트·--paper-edge) — 티파니 톤에 자동으로 물든다. */
.shuttle-info { margin: 22px 0 0; padding: 22px 20px 20px; border: 1px solid var(--paper-edge); border-radius: 14px; background: linear-gradient(180deg, #fbfefe, #f3faf9); text-align: center; box-shadow: 0 1px 2px rgba(var(--paper-shadow-rgb),.06), 0 12px 30px -24px rgba(var(--paper-shadow-rgb),.5); }
.shuttle-info__eyebrow { margin: 0; color: var(--wine); font: 700 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.shuttle-info__title { margin: 9px 0 0; color: var(--ink); font: 400 20px/1.3 var(--serif); letter-spacing: -.01em; }
.shuttle-info__rule { width: 40px; height: 0; margin: 14px auto; border-top: 1px solid var(--accent-large); position: relative; }
.shuttle-info__rule::after { content: ""; position: absolute; left: 50%; top: -2.5px; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--accent-large); }
.shuttle-info__route { margin: 0; color: var(--ink-soft); font-size: 13px; letter-spacing: .03em; }
.shuttle-info__depart { margin: 11px 0 0; color: var(--ink); font-size: 15px; line-height: 1.85; font-variant-numeric: tabular-nums; }
.shuttle-info__depart b { font-weight: 700; }
.shuttle-info__bus { margin: 12px 0 0; color: var(--ink-soft); opacity: .82; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.text-button { display: inline-block; border: 0; border-bottom: 1px solid currentColor; padding: 6px 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; text-decoration: none; }

/* ============================================================
   공통 컨트롤 · 폼
   ============================================================ */
.pill-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--wine); border-radius: 999px; background: var(--wine); color: var(--white); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; transition: opacity .2s, background .2s, color .2s; }
.pill-button:hover { opacity: .9; }
.pill-button--ghost { background: transparent; color: var(--wine); }
.pill-button--ghost:hover { background: var(--wine); color: var(--white); opacity: 1; }
.card__buttons { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 34px auto 0; }
.card__fallback { margin: 22px auto 0; color: var(--muted); font-size: 13px; }

.rsvp { padding: 24px 20px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.42); margin-top: 30px; }
.rsvp__title, .guestbook__title { margin: 0 0 16px; font: 400 20px/1.3 var(--serif); color: var(--ink); }
.rsvp__row { display: flex; gap: 10px; margin-bottom: 18px; }
.seg { position: relative; flex: 1; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; }
.seg input:checked + span { border-color: var(--wine); background: var(--wine); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid #6db6ff; outline-offset: 3px; }
.rsvp__count { display: block; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.rsvp__count input { display: block; width: 110px; margin-top: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font-size: 15px; }
.rsvp__name input { width: 100%; box-sizing: border-box; }
.rsvp .pill-button { width: 100%; }
.rsvp__status { margin: 14px 0 0; min-height: 1em; color: var(--wine); font-size: 13px; font-weight: 650; }
/* R7(감사 #10) · 방명록 임시저장 상시 상태줄 (RSVP 상태줄과 동일 문법) */
.guestbook__status { margin: 12px 0 0; min-height: 1em; color: var(--wine); font-size: 12px; font-weight: 650; line-height: 1.5; word-break: keep-all; }
.guestbook__status:empty { display: none; }
.guestbook { padding: 24px 20px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.42); margin-top: 16px; }
.guestbook__fields { display: grid; gap: 12px; margin-bottom: 16px; }
.guestbook__fields label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.guestbook__fields input, .guestbook__fields textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; }
.guestbook__fields textarea { resize: none; }
.guestbook__form .pill-button { width: 100%; }
.guestbook__empty { margin: 22px 0 0; padding: 22px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.guestbook__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.guestbook__list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.guestbook__list .gb-name { font-weight: 700; font-size: 13px; color: var(--ink); }
.guestbook__list .gb-time { margin-left: 8px; color: var(--muted); font-size: 11px; font-weight: 400; }
.guestbook__list .gb-msg { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); word-break: break-word; white-space: pre-wrap; }

/* ---- 배경음악 토글 + 최초 안내 힌트 ---- */
.bgm-toggle[hidden] { display: none; }
/* R18(판정 R5 #6): 상단 우측은 섹션 제목과 상습 충돌 — 하단 우측으로 이동(제목·본문 없는 영역) */
.bgm-toggle { position: fixed; z-index: 90; bottom: max(16px, env(safe-area-inset-bottom)); right: max(14px, env(safe-area-inset-right)); display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--paper-edge); border-radius: 999px; background: rgba(255,255,255,.82); color: var(--wine); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 3px 12px rgba(var(--paper-shadow-rgb),.18); transition: background .2s, color .2s, transform .15s; }
.bgm-toggle:hover { transform: scale(1.05); }
/* R3 판정: 스크롤 중 콘텐츠(공휴일 문구·공유 버튼)와 겹칠 때 존재감 축소 — 멈추면 복귀 */
.bgm-toggle.is-scrolling { opacity: .35; transform: scale(.92); }
.bgm-toggle { transition: background .2s, color .2s, transform .15s, opacity .25s; }
.bgm-toggle__note { font-size: 17px; line-height: 1; }
.bgm-toggle__bars { display: none; align-items: flex-end; gap: 2px; height: 15px; }
.bgm-toggle__bars i { width: 3px; height: 5px; border-radius: 1px; background: currentColor; animation: bgm-eq .9s ease-in-out infinite; }
.bgm-toggle__bars i:nth-child(2) { animation-delay: .18s; }
.bgm-toggle__bars i:nth-child(3) { animation-delay: .36s; }
.bgm-toggle__bars i:nth-child(4) { animation-delay: .54s; }
.bgm-toggle[aria-pressed="true"] { background: var(--wine); color: var(--white); border-color: var(--wine); }
.bgm-toggle[aria-pressed="true"] .bgm-toggle__note { display: none; }
.bgm-toggle[aria-pressed="true"] .bgm-toggle__bars { display: inline-flex; }
/* 음악 안내 말풍선 — 콘텐츠(카드 제목)와 겹치지 않도록 상단 중앙 고정, 4.2s 자동 소멸 */
@keyframes bgm-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---- 토스트 ---- */
.toast { position: fixed; z-index: 95; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); left: 18px; max-width: 360px; margin: 0 auto; padding: 12px 16px; border-radius: 8px; background: var(--paper); color: var(--ink); border: 1px solid var(--paper-edge); text-align: center; font-size: 12px; box-shadow: 0 12px 30px -12px rgba(var(--paper-shadow-rgb),.32); }

/* ---- 폴백 <dialog> 라이트박스 ---- */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 50px 18px 18px; border: 0; background: rgba(250,247,242,.98); color: var(--ink); }
.lightbox::backdrop { background: var(--film); }
.lightbox img { width: 100%; height: calc(100dvh - 72px); object-fit: contain; }
.lightbox__close { position: absolute; top: 14px; right: 16px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 34px 22px calc(88px + env(safe-area-inset-bottom)); color: var(--muted); font: 9px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* ---- js-only 컨트롤(노스크립트 시 숨김) ---- */
.js-only { display: none !important; }
.js .card__buttons.js-only { display: flex !important; }
.js .mapbtns.js-only { display: flex !important; }
.js .mapbtn.js-only { display: inline-flex !important; }
.js .text-button.js-only, .js .closing__share.js-only { display: inline-flex !important; }

/* ---- 카드 페이드 1회(rise) ---- */
.rise { opacity: 1; transform: none; }
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .rise.is-visible { opacity: 1; transform: none; }

/* ============================================================
   키프레임
   ============================================================ */
@keyframes hero-bloom { 0% { filter: brightness(1.25) saturate(.72); } 100% { filter: brightness(1) saturate(1); } }
@keyframes veil-open { 0% { opacity: 1; } 70% { opacity: .5; } 100% { opacity: 0; } }
@keyframes fade-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes name-engrave {
  0%   { opacity: 0; transform: translateY(16px); letter-spacing: .12em; filter: blur(5px); }
  55%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); letter-spacing: .01em; filter: blur(0); }
}
@keyframes heart-in { 0% { opacity: 0; transform: scale(.4); } 60% { transform: scale(1.18); } 100% { opacity: 1; transform: scale(1); } }
@keyframes scroll-cue { 0%, 100% { opacity: .3; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   데스크톱 향상 (사진은 여전히 주인공, 카드만 여유)
   ============================================================ */
/* 데스크톱 전폭 확장 블록은 폐기(2026-08-03).
   청첩장은 폰 폭 컬럼 하나로만 존재한다 — 아래 「모바일 셸」이 모든 넓은 화면을 담당.
   과거 이 블록(≥760px)이 셸(≥768px)보다 먼저 켜져 8px 구간에서 레이아웃이 충돌했고,
   vw 기반 타이포(9vw·8vw)가 뷰포트 전폭을 기준으로 계산돼 컬럼 밖으로 넘쳤다.
   → 사용자 지적: "PC에서 글자가 세로로 되었다가 가로로 되었다가 깨진다" */

/* ============================================================
   접근성: 모션 최소화 · 고대비
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rise { opacity: 1; transform: none; }
  .js .film-shot__img, .js .film-hero__img { opacity: 1 !important; }
  /* 모션 최소화: 슬라이드 교차·줌·꽃잎 전부 정지, 첫 컷만 남긴다 */
  .js .film-hero__img[data-hero-slide] { opacity: 0 !important; animation: none !important; transition: none !important; transform: none !important; }
  .js .film-hero__img[data-hero-slide].is-active { opacity: 1 !important; }
  .film-hero__petals, .film-hero__grain { display: none; }
  .film-hero__glow { animation: none; }
  .film-hero__veil { display: none; }
  .film-shot__img { transform: none !important; }        /* 스크롤 스케일 억제 */
  .film-hero__name { letter-spacing: .01em; filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #4a4438; --ink-soft: #2b271f; --line: rgba(0,0,0,.45); }
  :root[data-theme="tiffany"] { --muted: #6E7A78; }
}

/* ============================================================
   PhotoSwipe: 필름 팔레트에 맞춘 잉크 배경
   R15 · 이 블록은 지금까지 전부 죽어 있었다 — index.html 이 styles.css 를 photoswipe.css 보다
   먼저 싣기 때문에, 같은 특정도(0,1,0)의 vendor 규칙 `.pswp__bg { background: var(--pswp-bg) }`
   가 나중에 와서 이겼다(실측: 라이트박스 배경 computed = rgb(0,0,0), 아이콘도 vendor 기본 흰색).
   수리: 커스텀 속성만 이중 클래스(.pswp.pswp)로 확정해 vendor 가 그 값을 읽게 하고(잉크 톤),
   흰 배경/검정 아이콘 전제로 쓰였던 죽은 선언은 지운다(현재 렌더와 동일 — 시각 변화 없음).
   불투명도는 JS 쪽 bgOpacity: 1 이 담당한다(app.js). ============================================================ */
.pswp.pswp { --pswp-bg: #14100c; --pswp-placeholder-bg: var(--paper-edge); }

/* ============================================================
   갤러리북 — 스튜디오 화보 13장 좌우 스와이프 앨범 (Swiper effect-cards)
   13 diptych 세로 나열 → 실물 사진 스택 한 권으로. 탭=PhotoSwipe 라이트박스.
   ============================================================ */
.film-album { padding: clamp(30px, 8vw, 72px) 16px clamp(34px, 9vw, 72px); overflow-x: clip; }
.album-cover { max-width: 500px; margin: 0 auto clamp(22px, 6vw, 36px); text-align: center; }
.album-cover__eyebrow { position: relative; margin: 0 0 14px; padding-top: 18px; color: var(--wine); font: 650 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.album-cover__eyebrow::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 1px; background: var(--wine); }
.album-cover__title { margin: 0; color: var(--ink); font: 400 clamp(26px, 7vw, 40px)/1.2 var(--serif); letter-spacing: -.02em; word-break: keep-all; }
.album-cover__sub { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; word-break: keep-all; }

.album-book { position: relative; width: 100%; max-width: 460px; margin: 0 auto; padding-bottom: 34px; }
/* 스테이지 — 사진 원본 비율(1200:835)로 고정, cards 이펙트가 채운다 */
.album-swiper { width: min(84vw, 380px); margin: 0 auto; aspect-ratio: 1200 / 835; overflow: visible; }
/* 앨범 폭도 컬럼 안에서만 — 뷰포트 vw 기준 확대 폐기 */
.album-swiper .swiper-wrapper { align-items: center; }
/* 앨범 페이지(카드): 순백 매트 프레임 + 그림자 — 실물 앨범 질감 */
.album-swiper .film-shot { position: relative; margin: 0; padding: 0; min-height: 0; width: 100%; height: 100%; display: flex; }
.album-swiper .film-shot a { position: relative; display: block; width: 100%; height: 100%; max-width: none; overflow: hidden; background: var(--paper); border: clamp(7px, 2.1vw, 12px) solid var(--paper); outline: 1px solid var(--paper-edge); border-radius: 3px; cursor: zoom-in; box-shadow: 0 22px 46px -30px rgba(var(--paper-shadow-rgb),.5); }
.album-swiper .film-shot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; will-change: auto; }
.album-swiper .film-shot__lqip { z-index: 0; }
.album-swiper.swiper-cards .swiper-slide { border-radius: 3px; overflow: visible; }

/* 페이지 인디케이터 (n / 13) */
.album-pager.swiper-pagination { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); width: auto; margin: 0; color: var(--muted); font: 650 12px/1 var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.album-pager .swiper-pagination-current { color: var(--wine); font-weight: 800; }

/* 스와이프 힌트 (최초 1회, 첫 조작 시 소멸) */
.album-hint { position: absolute; right: 12px; top: 12px; z-index: 6; margin: 0; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: rgba(26,22,20,.6); color: #fff; font-size: 11px; font-weight: 650; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 4px 14px rgba(0,0,0,.22); opacity: 0; transform: translateY(-4px); transition: opacity .4s ease, transform .4s ease; pointer-events: none; }
.album-hint.is-show { opacity: 1; transform: translateY(0); }
.album-hint__ico { display: inline-block; font-size: 13px; animation: album-swipe 1.3s ease-in-out infinite; }
@keyframes album-swipe { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }

/* ===== 제주 스냅 (제목·멘트 없음 · 자연비율=크롭 없음 · 현장 스냅 컨택트시트) =====
   위 "실물 앨범 카드덱"(.album-swiper)과 대비되도록 테두리·그림자·페이지번호 없이
   좁은 간격의 정적 그리드. 프레임 높이를 정하지 않고 width:100%/height:auto 만 써서
   object-fit 없이 크롭 0(2:3 세로 사진이 그대로). 1·6·11번은 전폭(--wide)으로 호흡.
   구형폰: grid 미지원이면 1열 세로 스택(@supports), aspect-ratio·gap 미사용. */
.jeju-wall { padding: clamp(10px, 4vw, 24px) 16px clamp(34px, 9vw, 72px); overflow-x: clip; }
.jeju-grid { max-width: 442px; margin: 0 auto; }
.jeju-shot { margin: 0; }
.jeju-shot + .jeju-shot { margin-top: 8px; }
.jeju-shot a { display: block; overflow: hidden; background: var(--cream); border-radius: 4px; cursor: zoom-in; }
.jeju-shot a:focus-visible { outline: 3px solid var(--wine-soft); outline-offset: 3px; }
.jeju-shot__img { display: block; width: 100%; max-width: 100%; height: auto; }
@supports (display: grid) {
  .jeju-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column-gap: 8px; grid-row-gap: 8px; align-items: start; }
  .jeju-shot + .jeju-shot { margin-top: 0; }
  .jeju-shot--wide { grid-column: 1 / -1; }
}
@media (max-width: 339px) {
  @supports (display: grid) {
    .jeju-grid { grid-template-columns: 1fr; }
    .jeju-shot--wide { grid-column: auto; }
  }
}

/* 2026-07-30: 백엔드(Workers KV 방명록·RSVP) 연결 완료로 A안 비노출 해제 — #celebrate 복귀 */
/* 2026-08-04: 실정보 수신 — #gratitude 비노출 해제. 신부측 계좌·혼주 연락처는 index.html 주석으로 대기 */
.contact-grid { display: grid; gap: 10px; margin: 22px 0 26px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.contact-role { font-size: 13px; color: var(--ink); }
.account-list { display: grid; gap: 10px; }
/* ⚠ 2026-08-14 — 한 줄짜리 가로 배치였다. 계좌가 하나(「신랑측」)뿐일 때는 됐는데,
   혼주 이름이 붙은 라벨(「신부측 어머니 이제인」)이 들어오자 **번호가 두 줄로 접히고
   「복사」가 복/사 로 쪼개졌다.** 이름표를 윗줄로 올리고, 아랫줄에 번호와 복사를 나란히 둔다.
   라벨이 길어져도 다시는 안 깨진다. */
.account-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label label" "no copy";
  align-items: center; gap: 4px 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 13px;
}
/* 2026-08-17 발주자: 양가 구분("신랑측 신부측 칸을 넣던지 빈공간을 조금 넣던지 구분해줘") */
.account-group { margin: 2px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.account-group--second { margin-top: 14px; }
.account-label { grid-area: label; color: var(--muted); font-size: 12px; }
.account-no { grid-area: no; font-size: 14.5px; letter-spacing: .2px; word-break: keep-all; }
.account-row .text-button { grid-area: copy; white-space: nowrap; }

/* ---- 데스크톱 모바일 셸 (2026-07-31 사용자 지적: 넓은 화면에서 청첩장이 전폭으로 늘어짐) ----
   ≥768px에서는 폰 폭 컬럼(470px)을 중앙에 세우고 주변은 차분한 배경으로 레터박스.
   고정 요소(음악 토글·토스트·스킵링크)는 뷰포트 기준이므로 컬럼 기준으로 재정렬.
   (파일 끝에 두는 이유: 동일 특정도 기본 규칙보다 뒤에 와야 이긴다.) */
/* 폰 폭 컬럼은 480px부터 켠다 — 컬럼(470px)보다 화면이 넓어지는 즉시
   레터박스로 들어가야 중간 구간에서 레이아웃이 흔들리지 않는다. */
@media (min-width: 480px) {
  html { background: var(--desktop-shell-bg); }
  body {
    max-width: 470px; margin: 0 auto;
    box-shadow: 0 0 0 1px rgba(var(--paper-shadow-rgb),.08), 0 24px 80px -20px rgba(var(--paper-shadow-rgb),.35);
  }
  .bgm-toggle { right: calc(50% - 235px + 14px); }
  .toast { left: 50%; right: auto; width: calc(100% - 36px); max-width: 360px; transform: translateX(-50%); }
  .skip-link { left: calc(50% - 235px + 8px); }
  /* vw 기반 타이포는 뷰포트(전폭) 기준이라 470px 컬럼에서 과대 — 컬럼 비례(390 기준 실물)로 고정.
     교체 히어로는 사진을 통째로 보여주므로 타입을 더 작게 잡아 얼굴을 침범하지 않게 한다. */
  .film-hero__names { font-size: 44px; }
  .card__title { font-size: 40px; }
  .film-card { padding: 96px 18px; }
}

/* 이야기 입구 — 절전/reduce 에서도 금박·등불·물빛·종이 두께는 남긴다.
   움직임만 끈다. SVG 필터 애니메이션은 쓰지 않는다. */
@media (prefers-reduced-motion: reduce) {
  .game-entry__window::before,
  .game-entry__lanterns,
  .game-entry__water,
  .game-entry__spill,
  .game-entry__bloom,
  .game-entry__body::before { transition: none !important; transform: none !important; }
  .game-entry__window::before { opacity: .82; }
  .game-entry__lanterns { opacity: .82; }
  .game-entry__water { opacity: .6; }
  .game-entry__spill--moon { opacity: .52; }
  .game-entry__spill--lamp { opacity: .94; }
  .game-entry__body::before { opacity: 1; }
  .game-entry__bloom,
  .game-entry__spill--bloom { display: none; }
}

/* ============================================================
   [은퇴 2026-08-17] E안(티파니 민트) — 발주자 판정으로 밤의 상영회 카드(.shorts-scr,
   파일 하단)로 교체됨("괜찮네 그럼 이걸로 총괄안으로 배포넣어"). 이 블록은 실기기
   판정 안정 후 제거 예정 — 마크업에서 더는 참조하지 않는다.
   ============================================================ */
.shorts-neon {
  --sn-bg-a: #06201f;
  --sn-bg-b: #020a0a;
  --sn-tone-a: #63d5cc;
  --sn-tone-b: #eafffb;
  --sn-glow-a: rgba(10,186,181,.55);
  --sn-glow-b: rgba(129,216,208,.16);
  --sn-source-x: 46%;
  --sn-source-y: 38%;
  --sn-wash-angle: 126deg;
  --sn-breath-time: 6.6s;
  --sn-wash-time: 4.6s;
  --sn-title-time: 3.7s;
  position: relative;
  isolation: isolate;
  width: min(320px, 100%);
  aspect-ratio: 320 / 568;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 48%, var(--sn-glow-b) 0%, transparent 56%),
    linear-gradient(155deg, var(--sn-bg-a), var(--sn-bg-b));
  box-shadow:
    0 30px 72px rgba(0,0,0,.52),
    inset 0 1px 0 rgba(255,255,255,.045),
    inset 0 0 42px rgba(0,0,0,.28);
  transform: translateZ(0);
}

.shorts-neon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    inset 0 -70px 90px rgba(0,0,0,.18);
  pointer-events: none;
}

.shorts-neon__backlight,
.shorts-neon__wash {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.shorts-neon__backlight {
  inset: -16%;
  z-index: 0;
  opacity: .68;
  background:
    radial-gradient(ellipse at var(--sn-source-x) var(--sn-source-y), var(--sn-glow-a) 0%, var(--sn-glow-b) 31%, transparent 67%);
  transform: scale(.92);
  transform-origin: var(--sn-source-x) var(--sn-source-y);
  animation: sn-breathe var(--sn-breath-time) ease-in-out infinite;
}

.shorts-neon__wash {
  inset: -22%;
  z-index: 1;
  opacity: .38;
  background:
    linear-gradient(var(--sn-wash-angle), transparent 19%, var(--sn-glow-b) 46%, transparent 72%);
  mix-blend-mode: screen;
  transform: translate3d(-3%, -2%, 0) scale(1.04);
  animation: sn-wash var(--sn-wash-time) ease-in-out infinite alternate;
}

.shorts-neon__panel {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.shorts-neon__title {
  width: 284px;
  margin: 0;
  color: var(--sn-tone-b);
  font-family: "Batang", "AppleMyungjo", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.058em;
  white-space: nowrap;
  text-shadow: 0 0 8px var(--sn-glow-a), 0 0 25px var(--sn-glow-b);
  text-shadow:
    0 0 8px color-mix(in srgb, var(--sn-tone-a) 72%, transparent),
    0 0 25px color-mix(in srgb, var(--sn-tone-a) 48%, transparent),
    0 0 48px color-mix(in srgb, var(--sn-tone-a) 22%, transparent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .shorts-neon__title {
    color: transparent;
    background: linear-gradient(103deg, var(--sn-tone-a) 0 26%, var(--sn-tone-b) 43% 55%, var(--sn-tone-a) 73%, var(--sn-tone-b) 92%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sn-title-flow var(--sn-title-time) linear infinite;
  }
}

.shorts-neon__copy {
  width: 284px;
  margin: 30px 0 31px;
  color: rgba(255,255,255,.84);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: -.026em;
  text-shadow: 0 2px 13px rgba(0,0,0,.78);
  word-break: keep-all;
}

.shorts-neon__copy span {
  display: block;
  white-space: nowrap;
}

.shorts-neon__copy .shorts-neon__film {
  color: var(--sn-tone-b);
  color: color-mix(in srgb, var(--sn-tone-b) 90%, white);
  font-weight: 580;
}

.shorts-neon__link {
  position: relative;
  isolation: isolate;
  min-width: 166px;
  min-height: 47px;
  padding: 13px 20px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-color: color-mix(in srgb, var(--sn-tone-b) 46%, transparent);
  border-radius: 9px;
  color: #fffaf0;
  background: rgba(4,5,6,.38);
  box-shadow:
    inset 0 0 20px rgba(255,255,255,.035),
    0 0 26px var(--sn-glow-b);
  box-shadow:
    inset 0 0 20px rgba(255,255,255,.035),
    0 0 26px color-mix(in srgb, var(--sn-tone-a) 23%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.018em;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.shorts-neon__link::before {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: 38%;
  z-index: -1;
  width: 34%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--sn-tone-b) 45%, transparent), transparent);
  transform: translate3d(-340%, 0, 0) rotate(-16deg);
  animation: sn-sheen 4.6s ease-in-out infinite;
}

.shorts-neon__link:hover {
  border-color: rgba(255,255,255,.55);
  border-color: color-mix(in srgb, var(--sn-tone-b) 72%, transparent);
  background: rgba(255,255,255,.075);
}

.shorts-neon__link:active { transform: scale(.98); }

/* 화면 밖 일시정지 — app.js IO 가 .is-paused 를 토글(절전. v3: JS는 화면 밖 절약만) */
.shorts-neon.is-paused *,
.shorts-neon.is-paused *::before,
.shorts-neon.is-paused *::after {
  animation-play-state: paused !important;
}

@keyframes sn-breathe {
  0%, 100% { opacity: .54; transform: scale(.91); }
  48% { opacity: .96; transform: scale(1.075); }
  72% { opacity: .74; transform: scale(1.02); }
}

@keyframes sn-wash {
  from { opacity: .24; transform: translate3d(-4%, -3%, 0) scale(1.01); }
  to { opacity: .53; transform: translate3d(4%, 3%, 0) scale(1.09); }
}

@keyframes sn-title-flow {
  from { background-position: 185% 50%; }
  to { background-position: -75% 50%; }
}

@keyframes sn-sheen {
  0%, 17% { opacity: 0; transform: translate3d(-340%, 0, 0) rotate(-16deg); }
  26% { opacity: .18; }
  47% { opacity: .68; }
  66%, 100% { opacity: 0; transform: translate3d(340%, 0, 0) rotate(-16deg); }
}

@media (max-width: 351px) {
  .shorts-neon__panel { transform: scale(.9); }
}

/* aspect-ratio 미지원 구형(삼성인터넷 13 이하 등) 높이 폴백 — codex 검수 권고 */
@supports not (aspect-ratio: 320 / 568) {
  .shorts-neon { height: min(568px, calc((100vw - 36px) * 1.775)); }
}

/* 감속 모드 — 위 전역 reduce 가 애니를 끄므로, 여기서는 정지 상태의 밝기만 고른다 */
@media (prefers-reduced-motion: reduce) {
  .shorts-neon__backlight { opacity: .78; transform: scale(1.01); }
  .shorts-neon__wash { opacity: .34; transform: translate3d(0, 0, 0) scale(1.05); }
  .shorts-neon__title { background-position: 50% 50%; }
  .shorts-neon__link::before { display: none; }
}

/* ============================================================
   민의·다희 쇼츠 — 밤의 상영회 카드 (총괄안 3.4 · 자유안 3파전 승자)
   발주자 확정 2026-08-17: "괜찮네 그럼 이걸로 총괄안으로 배포넣어".
   원본 시안 = review-shorts-free/candidate-claude.html 3.4 를 E안과 같은
   320×568 카드 틀에 이식. 뷰포트 단위 없음(PC 동일 크기), 모션은 CSS만.
   혜성 규율: dasharray 주기(150+1300=1450) = 키프레임 이동량(300→-1150) —
   다르면 바퀴 시작에 재시작 잔상이 재발한다(발주자 지적으로 확정된 수치).
   ============================================================ */
.shorts-scr {
  position: relative;
  isolation: isolate;
  width: min(320px, 100%);
  aspect-ratio: 320 / 568;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 50% 108%, var(--shorts-bg-bottom) 0%, transparent 60%),
    linear-gradient(180deg, var(--shorts-bg-top) 0%, var(--shorts-bg-mid) 55%, var(--shorts-bg-end) 100%);
  box-shadow:
    0 30px 72px rgba(0, 0, 0, .52),
    inset 0 1px 0 rgba(255, 255, 255, .045),
    inset 0 0 42px rgba(0, 0, 0, .28);
  transform: translateZ(0);
}
.shorts-scr__stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 62% 28%, rgba(var(--shorts-light-rgb),.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 9%, rgba(255,255,255,.36) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 88% 34%, rgba(255,255,255,.32) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 45% 15%, rgba(var(--shorts-light-rgb),.4) 50%, transparent 51%);
  animation: scr-twinkle 4.6s ease-in-out infinite;
}
.shorts-scr__stars--b {
  background-image:
    radial-gradient(1px 1px at 20% 26%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 70% 20%, rgba(var(--shorts-light-rgb),.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 8%, rgba(255,255,255,.34) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 8% 38%, rgba(var(--shorts-light-rgb),.3) 50%, transparent 51%);
  animation: scr-twinkle 6.2s ease-in-out -2.4s infinite;
}
@keyframes scr-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.shorts-scr__beam {
  position: absolute; left: -34%; bottom: -12%;
  width: 150%; height: 130%;
  background: conic-gradient(from 318deg at 0% 100%,
    transparent 0deg,
    rgba(var(--shorts-light-rgb), .04) 10deg,
    rgba(var(--shorts-light-rgb), .11) 22deg,
    rgba(var(--shorts-light-rgb), .17) 30deg,
    rgba(var(--shorts-light-rgb), .09) 40deg,
    transparent 52deg);
  filter: blur(6px);
  transform-origin: 0% 100%;
  animation: scr-beam 5.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scr-beam {
  0%, 100% { opacity: .68; transform: rotate(0deg); }
  38% { opacity: 1; transform: rotate(1.4deg); }
  55% { opacity: .82; transform: rotate(.5deg); }
  74% { opacity: .96; transform: rotate(-.9deg); }
}
.shorts-scr__lens {
  position: absolute; left: -22px; bottom: -22px;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--shorts-light-rgb), .5) 0%, rgba(var(--shorts-light-rgb), .12) 45%, transparent 70%);
  filter: blur(4px);
  animation: scr-lens 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scr-lens { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
.shorts-scr__mote {
  position: absolute; border-radius: 50%;
  background: rgba(var(--shorts-light-rgb), .85);
  filter: blur(.5px); pointer-events: none;
  box-shadow: 0 0 6px rgba(var(--shorts-light-rgb), .8);
  animation: scr-mote linear infinite;
}
.shorts-scr__mote:nth-of-type(1) { left: 22%; bottom: 12%; width: 3px; height: 3px; animation-duration: 9s; }
.shorts-scr__mote:nth-of-type(2) { left: 38%; bottom: 24%; width: 2.5px; height: 2.5px; animation-duration: 12s; animation-delay: -4s; }
.shorts-scr__mote:nth-of-type(3) { left: 56%; bottom: 16%; width: 3px; height: 3px; animation-duration: 10.5s; animation-delay: -7s; }
.shorts-scr__mote:nth-of-type(4) { left: 70%; bottom: 30%; width: 2px; height: 2px; animation-duration: 11s; animation-delay: -9s; }
.shorts-scr__mote:nth-of-type(5) { left: 14%; bottom: 28%; width: 2px; height: 2px; animation-duration: 12.5s; animation-delay: -6s; }
.shorts-scr__mote:nth-of-type(6) { left: 47%; bottom: 40%; width: 1.8px; height: 1.8px; animation-duration: 14s; animation-delay: -11s; }
@keyframes scr-mote {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: .95; }
  88% { opacity: .6; }
  100% { transform: translate3d(22px, -300px, 0); opacity: 0; }
}
.shorts-scr__perf {
  position: absolute; top: 0; bottom: 0; width: 12px;
  background-image: repeating-linear-gradient(180deg,
    transparent 0 10px, rgba(var(--shorts-light-rgb), .2) 10px 24px, transparent 24px 34px);
  animation: scr-perf 5.5s linear infinite;
  pointer-events: none;
}
.shorts-scr__perf--l { left: 8px; }
.shorts-scr__perf--r { right: 8px; animation-direction: reverse; }
@keyframes scr-perf { from { background-position: 0 0; } to { background-position: 0 -170px; } }
.shorts-scr__title {
  position: relative;
  margin: 0;
  font-family: "Batang", "AppleMyungjo", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.045em;
  background: linear-gradient(100deg,
    var(--shorts-title-base) 0%, var(--shorts-title-base) 38%, var(--shorts-title-flash) 46%, var(--shorts-title-highlight) 50%, var(--shorts-title-flash) 54%, var(--shorts-title-base) 62%, var(--shorts-title-base) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 22px rgba(var(--shorts-light-rgb), .34)) drop-shadow(0 2px 14px rgba(0, 0, 0, .55));
  animation: scr-sheen 5.2s ease-in-out infinite;
}
@keyframes scr-sheen {
  0%, 55%, 100% { background-position: 120% 0; }
  22% { background-position: -30% 0; }
}
.shorts-scr__copy {
  position: relative; margin: 0;
  font-size: 13.5px; line-height: 1.9; letter-spacing: -.02em;
  color: rgba(var(--shorts-copy-rgb), .82);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
  word-break: keep-all;
}
.shorts-scr__copy span { display: block; white-space: nowrap; }
.shorts-scr__film { color: var(--shorts-film-accent); font-weight: 600; }
.shorts-scr__wrap { position: relative; display: inline-grid; place-items: center; margin-top: 4px; }
.shorts-scr__comet {
  position: absolute; left: 50%; top: 50%;
  width: 400px; height: 190px;
  transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none; z-index: 3;
}
.shorts-scr__comet path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 150 1300;
  stroke-dashoffset: 300;
  animation: scr-comet 3.2s linear infinite;
}
.shorts-scr__comet-glow {
  stroke: rgba(var(--shorts-light-rgb), .55);
  stroke-width: 6;
  filter: blur(3px) drop-shadow(0 0 14px rgba(var(--shorts-light-rgb), .6));
}
.shorts-scr__comet-core {
  stroke: var(--shorts-comet-core);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 7px rgba(var(--shorts-light-rgb), .95));
}
@keyframes scr-comet {
  from { stroke-dashoffset: 300; }
  to { stroke-dashoffset: -1150; }
}
.shorts-scr__ticket {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(168deg, var(--shorts-ticket-start) 0%, var(--shorts-ticket-end) 100%);
  color: var(--shorts-ticket-text);
  font-size: 14.5px; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 30px rgba(var(--shorts-light-rgb), .18);
  animation: scr-ticket 4.4s ease-in-out infinite;
}
@keyframes scr-ticket {
  0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 22px rgba(var(--shorts-light-rgb),.14); }
  50% { box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 48px rgba(var(--shorts-light-rgb),.38); }
}
.shorts-scr__ticket:active { transform: scale(.975); }
/* 화면 밖 절전 — app.js IO 가 건다 */
.shorts-scr.is-paused *, .shorts-scr.is-paused { animation-play-state: paused; }
@media (max-width: 351px) {
  .shorts-scr { gap: 16px; }
  .shorts-scr__title { font-size: 26px; }
  .shorts-scr__copy { font-size: 12.5px; }
}
/* aspect-ratio 미지원 구형 높이 폴백 — E안과 같은 계산 */
@supports not (aspect-ratio: 320 / 568) {
  .shorts-scr { height: min(568px, calc((100vw - 36px) * 1.775)); }
}
@media (prefers-reduced-motion: reduce) {
  .shorts-scr__comet { display: none; }
  .shorts-scr__stars, .shorts-scr__stars--b { opacity: .7; }
  .shorts-scr__beam { opacity: .9; }
  .shorts-scr__ticket { box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 44px rgba(var(--shorts-light-rgb),.32); }
}
