@font-face {
  font-family: "NEXON Lv2 Gothic";
  src: url("/assets/fonts/NEXONLv2Gothic-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
/* Medium(500) 웹폰트가 배포되지 않아 Regular 파일을 500으로 매핑 */
@font-face {
  font-family: "NEXON Lv2 Gothic";
  src: url("/assets/fonts/NEXONLv2Gothic-Regular.woff") format("woff");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "NEXON Lv2 Gothic";
  src: url("/assets/fonts/NEXONLv2Gothic-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* 안드로이드(크롬 · 삼성 인터넷) 다크 모드·절전 모드의 강제 어둡게 처리를 끔 — 이 페이지는 원래 어두운 화면 */
  color-scheme: only dark;
  --bg: #000514;
  --bg-bottom: #030a11;
  --card: #091017; /* rgba(19,25,31,.4) over --bg-bottom */
  --gold-text: linear-gradient(90deg, #fff6e1 32.148%, #ffe09a 69.969%);
  --gold-text-warm: linear-gradient(90deg, #fff6e1 32.148%, #ffd372 69.969%);
  --muted: #5c646a;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --s: 1;
}

/* 삼성 인터넷은 자체 다크 테마가 있는 페이지에는 강제 다크를 걸지 않으므로 같은 값을 다크 쪽에도 선언 */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: only dark; }
  html, body { background: var(--bg); }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: #fff6e1;
  font-family: "NEXON Lv2 Gothic", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* 375 × 676 아트보드 (Figma 375×812 에서 상태바 62px · 브라우저 툴바 영역 제외) */
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 375px;
  height: 676px;
  transform: translate(-50%, -50%) scale(var(--s));
  transform-origin: 50% 50%;
}

.gold-text {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 금색 그라데이션 글자 (타이머 숫자 · 콜론 · 다운 버튼)
   background-clip:text 는 안드로이드 강제 다크(삼성 인터넷 · 크롬 절전)에서 배경으로 취급돼 어둡게 칠해짐.
   강제 다크가 건드리지 않는 밝은 단색 글자 두 겹으로 같은 그라데이션을 냄 — 아래 겹 #fff6e1, 위 겹은 마스크로 오른쪽만.
   글자는 data-text 로도 넣어 둬야 위 겹이 나옴(app.js setGold) */
.timer__colon,
.digit__half > span,
.dl-btn__label {
  --gold-end: #ffe09a;
  color: #fff6e1;
}
.timer__colon::after,
.digit__half > span::after,
.dl-btn__label::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding: inherit;
  color: var(--gold-end);
  /* 버튼 글자의 굵기 보정 테두리(text-stroke)가 위 겹에선 크림색으로 남아 속 빈 글씨처럼 보이므로 같은 금색으로 */
  -webkit-text-stroke-color: var(--gold-end);
  -webkit-mask-image: linear-gradient(90deg, transparent 32.148%, #000 69.969%);
  mask-image: linear-gradient(90deg, transparent 32.148%, #000 69.969%);
  pointer-events: none;
}

/* ---------- 폰 터치 다듬기 (#309) ---------- */
/* 사진 · 영상은 꾹 눌러 저장하는 브라우저 메뉴를 그대로 둔다 — 아래 규칙은 글자 · 장식 그림 · 버튼에만 */

/* 1. 꾹 눌러도 파랗게 선택되지 않게 — 화면 전체(글자 · 그라데이션 아래 사진 스크롤 영역 포함).
   선택만 막을 뿐, 사진 · 영상을 꾹 눌러 저장하는 메뉴(-webkit-touch-callout)는 그대로 뜬다 */
.stage {
  -webkit-user-select: none;
  user-select: none;
}

/* 2. 장식 그림(로고 · 성 · 액자 테두리 · 라인 · 아이콘)이 끌려 나오지 않게 — 기숙사 사진(#photoImg)은 제외 */
.stage img:not(#photoImg),
.line-art svg {
  -webkit-user-drag: none;
  user-select: none;
}

/* 3. 빨리 두 번 눌러도 화면이 확대되지 않게 — 첫 화면(인트로)을 포함한 페이지 전체.
   manipulation 은 두 번 탭 확대만 끄고, 스크롤 · 두 손가락 확대(접근성)는 그대로 둔다 */
html,
body,
.viewport,
.dl-btn,
.status-card {
  touch-action: manipulation;
}

/* ---------- Line art ---------- */
.line-art {
  position: absolute;
  left: -183px;
  top: 164px;
  width: 629px;
  height: 315px;
  pointer-events: none;
  transform-origin: 370.5px 157.5px; /* 아트보드 가운데 — 넓은 화면에서 늘릴 때(app.js fitWide) 기준 */
  transition: transform 1100ms var(--ease), opacity 800ms var(--ease);
}
/* 인트로에선 라인이 로고와 함께 70px 위(Figma 인트로 line y126 → 메인 y196) — 세로로만 이동 */
.stage.is-intro .line-art { transform: translateY(-70px); }
.line-art svg {
  display: block;
  width: 629px;
  height: 315px;
  overflow: visible;
}

/* 라인 트래킹: 선이 지나간 자리의 반짝이가 팝 */
.line-art.is-drawing .spark {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.line-art.is-drawing .spark.is-on {
  animation: spark-pop 900ms ease-out forwards;
}
@keyframes spark-pop {
  0%   { opacity: 0; transform: scale(0.6); fill-opacity: 0.1; }
  40%  { opacity: 1; transform: scale(1.15); fill-opacity: 0.3; }
  100% { opacity: 1; transform: scale(1); fill-opacity: 0.1; }
}
.pen-tip {
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ---------- Castle (intro only) ---------- */
/* Figma 6176:39364 Mask group: x-31 y336(아트보드 y274) 437×476 사각 마스크 안에
   성 이미지 494×421 (x-88 y391 → 그룹 기준 -57, 55), 실루엣 글로우 0 0 30px rgba(172,201,227,.3) */
.castle {
  /* 화면 전체를 덮는 틀 — 위치 · 크기는 app.js fitWide 가 화면 크기로 정함(넓은 화면에서 성이 끊기지 않게) */
  position: absolute;
  left: 0;
  top: 0;
  width: 375px;
  height: 676px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 800ms var(--ease), transform 1100ms var(--ease);
}
.castle > * { /* app.js 가 img 를 캔버스로 바꿈 */
  position: absolute;
  left: var(--castle-left, -88px); /* 폰 시안: 아트보드 x-88 y329 494×421 */
  top: var(--castle-top, 329px);
  width: var(--castle-w, 494px);
  height: var(--castle-h, 421px);
  max-width: none;
  object-fit: fill;
  /* Figma color-burn 효과 = 실루엣을 완전한 검정으로. brightness(0) 으로 같은 결과를 내고 글로우는 그 뒤에 */
  filter: brightness(0) drop-shadow(0 0 30px rgba(172, 201, 227, 0.3));
}
.stage.is-intro .castle {
  opacity: 1;
  transform: none;
}

/* ---------- Logo ---------- */
.logo {
  position: absolute;
  left: 92px;
  top: 32px;
  width: 192px;
  height: 82px;
  object-fit: cover;
  z-index: 10;
  transform-origin: 50% 50%;
  transition: transform 1100ms var(--ease);
  will-change: transform;
}

/* ---------- Media ---------- */
.media {
  position: absolute;
  margin: 0;
  top: 150px;
  transition: opacity 800ms var(--ease-out) 450ms, transform 900ms var(--ease-out) 450ms;
}

/* 사진·영상 영역만 세로 스크롤 — 나머지는 고정.
   스크롤 영역은 y96(로고가 줄었을 때 아래)부터 아트보드 하단까지.
   평소엔 위 54px을 마스크로 가려 사진이 디자인대로 y150에서 시작하고,
   스크롤하면 로고가 줄어드는 만큼 마스크(상단 그라데이션)가 줄어 사진 영역이 위로 넓어짐 */
.media--photo,
.media--video {
  top: 96px;
  height: 580px;
}
.media--photo {
  left: 66px;
  width: 243px;
}
.media__scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
  padding-top: 54px;
  padding-bottom: 276px; /* 끝까지 올리면 사진 하단이 y≈400(그라데이션 시작 부근)에 멈춤 */
  --mask-top: 54px;
  --top-fade: 0px;
  -webkit-mask-image: linear-gradient(180deg, transparent var(--mask-top), #000 calc(var(--mask-top) + var(--top-fade)));
  mask-image: linear-gradient(180deg, transparent var(--mask-top), #000 calc(var(--mask-top) + var(--top-fade)));
}
.media__scroll::-webkit-scrollbar { display: none; }
.media--photo .media__scroll img {
  /* 기숙사 사진 9:16 (Figma 6425:38498 — 243×432) — 폭 243 기준 높이는 비율대로 */
  display: block;
  width: 243px;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #0b1016;
  -webkit-user-drag: none;
  user-select: none;
}

.media--video {
  left: 68px;
  width: 239px;
}
.media__video-box {
  position: relative;
  width: 239px;
  height: 424px;
  background: #1b1108;
  overflow: hidden;
}
/* 액자 영상 9:16 — 액자 안을 채우고 그 위에 금색 액자 */
.media__video-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1b1108;
}
.media__frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 238.7px;
  height: 424.1px;
  object-fit: cover;
  pointer-events: none;
}

.stage[data-mode="photo"] .media--video,
.stage[data-mode="video"] .media--photo { display: none; }

/* ---------- Status card: 불러오는 중 · 오류 · 만료 (Figma 6176:59125 · 62292 · 59168) ---------- */
/* x67 y235(아트보드 y173) 241×241, 20px 라운드, #2e2e2e 테두리 */
.status-card {
  position: absolute;
  left: 67px;
  top: 173px;
  width: 241px;
  height: 241px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent; /* 테두리 #2e2e2e 는 app.js boxBg 캔버스가 그림 */
  border-radius: 20px;
  background: none;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  isolation: auto;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 800ms var(--ease-out) 450ms, transform 900ms var(--ease-out) 450ms;
}
/* 카드 바탕: Figma rgba(24,24,24,.8) screen 블렌드 = 흰색 7.5% 덮기와 같은 결과 (Safari에서도 같게 일반 블렌드로).
   app.js cardBg 가 캔버스로 칠함 — CSS 배경은 삼성 인터넷 강제 다크가 새까맣게 바꿈 */
.status-card { isolation: isolate; }
.status-card__spinner,
.status-card__text { position: relative; }
.status-card__spinner {
  width: 24px;
  height: 24px;
  animation: spin 900ms linear infinite;
}
.status-card__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.14px;
  color: #6e6e6e;
  text-align: center;
  white-space: pre-line;
}
.status-card:not([data-card="loading"]) .status-card__spinner { display: none; }
.status-card[data-card="failed"] { cursor: pointer; } /* 누르면 다시 시도 */
.status-card[data-card="expired"] .status-card__text { color: #eaeaea; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 상태별로 보이는 것 */
.stage[data-state="ready"] .status-card,
.stage:not([data-state="ready"]) .media { display: none; }

.notice {
  display: none;
  width: 335px;
  height: 48px;
  padding: 4px 0;
  border-radius: 8px;
  position: relative;
  isolation: isolate; /* 배경은 .card-bg 캔버스 */
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06px;
  color: #fff6e1;
  white-space: nowrap;
}
.stage[data-state="error"] .notice { display: flex; }
.stage[data-state="error"] .timer { display: none; }

/* 만료: 하단 정보 없음 · 라인 대신 성이 남는다(Figma 6176:59139 — 성 그룹 x-19 y360, 인트로보다 +12,+24) */
.stage[data-state="expired"] .timer,
.stage[data-state="expired"] .cta,
.stage[data-state="expired"] .notice { display: none; }
.stage[data-state="expired"] .bottom { top: 512px; }
.stage[data-state="expired"]:not(.is-intro) .line-art { opacity: 0; }
.stage[data-state="expired"]:not(.is-intro) .castle {
  opacity: 1;
  transform: translate(12px, 24px);
}

/* ---------- Toast: 저장 결과 (Figma 6425:40169 · 6425:40208) ---------- */
/* x81 y566(아트보드 y504) 214×39 — 가운데 알약 + 양끝 반짝이(16) · 점(3). 문구가 길면 가로로 늘어난다 */
.toast {
  position: absolute;
  left: 50%;
  top: 504px;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 39px;
  padding: 0 16px;
  transform: translate(-50%, 6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out);
  --toast-color: #92fa9b;
}
.toast[hidden] { display: none; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="fail"] { --toast-color: #ff8484; }
.toast__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid transparent; /* 바탕 · 테두리(--toast-color)는 app.js boxBg 캔버스가 그림 */
  border-radius: 12px;
  position: relative;
  isolation: isolate;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.toast__text {
  min-width: 148px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.07px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}
.toast__sparkle,
.toast__dot { position: absolute; }
.toast__sparkle { top: 12px; width: 16px; height: 16px; }
.toast__sparkle--l { left: 8px; }
.toast__sparkle--r { right: 8px; }
.toast__dot { top: 18px; width: 3px; height: 3px; }
.toast__dot--l { left: 3px; }
.toast__dot--r { right: 3px; }

/* ---------- Bottom ---------- */
.bottom {
  position: absolute;
  left: -200px;
  right: -200px;
  top: 360px;
  height: 316px;
  padding: 50px 217px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  background: linear-gradient(180deg, rgba(3, 10, 17, 0) 0, var(--bg-bottom) 128px);
  pointer-events: none; /* 그라데이션 영역 터치는 아래 사진 스크롤로 통과 */
  transition: opacity 800ms var(--ease-out) 650ms, transform 900ms var(--ease-out) 650ms;
}
/* 아트보드 아래로 남는 화면도 같은 색으로 */
.bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 100vh;
  background: var(--bg-bottom);
}

/* Timer */
.timer,
.cta { pointer-events: auto; }
.timer {
  width: 335px;
  padding: 4px 0;
  border-radius: 8px;
  /* 배경은 app.js cardBg 가 캔버스로 칠함(.card-bg) — CSS 배경색은 삼성 인터넷 강제 다크가 새까맣게 바꿈 */
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.timer__label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06px;
  color: #fff6e1;
  white-space: nowrap;
}
.timer__clock {
  display: flex;
  align-items: center;
}
.timer__group {
  display: flex;
  align-items: center;
}
.timer__colon {
  width: 30px;
  padding: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08px;
  position: relative;
  --gold-end: #ffd372;
}

/* 카드 배경 캔버스(app.js cardBg) — 강제 다크가 건드리지 않는 --card 색 */
.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}

/* 테두리까지 그리는 상자(app.js boxBg — 상태 카드 · 토스트)는 테두리 자리까지 덮음 */
.status-card > .card-bg,
.toast__pill > .card-bg {
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}
/* 캔버스로 그린 글자(app.js paintText) — DOM 글자는 투명하게, color 값은 남겨 캔버스가 읽음 */
.is-canvas-text {
  position: relative;
  -webkit-text-fill-color: transparent;
}
.text-canvas {
  position: absolute;
  top: 0;
  height: 100%;
  pointer-events: none;
}

/* Flip digit — 가운데 선(y=16.5~17.5)을 기준으로 위/아래 카드가 넘어감.
   선은 위/아래 카드 사이 1px 틈으로 냄(그림 · 배경색 선은 강제 다크에서 밝은 줄로 바뀜) */
.digit {
  position: relative;
  width: 24px;
  height: 36px;
  perspective: 140px;
}
.digit__half {
  position: absolute;
  left: 0;
  width: 24px;
  overflow: hidden;
  isolation: isolate; /* 배경은 .card-bg 캔버스 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.digit__half--top {
  top: 0;
  height: 16.5px;
  transform-origin: 50% 100%;
}
.digit__half--bottom {
  top: 17.5px;
  height: 18.5px;
  transform-origin: 50% 0;
}
.digit__half > span {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 36px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0.12px;
}
.digit__half--bottom > span { top: -17.5px; }
.digit__flap { z-index: 2; }
/* CTA */
.cta {
  width: 243px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dl-btn {
  position: relative;
  width: 100%;
  height: 50px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  /* Safari에서 버튼이 흐려지지 않도록 filter 대신 halo 레이어에 그림자 포함 */
  transition: transform 120ms ease, opacity 200ms ease;
  font: inherit;
}
.dl-btn:active { transform: scale(0.97); }
/* 파일을 다 받기 전(HPDownload 결과.파일 풀리기 전)에는 꺼 둔다 */
.dl-btn:disabled { opacity: 0.2; cursor: default; } /* Figma 오류 화면: 버튼 20% */
.dl-btn:disabled:active { transform: none; }
.cta:has(.dl-btn:disabled) .dl-btn-halo,
.dl-btn:disabled .dl-btn__glow { animation: none; opacity: 0; }
.dl-btn:focus-visible { outline: 2px solid #ffd372; outline-offset: 3px; }
.dl-btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.dl-btn[aria-busy="true"] .dl-btn__glow,
.cta:has(.dl-btn[aria-busy="true"]) .cta::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 0;
  height: 50px;
  box-shadow: 0 1.575px 2.362px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}
.dl-btn-halo { animation: none; opacity: 0; }

/* 브리딩 글로우 — iOS Safari에서도 선명하도록 filter/blend 애니메이션 대신 opacity만 움직임 */
.cta { position: relative; }
.dl-btn-halo {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 0;
  height: 50px;
  pointer-events: none;
  box-shadow: 0 0 12px 1px rgba(254, 195, 63, 0.28);
  opacity: 0;
  animation: btn-breathe 3.2s ease-in-out infinite;
}
.dl-btn__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(55% 70% at 50% 100%, rgba(254, 195, 63, 0.16), rgba(254, 195, 63, 0) 75%);
  opacity: 0;
  animation: btn-breathe 3.2s ease-in-out infinite;
}
/* app.js paintFx 가 같은 빛을 캔버스로 그린 뒤엔 CSS 빛을 끔(삼성 인터넷 강제 다크가 흐리게 바꿈) */
.dl-btn-halo.is-canvas { box-shadow: none; }
.dl-btn__glow.is-canvas { background: none; }
.fx-canvas {
  position: absolute;
  pointer-events: none;
}
@keyframes btn-breathe {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

.dl-btn__bg {
  position: absolute;
  left: 50%;
  top: 0;
  width: 237px;
  height: 50px;
  transform: translateX(-50%);
}
.dl-btn__border {
  position: absolute;
  left: calc(50% + 0.01px);
  top: 2.22%;
  bottom: 0;
  width: 233.025px;
  transform: translateX(-50%);
}
.dl-btn__border > * {
  /* Figma: inset -5.95% -1.25% 박스를 꽉 채움 (PNG 원본 픽셀 크기로 커지지 않게 명시) */
  position: absolute;
  left: -1.25%;
  top: -5.95%;
  width: 102.5%;
  height: 111.9%;
  max-width: none;
  display: block;
}
.dl-btn__label {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px; /* Figma 135.324 — 영문 Download photo 가 더 길어 넓힘(가운데 정렬이라 한글 위치는 같음) */
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.09px;
  --gold-end: #ffd372;
  /* Medium(500) 웹폰트 부재 보정 — Regular를 살짝 두껍게 */
  -webkit-text-stroke: 0.35px rgba(255, 232, 180, 0.85);
}
/* 캔버스로 그린 뒤(app.js paintLabel)엔 DOM 글자를 투명하게 — 글자는 읽기 · 접근성용으로만 남음 */
.dl-btn__label.is-canvas {
  color: transparent;
  -webkit-text-stroke-color: transparent;
}
.dl-btn__label.is-canvas::after { content: none; }
.dl-btn__label-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.info {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.14px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Intro state ---------- */
.stage.is-intro .logo {
  /* 인트로: x47 y154 281×119 → 메인: x92 y32 192×82 */
  transform: translate(-0.5px, 140.5px) scale(1.4635);
}
.stage.is-intro .media,
.stage.is-intro .status-card,
.stage.is-intro .bottom {
  opacity: 0;
  transform: translateY(24px);
  transition-delay: 0ms;
  transition-duration: 0ms;
}

@media (prefers-reduced-motion: reduce) {
  .logo, .media, .bottom, .castle, .status-card, .line-art { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .dl-btn-halo, .dl-btn__glow { animation: none; }
}
