/* 걸어서 관람(3D) 화면 요소(HUD). 한 가지 체계: 같은 유리 판, 같은 모서리, 같은 글꼴 단계, 같은 아이콘 굵기, 강조색은 인주색 하나.
   자리: 위 왼쪽 나가기 / 위 오른쪽 언어 / 위 가운데 실 이름(들어설 때만) / 아래 왼쪽 지금 작품 카드 / 아래 오른쪽 조작(이전, 재생, 다음, 자동 관람) / 아래 가운데 자막.
   PC는 조작 단추 밑에 키 표시(Q, Space, E, F). 첫 화면은 게임 타이틀처럼 왼쪽 제목과 메뉴, 뒤로 전시실이 천천히 움직인다 */
:root {
  --night: #05060a; --ink: #f4f1ea; --dim: rgba(244, 241, 234, .66); --faint: rgba(244, 241, 234, .42); --seal: #d2271d; --acc: #5674bd; --acc-hi: #aab9df; --acc-deep: #1e2c52;   /* 관장님 명함 v19의 쪽빛(#1E2C52)과 은박 */
  --glass: rgba(12, 13, 18, .6); --edge: rgba(255, 255, 255, .10); --r: 16px; --m: 28px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --kserif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--night); color: var(--ink); font-family: var(--sans); font-weight: 400;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#c.is-drag { cursor: grabbing; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--acc-hi); outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.glass { background: var(--glass); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24); }
/* 키 표시(게임의 버튼 안내) */
.key { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border: 1px solid rgba(255, 255, 255, .3); border-bottom-width: 2px; border-radius: 5px;
  font: 600 10.5px/1 var(--sans); font-style: normal; letter-spacing: .02em; color: rgba(255, 255, 255, .86); background: rgba(0, 0, 0, .28); white-space: nowrap; }

/* 화면 위아래를 은은하게 어둡게(글과 단추가 밝은 방에서도 읽히게) */
.shade { position: fixed; left: 0; right: 0; pointer-events: none; z-index: 3; }
.shade--top { top: 0; height: 16vh; background: linear-gradient(rgba(4, 5, 8, .46), rgba(4, 5, 8, 0)); }
.shade--bot { bottom: 0; height: 36vh; background: linear-gradient(rgba(4, 5, 8, 0), rgba(4, 5, 8, .55)); }

/* 위: 나가기, 언어 */
.top { position: fixed; top: max(var(--m), env(safe-area-inset-top)); left: var(--m); right: var(--m); display: flex; justify-content: space-between; align-items: center;
  pointer-events: none; z-index: 6; }
.top > * { pointer-events: auto; }
.top__back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 11px; border-radius: 20px; font-size: 13.5px; font-weight: 500; color: var(--ink); transition: background .2s; }
.top__back:hover { background: rgba(30, 32, 40, .7); }
.top__lang { display: flex; height: 40px; padding: 3px; border-radius: 20px; }
.top__lang button { min-width: 42px; border-radius: 17px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--faint); transition: color .2s, background .2s; }
.top__lang button[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, .14); }

/* 위 가운데: 실에 들어설 때 잠깐 떠오르는 실 이름(양옆 가는 선) */
.reveal { position: fixed; top: max(calc(var(--m) + 2px), env(safe-area-inset-top)); left: 50%; transform: translate(-50%, -8px); text-align: center; pointer-events: none; z-index: 5;
  opacity: 0; transition: opacity 1s ease, transform 1s ease; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); white-space: nowrap; }
.reveal.is-on { opacity: 1; transform: translate(-50%, 0); }
.reveal__k { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .3em; color: var(--acc-hi); margin-bottom: 7px; }
.reveal__k::before, .reveal__k::after { content: ""; width: 28px; height: 1px; background: rgba(170, 185, 223, .55); }
.reveal__t { display: block; font-family: var(--kserif); font-weight: 500; font-size: 26px; letter-spacing: .04em; color: var(--ink); }
html[lang="en"] .reveal__t { font-family: var(--serif); font-size: 29px; letter-spacing: .02em; }

/* 첫 화면: 게임 타이틀처럼. 왼쪽 제목과 메뉴, 오른쪽으로 전시실이 비쳐 보이며 천천히 움직인다 */
.gate { position: fixed; inset: 0; z-index: 8; display: flex; align-items: center; padding: 0 clamp(28px, 8vw, 140px);
  background: linear-gradient(90deg, rgba(5, 6, 10, .95) 0%, rgba(5, 6, 10, .84) 34%, rgba(5, 6, 10, .3) 70%, rgba(5, 6, 10, .12) 100%); transition: opacity 1.2s; }
