/* 민화 콜라보 미연시 「첫 장」 — 화면은 360×(640~780) 기준으로 그리고 game.js 가 화면에 맞춰 키운다 */
@font-face { font-family: Gmarket; src: url(fonts/GmarketSansMedium.woff2) format('woff2'); font-weight: 300 500; font-display: swap; }
@font-face { font-family: Gmarket; src: url(fonts/GmarketSansBold.woff2) format('woff2'); font-weight: 600 800; font-display: swap; }

:root { --ink: #07070a; --line: rgba(255,255,255,.16); --dim: rgba(255,255,255,.58); --c: #ff6fb1; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: radial-gradient(80% 60% at 50% 40%, #121118, #050506 70%), #050506; color: #fff; overflow: hidden;
  font-family: Gmarket, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-weight: 500;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { font: inherit; color: inherit; }
.noscript { padding: 40px 24px; text-align: center; line-height: 1.6; }

#stage { position: fixed; left: 50%; top: 50%; width: 360px; height: 640px; overflow: hidden; background: var(--ink);
  transform-origin: center; isolation: isolate; }
@media (min-aspect-ratio: 10/16) { #stage { border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 30px 80px rgba(0,0,0,.6); } }

.scr { position: absolute; inset: 0; overflow: hidden; animation: fadein .45s ease both; }   /* 화면보다 큰 층이 생기지 않게 잘라 둠 */
.scr.out { animation: fadeout .35s ease both; }
@keyframes fadein { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; z-index: 50;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px); background-size: 6px 6px; }
.abs { position: absolute; }
.mark { font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,.72); white-space: nowrap; }  /* 「MINHWA × ILLUSTRATOR」 늘 한 줄(11-15 대표님) */

