/* labs-deepsea
   배치: 왼쪽 벽(지금 창밖에 있는 것의 이름과 설명) | 둥근 창 | 오른쪽 벽(수심 게이지)
   겹 순서: 창밖(canvas) → 창 안(영상·이름표) → 선실(창틀과 벽) → 글·게이지 → 끝 화면 → 표지 → 암전
   색은 장면에서만 나온다. 계기와 글은 흑백과 중립 회색만 쓴다. */

:root {
  --ink: #f4f5f7;
  --dim: #c2c6cd;
  --faint: #8a8f98;
  --line: rgba(255, 255, 255, .22);
  --edge: max(24px, 4.6vw);
  --pages: 90;                 /* 스크롤 길이(화면 높이의 배수) */
  --gauge: 220px;              /* 오른쪽 벽 너비 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #000; }
html { overscroll-behavior-y: none; }      /* 맨 위에서 아래로 당겨도 새로고침되지 않게(그 동작은 표지로 돌아가기에 쓴다) */
html.is-locked { overflow: hidden; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: pan-y;         /* 세로는 스크롤, 가로 끌기는 뷰 돌리기 */
}
b { font-weight: inherit; }
button { font: inherit; }

.track { height: calc(var(--pages) * 100vh); }
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; z-index: 0; }