.gate.is-out { opacity: 0; pointer-events: none; }
.gate__in { width: min(560px, 100%); text-align: left; }
.gate__kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 12px; font-weight: 600; letter-spacing: .32em; color: var(--acc-hi); }
.gate__kicker::before { content: ""; width: 30px; height: 1.5px; background: var(--acc); }
.gate__title { margin: 0; font-family: var(--kserif); font-weight: 900; font-size: clamp(46px, 6.2vw, 86px); line-height: 1.1; letter-spacing: -.015em; word-break: keep-all; }
html[lang="en"] .gate__title { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.gate__sub { margin: 20px 0 0; font-size: 16px; line-height: 1.7; color: var(--dim); word-break: keep-all; }
html[lang="en"] .gate__sub { font-family: var(--serif); font-style: italic; font-size: 19px; }
.gate__go { display: flex; flex-direction: column; gap: 8px; width: min(380px, 100%); margin-top: 46px; }
.gbtn { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 18px 0 20px; border-radius: 14px; font-size: 17px; font-weight: 500; letter-spacing: .01em; color: var(--ink);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.gbtn > span { flex: 1; text-align: left; }
.gbtn .chev { width: 18px; height: 18px; opacity: .7; transition: transform .2s, opacity .2s; }
.gbtn:hover .chev { transform: translateX(3px); opacity: 1; }
.gbtn--primary { background: linear-gradient(90deg, #36528f, #22356a); color: #eef1f8; border: 1px solid rgba(205, 213, 235, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 34px rgba(20, 30, 70, .45); }
.gbtn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 40px rgba(40, 62, 130, .6); background: linear-gradient(90deg, #3d5ba0, #273c75); }
.gbtn--ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); }
.gbtn--ghost:hover { background: rgba(255, 255, 255, .1); }
.gbtn[disabled] { opacity: .35; pointer-events: none; }
.gate__hint { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; font-size: 12.5px; color: var(--dim); word-break: keep-all; }
.kh { display: inline-flex; align-items: center; gap: 4px; }
.kh .key { margin-right: 3px; }
.kh-m { display: none; }
.gate__load { margin: 14px 0 0; min-height: 1.5em; font-size: 12px; letter-spacing: .06em; color: var(--faint); }

/* 자막: 아래 가운데, 상자 없이 큰 글씨(글 뒤만 은은히 어둡게) */
.cap { position: fixed; left: 50%; bottom: calc(max(var(--m), env(safe-area-inset-bottom)) + 150px); transform: translateX(-50%); width: max-content; max-width: min(920px, calc(100vw - 2 * var(--m)));
  text-align: center; font-size: clamp(18px, 2.5vh, 27px); font-weight: 500; line-height: 1.45; letter-spacing: -.005em; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 20px rgba(0, 0, 0, .55); white-space: normal; word-break: keep-all;
  opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 5; }
.cap::before { content: ""; position: absolute; inset: -24px -60px; z-index: -1; background: radial-gradient(closest-side, rgba(4, 5, 8, .52), rgba(4, 5, 8, 0)); }
.cap:empty { display: none; }
.cap.is-on { opacity: 1; }

/* 아래: 지금 작품 카드(왼쪽)와 조작(오른쪽) */
.hud { position: fixed; left: var(--m); right: var(--m); bottom: max(calc(var(--m) + 26px), env(safe-area-inset-bottom)); z-index: 6; display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.now { position: relative; display: flex; flex-direction: column; width: min(400px, 34vw); padding: 16px 20px 16px 24px; border-radius: var(--r); }
.now::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 2px 2px 0; background: var(--acc); }
.now__txt { order: 1; }
.now__play { order: 2; margin-top: 12px; }
.now__seek { display: block; width: 100%; height: 14px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; --p: 0%; }
.now__seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) var(--p), rgba(255, 255, 255, .16) var(--p)); }
.now__seek::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) var(--p), rgba(255, 255, 255, .16) var(--p)); }
.now__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .2s; }
.now__seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.now:hover .now__seek::-webkit-slider-thumb { opacity: 1; }
.now__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.now__time { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.now__tools { display: flex; align-items: center; gap: 2px; }
.now__tools button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 16px; color: var(--dim); transition: color .2s, background .2s; }
.now__tools button:hover { color: var(--ink); background: rgba(255, 255, 255, .09); }
.now__tools svg { width: 17px; height: 17px; }
.now__tools .now__rate { width: auto; min-width: 46px; padding: 0 10px; margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .09); font-variant-numeric: tabular-nums; }
.now__k { margin: 0 0 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: var(--faint); }
.now__t { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.now__t b { display: inline-block; margin-right: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--acc-hi); font-variant-numeric: tabular-nums; vertical-align: 2px; }
.now.is-idle .now__play { display: none; }

