.mc{position:fixed;inset:0;z-index:35;background:#080b10;color:#eee8dc;font-family:var(--f-sans,sans-serif);overflow:hidden;touch-action:pan-y}.mc-stage{position:absolute;inset:0}.mc-media,.mc-foreground{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}.mc-foreground{object-fit:contain;pointer-events:none}.mc-shade{position:absolute;inset:0;background:linear-gradient(0deg,#070a10 0%,rgba(7,10,16,.82) 18%,rgba(7,10,16,.15) 75%)}.mc-header{position:absolute;top:30px;left:6%;right:6%;display:flex;justify-content:space-between;color:#d0b782;letter-spacing:.16em;font-size:12px}.mc-copy{position:absolute;left:10%;bottom:190px;width:min(700px,75%)}.mc-copy small{color:#b8a17a;font-size:12px;letter-spacing:.14em}.mc-copy h1{font-size:14px;margin:8px 0 20px;font-weight:400;color:#b4b0a6}.mc-copy p{font-family:var(--f-serif,serif);font-size:clamp(22px,2.5vw,38px);line-height:1.8;white-space:pre-line;animation:mc-text .4s both}.mc button{cursor:pointer;color:inherit;font:inherit}.mc-controls{position:absolute;bottom:118px;left:10%;right:10%;display:flex;gap:18px;align-items:center}.mc-controls button,.mc-arrow{background:rgba(8,11,16,.4);border:1px solid #a38a5555;padding:9px 14px}.mc-progress{display:flex;gap:6px;flex:1}.mc-progress button{padding:12px 0;border:0;background:transparent;flex:1;position:relative}.mc-progress button:before{content:'';height:2px;background:#ffffff30;position:absolute;left:0;right:0}.mc-progress i{display:block;position:relative;height:2px;background:#d4b777;transform-origin:left}.mc-arrow{position:absolute;top:46%;font-size:28px!important}.mc-prev{left:3%}.mc-next{right:3%}.mc-seal{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:10%;width:80%;height:65px;border:1px solid #a48b5e;background:#11151be8;font-weight:600!important;letter-spacing:.06em}.mc-seal span{position:relative;z-index:2;text-shadow:0 2px 4px #000}.mc-seal b{position:absolute;left:47%;top:-15px;width:45px;height:92px;background:linear-gradient(90deg,#7d1d1a,#c53c2f,#7d1d1a);border:2px solid #d09866;transform:rotate(20deg);box-shadow:0 0 28px #a52b2340;background-size:cover;background-position:center}.mc-seal b:after{content:'命 運';writing-mode:vertical-rl;color:#e9c384;position:absolute;inset:10px;font-family:serif}.mc.breaking .mc-seal b{animation:mc-break .9s forwards}.mc.breaking .mc-stage{transition:opacity 1s;opacity:0}.mc-visual{position:absolute;inset:0;animation-duration:22s;animation-timing-function:linear;animation-fill-mode:both}.mc.paused .mc-visual{animation-play-state:paused!important}.mc-zoom-in{animation-name:mc-in}.mc-zoom-out{animation-name:mc-out}.mc-pan-left{animation-name:mc-left}.mc-pan-right{animation-name:mc-right}.mc-pan-up{animation-name:mc-up}.mc-pan-down{animation-name:mc-down}.mc-parallax{animation-name:mc-in}.mc-stage{animation:mc-text var(--transition,650ms) both}.mc-slide-left{animation-name:mc-enter-left}.mc-slide-right{animation-name:mc-enter-right}.mc-blackout{animation-name:mc-black}.mc-fade,.mc-dissolve{animation-name:mc-text}@keyframes mc-text{from{opacity:0}to{opacity:1}}@keyframes mc-in{from{transform:scale(1)}to{transform:scale(1.12)}}@keyframes mc-out{from{transform:scale(1.12)}to{transform:scale(1)}}@keyframes mc-left{from{transform:scale(1.12) translateX(3%)}to{transform:scale(1.12) translateX(-3%)}}@keyframes mc-right{from{transform:scale(1.12) translateX(-3%)}to{transform:scale(1.12) translateX(3%)}}@keyframes mc-up{from{transform:scale(1.12) translateY(3%)}to{transform:scale(1.12) translateY(-3%)}}@keyframes mc-down{from{transform:scale(1.12) translateY(-3%)}to{transform:scale(1.12) translateY(3%)}}@keyframes mc-enter-left{from{opacity:0;transform:translateX(5%)}to{opacity:1;transform:none}}@keyframes mc-enter-right{from{opacity:0;transform:translateX(-5%)}to{opacity:1;transform:none}}@keyframes mc-black{0%,40%{opacity:0}100%{opacity:1}}@keyframes mc-break{35%{clip-path:polygon(0 0,100% 0,100% 45%,20% 55%,100% 60%,100% 100%,0 100%)}100%{transform:rotate(35deg) translateY(100px);opacity:0;filter:blur(3px)}}@media(max-width:720px){.mc-copy{left:7%;width:86%;bottom:205px}.mc-copy p{font-size:23px;line-height:1.75}.mc-controls{left:7%;right:7%;bottom:123px;gap:10px}.mc-seal{left:7%;width:86%;font-size:14px!important}.mc-arrow{top:42%;padding:6px}.mc-header{top:max(20px,env(safe-area-inset-top))}.mc-media{object-position:50% 35%}}@media(prefers-reduced-motion:reduce){.mc *{animation:none!important;transition:none!important}}

html.mc-active,html.mc-active body{overflow:hidden!important}.mc{z-index:1000}.mc .mc-header{background:none;border:0;padding:0}.mc .mc-copy p{margin:0}.mc .mc-controls{background:none;border:0;border-radius:0;padding:0}.mc .mc-seal{border-radius:0}.mc .mc-copy h1{font-size:14px;font-weight:400}
.mc-fragment{position:absolute;left:50%;top:30%;width:12px;height:24px;background:#ae3328;opacity:0;pointer-events:none}.mc.breaking .mc-fragment{animation:mc-fragment .9s ease-out both}.mc .f1{--fx:-100px;--fy:-80px;--fr:-130deg}.mc .f2{--fx:100px;--fy:-50px;--fr:150deg}.mc .f3{--fx:45px;--fy:90px;--fr:230deg}@keyframes mc-fragment{20%{opacity:1}100%{transform:translate(var(--fx),var(--fy)) rotate(var(--fr));opacity:0}}
/* Reading-first layout: reserve separate rows for narration, playback and CTA. */
.mc {
  --mc-gutter: clamp(24px, 6vw, 96px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto 48px 68px;
  row-gap: 24px;
  padding: max(28px, env(safe-area-inset-top)) var(--mc-gutter) max(28px, env(safe-area-inset-bottom));
  isolation: isolate;
}
.mc .mc-stage { z-index: -1; }
.mc .mc-shade {
  background: linear-gradient(180deg, rgba(5,8,13,.28) 0%, rgba(5,8,13,.06) 28%, rgba(5,8,13,.68) 48%, rgba(5,8,13,.94) 72%, #080b10 100%);
}
.mc .mc-header { position: relative; inset: auto; grid-row: 1; align-items: center; }
.mc .mc-copy {
  position: relative; inset: auto; grid-row: 3;
  justify-self: center; width: 100%; max-width: 1040px;
  max-height: calc(100dvh - 250px); overflow-y: auto;
  text-align: center; padding: 24px 12px 8px;
  scrollbar-width: thin; scrollbar-color: #a48b5e #080b10;
}
.mc .mc-copy small { display: inline-block; font-size: 12px; color: #d8bd84; letter-spacing: .16em; }
.mc .mc-copy h1 { display: inline; margin: 0 0 0 14px; font-size: 17px; color: #ddd5c6; font-weight: 500; }
.mc .mc-copy p, .mc .mc-copy .mc-ghost {
  margin: 22px auto 0; max-width: 26em;
  font-family: var(--f-sans, 'Noto Sans KR', sans-serif);
  font-size: clamp(30px, 3.2vw, 48px); font-weight: 500;
  line-height: 1.65; letter-spacing: -.025em; color: #fff9ed;
  word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty;
  text-shadow: 0 2px 8px #000, 0 0 32px rgba(0,0,0,.8);
}
.mc .mc-controls { position: relative; inset: auto; grid-row: 4; width: 100%; max-width: 1040px; justify-self: center; gap: 20px; }
.mc #mcPlay { min-width: 48px; min-height: 48px; border-radius: 50%; }
.mc .mc-progress button { min-height: 44px; }
.mc .mc-progress button:before, .mc .mc-progress i { height: 3px; }
.mc .mc-seal { position: relative; inset: auto; grid-row: 5; justify-self: center; width: 100%; max-width: 1040px; height: 68px; font-size: 17px; }
.mc .mc-arrow { top: 38%; min-width: 44px; min-height: 48px; }
.mc .mc-prev { left: 16px; } .mc .mc-next { right: 16px; }
@media (min-width: 1500px) and (min-height: 850px) {
  .mc { grid-template-rows: auto minmax(0, 1fr) auto 48px 72px; row-gap: 32px; padding-bottom: 40px; }
  .mc .mc-copy { padding-bottom: 24px; }
}
@media (max-width: 720px) {
  .mc { --mc-gutter: 24px; row-gap: 18px; padding-top: max(22px, env(safe-area-inset-top)); padding-bottom: max(22px, env(safe-area-inset-bottom)); grid-template-rows: auto minmax(0, 1fr) auto 44px 62px; }
  .mc .mc-header { font-size: 10px; letter-spacing: .12em; }
  .mc .mc-copy { max-height: calc(100dvh - 226px); padding: 18px 0 4px; text-align: left; }
  .mc .mc-copy h1 { font-size: 15px; margin-left: 10px; }
  .mc .mc-copy small { font-size: 10px; }
  .mc .mc-copy p { margin-top: 18px; font-size: clamp(25px, 6.8vw, 30px); line-height: 1.65; font-weight: 500; }
  .mc .mc-shade { background: linear-gradient(180deg,rgba(5,8,13,.25),rgba(5,8,13,.06) 25%,rgba(5,8,13,.78) 46%,#080b10 76%); }
  .mc .mc-controls { gap: 14px; }
  .mc #mcPlay { min-width: 44px; min-height: 44px; padding: 7px; }
  .mc .mc-seal { height: 62px; font-size: 15px!important; letter-spacing: 0; }
  .mc .mc-arrow { top: 30%; padding: 5px; background: rgba(8,11,16,.6); }
  .mc .mc-prev { left: 8px; } .mc .mc-next { right: 8px; }
}
@media (max-height: 650px) {
  .mc { row-gap: 12px; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); grid-template-rows: auto minmax(0,1fr) auto 44px 54px; }
  .mc .mc-copy { padding-top: 8px; max-height: calc(100dvh - 190px); }
  .mc .mc-copy p { font-size: clamp(22px, 3.2vw, 32px); line-height: 1.5; margin-top: 12px; }
  .mc .mc-seal { height: 54px; }
  .mc .mc-seal b { height: 76px; top: -12px; }
}

/* Use the same action red as the birth-information controls. */
.mc .mc-seal { background: #8f1d1deF; border-color: #db6560; color: #fff8f0; }
.mc:not(.paused) #mcPlay { background: #8f1d1d; border-color: #db6560; color: #fff8f0; }
.mc .mc-progress i { background: #db6560; }
.mc button:focus-visible { outline: 2px solid #ef8a82; outline-offset: 3px; }
.mc button:not(:disabled):active { background-color: #701919; border-color: #ef8a82; }
@media (hover: hover) {
  .mc :is(.mc-seal, #mcPlay, .mc-arrow):hover { background: #ad2927; border-color: #ef8a82; color: #fff8f0; }
}

/* Small home link to the research onboarding. */
.mc .mc-header-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}.mc .mc-home{display:inline-flex;align-items:center;min-height:36px;padding:0 10px;border:1px solid rgba(208,183,130,.4);border-radius:4px;background:rgba(8,11,16,.55);color:#e6d6b5;font-size:12px;letter-spacing:0;text-decoration:none}.mc .mc-home:hover{background:rgba(208,183,130,.15)}.mc .mc-home:focus-visible{outline:2px solid #d0b782;outline-offset:3px}@media(max-width:720px){.mc .mc-header-actions{gap:10px}.mc .mc-home{font-size:11px;padding:0 8px}}
/* 부적이 단추 글자 한가운데를 가리지 않게 오른쪽 끝으로 */
.mc .mc-seal b{left:auto;right:clamp(14px,4%,40px)}
.mc .mc-seal .mc-fragment{left:auto;right:calc(clamp(14px,4%,40px) + 16px)}

/* ── 2026-11-16 시네마 연출: 레터박스·켄 번스·디졸브·명조 자막·UI 자동 숨김·그레인·비네팅 ── */
.mc { --mc-bar: clamp(26px, 9vh, 118px); background: #000; }
.mc .mc-layer { position: absolute; inset: 0; overflow: hidden; animation: mc-text var(--transition, 1400ms) cubic-bezier(.4,0,.2,1) both; }
.mc .mc-layer.mc-slide-left { animation-name: mc-enter-left; }
.mc .mc-layer.mc-slide-right { animation-name: mc-enter-right; }
.mc .mc-layer.mc-blackout { animation-name: mc-black; }
.mc .mc-stage { animation-duration: 1.6s; }
/* 켄 번스: 느리게 확대하면서 살짝 흘러간다 */
.mc .mc-visual { animation-duration: 26s; animation-timing-function: cubic-bezier(.25,.1,.25,1); will-change: transform; }
@keyframes mc-in { from { transform: scale(1.03) translate3d(0,0,0); } to { transform: scale(1.15) translate3d(-1.6%,-1.2%,0); } }
@keyframes mc-out { from { transform: scale(1.15) translate3d(1.2%,-1%,0); } to { transform: scale(1.03) translate3d(0,0,0); } }
.mc-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mc-fx i { position: absolute; inset: 0; display: block; }
.mc .mc-shade { background: linear-gradient(180deg, rgba(4,6,10,.45) 0%, rgba(4,6,10,0) 22%, rgba(4,6,10,0) 50%, rgba(4,6,10,.55) 70%, rgba(4,6,10,.9) 100%); }
.mc .mc-vignette { background: radial-gradient(ellipse 75% 70% at 50% 46%, transparent 45%, rgba(0,0,0,.6) 100%); }
.mc .mc-grain { inset: -60%; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: mc-grain 1s steps(6) infinite; }
@keyframes mc-grain { 0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); } 60% { transform: translate(-6%,-2%); } 80% { transform: translate(5%,4%); } 100% { transform: translate(0,0); } }
/* 레터박스: 위아래 검은 띠가 들어오며 막이 오른다 */
.mc .mc-bar { left: 0; right: 0; height: var(--mc-bar); background: #000; animation: mc-bar 1.8s cubic-bezier(.65,0,.35,1) both; }
.mc .mc-bar-top { top: 0; bottom: auto; transform-origin: top; }
.mc .mc-bar-bottom { top: auto; bottom: 0; transform-origin: bottom; }
@keyframes mc-bar { from { transform: scaleY(5); } to { transform: scaleY(1); } }
/* 소제목 없이, 작은 명조 자막이 한 줄씩 나타났다 사라진다 */
.mc .mc-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; display: block; }
.mc .mc-copy { text-align: center; padding: 12px 8px 4px; }
.mc .mc-copy p, .mc .mc-copy .mc-ghost {
  margin: 0 auto; max-width: 30em;
  font-family: var(--f-serif, 'Noto Serif KR', serif);
  font-size: clamp(18px, 1.55vw, 26px); font-weight: 400;
  line-height: 1.85; letter-spacing: -.005em; color: #f4ecdc;
  text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 22px rgba(0,0,0,.75);
  animation: mc-sub 1.5s cubic-bezier(.22,.61,.36,1) backwards;
  transition: none;
}
/* 자막: 1.5초 동안 떠오르고, 끝나기 1.1초 전부터 가라앉듯 사라진다(전환 대신 애니메이션: 떠오르는 중에 붙어도 끊기지 않게). 직접 넘기면 이전 자막이 겹치며 사라진다(.mc-ghost). */
.mc .mc-copy p.leaving { animation: mc-leave 1.1s cubic-bezier(.45,0,.55,1) forwards; }
@keyframes mc-leave { to { opacity: 0; transform: translateY(-3px); } }
.mc .mc-copy .mc-ghost { position: absolute; left: 0; right: 0; margin: 0 auto; pointer-events: none; animation: mc-ghost .7s cubic-bezier(.45,0,.55,1) forwards; }
@keyframes mc-ghost { from { opacity: 1; } to { opacity: 0; transform: translateY(-3px); } }
@keyframes mc-sub { 0% { opacity: 0; transform: translateY(7px); filter: blur(1.5px); } 55% { filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
/* 조작 UI는 작게, 가만히 있으면 사라진다 */
.mc .mc-header, .mc .mc-controls, .mc .mc-arrow { transition: opacity .9s ease; }
.mc.idle .mc-header, .mc.idle .mc-controls, .mc.idle .mc-arrow { opacity: 0; }
.mc.idle { cursor: none; }
.mc .mc-header { color: rgba(208,183,130,.7); font-family: var(--f-serif, serif); }
/* 공용 버튼 규칙(interaction.css, id 포함 :is)이 덮어쓰므로 !important */
.mc .mc-arrow { background: transparent !important; border-color: transparent !important; color: rgba(244,236,220,.6) !important; text-shadow: 0 1px 6px #000; }
@media (hover: hover) { .mc .mc-arrow:hover { background: rgba(0,0,0,.35) !important; color: #fff8f0 !important; } }
.mc #mcPlay { background: rgba(0,0,0,.35); border-color: rgba(219,101,96,.5); font-size: 13px; }
.mc:not(.paused) #mcPlay { background: rgba(0,0,0,.35); border-color: rgba(219,101,96,.5); color: #f4ecdc; }
.mc .mc-progress button:before, .mc .mc-progress i { height: 2px; }
.mc .mc-progress button:before { background: rgba(255,255,255,.16); }
.mc .mc-progress i { background: rgba(219,101,96,.85); }
.mc .mc-seal { max-width: 460px; height: 56px; font-family: var(--f-serif, serif); font-size: 16px; font-weight: 600; letter-spacing: .12em; transition: box-shadow .6s; }
.mc.mc-last .mc-seal { box-shadow: 0 0 0 1px #db6560, 0 0 40px rgba(173,41,39,.45); }
/* 부적: 원래 비율(약 1:2)을 지키고, 글씨는 한 줄 세로쓰기로 가운데 고정(좁아지면 두 줄로 깨지던 문제) */
.mc .mc-seal b { width: 40px; height: 82px; top: -13px; }
.mc .mc-seal b:after { content: "命運"; inset: 0; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; font-family: var(--f-serif, serif); font-size: 17px; font-weight: 700; line-height: 1; letter-spacing: .28em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.mc { grid-template-rows: auto minmax(0, 1fr) auto 44px 56px; row-gap: 18px; }
@media (min-width: 1500px) and (min-height: 850px) { .mc { grid-template-rows: auto minmax(0, 1fr) auto 44px 56px; row-gap: 22px; } }
@media (max-width: 720px) {
  .mc { --mc-bar: clamp(18px, 6vh, 64px); grid-template-rows: auto minmax(0, 1fr) auto 44px 54px; row-gap: 14px; }
  .mc .mc-shade { background: linear-gradient(180deg, rgba(4,6,10,.4) 0%, rgba(4,6,10,0) 20%, rgba(4,6,10,0) 42%, rgba(4,6,10,.7) 64%, rgba(4,6,10,.95) 100%); }
  .mc .mc-copy { text-align: center; padding: 8px 4px 2px; }
  .mc .mc-copy :is(p, .mc-ghost) { font-size: clamp(16px, 4.5vw, 19px); line-height: 1.85; font-weight: 400; }
  .mc .mc-seal { height: 54px; font-size: 14px !important; letter-spacing: .06em; }
  .mc .mc-seal b { width: 34px; height: 70px; top: -8px; }
  .mc .mc-seal b:after { font-size: 15px; }
}
@media (max-height: 650px) {
  .mc { grid-template-rows: auto minmax(0,1fr) auto 44px 50px; row-gap: 10px; }
  .mc .mc-copy :is(p, .mc-ghost) { font-size: clamp(15px, 2.4vw, 20px); line-height: 1.6; }
  .mc .mc-seal { height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .mc .mc-grain { display: none; }
  .mc .mc-copy p.leaving { animation: none; opacity: 1; }
  .mc .mc-copy .mc-ghost { display: none; }
  .mc.idle .mc-header, .mc.idle .mc-controls, .mc.idle .mc-arrow { opacity: 1; }
}
.mc .mc-seal.has-art b:after { content: none; }
.mc .mc-seal.has-art b { background-color: transparent; background-size: cover; background-position: center; }