/* ── 창 안: 잠수 영상과 작은 이름표 ───────── */
.glass {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  -webkit-clip-path: circle(calc(var(--dome-d) * .494) at var(--dome-cx) var(--dome-cy));
  clip-path: circle(calc(var(--dome-d) * .494) at var(--dome-cx) var(--dome-cy));
}
.glass__clip {
  position: absolute; left: calc(var(--dome-cx) - var(--dome-d) * .5); top: calc(var(--dome-cy) - var(--dome-d) * .5);
  width: var(--dome-d); height: var(--dome-d); object-fit: cover; opacity: 0; transition: opacity 1.4s ease;
}
.glass__clip.is-on { opacity: 1; transition-duration: .4s; }
/* 유리 표면: 바깥이 어두울수록 선실 불빛의 반사와 긁힘이 드러난다 */
.glass__sheen {
  position: absolute; left: calc(var(--dome-cx) - var(--dome-d) * .5); top: calc(var(--dome-cy) - var(--dome-d) * .5);
  width: var(--dome-d); height: var(--dome-d); mix-blend-mode: screen; opacity: var(--sheen, .15);
}
/* 유리 위의 선 그림: 이정표를 그 자리에서 그려 보여 준다 */
.art { position: absolute; left: var(--dome-cx); top: calc(var(--dome-cy) - var(--dome-d) * .11); width: calc(var(--dome-d) * .58); height: calc(var(--dome-d) * .58); transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s ease; }
.art.is-on { opacity: .94; transition-duration: .9s; }
.art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.art__l { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .7)); }
.art__l.thin { stroke-width: 1; opacity: .7; }
.art .dim { opacity: .42; }
.art .draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.art.is-on .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2s cubic-bezier(.3, .6, .2, 1) .15s; }
.art__t { fill: #fff; font-size: 17px; font-weight: 550; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: rgba(0, 0, 0, .6); stroke-width: 4px; stroke-linejoin: round; opacity: 0; }
.art.is-on .art__t { opacity: 1; transition: opacity .9s ease 1.1s; }
.art__t.b { font-size: 27px; font-weight: 760; letter-spacing: -.02em; }
.art__t.s { font-size: 15px; fill: var(--dim); font-weight: 500; }
/* 창 아래쪽을 조금 어둡게: 소개 글이 물빛 위에서도 읽히게 */
.glass__low { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; background: radial-gradient(calc(var(--dome-d) * .62) calc(var(--dome-d) * .36) at var(--dome-cx) calc(var(--dome-cy) + var(--dome-d) * .44), rgba(0, 6, 14, .72), rgba(0, 6, 14, .42) 55%, rgba(0, 6, 14, 0)); }
.glass__low.is-on { opacity: 1; }
.is-outro .glass__low, .is-outro .feature, .is-outro .callout { opacity: 0 !important; transition: opacity .6s ease; }
/* 처음 사용 안내: 창 한가운데, 모든 줄 가운데 정렬 */
.hint {
  position: absolute; left: var(--dome-cx); top: var(--dome-cy); width: calc(var(--dome-d) * .66); transform: translate(-50%, -46%);
  display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transition: opacity .6s ease, transform .6s ease;
  text-shadow: 0 2px 18px rgba(0, 10, 30, .75), 0 0 4px rgba(0, 10, 30, .5);
}
.hint::before {             /* 밝은 수면 빛 위에서도 읽히게 글 뒤만 살짝 어둡게 */
  content: ''; position: absolute; inset: -18% -14%; z-index: -1; background: radial-gradient(closest-side, rgba(0, 12, 30, .5), rgba(0, 12, 30, 0));
}
.hint.is-on { opacity: 1; transform: translate(-50%, -50%); transition-duration: .9s; }
.hint__icon { width: calc(var(--dome-d) * .05); min-width: 28px; height: auto; overflow: visible; }
.hint__icon rect, .hint__icon path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hint__wheel { fill: #fff; animation: hint-wheel 1.6s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes hint-wheel { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(12px); opacity: 0; } }
.hint__lead { margin-top: calc(var(--dome-d) * .026); font-size: clamp(22px, calc(var(--dome-d) * .052), 44px); font-weight: 750; letter-spacing: -.035em; line-height: 1.2; }
.hint__keys { margin-top: calc(var(--dome-d) * .034); display: flex; flex-direction: column; align-items: center; gap: calc(var(--dome-d) * .016); font-size: clamp(14px, calc(var(--dome-d) * .021), 18px); font-weight: 500; color: #e6eaee; }
.hint__keys p { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hint kbd {
  font: inherit; font-weight: 650; min-width: 1.9em; height: 1.9em; padding: 0 .45em; display: inline-grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 5px; line-height: 1; text-shadow: none;
}
.hint kbd + kbd { margin-left: -4px; }
.is-tall .hint { width: calc(var(--dome-d) * .8); }
/* 수심대가 바뀔 때 창을 지나가는 큰 글자 */
.zonecard { position: absolute; left: var(--dome-cx); top: var(--dome-cy); width: var(--dome-d); transform: translate(-50%, -50%); text-align: center; opacity: 0; text-shadow: 0 4px 40px rgba(0, 0, 0, .75), 0 0 6px rgba(0, 0, 0, .5); }
.zonecard b { display: block; font-size: calc(var(--dome-d) * .165); font-weight: 780; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.zonecard span { display: block; margin-top: calc(var(--dome-d) * .03); font-size: clamp(14px, calc(var(--dome-d) * .024), 23px); letter-spacing: .14em; font-weight: 600; font-variant-numeric: tabular-nums; }
.zonecard.is-on { animation: zonecard 3.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes zonecard {
  0% { opacity: 0; transform: translate(-50%, -44%) scale(1.22); filter: blur(12px); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
  68% { opacity: 1; transform: translate(-50%, -51%) scale(.99); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(.96); filter: blur(6px); }
}
/* 방위 표시 */
.compass { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--on, .28); font-variant-numeric: tabular-nums; }
.compass__tick { stroke: rgba(255, 255, 255, .75); stroke-width: 1; }
.compass__tick--big { stroke: #fff; stroke-width: 1.6; }
.compass__label { fill: var(--dim); font-size: 13px; letter-spacing: .04em; }
.compass__label--card { fill: #fff; font-size: 17px; font-weight: 700; }
.compass__mark { fill: #fff; }
.compass__readout { fill: #fff; font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.compass__turn, .compass__vert { fill: #fff; font-size: 14px; font-weight: 650; letter-spacing: .08em; opacity: 0; transition: opacity .2s ease; }
.compass text { paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 3px; stroke-linejoin: round; }
/* 기록 영상: 창밖에 없는 종(다른 바다, 해저)은 유리에 비친 흐린 영상으로 보여 준다 */
.record {
  position: absolute; left: var(--dome-cx); top: calc(var(--dome-cy) - var(--dome-d) * .13); width: calc(var(--dome-d) * .44); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .9s ease; padding: 26px 30px 30px;
  background:
    linear-gradient(#fff, #fff) 0 0 / 22px 1px no-repeat, linear-gradient(#fff, #fff) 0 0 / 1px 22px no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 22px 1px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 1px 22px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 22px 1px no-repeat, linear-gradient(#fff, #fff) 0 100% / 1px 22px no-repeat,
    linear-gradient(#fff, #fff) 100% 100% / 22px 1px no-repeat, linear-gradient(#fff, #fff) 100% 100% / 1px 22px no-repeat;
}
.record.is-on { opacity: .9; }
.record__cap { font-size: 13px; letter-spacing: .14em; font-weight: 600; color: #fff; margin: -6px 0 18px -8px; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.record__img {
  display: block; width: 100%; max-height: calc(var(--dome-d) * .25); object-fit: contain; filter: grayscale(.9) contrast(1.1) brightness(1.15); mix-blend-mode: screen; opacity: .78;
  -webkit-mask-image: repeating-linear-gradient(0deg, #000 0 2px, rgba(0, 0, 0, .55) 2px 3px); mask-image: repeating-linear-gradient(0deg, #000 0 2px, rgba(0, 0, 0, .55) 2px 3px);
  animation: record-drift 7s ease-in-out infinite alternate;
}
@keyframes record-drift { from { transform: translateY(-5px); opacity: .7; } to { transform: translateY(5px); opacity: .85; } }
.tag { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .6s ease; will-change: transform; }
.tag.is-on { opacity: 1; }
.tag i { position: absolute; left: 0; top: 0; width: 40px; height: 1px; background: rgba(255, 255, 255, .7); transform-origin: 0 0; transform: rotate(-38deg); }
.tag i::before { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); }
.tag span { position: absolute; left: 36px; bottom: 22px; white-space: nowrap; font-size: 15px; font-weight: 650; text-shadow: 0 1px 8px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9); }

/* ── 선실: 창틀과 벽 ───────────────────── */
.cabin { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; overflow: hidden; }
.cabin__plate { position: absolute; max-width: none; display: block; }
/* 창에서 새어 든 물빛이 창틀과 가까운 벽에 번진다 */
.cabin__light {
  position: absolute; inset: 0; mix-blend-mode: screen; opacity: .6;
  background: radial-gradient(circle at var(--dome-cx) var(--dome-cy), rgba(var(--water, 0, 0, 0), .9) calc(var(--dome-d) * .5), rgba(var(--water, 0, 0, 0), .32) calc(var(--dome-d) * .6), rgba(var(--water, 0, 0, 0), 0) calc(var(--dome-d) * .92));
  -webkit-mask-image: radial-gradient(circle at var(--dome-cx) var(--dome-cy), transparent calc(var(--dome-d) * .5), #000 calc(var(--dome-d) * .5 + 2px));
  mask-image: radial-gradient(circle at var(--dome-cx) var(--dome-cy), transparent calc(var(--dome-d) * .5), #000 calc(var(--dome-d) * .5 + 2px));
}
/* 깊어져 선실이 어두워지면 계기의 호박색·초록 불빛이 벽에 번진다 */
.cabin__glow {
  position: absolute; inset: 0; mix-blend-mode: screen; opacity: calc(var(--deep, 0) * 1.7);
  background:
    radial-gradient(46vh 60vh at calc(100% - var(--gauge) * .5) 55%, rgba(255, 168, 88, .2), rgba(255, 168, 88, 0) 72%),
    radial-gradient(30vh 26vh at calc(100% - var(--gauge) * .25) 0%, rgba(255, 180, 110, .11), rgba(255, 180, 110, 0) 72%),
    radial-gradient(24vh 44vh at 0% 58%, rgba(110, 255, 170, .1), rgba(110, 255, 170, 0) 72%);
  -webkit-mask-image: radial-gradient(circle at var(--dome-cx) var(--dome-cy), transparent calc(var(--dome-d) * .5), #000 calc(var(--dome-d) * .5 + 2px));
  mask-image: radial-gradient(circle at var(--dome-cx) var(--dome-cy), transparent calc(var(--dome-d) * .5), #000 calc(var(--dome-d) * .5 + 2px));
}
/* 글이 놓이는 양옆 벽은 조금 눌러 주고, 깊어질수록 선실 전체가 어두워진다(창 자리는 빼고) */
.cabin__shade {
  position: absolute; inset: 0; opacity: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .26) calc(var(--col) * .85), rgba(0, 0, 0, 0) calc(var(--col) + 30px), rgba(0, 0, 0, 0) calc(100% - var(--gauge) - 30px), rgba(0, 0, 0, .42) calc(100% - var(--gauge) * .75), rgba(0, 0, 0, .6)),
    rgba(0, 0, 0, var(--deep, .05));
  -webkit-mask-image: radial-gradient(circle at var(--dome-cx) var(--dome-cy), transparent calc(var(--dome-d) * .5), #000 calc(var(--dome-d) * .5 + 2px));
  mask-image: radial-gradient(circle at var(--dome-cx) var(--dome-cy), transparent calc(var(--dome-d) * .5), #000 calc(var(--dome-d) * .5 + 2px));
}
/* 선체가 눌리며 삐걱일 때 */
.is-creak .stage, .is-creak .cabin, .is-creak .glass { animation: creak .5s ease-out; }
@keyframes creak { 0% { transform: translate(0, 0); } 15% { transform: translate(-3px, 2px); } 35% { transform: translate(2px, -2px); } 60% { transform: translate(-1px, 1px); } 100% { transform: none; } }

/* ── 창 아래쪽: 이름과 설명 ───────────────── */
.callout { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.callout.is-on { opacity: 1; }
.callout__line { fill: none; stroke: rgba(255, 255, 255, .78); stroke-width: 1; stroke-linejoin: round; }
.callout__ring { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.2; }
.callout__dot { fill: #fff; }

.feature {
  position: fixed; z-index: 3; left: var(--dome-cx); bottom: calc(100% - var(--dome-cy) - var(--dome-d) * .41); width: calc(var(--dome-d) * .6); transform: translateX(-50%); pointer-events: none;
  visibility: hidden; text-shadow: 0 1px 14px rgba(0, 0, 0, .85), 0 0 3px rgba(0, 0, 0, .6); text-align: center;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; align-items: start;
}
.feature > * { grid-column: 1 / -1; }
.feature__alias, .feature__sci { display: inline; }
.is-dive .feature { visibility: visible; }
.feature > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.feature.is-on > * { opacity: 1; transform: none; }
.feature.is-on .feature__name { transition-delay: .07s; }
.feature.is-on .feature__alias, .feature.is-on .feature__sci { transition-delay: .14s; }
.feature.is-on .feature__fact { transition-delay: .22s; }
.feature.is-on .feature__scale { transition-delay: .30s; }
.feature.is-on .feature__meta { transition-delay: .38s; }
.feature > :empty { display: none; }
.feature__over { font-size: 13px; letter-spacing: .12em; color: var(--dim); font-weight: 600; }
.feature__name { font-size: clamp(30px, calc(var(--dome-d) * .054), 50px); font-weight: 760; letter-spacing: -.04em; line-height: 1.12; margin-top: 6px; }
.feature__name.is-long { font-size: clamp(25px, calc(var(--dome-d) * .042), 40px); }
.feature__alias { font-size: 16px; color: var(--dim); }
.feature__sci { font-size: 15px; font-style: italic; color: var(--faint); }
.feature__alias:not(:empty) + .feature__sci:not(:empty)::before { content: '·'; display: inline-block; margin: 0 .55em; font-style: normal; color: var(--faint); }
.feature__fact { font-size: clamp(15px, calc(var(--dome-d) * .02), 19px); line-height: 1.55; margin: 12px auto 0; max-width: 31em; }
.feature__meta { grid-column: 2; justify-self: start; text-align: left; margin-top: 14px; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.65; }
.feature__scale:empty + .feature__meta, .feature__meta:only-child { grid-column: 1 / -1; justify-self: center; text-align: center; }
.feature__meta span { color: var(--faint); margin-right: .6em; font-size: 13px; }
/* 크기 견주기: 사람 키(또는 손)와 나란히 놓은 막대 */
.feature__scale { grid-column: 1; justify-self: end; margin-top: 18px; display: grid; gap: 7px; justify-items: end; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.feature__scale p { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.feature__scale i { height: 5px; min-width: 2px; border-radius: 3px; background: var(--ink); flex: none; }
.feature__scale p + p i { background: var(--faint); }

/* ── 왼쪽 벽: 수심 게이지(벽 전체를 쓴다) ── */
.gauge {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--col); z-index: 3; pointer-events: none; padding: 4.5vh var(--col-pad) 26px calc(var(--col-pad) + 6px);
  display: grid; grid-template-rows: 1fr auto; row-gap: 10px; opacity: 0; transition: opacity 1s ease; font-variant-numeric: tabular-nums;
}
.gauge.is-on { opacity: 1; }
.gauge__plot { position: relative; min-height: 0; }
.gauge__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gauge__water { fill: url(#gauge-sea); opacity: .38; }
.gauge__water--passed { opacity: 1; }
.gauge__km { stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.gauge__floor { fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 1.8; stroke-linejoin: round; }
.gauge__zoneline { stroke: rgba(255, 255, 255, .34); stroke-width: 1; stroke-dasharray: 2 4; }
.gauge__tick { fill: var(--ink); font-size: 13.5px; font-weight: 600; transition: opacity .25s ease; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 3px; stroke-linejoin: round; }
.gauge__tick tspan { fill: var(--dim); font-weight: 500; }
.gauge__tick--mark { fill: var(--dim); }
.gauge__hair { stroke: #fff; stroke-width: 1.4; }
.gauge__hair--far { stroke-opacity: .35; }
.gauge__sub { fill: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .55)); }
.gauge__port { fill: #0a1420; }
/* 지금 수심: 게이지의 현재 위치 옆에서 함께 내려간다 */
.gauge__now { position: absolute; left: calc(var(--col-pad) + 6px); top: 0; text-align: left; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; will-change: transform; text-shadow: 0 1px 12px rgba(0, 0, 0, .95), 0 0 3px rgba(0, 0, 0, .9); }
.gauge__depth { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.gauge__depth b { font-size: clamp(40px, 3.2vw, 56px); font-weight: 740; letter-spacing: -.045em; }
.gauge__depth small { font-size: 19px; color: var(--dim); font-weight: 500; }
.gauge__zone { font-size: 17px; color: var(--ink); font-weight: 600; margin-top: 6px; }
.gauge__foot { text-align: left; font-size: 13px; color: var(--faint); letter-spacing: .04em; line-height: 1.35; }
.gauge__foot b { display: block; color: var(--dim); font-size: 15px; font-weight: 600; }

/* ── 오른쪽 벽: 세로로 긴 계기 화면(바늘 수압계 · 수온 곡선 · 햇빛 · 시간) ── */
.inst {
  position: fixed; z-index: 3; right: calc(var(--col-pad) + 4px); top: 66px; bottom: 70px; width: calc(var(--gauge) - var(--col-pad) * 2 - 8px); pointer-events: none; opacity: 0; transition: opacity 1s ease;
  display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 16px;
  background: radial-gradient(130% 100% at 25% 0%, #0f161c 0, #04070a 62%);
  border-radius: 5px; border: 1px solid rgba(255, 255, 255, .09);
  /* 두꺼운 금속 테두리, 벽에 드리운 그림자, 화면 빛이 벽에 번지는 기운 */
  box-shadow: 0 0 0 2px #000, 0 0 0 13px #22262b, 0 0 0 14px rgba(255, 255, 255, .16), 0 2px 0 14px #0c0e10, 0 26px 54px 6px rgba(0, 0, 0, .8), 0 0 90px 10px rgba(150, 185, 215, .09), inset 0 0 44px rgba(0, 0, 0, .75);
  font-variant-numeric: tabular-nums;
}
.inst.is-on { opacity: 1; }
/* 테두리 네 귀의 나사 */
.inst::before {
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  background:
    radial-gradient(circle, #6a7078 0 1.6px, #0b0c0e 1.9px 3.2px, transparent 3.5px) 0 0 / 8px 8px no-repeat,
    radial-gradient(circle, #6a7078 0 1.6px, #0b0c0e 1.9px 3.2px, transparent 3.5px) 100% 0 / 8px 8px no-repeat,
    radial-gradient(circle, #6a7078 0 1.6px, #0b0c0e 1.9px 3.2px, transparent 3.5px) 0 100% / 8px 8px no-repeat,
    radial-gradient(circle, #6a7078 0 1.6px, #0b0c0e 1.9px 3.2px, transparent 3.5px) 100% 100% / 8px 8px no-repeat;
}
/* 화면 유리: 비스듬한 반사와 가는 주사선 */
.inst::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .085) 0, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 74%, rgba(255, 255, 255, .035) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, rgba(255, 255, 255, 0) 1px 3px);
}
.inst__cell--press { padding-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.inst__cell--press .inst__label { align-self: flex-start; }
.inst__cell--temp { flex: 1 1 0; display: flex; flex-direction: column; }      /* 남는 높이를 수온 곡선이 채운다 */
.inst__cell--light { padding-top: 14px; border-top: 1px solid var(--line); }
/* 바늘 수압계 */
.inst__dial { display: block; width: 100%; max-width: min(236px, calc(46vh - 150px)); height: auto; margin: 6px auto 4px; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .7)); }
.inst__dial-screw { fill: #2a2e33; stroke: #c9ced3; stroke-width: .6; }
.inst__dial-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 5; }
.inst__dial-band { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 5; }
.inst__dial-tick { stroke: #d7dbe0; stroke-width: 1; }
.inst__dial-tick--big { stroke: #fff; stroke-width: 2.2; }
.inst__dial-num { fill: #f1f3f5; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.inst__dial-unit { fill: #9aa0a8; font-size: 10px; letter-spacing: .14em; font-weight: 600; }
.inst__dial-mark { stroke: #fff; stroke-width: 3; }
.inst__dial-lcd { fill: #e9edf0; font-size: 14px; font-weight: 650; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.inst__dial-needle { fill: #f7f8f9; stroke: #6c727a; stroke-width: .5; }
.inst__label { font-size: 13px; letter-spacing: .1em; color: var(--faint); font-weight: 600; }
.inst__label--gap { margin-top: 12px; }
.inst__big { display: flex; align-items: baseline; gap: 8px; line-height: 1.1; margin-top: 2px; }
.inst__big b { font-size: 36px; font-weight: 760; letter-spacing: -.04em; }
.inst__big small { font-size: 17px; color: var(--dim); }
.inst__mid { display: flex; align-items: baseline; gap: 6px; line-height: 1.2; white-space: nowrap; }
.inst__mid > b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.inst__mid small { font-size: 13px; color: var(--dim); }
.inst__mid small b { color: var(--ink); font-weight: 600; }
.inst__sub { font-size: 14px; color: var(--dim); margin-top: 2px; }
.inst__sub b { color: var(--ink); font-weight: 600; }
.inst__meter { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .13); margin-top: 8px; overflow: hidden; }
.inst__meter i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.inst__chart { margin-top: 8px; flex: 1 1 auto; min-height: 70px; display: flex; flex-direction: column; }
.inst__plot { display: block; width: 100%; flex: 1 1 0; min-height: 50px; height: 0; overflow: visible; }
.inst__grid { stroke: rgba(255, 255, 255, .12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.inst__axis { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 1; vector-effect: non-scaling-stroke; }
.inst__level { stroke: rgba(255, 255, 255, .5); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.inst__ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 3px; letter-spacing: .02em; }
.inst__curve { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.inst__dot { fill: #fff; }

/* 언어: 표지·잠수·끝 화면 어디서나 오른쪽 위 같은 자리(옮기지 않는다) */
.lang { position: fixed; z-index: 9; top: 16px; right: 26px; display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lang button { min-height: 28px; padding: 0 11px; border: 0; border-radius: 5px; background: transparent; color: var(--dim); font: inherit; font-size: 12px; font-weight: 650; letter-spacing: .04em; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #0a0b0c; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"]:hover { background: #fff; color: #0a0b0c; }
.lang button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sound {
  position: fixed; right: 26px; bottom: 16px; z-index: 4; font-size: 13px; letter-spacing: .06em; color: var(--dim);
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .6s ease, color .2s ease;
}
.is-dive .sound { opacity: 1; visibility: visible; }
body:not(.is-dive) .sound { display: none; }
.sound:hover { color: #fff; }
.sound:focus-visible, .outro button:focus-visible, .sources__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ── 끝: 바닥에 닿은 뒤 ─────────────────── */
.outro {
  position: fixed; z-index: 4; left: var(--dome-cx); top: var(--dome-cy); width: min(560px, calc(var(--dome-d) * .78)); transform: translate(-50%, -38%);
  text-align: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; text-shadow: 0 2px 20px rgba(0, 0, 0, .9);
}
.outro.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.outro__over { font-size: 14px; letter-spacing: .12em; color: var(--dim); font-weight: 600; }
.outro__title { font-size: clamp(36px, 4vw, 64px); font-weight: 760; letter-spacing: -.04em; line-height: 1.15; margin-top: 12px; }
.outro__text { margin-top: 18px; font-size: clamp(16px, 1.3vw, 20px); color: var(--ink); }
.outro__actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.outro button { font-size: 16px; font-weight: 650; border-radius: 999px; padding: 13px 24px; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; transition: transform .25s ease, background-color .25s ease; }
.outro__up { color: #0a0b0c; background: var(--ink); border: 0; }
.outro__up i { font-style: normal; }
.outro__up:hover { background: #fff; transform: translateY(-1px); }
.outro__src { color: var(--ink); background: rgba(0, 0, 0, .4); border: 1px solid var(--line); }
.outro__src:hover { background: rgba(255, 255, 255, .12); }
.is-ascending .outro, .is-ascending .feature, .is-ascending .callout, .is-ascending .glass__low { opacity: 0 !important; }
@media (max-height: 760px) { .feature__scale { display: none; } .feature__scale + .feature__meta { grid-column: 1 / -1; justify-self: center; text-align: center; } .inst__big b { font-size: 30px; } .inst { gap: 10px; } .inst__cell--temp .inst__sub { display: none; } .inst__chart { min-height: 56px; } }

.sources { position: fixed; inset: 0; z-index: 10; background: rgba(4, 5, 7, .94); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sources[hidden] { display: none; }
.sources__inner { max-width: 920px; margin: 0 auto; padding: 9vh var(--edge) 12vh; }
.sources h2 { font-size: clamp(30px, 3vw, 44px); font-weight: 750; letter-spacing: -.03em; }
.sources h3 { font-size: 20px; font-weight: 700; margin: 44px 0 6px; }
.sources p { font-size: 16px; color: var(--dim); margin-top: 8px; max-width: 46em; }
.sources ul { list-style: none; margin-top: 12px; display: grid; gap: 7px; }
.sources li { font-size: 15px; color: var(--dim); line-height: 1.5; }
.sources li b { color: var(--ink); font-weight: 600; margin-right: .6em; }
.sources a { color: var(--dim); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; word-break: break-all; }
.sources a:hover { color: #fff; }
.sources__close { position: sticky; top: 3vh; float: right; font-size: 15px; color: var(--ink); background: rgba(255, 255, 255, .1); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer; }

/* ── 암전 · 안내 ───────────────────────── */
.blackout { position: fixed; inset: 0; z-index: 8; background: #000; opacity: 0; pointer-events: none; }
.status {
  position: fixed; left: var(--dome-cx, 50%); top: 50%; z-index: 9; transform: translate(-50%, -50%); font-size: 17px; letter-spacing: .16em; color: var(--ink);
  opacity: 0; transition: opacity .4s ease; pointer-events: none; white-space: nowrap; text-shadow: 0 1px 12px rgba(0, 0, 0, .9);
}
.status.is-on { opacity: 1; }

/* ── 표지 ─────────────────────────────── */
.cover { position: fixed; inset: 0; z-index: 7; overflow: hidden; background: #02060c; }
.cover[hidden] { display: none; }
.cover__video, .cover__board { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover__video { object-position: 62% 50%; }
/* 누르면 탑승 영상이 표지 위로 떠오른다: 갑판 → 열린 해치 → 선실 → 둥근 창. 끝나면 표지째 걷혀 같은 구도의 실시간 선실이 드러난다 */
.cover__board { opacity: 0; }      /* 첫 장면이 표지와 같아서 바로 바꾼다 */
.cover.is-board .cover__board { opacity: 1; }
.cover { transition: opacity .9s ease; }
.cover.is-gone { opacity: 0; }
/* 글은 왼쪽 아래에 한 덩어리로, 왼쪽 정렬: 제목 위, 설명과 버튼 아래. 잠수정(오른쪽)과 하늘은 가리지 않는다 */
.cover__text {
  position: absolute; inset: 0; padding: 0 var(--edge) 7vh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px;
  background:
    radial-gradient(80% 85% at 0% 100%, rgba(0, 3, 10, .78) 0, rgba(0, 3, 10, .42) 48%, rgba(0, 3, 10, 0) 78%),
    linear-gradient(180deg, rgba(0, 3, 10, 0) 55%, rgba(0, 3, 10, .5) 100%);
  transition: opacity .5s ease, transform .5s ease;
}
.cover__head { flex: none; }
.cover__side { max-width: 34em; display: flex; flex-direction: column; align-items: flex-start; }
/* 넓은 화면에서는 설명을 문장마다 한 줄씩, 줄은 꺾지 않는다(화면 폭에 맞춰 글자 크기를 줄인다) */
@media (min-width: 1100px) and (orientation: landscape) {
  /* 제목 → 바로 아래 설명 → 그 아래 출발 버튼, 모두 왼쪽 정렬 */
  .cover__side { max-width: none; }
  .cover__title { white-space: nowrap; }                                     /* 제목은 한 줄 */
  .cover .cover__lede { white-space: nowrap; font-size: clamp(15px, 1.3vw, 22px); line-height: 1.6; }
}
.cover.is-leaving .cover__text { opacity: 0; transform: translateY(14px); }
.cover__kicker { font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--ink); display: flex; gap: 14px; align-items: baseline; text-shadow: 0 1px 3px rgba(0, 8, 24, .95), 0 1px 14px rgba(0, 8, 24, .9); }
.cover__kicker span + span { color: var(--ink); font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cover__title {
  margin-top: 16px; font-size: clamp(31px, 4.6vw, 84px); font-weight: 750; line-height: 1.1; letter-spacing: -.04em;
  text-shadow: 0 2px 30px rgba(0, 8, 24, .6);
}
.cover__lede { font-size: clamp(16px, 1.3vw, 20px); color: #dfe3e8; text-shadow: 0 1px 14px rgba(0, 8, 24, .7); }
.cover__start {
  margin-top: 26px; font-size: 17px; font-weight: 650; color: #0a0b0c; background: var(--ink);
  border: 0; border-radius: 999px; padding: 15px 22px 15px 28px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 14px;
  transition: transform .25s ease, background-color .25s ease;
}
.cover__start i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: #0a0b0c; color: var(--ink); display: grid; place-items: center; font-size: 15px; transition: transform .25s ease; }
.cover__start:hover { background: #fff; transform: translateY(-1px); }
.cover__start:hover i { transform: translateY(3px); }
.cover__start:active { transform: translateY(1px); }
.cover__start:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.cover__note { margin-top: 14px; font-size: 13px; letter-spacing: .06em; color: var(--dim); }

/* ── 세로 화면: 위에 수심, 가운데 창, 아래에 글 ── */
.is-tall .cabin__shade { background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .2) 22%, rgba(0, 0, 0, .2) 52%, rgba(0, 0, 0, .86) 72%), rgba(0, 0, 0, var(--deep, .05)); }
.is-tall .gauge { left: auto; right: 0; width: 60px; padding: 0 8px 0 0; top: calc(var(--dome-cy) - var(--dome-d) * .5 + 10px); bottom: auto; height: calc(var(--dome-d) - 20px); display: block; }
.is-tall .gauge__plot { margin-left: 26px; height: 100%; }
.is-tall .gauge__tick { display: none; }
.is-tall .gauge__now { position: fixed; left: var(--edge); right: auto; top: 16px; align-items: flex-start; transform: none !important; }
.is-tall .gauge__depth b { font-size: 46px; }
.is-tall .gauge__foot, .is-tall .compass__label { display: none; }
.is-tall .compass__readout { font-size: 15px; }
/* 세로 화면의 계기: 화면 맨 아래 한 줄(수압 · 수온 · 햇빛 또는 바닥까지) */
.is-tall .inst {
  left: 0; right: 0; top: auto; bottom: 0; width: auto; display: flex; flex-direction: row; gap: 14px; align-items: flex-start; padding: 9px var(--edge) calc(9px + env(safe-area-inset-bottom, 0px));
  border-radius: 0; border: 0; border-top: 1px solid var(--line); box-shadow: none; background: rgba(3, 6, 9, .86);
}
.is-tall .inst::before, .is-tall .inst::after { display: none; }
.is-tall .inst__cell { flex: 1 1 0; min-width: 0; }
.is-tall .inst__cell--press { flex-grow: 1.25; padding: 0; border: 0; align-items: flex-start; text-align: left; }
.is-tall .inst__cell--light { padding: 0; border: 0; }
.is-tall .inst__dial { display: none; }
.is-tall .inst__label { font-size: 11px; }
.is-tall .inst__big b { font-size: 22px; } .is-tall .inst__big small { font-size: 11px; }
.is-tall .inst__mid > b { font-size: 19px; }
.is-tall .inst__sub, .is-tall .inst__meter, .is-tall .inst__chart, .is-tall .inst__label--gap, .is-tall .inst__label--gap ~ * { display: none; }
.is-tall .feature { padding-bottom: 64px; }
.is-tall .feature { left: var(--edge); right: var(--edge); width: auto; top: calc(var(--dome-cy) + var(--dome-d) * .5 + 18px); bottom: auto; transform: none; display: block; text-align: left; }
.is-tall .feature__meta { text-align: left; }
.is-tall .glass__low { display: none; }
.is-tall .feature__name { font-size: 30px; margin-top: 4px; }
.is-tall .feature__fact { font-size: 16px; margin-top: 10px; }
.is-tall .feature__meta { font-size: 14px; margin-top: 8px; }
.is-tall .feature__scale, .is-tall .callout { display: none !important; }
.is-tall .lang { right: 12px; top: 14px; }
.is-tall .sound { right: calc(12px + var(--lang-w, 108px) + 8px); top: 14px; bottom: auto; }
.is-tall .outro__title { font-size: 32px; }

@media (max-width: 900px), (orientation: portrait) {
  .cover__kicker { flex-direction: column; gap: 2px; }
}
@media (max-width: 600px) {
  .cover__text { padding-bottom: 6vh; }
  .cover__title { margin-top: 12px; font-size: 35px; }
  .cover__lede { display: none; }
  .cover__start { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .feature > *, .cover__text { transition-duration: .01s; }
  .is-creak .stage, .is-creak .cabin, .is-creak .glass { animation: none; }
  .zonecard.is-on { animation-duration: 3.8s; }
  .hint__wheel { animation: none; }
}