.ctl { display: flex; align-items: center; gap: 12px; }
.ctl__b { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--ink); transition: background .2s, opacity .2s, transform .15s; }
.ctl__b:hover:not([disabled]) { background: rgba(30, 32, 40, .75); }
.ctl__b:active:not([disabled]) { transform: scale(.94); }
.ctl__b[disabled] { opacity: .32; pointer-events: none; }
.ctl__b svg { width: 18px; height: 18px; }
.ctl__pp { width: 60px; height: 60px; background: #f4f1ea; border: 0; color: #121318; box-shadow: 0 12px 30px rgba(0, 0, 0, .32); }
.ctl__pp:hover:not([disabled]) { background: #fff; }
.ctl__pp svg { width: 21px; height: 21px; }
.ctl__pp .i-pause, .hud.is-playing .ctl__pp .i-play { display: none; }
.hud.is-playing .ctl__pp .i-pause { display: block; }
.ctl .key { position: absolute; top: calc(50% + 54px); left: 50%; transform: translateX(-50%); pointer-events: none; }   /* 단추 크기가 달라도 키 표시는 한 줄 */
#wkNextW.is-call { animation: wkcall 1.2s ease-in-out infinite; }
@keyframes wkcall { 50% { background: rgba(86, 116, 189, .55); } }

/* 자동 관람(= 재생): 조작 가운데의 가장 큰 원. 강조색은 별빛 파랑.
   꺼짐: 깊은 검은 유리 원판, 가는 테 두 겹, 가운데 파란 재생 삼각형. 누르기 전에는 숨 쉬듯 아주 천천히 파란 빛을 냈다 거둠(그림을 방해하지 않는 세기).
   켜짐: 원판이 깊은 파랑으로 차오르며 은은히 빛나고, 테두리를 따라 밝은 빛 호가 계속 돌며, 가운데는 멈춤 표시 */
.auto { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; width: 84px; height: 84px; margin: 0 6px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #262a35 0%, #14161d 62%, #0c0d12 100%); border: 1px solid rgba(170, 185, 223, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 16px 36px rgba(0, 0, 0, .42); color: var(--ink);
  transition: transform .15s ease, border-color .3s ease, background .3s ease; isolation: isolate; animation: autobreathe 3.6s ease-in-out infinite; }
.auto::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(170, 185, 223, .10); pointer-events: none; }
.auto::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from 0deg, rgba(200, 210, 235, 0) 0deg, rgba(200, 210, 235, 0) 200deg, rgba(200, 210, 235, .9) 320deg, #fff 356deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); }
.auto:hover { border-color: rgba(195, 206, 234, .5); transform: translateY(-1px); }
.auto:active { transform: scale(.95); }
.auto svg { width: 24px; height: 24px; color: #b4c2e6; stroke-width: 2.4; animation: autoicon 3.6s ease-in-out infinite; }
.auto .bars { display: none; }
.auto__txt { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; color: rgba(255, 255, 255, .9); }
.auto.is-on { animation: none; background: radial-gradient(circle at 50% 30%, #4d6aaf 0%, #30478a 52%, #1e2c52 100%); border-color: rgba(210, 218, 238, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(86, 116, 189, .35), 0 0 28px rgba(76, 105, 174, .42), 0 16px 36px rgba(0, 0, 0, .42); }
.auto.is-on::after { opacity: 1; animation: autospin 1.8s linear infinite; }
.auto.is-on svg { color: #fff; animation: none; filter: none; }
.auto.is-on .tri { display: none; }
.auto.is-on .bars { display: inline; }
.auto.is-on .auto__txt { color: #fff; }
@keyframes autospin { to { transform: rotate(360deg); } }
@keyframes autobreathe {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 0 0 0 rgba(76, 105, 174, 0), 0 16px 36px rgba(0, 0, 0, .42); border-color: rgba(170, 185, 223, .24); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 22px 2px rgba(76, 105, 174, .38), 0 16px 36px rgba(0, 0, 0, .42); border-color: rgba(195, 206, 234, .5); }
}
@keyframes autoicon { 0%, 100% { filter: drop-shadow(0 0 0 rgba(160, 178, 225, 0)); opacity: .86; } 50% { filter: drop-shadow(0 0 8px rgba(160, 178, 225, .6)); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .auto, .auto svg, .auto.is-on::after { animation: none !important; } }
#nearBtn, #wkOff, #wkPlay { display: none !important; }

/* 가까이 보기 */
.look { position: fixed; inset: 0; z-index: 9; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); background: rgba(5, 6, 10, .96);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.look__x { position: absolute; top: max(var(--m), env(safe-area-inset-top)); right: var(--m); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); z-index: 2; }
.look__imgs { display: flex; flex-direction: column; gap: 14px; justify-content: center; align-items: center; padding: 56px 28px; overflow: auto; }
.look__imgs img { display: block; max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.look__imgs.is-many img { max-height: calc((100vh - 140px) / 2); }
.look__text { padding: 92px 56px 40px 8px; overflow: auto; }
.look__hook { margin: 0 0 8px; font-family: var(--kserif); font-weight: 900; font-size: 28px; line-height: 1.3; word-break: keep-all; }
html[lang="en"] .look__hook { font-family: var(--serif); font-weight: 500; }
.look__title { margin: 0; font-size: 15px; font-weight: 500; color: var(--dim); }
.look__meta { margin: 4px 0 24px; font-size: 13px; color: var(--faint); }
.look__doc p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.85; color: rgba(244, 241, 234, .86); word-break: keep-all; }
.look__credit { margin: 22px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint); }
.look__more { display: inline-flex; align-items: center; height: 42px; margin-top: 20px; padding: 0 18px; border-radius: 21px; font-size: 13.5px; font-weight: 500; background: rgba(255, 255, 255, .08); border: 1px solid var(--edge); }
.look__more:hover { background: rgba(255, 255, 255, .13); }

/* 마침 화면: 첫 화면과 짝. 왼쪽에 인사와 메뉴, 뒤로 에필로그 방이 비쳐 보임 */
.end { position: fixed; inset: 0; z-index: 8; display: flex; align-items: center; padding: 0 clamp(28px, 8vw, 140px);
  background: linear-gradient(90deg, rgba(5, 6, 10, .94) 0%, rgba(5, 6, 10, .82) 36%, rgba(5, 6, 10, .3) 72%, rgba(5, 6, 10, .12) 100%); animation: endin 1.4s ease both; }
@keyframes endin { from { opacity: 0; } to { opacity: 1; } }
.end__title { font-size: clamp(38px, 4.6vw, 66px); }
.end__more { display: inline-block; margin-top: 26px; font-size: 13px; color: var(--dim); border-bottom: 1px solid rgba(255, 255, 255, .2); padding-bottom: 2px; }
.end__more:hover { color: var(--ink); border-color: var(--ink); }
body.is-end .hud, body.is-end .top, body.is-end .reveal, body.is-end .cap { opacity: 0; pointer-events: none; transition: opacity .6s; }
.fade { position: fixed; inset: 0; z-index: 10; background: #05060a; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.fade.is-on { opacity: 1; pointer-events: auto; }

/* 휴대폰: 아래는 한 장의 유리 카드(위 줄 해설 진행, 아래 줄 작품 이름과 조작), 자동 관람은 카드 오른쪽 끝. 키 표시는 숨김 */
@media (max-width: 760px) {
  :root { --m: 12px; }
  .key, .gate__hint .kh { display: none; }
  .kh-m { display: inline; }
  .top__back { width: 40px; padding: 0; justify-content: center; }
  .top__back span { display: none; }
  .reveal { top: max(18px, env(safe-area-inset-top)); }
  .reveal__k { font-size: 10.5px; margin-bottom: 4px; gap: 8px; }
  .reveal__k::before, .reveal__k::after { width: 18px; }
  .reveal__t { font-size: 19px; }
  .shade--bot { height: 30vh; }
  .gate { align-items: flex-end; padding: 0 22px max(36px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(5, 6, 10, .3), rgba(5, 6, 10, .78) 45%, rgba(5, 6, 10, .96)); }
  .gate__title { font-size: 46px; }
  .gate__sub { font-size: 15px; }
  .gate__go { width: 100%; margin-top: 30px; }
  .gbtn { height: 56px; font-size: 16px; }
  .gate__hint { margin-top: 18px; font-size: 12px; }
  .end { align-items: flex-end; padding: 0 22px max(30px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(5, 6, 10, .25), rgba(5, 6, 10, .8) 42%, rgba(5, 6, 10, .96)); }
  .end__title { font-size: 34px; }
  .end .gbtn { height: 52px; }
  .hud { bottom: max(var(--m), env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "play play" "text ctl"; align-items: center; gap: 10px 6px;
    padding: 10px 10px 10px 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--edge);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); pointer-events: auto; }
  .hud::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 2px 2px 0; background: var(--acc); }
  .now { display: contents; }
  .now::before { display: none; }
  .now.glass { background: none; border: 0; box-shadow: none; }
  .now__play { grid-area: play; margin: 0; }
  .now__txt { grid-area: text; min-width: 0; }
  .now__k { font-size: 10.5px; margin-bottom: 2px; letter-spacing: .06em; }
  .now__t { font-size: 15.5px; }
  .now__t b { font-size: 12px; margin-right: 8px; vertical-align: 1px; }
  .ctl { grid-area: ctl; gap: 2px; }
  .ctl__b { width: 42px; height: 42px; background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .ctl__pp { width: 48px; height: 48px; background: #f4f1ea !important; }
  .auto { width: 62px; height: 62px; margin: 0 2px; }
  .auto svg { width: 20px; height: 20px; }
  .auto__txt { font-size: 9.5px; }
  .auto::before { inset: 4px; }
  .auto::after { inset: -4px; }
  .cap { bottom: calc(max(var(--m), env(safe-area-inset-bottom)) + 156px); font-size: 16.5px; max-width: calc(100vw - 28px); }
  .cap::before { inset: -18px -24px; }
  .look { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; }
  .look__imgs { padding: 64px 14px 8px; }
  .look__imgs img { max-height: 52vh; }
  .look__imgs.is-many img { max-height: 34vh; }
  .look__text { padding: 12px 20px 40px; }
  .look__hook { font-size: 22px; }
}

/* 로딩 화면: 가운데서 헤엄치는 도슨트 고래(위아래로 천천히 떠오르고, 좌우로 흘러가며, 오르내릴 때 머리가 살짝 기욺) */
.boot { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: radial-gradient(ellipse 70% 60% at 50% 44%, #101729 0%, #080b14 58%, #05060a 100%); transition: opacity .9s ease, visibility .9s; }
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__in { display: grid; justify-items: center; transform: translateY(-3vh); }
.boot__sea { position: relative; width: 320px; height: 220px; display: grid; place-items: center; margin-bottom: 14px; }
.boot__sea::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 238, 210, .17) 0%, rgba(170, 196, 245, .09) 38%, rgba(0, 0, 0, 0) 68%); animation: bootglow 5.6s ease-in-out infinite; }
.boot__x { animation: bootx 8s ease-in-out infinite; }
.boot__y { animation: booty 4s ease-in-out infinite; }
.boot__y img { display: block; width: 200px; height: auto; animation: boottilt 4s ease-in-out infinite; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
.boot__star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #dfe7ff; opacity: .15; animation: boottw 4s ease-in-out infinite; }
.boot__say { margin: 0; font: 500 18px/1.4 var(--sans); letter-spacing: -.01em; color: #edf0f8; }
.boot__sub { position: relative; width: 300px; height: 22px; margin: 8px 0 0; font: 400 13px/22px var(--sans); color: rgba(222, 229, 245, .58); text-align: center; }
.boot__sub span { position: absolute; inset: 0; opacity: 0; animation: bootmsg 6.4s ease-in-out infinite; }
.boot__sub span + span { animation-delay: 3.2s; }
@keyframes bootx { 0%, 100% { transform: translateX(-18px); } 50% { transform: translateX(18px); } }
@keyframes booty { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@keyframes boottilt { 0%, 50%, 100% { transform: rotate(0deg); } 25% { transform: rotate(3.5deg); } 75% { transform: rotate(-3deg); } }
@keyframes bootglow { 0%, 100% { transform: scale(.94); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes boottw { 0%, 100% { opacity: .1; } 50% { opacity: .55; } }
@keyframes bootmsg { 0% { opacity: 0; transform: translateY(5px); } 10%, 44% { opacity: 1; transform: none; } 54%, 100% { opacity: 0; transform: translateY(-5px); } }
@media (max-width: 760px) { .boot__sea { width: 260px; height: 190px; } .boot__y img { width: 168px; } .boot__say { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .boot__x, .boot__y, .boot__y img, .boot__sea::before, .boot__star { animation: none !important; } .boot__sub span + span { display: none; } .boot__sub span { animation: none; opacity: 1; } }