/* 실루엣 + 캐릭터 색 테두리 빛 (1편과 같은 결) */
.sil { position: absolute; filter: drop-shadow(0 0 2px color-mix(in srgb, var(--c) 70%, #fff)) drop-shadow(0 0 14px var(--c)); }
.sil img { display: block; width: 100%; height: auto; filter: brightness(0); }

.btn { display: block; width: 100%; padding: 15px 0; border-radius: 999px; text-align: center; font-size: 15px; font-weight: 700;
  color: #0b0b0e; background: #fff; border: 0; letter-spacing: -.3px; cursor: pointer; text-decoration: none; }
.btn.ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--line); }
.btn:active { transform: scale(.98); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- 타이틀 ---------- */
.title .glow { inset: 0; background: radial-gradient(70% 40% at 50% 40%, rgba(255,255,255,.06), transparent 70%); }
.title .top { left: 0; right: 0; top: calc(23px + var(--padT, 0px)); text-align: center; }  /* 오른쪽 위 홈 아이콘과 눈높이를 맞춤 */
/* 「BGM 있어요」와 「민화 홈으로」를 시작하기 아래 한 줄에(그림을 가리지 않게, 11-15 대표님). 둘 다 작은 글자, 누르는 영역 44px */
.title .subrow { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.title .subrow .bgm-note { margin: 0; }
/* 첫 화면 오른쪽 위: 소리 단추 대신 민화 홈 아이콘(11-15 대표님). 소리 단추와 같은 자리, 같은 모양 */
#stage.at-title .snd { display: none; }
.title .home-ic { top: calc(8px + var(--padT, 0px)); right: 8px; z-index: 30; height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 5px;
  color: #fff; text-decoration: none; font-size: 12px; letter-spacing: -.2px; }
.title .home-ic::before { content: ''; position: absolute; inset: 6px 4px; border-radius: 999px; background: rgba(7,7,10,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: -1; }
.title .home-ic svg { width: 15px; height: 15px; display: block; }
.title .home-ic span { display: block; line-height: 15px; height: 15px; transform: translateY(2.5px); }  /* 지마켓 글자는 위로 떠 보여서 아이콘과 눈높이를 맞춤 */
.title .home-ic:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 999px; }
.title .sils { position: absolute; left: 0; right: 0; bottom: 0; top: 0; }
.title .fade { left: 0; right: 0; bottom: 0; height: 400px; background: linear-gradient(180deg, transparent, var(--ink) 52%); }
.title .name { left: 0; right: 0; bottom: 150px; text-align: center; }
.title h1 { font-size: 46px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.title .name p { margin-top: 12px; font-size: 13px; color: var(--dim); }
.title .foot { left: 32px; right: 32px; bottom: 14px; }
/* 「BGM 있어요」(11-15 대표님): 소리 단추가 잘 안 보일 수 있어 시작하기 아래에. 누르면 소리 켜기/끄기, 손가락 영역 44px */
.title .bgm-note { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: 10px auto 0; padding: 0 18px;
  border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.8); font: inherit; font-size: 12px; letter-spacing: .2px; cursor: pointer; }
.title .bgm-note i { display: inline-flex; }
.title .bgm-note svg { width: 15px; height: 15px; }
.title .bgm-note.off { color: rgba(255,255,255,.55); }
.title .bgm-note:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- 캐릭터 고르기 ---------- */
.select .head { left: 24px; right: 24px; top: 30px; }
.select h2 { font-size: 22px; font-weight: 700; letter-spacing: -.8px; margin-top: 8px; }
.select .cards { left: 16px; right: 16px; top: 116px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card { position: relative; height: 380px; border-radius: 12px; overflow: hidden; background: #0d0d11; border: 1px solid var(--line);
  cursor: pointer; text-align: left; padding: 0; }
.card .pic { position: absolute; inset: 0; background-repeat: no-repeat; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,7,10,.92) 82%); }
.card .meta { position: absolute; left: 10px; right: 8px; bottom: 12px; }
.card .no { font-size: 9px; letter-spacing: 2px; color: var(--dim); }
.card .nm { font-size: 20px; font-weight: 700; margin-top: 6px; letter-spacing: -.5px; }
.card .il { font-size: 9px; color: var(--dim); margin-top: 5px; }
.card .open { margin-top: 10px; display: inline-block; font-size: 10px; font-weight: 700; padding: 6px 9px; border-radius: 999px; background: var(--c); color: #16070f; }
.card.on { border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 0 0 1px var(--c), 0 0 24px color-mix(in srgb, var(--c) 35%, transparent); }
.card.lock .sil { width: 210%; left: -55%; top: 18px; }
.card.lock .date { margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--c); letter-spacing: -.2px; white-space: nowrap; }
.card.lock svg { position: absolute; top: 12px; right: 10px; opacity: .6; }
.card.shake { animation: shake .4s ease; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.select .foot { left: 20px; right: 20px; top: 512px; text-align: center; font-size: 12px; color: var(--dim); line-height: 1.55; }
.select .back { left: 24px; right: 24px; bottom: 28px; }
.toast { position: absolute; left: 50%; top: 86px; transform: translateX(-50%); z-index: 60; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: #111; font-size: 13px; font-weight: 700; white-space: nowrap; animation: toast 1.8s ease both; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 6px); } 15%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ---------- 대화 ---------- */
.scene { cursor: pointer; }
.scene .bg { inset: -8px; background-size: cover; background-position: center 30%; filter: blur(2.5px); }
/* 여루(안개 장면) 새벽 하늘: 매끈한 그라데이션이라 흐림이 필요 없음(blur 를 빼서 폰 그래픽 메모리도 아낌).
   세로(11-21 대표님 「새벽 배경은 세로형에서는 여루한테 가려서 잘 안 보인다」): 해 뜨는 빛·능선(그림 세로 60~80%)이
   여루 머리 높이(화면 위 15~30%)에 오게 그림을 키워 올림. 그 아래는 능선 아래 땅 색으로 채움(인물·글상자 뒤). 가로는 원래대로 */
.scene.foggy .bg { inset: 0; filter: none; background-repeat: no-repeat; background-color: #16152f; background-size: auto 140%; background-position: center 177%; }
/* 가로(11-21 대표님 「가로형은 배경이 너무 밤」): 그림 위쪽 밤하늘만 보였음. 능선 위 장밋빛 띠(그림 세로 70%)가 화면 62% 높이(글상자 바로 위)에 오게 내림 */
.land .scene.foggy .bg { background-size: cover; background-position: center 75%; }
.scene .light { inset: 0; background: radial-gradient(60% 35% at 15% 8%, rgba(255,255,255,.55), transparent 70%),
  linear-gradient(180deg, rgba(255,255,255,.05), rgba(7,7,10,.15) 60%, rgba(7,7,10,.65)); }
.scene .fig { position: absolute; width: var(--fig-w, 400px); left: var(--fig-l, -20px); top: var(--fig-t, 64px); opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); pointer-events: none; }
.scene .fig.on { opacity: 1; transform: none; }
.hud { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; align-items: center; gap: 8px; z-index: 5; pointer-events: none; }
.hud .route { font-size: 11px; font-weight: 700; padding: 7px 11px; border-radius: 999px; background: rgba(7,7,10,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hud .route span { color: var(--c); margin-right: 6px; }
.hearts { display: flex; gap: 3px; padding: 7px 10px; border-radius: 999px; background: rgba(7,7,10,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hearts svg { width: 13px; height: 13px; transition: transform .3s; }
.hearts .f { fill: var(--c); }
.hearts .e { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.6; }
.hearts .pop { animation: pop .7s ease; }
@keyframes pop { 40% { transform: scale(1.6); } }
.plus { position: absolute; left: 150px; top: 44px; z-index: 8; font-size: 13px; font-weight: 700; color: var(--c); animation: up 1.4s ease-out both; pointer-events: none; }
@keyframes up { 0% { opacity: 0; transform: translateY(10px); } 25%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }

.box { position: absolute; left: 12px; right: 12px; bottom: 14px; min-height: 150px; border-radius: 16px; padding: 30px 20px 30px; z-index: 6;
  background: rgba(9,9,13,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); }
.box .name { position: absolute; left: 16px; top: -14px; padding: 7px 14px 6px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--c); color: #16070f; letter-spacing: -.3px; }
.box .name.staff { background: #e9e9ee; color: #111; }
.box .name[hidden] { display: none; }
.box .txt { font-size: 16px; line-height: 1.62; letter-spacing: -.4px; min-height: 52px; white-space: pre-line; }
.box .txt.narr { color: rgba(255,255,255,.82); font-size: 15px; }
.box .next { position: absolute; right: 18px; bottom: 12px; font-size: 11px; color: var(--c); animation: bob 1s ease-in-out infinite; }
.box .next[hidden] { display: none; }
.box .hint { position: absolute; left: 20px; bottom: 12px; font-size: 10px; color: rgba(255,255,255,.35); }
@keyframes bob { 50% { transform: translateY(3px); opacity: .5; } }

.dim { inset: 0; background: rgba(7,7,10,.45); z-index: 4; opacity: 0; transition: opacity .3s; pointer-events: none; }
.dim.on { opacity: 1; }
.choices { position: absolute; left: 24px; right: 24px; bottom: 186px; z-index: 7; display: flex; flex-direction: column; gap: 10px; }
.choice { padding: 16px 18px; border-radius: 14px; font-size: 15px; line-height: 1.45; letter-spacing: -.4px; text-align: left; white-space: pre-line; cursor: pointer;
  background: rgba(9,9,13,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.24); color: #fff;
  animation: fadein .35s ease both; }
.choice:nth-child(2) { animation-delay: .08s; }
.choice small { display: block; font-size: 10px; color: var(--dim); margin-bottom: 6px; letter-spacing: 1px; }
.choice:active, .choice.pick { background: #fff; color: #111; border-color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 40%, transparent); }
.choice.pick small { color: #777; }

.flash { inset: 0; z-index: 30; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .34s ease-out both; }
/* 셔터 연사: 네 번 번쩍 */
@keyframes flash { 0% { opacity: 0; } 8% { opacity: .9; } 100% { opacity: 0; } }

/* ---------- 데모 마무리 ---------- */
.end .top { left: 28px; right: 28px; top: calc(40px + var(--padT, 0px)); }
.end .q { font-size: 13px; color: var(--c); margin-top: 26px; }
.end h2 { font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1.22; margin-top: 10px; }
.end .pl { font-size: 13px; color: var(--dim); margin-top: 14px; line-height: 1.6; }
.end .next { left: 28px; right: 28px; top: calc(292px + var(--padT, 0px)); height: 160px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(80% 70% at 75% 60%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); }
.end .next .sil { width: 170px; right: -20px; top: 6px; }
.end .next .t { position: absolute; left: 18px; top: 18px; }
.end .next .no { font-size: 10px; letter-spacing: 2px; color: var(--dim); }
.end .next .nm { font-size: 26px; font-weight: 700; margin-top: 8px; }
.end .next .d { font-size: 21px; font-weight: 700; color: var(--c); margin-top: 8px; letter-spacing: -.3px; }
.end .next .s { font-size: 11px; color: var(--dim); margin-top: 8px; }
.end .foot { left: 28px; right: 28px; top: calc(472px + var(--padT, 0px)); display: flex; flex-direction: column; gap: 8px; }
/* 부스 모드 끝 화면: 링크 대신 인스타 QR(손님이 자기 폰으로 찍음) */
.end .qr { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); }
.end .qr .qr-img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 4px; flex: none; }
.end .qr .qr-img svg { display: block; width: 100%; height: 100%; }
.end .qr .t { font-size: 13px; line-height: 1.55; color: var(--dim); }
.end .qr .t b { display: block; margin-top: 4px; font-size: 14px; color: #fff; }
.land .end .qr .qr-img { width: 72px; height: 72px; }
/* 「처음으로」와 「민화 홈으로」를 한 줄에 반씩(홈이 숨겨지면 처음으로가 한 줄 다) */
.end .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.end .row2.one { grid-template-columns: 1fr; }
/* 인스타그램, X: 오른쪽 아래 아이콘만(11-15 대표님). 누르는 영역 44px */
.end .sns { right: 12px; bottom: 8px; display: flex; gap: 0; z-index: 5; }
.end .sns a { width: 34px; height: 44px; display: grid; place-items: center; color: rgba(255,255,255,.7); text-decoration: none; }
.end .sns a:hover, .end .sns a:focus-visible { color: #fff; }
.end .sns svg { width: 18px; height: 18px; }
/* 저작권 표시: 사이트 바닥글과 같은 문구(minhwa-landing ko.json footer.copyright) */
.end .copy { margin-top: 4px; text-align: center; font-size: 10px; color: rgba(255,255,255,.4); letter-spacing: .3px; }

@media (prefers-reduced-motion: reduce) {
  .scr, .choice, .toast, .plus { animation-duration: .01s; }
  .box .next { animation: none; }
}

/* 소리 단추: 모든 화면 오른쪽 위 */
.snd { position: absolute; top: calc(14px + var(--padT, 0px)); right: 14px; z-index: 30; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px;
  display: grid; place-items: center; background: rgba(7,7,10,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.snd:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 선택지 테두리 빛: 마우스(손가락) 가까운 쪽 테두리가 캐릭터 색으로 밝아짐. 위치는 game.js 가 --mx, --my 로 넣음 */
.choice { position: relative; }
.choice::before, .choice::after { content: ''; position: absolute; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; }
.choice::before { inset: -1px; padding: 2px;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), var(--c), color-mix(in srgb, var(--c) 55%, transparent) 40%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.choice::after { inset: 0; background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 20%, transparent), transparent 70%); }
.choices.lit .choice::before, .choices.lit .choice::after { opacity: 1; }
.choice.pick::before, .choice.pick::after { opacity: 0; }
/* 여루(안개 장면, 11-21 대표님 「로로처럼 선택지 고를 때 효과 있어야지」): 같은 효과인데 연보라가 어두운 남색 위라 약하게 보였음.
   테두리 빛에 흰 심을 넣고, 안쪽 번짐·고른 순간 후광을 더 크게 */
.scene.foggy .choice::before { background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), #fff, var(--c) 22%, color-mix(in srgb, var(--c) 60%, transparent) 46%, transparent 76%); }
.scene.foggy .choice::after { background: radial-gradient(210px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 34%, transparent), transparent 70%); }
.scene.foggy .choice.pick { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 60%, transparent), 0 0 26px color-mix(in srgb, var(--c) 60%, transparent); }

/* 셔터 불빛: 하얀 심, 캐릭터 색 번짐, 가로세로 빛줄기. 셔터 소리 하나에 하나 */
.strobe { position: absolute; width: 240px; height: 240px; margin: -120px 0 0 -120px; z-index: 31; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, #fff 0 5%, rgba(255,255,255,.9) 10%, color-mix(in srgb, var(--c) 45%, transparent) 28%, transparent 62%);
  animation: strobe .6s cubic-bezier(.2,.7,.3,1) both; }
.strobe::before, .strobe::after { content: ''; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 999px; }
.strobe::before { width: 420px; height: 3px; margin: -1.5px 0 0 -210px; background: linear-gradient(90deg, transparent, #fff 45%, #fff 55%, transparent); }
.strobe::after { width: 3px; height: 200px; margin: -100px 0 0 -1.5px; background: linear-gradient(transparent, #fff 45%, #fff 55%, transparent); }
@keyframes strobe { 0% { opacity: 0; transform: scale(.25); } 7% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
/* 움직임 줄이기 설정(이 PC 윈도도 켜져 있음)에서도 셔터 불빛은 이야기의 일부라 보이게 하되, 커지는 움직임만 뺌. 번쩍임은 초당 3번 아래 */
.strobe.sm { width: 150px; height: 150px; margin: -75px 0 0 -75px; animation-duration: .4s; }
.strobe.sm::before { width: 240px; margin-left: -120px; }
.strobe.sm::after { height: 120px; margin-top: -60px; }
@media (prefers-reduced-motion: reduce) { .strobe { animation-name: strobe-still; } }
@keyframes strobe-still { 0% { opacity: 0; } 7% { opacity: 1; } 100% { opacity: 0; } }

/* ================= 가로 화면(11-15 대표님 「폰 가로 화면 생각해서」) =================
   game.js 가 가로일 때 #stage 에 .land 를 붙이고 높이 380, 폭 640~820 으로 맞춤. 세로 배치는 위 그대로.
   왼쪽에 인물(그림), 오른쪽에 글과 단추. 부스 완전판(패드 가로)도 이 배치를 그대로 씀 */
.land .grain::after { background-size: 7px 7px; }

/* 타이틀: 왼쪽 실루엣 셋, 오른쪽 제목과 단추 */
.land .title .top { left: 54%; right: 100px; top: 23px; z-index: 2; }
.land .title .sils { right: auto; width: 52%; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 97%); mask-image: linear-gradient(180deg, #000 62%, transparent 97%); }
.land .title .sils .sil:nth-child(1) { width: 190px !important; left: -26px !important; right: auto !important; bottom: auto !important; top: 78px; opacity: .85 !important; }
.land .title .sils .sil:nth-child(2) { width: 190px !important; right: -18px !important; left: auto !important; bottom: auto !important; top: 78px; opacity: .85 !important; }
.land .title .sils .sil:nth-child(3) { width: 228px !important; left: calc(50% - 114px) !important; bottom: auto !important; top: 26px; }
.land .title .fade { left: 46%; right: 0; top: 0; bottom: 0; height: auto; background: linear-gradient(90deg, transparent, var(--ink) 24%); }
.land .title .name { left: 54%; right: 28px; top: 120px; bottom: auto; }
.land .title h1 { font-size: 44px; }
.land .title .foot { left: calc(54% + 12px); right: 40px; bottom: 10px; }
.land .title .subrow { margin-top: 4px; }

/* 캐릭터 고르기: 카드 셋을 가로로 넓게, 아래 줄에 안내(왼쪽)와 처음으로(오른쪽) */
.land .select .head { left: 24px; right: 70px; top: 18px; }
.land .select h2 { font-size: 20px; margin-top: 6px; }
.land .select .cards { left: 24px; right: 24px; top: 82px; gap: 10px; }
.land .card { height: 212px; }
.land .card .pic { background-size: var(--lsize, 72% auto), cover !important; background-position: var(--lpos, 50% 4px), center !important; }
.land .card .meta { left: 12px; bottom: 10px; }
.land .card .nm { font-size: 19px; margin-top: 4px; }
.land .card .open { margin-top: 8px; }
.land .card.lock .sil { width: 115%; left: -8%; top: 8px; }
.land .card.lock .date { margin-top: 8px; }
.land .select .foot { left: 24px; right: 46%; top: auto; bottom: 14px; text-align: left; font-size: 11px; line-height: 1.6; }
.land .select .back { left: auto; right: 24px; bottom: 14px; width: 200px; }
.land .select .back .btn { padding: 12px 0; font-size: 14px; }
.land .toast { top: 60px; }

/* 대화: 왼쪽 인물, 오른쪽 아래 대화창, 선택지는 대화창 위 오른쪽 */
.land .scene .fig { width: var(--fig-lw, 330px); left: var(--fig-ll, 6px); top: var(--fig-lt, 30px); }
.land .scene .light { background: radial-gradient(45% 45% at 12% 6%, rgba(255,255,255,.5), transparent 70%),
  linear-gradient(90deg, rgba(7,7,10,0) 30%, rgba(7,7,10,.35)); }
.land .box { left: 41%; right: 14px; bottom: 12px; min-height: 124px; padding: 26px 20px 26px; }
.land .box .txt { font-size: 15.5px; line-height: 1.6; min-height: 50px; }
.land .box .txt.narr { font-size: 14.5px; }
.land .choices { left: calc(41% + 12px); right: 26px; bottom: 166px; gap: 8px; }
.land .choice { padding: 11px 16px; font-size: 14px; line-height: 1.42; min-height: 44px; }
.land .choice small { margin-bottom: 3px; }
.land .plus { left: 150px; top: 46px; }

/* 데모 마무리: 왼쪽 큰 문구, 오른쪽 다음 데모 카드와 단추 */
.land .end .top { left: 32px; right: 52%; top: 22px; }
.land .end .q { margin-top: 18px; }
.land .end h2 { font-size: 28px; }
.land .end .pl { margin-top: 12px; }
.land .end .next { left: 52%; right: 28px; top: 50px; height: 140px; }
.land .end .next .sil { width: 150px; right: -14px; top: 4px; }
.land .end .next .t { top: 14px; }
.land .end .next .nm { font-size: 24px; margin-top: 6px; }
.land .end .next .d { margin-top: 6px; font-size: 19px; }
.land .end .foot { left: 52%; right: 28px; top: 204px; bottom: auto; gap: 7px; }
.land .end .foot .btn { padding: 12px 0; font-size: 14px; }

/* ---------- 여루(11-20 시안): 안개, 구슬 빛, 해돋이 ---------- */
.scene .fig img { display: block; width: 100%; height: auto; }
/* 안개(게임에서는 「안개」, 11-20 대표님): 바람 줄(clear)에서 옆으로 밀려 걷히고, 다시 발밑(low), 화면 가득(full)
   11-21 폰 깜빡임 고침: 예전엔 큰 안개 겹(화면보다 큼) 여럿을 transform·mask 로 움직이고, 흰 김 질감은 background-position 으로 흘려
   매 프레임 화면 전체를 다시 그렸다(1.2초에 그림 다시 풀기 5만 회 → 폰 GPU 메모리 넘침, 검게 깜빡임). 세로 빗살(96도 줄무늬)이 좌우로 움직여
   「세로선이 왔다 갔다」도 생겼다. 지금: 안개는 화면 크기만, 바탕 안개는 움직이지 않는 한 겹, 흐름은 흰 김 두 겹을 transform 으로만 옆으로 밀어
   (한 번 그린 걸 옮기기만 함), mask 대신 clip-path, 빗살 없음 */
.scene .fog { inset: 0; z-index: 3; pointer-events: none; overflow: hidden; transition: opacity 2.2s ease; }
.scene .fog i { position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 30% 35%, rgba(246,247,252,.9), transparent 70%), radial-gradient(70% 45% at 75% 60%, rgba(236,238,248,.88), transparent 72%),
    radial-gradient(90% 60% at 50% 90%, rgba(226,230,244,.92), transparent 75%), rgba(205,210,228,.74); }
.scene .fog .m { position: absolute; top: 0; left: 0; height: 100%; background-repeat: repeat; text-decoration: none; will-change: transform; transition: opacity 2.4s ease; }
.scene .fog .m2 { display: none; }   /* 김은 한 겹만(폰 그래픽 메모리 아낌, 11-21) */
.scene .fog .m3 { width: calc(100% + 560px); background-image: var(--m2); background-size: 560px 350px; opacity: .6; animation: mflow2 20s linear infinite; }   /* 김 한 겹은 더 짙은 질감(mist_2)으로 */
@keyframes mflow2 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-560px, 0, 0); } }
@keyframes mflow3 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-380px, 0, 0); } }
.scene .fog.gone { opacity: 0; }
/* 다시 발밑으로 흘러온 안개: 아래쪽에 낮게.
   11-21 대표님 「하얀 사각형으로 처리하면 어떡해」: 전엔 clip-path 로 위를 잘라 윗변이 딱 떨어진 흰 네모였음.
   지금은 위 가장자리가 물결지며 부드럽게 사라지는 안개 한 장(mist_low.webp, 미리 그림)을 아래에 깔고 transform 으로만 옆으로 흘림.
   화면 전체 바탕 안개(i)와 흰 김(m3)은 이때 숨김(층 하나만 남아 폰 부담도 적음) */
.scene .fog .lo { display: none; position: absolute; left: 0; bottom: 0; width: calc(100% + 560px); height: 70%; text-decoration: none;
  background: var(--lo) repeat-x 0 0 / 560px 100%; will-change: transform; animation: mflow2 28s linear infinite; }
.scene .fog.low { opacity: .95; transition-duration: 2s; }
.scene .fog.low i, .scene .fog.low .m3 { display: none; }
.scene .fog.low .lo, .scene .fog.full .lo { display: block; }
.scene .fog.low .spark { display: none; }
/* 안개가 화면 가득(「안개가 더욱 짙어진다」): 영상 초반처럼 흰 김이 흐르고 여루 형체는 비쳐 보이게(11-21 대표님 「전체를 하얗게 하지 말고」).
   발밑 안개 위로 바탕 안개와 흰 김이 2.4초에 걸쳐 차오름(투명도만 움직임) */
/* 폰 그래픽 메모리(11-21 대표님 「항상 염두해」): 차오르는 동안만 발밑 안개가 서서히 사라지고, 다 차면(settled) 내려놓음.
   차오르기 효과는 끝나면 풀리게(backwards) 해서 바탕 안개가 따로 층으로 남지 않게 */
.scene .fog .lo { transition: opacity 2.4s ease; }
.scene .fog.full .lo { opacity: 0; }
.scene .fog.full.settled .lo { display: none; }
.scene .fog.full { opacity: 1; transition: opacity 2.4s ease; }
.scene .fog.full i { opacity: .5; animation: fogin 2.4s ease backwards; }
.scene .fog.full .m3 { opacity: .95; animation: mflow2 20s linear infinite, fogin 2.4s ease backwards; }
@keyframes fogin { from { opacity: 0; } }
/* 안개 있는 장면은 글상자 뒤 흐림(backdrop-filter)을 끔: 흐르는 안개 위에서 매 프레임 흐림을 다시 계산해 폰이 버거움. 상자는 거의 불투명이라 티 안 남 */
.scene.foggy .box, .scene.foggy .hud .route, .scene.foggy .hearts, .scene.foggy .choice { backdrop-filter: none; -webkit-backdrop-filter: none; }
.scene.foggy .box { background: rgba(9,9,13,.88); } .scene.foggy .choice { background: rgba(9,9,13,.86); }
/* 11-21 대표님 「고른 선택지가 까맣게 변해서 안 보여」: 위 어두운 바탕 규칙이 「고른 선택지는 흰 바탕」보다 강해서 검은 바탕에 검은 글자가 됐음. 고른(누른) 선택지는 흰 바탕으로 */
.scene.foggy .choice:active, .scene.foggy .choice.pick { background: #fff; }
.choice { -webkit-tap-highlight-color: transparent; }
/* 안개를 뚫고 빛나는 구슬(자리는 game.js 가 구슬 위치로 맞춤) */
/* 안개 속 구슬 빛은 은은하게(11-21 대표님 「너무 튀어, 조금 죽이자」) */
.scene .fog.spark-big .spark { width: 110px; height: 110px; margin: -55px; }
/* 밝은 안개 위라 섞기 없이 푸른색으로 또렷하게(가운데는 비워 구슬이 보이게) */
.scene .fog.full.spark-on .spark { opacity: .75; animation: halo 3.2s ease-in-out infinite;
  background: radial-gradient(circle, rgba(120,175,255,.15) 0 12%, rgba(70,130,250,.55) 26%, rgba(70,120,240,.28) 44%, transparent 68%); }
/* 구슬 둘레 푸른 빛(11-21 대표님 「은은하게, 너무 과하게 하지 말고」): 천천히 숨쉬듯 */
@keyframes halo { 50% { opacity: 1; transform: scale(1.12); } }
/* 천둥번개: 두 번 번쩍인 뒤 하얗게 덮임(화이트아웃) */
.scene .dawn.storm { background: #fff; animation: storm 1.7s linear both; }
/* 풍경 소리와 함께 화이트아웃이 걷힘 */
.scene .dawn.storm.clear { animation: none; opacity: 0; transition: opacity 1.4s ease; }
@keyframes storm { 0% { opacity: 0; } 4% { opacity: .95; } 14% { opacity: .2; } 28% { opacity: .9; } 38% { opacity: .35; } 100% { opacity: 1; } }
/* 안개 속 푸른 빛(구슬이 있는 자리 쪽) */
.scene .fog .spark { position: absolute; left: 51%; top: 34%; will-change: transform, opacity; width: 70px; height: 70px; margin: -35px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(220,240,255,.95), rgba(120,170,255,.6) 35%, transparent 70%); transition: opacity 1.2s ease; }
.scene .fog.spark-on .spark { opacity: 1; animation: orbpulse 2.4s ease-in-out infinite; }
/* 구슬: 인물 그림 위 구슬 자리에서 빛남 */
.scene .orb { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(235,248,255,.95), rgba(120,180,255,.7) 30%, rgba(90,120,255,.25) 55%, transparent 72%); transition: opacity 1s ease; }
.scene .orb.on { opacity: 1; animation: orbpulse 2.2s ease-in-out infinite; }
.scene .fig .orb.on.dim { opacity: .5; animation: none; mix-blend-mode: normal; }
@keyframes orbpulse { 50% { transform: scale(1.25); filter: brightness(1.2); } }
/* 해돋이: 아래쪽부터 따뜻하게 천천히 밝아짐(번쩍임 없음) */
.scene .dawn { inset: 0; z-index: 32; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 80% at 50% 110%, #fff6e6, rgba(255,240,215,.95) 45%, rgba(255,250,240,.9)); }
.scene .dawn.go { animation: dawn 2.8s ease-in both; }
/* 여루 반전의 드롭: 화면이 한 번에 하얗게 터짐(번쩍임 한 번) */
.scene .dawn.burst { animation: none; opacity: 1; background: #fff; transition: background .6s ease; }
@keyframes dawn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scene .fog i, .scene .orb.on, .scene .fog.spark-on .spark { animation: none; } }

/* 번갯줄기(여루 끝 천둥번개): 하늘에서 내리꽂는 흰 선, 0.4초 */
.scene .bolt { position: absolute; inset: 0; z-index: 34; pointer-events: none; animation: bolt .4s linear both; }
.scene .bolt svg { width: 100%; height: 100%; overflow: visible; }
.scene .bolt polyline { fill: none; stroke: #fff; stroke-linejoin: bevel; vector-effect: non-scaling-stroke; stroke-width: 5px; }
.scene .bolt polyline.glow { stroke: rgba(170,200,255,.45); stroke-width: 18px; }   /* filter 대신 넓고 옅은 선으로 빛 번짐(폰 부담 줄임) */
@keyframes bolt { 0% { opacity: 0; } 6% { opacity: 1; } 22% { opacity: .25; } 34% { opacity: 1; } 100% { opacity: 0; } }
/* 천둥 예고(11-21 대표님): 먼 하늘이 약하게 두 번 번쩍임(위쪽만, 0.9초, 초당 3번 아래). near 는 조금 더 밝게. 투명도만 움직여 폰 부담 없음 */
.scene .farflash { position: absolute; inset: 0; z-index: 33; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(205,220,255,.55), rgba(205,220,255,.18) 45%, transparent 75%); animation: farflash .9s ease-out both; }
.scene .farflash.near { --k: 1.6; }
@keyframes farflash { 0% { opacity: 0; } 8% { opacity: calc(.35 * var(--k, 1)); } 22% { opacity: .05; } 48% { opacity: calc(.22 * var(--k, 1)); } 100% { opacity: 0; } }

/* 화이트아웃에서 마무리 화면으로: 하얀 막이 걷힘 */
.end.from-white { animation: none; }
.end .whitein { inset: 0; z-index: 60; background: #fff; pointer-events: none; animation: whitein 1.6s ease-out both; }
@keyframes whitein { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scene .fog.full.spark-on .spark { animation: none; } }
