@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('./assets/fonts/CormorantGaramond-italic-0.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('./assets/fonts/CormorantGaramond-normal-1.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('./assets/fonts/JetBrainsMono-normal-2.woff2') format('woff2'); }
/* 한글 글꼴을 둘로 나눈다(2026-09-29 속도 개선): 사이트 글자만 담은 core(약 114KB)를 먼저 받고, 나머지 글자(주소 입력 등)가 나오면 그때 전체 파일을 받는다.
   같은 이름의 face 가 겹치면 나중에 선언한 쪽을 먼저 쓴다 — core 를 뒤에 둔다. core 는 scripts/ 가 아니라 site 글자를 모아 만든다(글자가 크게 늘면 다시 만들 것). */
@font-face { font-family: 'Pretendard'; src: url('./assets/Pretendard-subset.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7A3; } /* 한글만 — 글꼴에 없는 기호(✓ 등) 때문에 전체 파일을 받지 않게 */
@font-face { font-family: 'Pretendard'; src: url('./assets/Pretendard-core.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+20-7E, U+A7, U+A9, U+AE, U+B0, U+B7, U+D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+20A9, U+2122, U+2190-2194, U+2197, U+2212, U+2264, U+2460-2461, U+25CF, U+AC00-AC01, U+AC04, U+AC08, U+AC10-AC15, U+AC19, U+AC1C-AC1D, U+AC24, U+AC31, U+AC70, U+AC74, U+AC77-AC78, U+AC80-AC81, U+AC83, U+AC89, U+AC8C, U+ACA8-ACA9, U+ACAC, U+ACB0, U+ACB9, U+ACBC-ACBD, U+ACC4, U+ACE0, U+ACE4, U+ACE7-ACE8, U+ACF0-ACF1, U+ACF3, U+ACF5, U+ACFC, U+AD00, U+AD11, U+AD50, U+AD6C-AD6D, U+AD70, U+AD74-AD75, U+AD8C, U+ADC0, U+ADDC, U+ADF8-ADF9, U+ADFC, U+AE00, U+AE08-AE09, U+AE0B, U+AE30, U+AE34, U+AE38, U+AE40-AE41, U+AE4A, U+AE4C, U+AE54, U+AE65, U+AE68, U+AEBC, U+AECD, U+AED8, U+AF2C-AF2D, U+AF34, U+AFB8, U+AFBC, U+AFC0, U+AFD4, U+B00C, U+B010, U+B014, U+B044, U+B048, U+B04A, U+B04C, U+B054, U+B057, U+B05D, U+B07C, U+B098-B099, U+B09C, U+B0A0-B0A1, U+B0A8-B0A9, U+B0AC, U+B0B4, U+B0B8, U+B0BC, U+B0C4-B0C5, U+B0E5, U+B108, U+B110, U+B113, U+B118, U+B123-B125, U+B140-B141, U+B144, U+B178-B179, U+B180, U+B192-B193, U+B204, U+B208, U+B20C, U+B220, U+B274, U+B290, U+B294, U+B298, U+B2A5, U+B2C8, U+B2CC, U+B2D0, U+B2D8-B2D9, U+B2DD, U+B2E4-B2E5, U+B2E8, U+B2EB-B2EC, U+B2F4-B2F5, U+B2F9, U+B2FF-B300, U+B308, U+B311, U+B354, U+B358, U+B35C, U+B367, U+B369, U+B36E, U+B370, U+B378, U+B3C4-B3C5, U+B3C8, U+B3CC, U+B3D9, U+B3FC, U+B410, U+B418, U+B41C, U+B428-B429, U+B450, U+B454, U+B458, U+B460-B461, U+B4A4, U+B4B7, U+B4C8, U+B4DC-B4DD, U+B4E0, U+B4E4, U+B4EC-B4ED, U+B4EF, U+B4F1, U+B514, U+B525, U+B529, U+B530-B531, U+B54C, U+B5A0, U+B5A4, U+B5A8, U+B5B4, U+B5BB, U+B5D1, U+B610, U+B6F0, U+B6F4, U+B728, U+B72C, U+B739, U+B73B, U+B744, U+B760, U+B77C-B77D, U+B780, U+B78C-B78D, U+B790, U+B798, U+B79C, U+B7A8, U+B7B5, U+B7C9, U+B7EC, U+B7F0, U+B7F4, U+B7FC, U+B800, U+B807-B809, U+B80C, U+B824-B825, U+B828, U+B82C, U+B835, U+B837-B839, U+B840, U+B85C-B85D, U+B864, U+B86D, U+B871, U+B8B0, U+B8CC, U+B8E8, U+B958, U+B960, U+B974, U+B978, U+B97C, U+B984-B985, U+B9AC-B9AD, U+B9B0, U+B9B4, U+B9BC-B9BD, U+B9BF, U+B9C1, U+B9C8-B9C9, U+B9CC, U+B9CE, U+B9D0, U+B9DD-B9DE, U+B9E1, U+B9E4, U+B9E8, U+B9F5, U+B9F9, U+BA38-BA39, U+BA3C, U+BA48, U+BA4D, U+BA54, U+BA70, U+BA74, U+BA78, U+BA85, U+BA87, U+BAA8-BAA9, U+BAB0, U+BAB8, U+BABB, U+BB34, U+BB36, U+BB38, U+BB3B-BB3C, U+BBC0, U+BBF8, U+BBFC, U+BBFF-BC00, U+BC0D, U+BC0F, U+BC11, U+BC14-BC16, U+BC18, U+BC1B-BC1D, U+BC29, U+BC30-BC31, U+BC34, U+BC84, U+BC88, U+BC8C, U+BC94-BC95, U+BC97, U+BCA0, U+BCA4, U+BCA8, U+BCBC-BCBD, U+BCC0, U+BCC4, U+BCCD, U+BCF4-BCF5, U+BCF8, U+BCFC, U+BD05, U+BD09, U+BD10, U+BD24, U+BD80-BD81, U+BD84, U+BD88, U+BD99, U+BE0C, U+BE14, U+BE44, U+BE48, U+BE59, U+BE5B, U+BE60, U+BE68, U+BE7C, U+BE80, U+BE90, U+BF51, U+BFD0, U+C0AC-C0AD, U+C0B0, U+C0B4, U+C0C1, U+C0C8-C0C9, U+C0DD, U+C11C-C11E, U+C120, U+C124, U+C12C, U+C131, U+C138, U+C13C, U+C140, U+C149, U+C14B, U+C154, U+C158, U+C15C, U+C168, U+C18C-C18D, U+C190, U+C194, U+C1A1, U+C1C4, U+C1E0, U+C1FC, U+C218, U+C21C, U+C220, U+C228, U+C22B, U+C258, U+C26C, U+C27C-C27D, U+C2A4, U+C2A8, U+C2AC, U+C2B4-C2B5, U+C2B7, U+C2B9, U+C2DC-C2DD, U+C2E0, U+C2E3-C2E4, U+C2EB-C2EC, U+C2F6, U+C2F8, U+C2FC, U+C300, U+C313, U+C368, U+C378, U+C3D8, U+C4F0, U+C4F4, U+C4F8, U+C501, U+C528-C529, U+C544, U+C548, U+C54A, U+C54C, U+C554, U+C558-C559, U+C55E, U+C560-C561, U+C571, U+C57C-C57D, U+C587, U+C591, U+C5B4-C5B5, U+C5B8-C5B9, U+C5BC, U+C5C4-C5C9, U+C5D0, U+C5D4, U+C5E3, U+C5EC-C5ED, U+C5F0, U+C5F4, U+C5FC, U+C600-C601, U+C606, U+C608, U+C624, U+C628, U+C62C, U+C62E, U+C635, U+C637, U+C640, U+C644, U+C654-C655, U+C65C, U+C678, U+C67C, U+C694, U+C6A9, U+C6B0, U+C6B4, U+C6B8, U+C6C0, U+C6C3, U+C6CC, U+C6D0, U+C6D4, U+C6E0, U+C6E8, U+C6F9, U+C704, U+C717, U+C720, U+C728, U+C73C, U+C740, U+C744, U+C74C, U+C751, U+C758, U+C774, U+C778, U+C77C-C77D, U+C783-C785, U+C788, U+C790-C791, U+C798, U+C7A0-C7A1, U+C7A5, U+C7AC-C7AD, U+C7C1, U+C800-C801, U+C804, U+C808, U+C810-C811, U+C815, U+C81C, U+C82F, U+C838, U+C84C, U+C870-C871, U+C874, U+C885, U+C88B-C88C, U+C8FC-C8FD, U+C900, U+C904, U+C90D, U+C911, U+C918, U+C988-C989, U+C990, U+C99D, U+C9C0-C9C1, U+C9C4, U+C9C8, U+C9D0-C9D1, U+C9D3, U+C9D5, U+C9D9, U+C9DC-C9DD, U+C9E0, U+C9E7, U+C9F8, U+CA4D, U+CABD, U+CBE4, U+CC0D, U+CC28-CC29, U+CC2C, U+CC38, U+CC3D-CC3E, U+CC44-CC45, U+CC59, U+CC98-CC99, U+CC9C, U+CCA0, U+CCAB, U+CCAD, U+CCB4, U+CCD0, U+CD08, U+CD1D, U+CD5C, U+CD94-CD95, U+CD98, U+CD9C, U+CDA4, U+CDA9, U+CDB0, U+CDE8, U+CE20-CE21, U+CE35, U+CE58-CE59, U+CE5C, U+CE60, U+CE68-CE69, U+CE6D, U+CE74, U+CE78, U+CE7C, U+CE90, U+CEA1, U+CEE4, U+CEE8, U+CEEC, U+CEF7, U+CF00, U+CF08, U+CF13, U+CF1C, U+CF20, U+CF30, U+CF54, U+CF58, U+CF5C, U+CF8C, U+CFE0, U+CFE8, U+CFFC, U+D06C, U+D070, U+D074, U+D07C, U+D0A4, U+D0A8, U+D0B4, U+D0B9, U+D0C0-D0C1, U+D0C8, U+D0D5, U+D0DC-D0DD, U+D0E0, U+D0ED, U+D130, U+D134, U+D138, U+D140, U+D14C, U+D15C, U+D1A0-D1A1, U+D1A4, U+D1B0, U+D1B5, U+D1F4, U+D22C, U+D23C, U+D2B8-D2B9, U+D2BC, U+D2C0, U+D2F0, U+D305, U+D30C, U+D310, U+D314, U+D31D, U+D328, U+D37C, U+D398-D399, U+D39C, U+D3AB, U+D3B8, U+D3BC, U+D3C9, U+D3EC-D3ED, U+D3F0, U+D3F4, U+D45C, U+D478, U+D47C, U+D480, U+D488, U+D48D, U+D504, U+D508, U+D50C, U+D53C-D53D, U+D544, U+D54F, U+D551, U+D558, U+D55C, U+D560, U+D568-D569, U+D56D, U+D574-D575, U+D588-D589, U+D5A5, U+D5C8, U+D5DB, U+D5E4, U+D5EC, U+D600, U+D604, U+D611, U+D614-D615, U+D638, U+D648, U+D64D, U+D654-D655, U+D658, U+D65C, U+D669, U+D68C-D68D, U+D6A8, U+D6C4-D6C5, U+D6FC, U+D734, U+D750, U+D754, U+D758, U+D770, U+D788, U+D78C, U+D790, U+D798; }



  :root {
    --serif: 'Cormorant Garamond', 'Didot', 'Times New Roman', serif;
    --sans: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --bg: #17100c; --ink: #f3ece4; --muted: rgba(243, 236, 228, 0.55);
    --brass: rgba(176, 138, 90, 0.55); --warm: 255, 170, 90; --hot: 255, 214, 150;
    --card: #e9e4dd; --card-ink: #1d1611; --card-muted: #7a6d62;
    --card-w: min(380px, 80vw);
    --ease: cubic-bezier(0.22, 0.8, 0.25, 1);
    --turn: 0.95s;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; }
  body { background: var(--bg); color: var(--ink); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
  button { font-family: inherit; }

  .top { position: fixed; z-index: 5; top: 0; right: 0; padding: 16px 20px; pointer-events: none; }
  .season { font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

  /* 무대: 두 면이 같은 자리에 겹쳐 있다. 돌아볼 때는 고개를 돌리듯 한 방향으로 훑고 지나간다(휩 팬) */
  .scene { position: fixed; inset: 0; overflow: hidden; }
  .stage { position: absolute; top: 50%; left: 50%; height: 100vh; aspect-ratio: 2752 / 1536; --sx: 0px; --lift: 0px; --blur: 0px; --stretch: 1; transform: translate(-50%, -50%) translateY(var(--lift)) translateX(var(--sx)) scaleX(var(--stretch)); filter: blur(var(--blur)); transition: transform var(--turn) cubic-bezier(0.7, 0, 0.2, 1), filter var(--turn) cubic-bezier(0.7, 0, 0.2, 1), opacity calc(var(--turn) * 0.5) ease; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .stage:not(.active) { pointer-events: none; }
  .stage.away { opacity: 0; }
  .stage.away.left { --sx: -70vw; --blur: 16px; --stretch: 1.12; }
  .stage.away.right { --sx: 70vw; --blur: 16px; --stretch: 1.12; }
  .pan { position: absolute; inset: 0; transform: translateX(var(--x, 0px)); transition: transform 0.75s var(--ease); }
  .pan.drag { transition: none; }
  .scene::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: rgba(23,16,12,1); opacity: 0; }
  .scene.turning::before { animation: dip var(--turn) ease-in-out; }
  @keyframes dip { 0% { opacity: 0; } 50% { opacity: 0.35; } 100% { opacity: 0; } }

  .layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
  .layer.model { opacity: 0; transition: opacity 0.5s var(--ease); }
  .layer.model.on { opacity: 1; }
  .pan::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(23,16,12,0.45) 0%, rgba(23,16,12,0) 16%), linear-gradient(0deg, rgba(23,16,12,0.35) 0%, rgba(23,16,12,0) 14%); }

  /* 문 아래 빛: 문 아랫변을 따라 바닥으로 번지는 그라데이션 판. 렌더 좌표(1400×781)에 그린다 */
  .glows { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; overflow: visible; }
  .glow { opacity: 0; transition: opacity 0.5s ease; }
  .glow.on { opacity: 1; animation: flicker 2.2s ease-in-out infinite; }
  .glow.pulse { animation: pulse 1.6s ease-in-out; }
  .glow.flare { opacity: 1; animation: none; }
  @keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.84; } 60% { opacity: 0.95; } }
  @keyframes pulse { 0% { opacity: 0; } 35% { opacity: 0.75; } 100% { opacity: 0; } }

  .door { position: absolute; z-index: 2; cursor: pointer; border: 0; padding: 0; background: none; -webkit-tap-highlight-color: transparent; }
  .door:focus { outline: none; }
  @media (hover: hover) { .door { cursor: none; } .door.is-open { cursor: default; } }

  /* 노크 파문: 두드린 자리에 두 번 */
  .knock { position: absolute; z-index: 3; width: 0; height: 0; pointer-events: none; }
  .knock i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; border: 1.5px solid rgba(var(--hot), 0.9); box-shadow: 0 0 10px rgba(var(--warm), 0.35); opacity: 0; animation: ring 0.9s var(--ease) forwards; }
  .knock i:nth-child(2) { animation-delay: 0.18s; }
  .knock.soft i { border-color: rgba(var(--hot), 0.5); box-shadow: none; animation-duration: 1.4s; }
  @keyframes ring { 0% { transform: scale(0.3); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }

  /* 커서 시안 5종: ?cursor=1~5 */
  #cur { position: fixed; z-index: 7; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transform: scale(0.7); transition: opacity 0.2s, transform 0.25s var(--ease); color: var(--ink); white-space: nowrap; }
  #cur.on { opacity: 1; transform: scale(1); }
  #cur.hit { animation: tap 0.35s var(--ease); }
  @keyframes tap { 0% { transform: scale(1); } 40% { transform: scale(0.8); } 100% { transform: scale(1); } }
  #cur > * { display: none; position: absolute; }
  /* 1 링 + 아래 글자 */
  body[data-cursor="1"] #cur .c1 { display: block; left: -21px; top: -21px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(214, 178, 122, 0.95); background: rgba(13, 9, 7, 0.18); }
  body[data-cursor="1"] #cur .c1::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: rgba(var(--hot), 1); box-shadow: 0 0 6px rgba(var(--warm), 0.9); }
  body[data-cursor="1"] #cur .c1::after { content: "KNOCK"; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 8px; padding-left: 0.3em; font: 500 9.5px/1 var(--mono); letter-spacing: 0.3em; color: rgba(var(--hot), 0.95); text-shadow: 0 1px 3px rgba(0,0,0,0.85); }
  /* 2 번호판 */
  body[data-cursor="2"] #cur .c2 { display: grid; place-items: center; left: 14px; top: -11px; height: 22px; padding: 0 9px; font: 500 11px/1 var(--sans); letter-spacing: 0.08em; color: #ffd9a8; background: #1a110c; border: 1px solid rgba(176, 138, 90, 0.7); border-radius: 1px; box-shadow: 0 0 8px rgba(var(--warm), 0.3); }
  body[data-cursor="2"] #cur .c2::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: rgba(var(--hot), 1); }
  /* 3 점 */
  body[data-cursor="3"] #cur .c3 { display: block; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--hot), 1); box-shadow: 0 0 8px rgba(var(--warm), 0.8); }
  body[data-cursor="3"] #cur .c3 i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--hot), 0.9); animation: ring 1.6s ease-out infinite; }
  body[data-cursor="3"] #cur .c3 i:nth-child(2) { animation-delay: 0.25s; }
  /* 4 손 */
  body[data-cursor="4"] #cur .c4 { display: block; left: -15px; top: -15px; width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8)); }
  body[data-cursor="4"] #cur .c4 svg { width: 100%; height: 100%; }
  body[data-cursor="4"] #cur.hit .c4 { animation: knockhand 0.35s var(--ease); }
  @keyframes knockhand { 0% { transform: rotate(0); } 35% { transform: rotate(-18deg) translateX(-3px); } 70% { transform: rotate(6deg) translateX(2px); } 100% { transform: rotate(0); } }
  /* 5 세리프 이탤릭 */
  body[data-cursor="5"] #cur .c5 { display: block; left: 14px; top: -11px; font: italic 500 19px/1 var(--serif); color: #f7efe3; text-shadow: 0 1px 4px rgba(0,0,0,0.85); }
  body[data-cursor="5"] #cur .c5::before { content: ""; position: absolute; left: -14px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: rgba(var(--hot), 1); box-shadow: 0 0 6px rgba(var(--warm), 0.8); }

  /* 처음 한 번 문을 열 때까지만 보이는 속삭임 */
  .whisper { position: fixed; z-index: 5; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; align-items: center; gap: 12px; font: 400 12px/1.4 var(--sans); letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; transition: opacity 0.6s; pointer-events: none; }
  .whisper .rings { position: relative; flex: none; width: 18px; height: 18px; }
  .whisper .rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--hot), 0.8); opacity: 0; animation: ring 2.4s ease-out infinite; }
  .whisper .rings i:nth-child(2) { animation-delay: 0.28s; }
  .whisper .rings::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: rgba(var(--hot), 0.9); }
  .whisper .swipe { display: none; }
  body.seen .whisper { opacity: 0; }
  .where { position: fixed; z-index: 5; right: 20px; bottom: calc(18px + env(safe-area-inset-bottom)); font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); pointer-events: none; transition: opacity 0.4s; }
  .scene.open ~ .where, .scene.open ~ .arrow, .scene.open ~ .whisper, .scene.turning ~ .arrow { opacity: 0; pointer-events: none; }

  /* 돌아보기 */
  .arrow { position: fixed; z-index: 5; top: 50%; translate: 0 -50%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--brass); background: rgba(13, 9, 7, 0.55); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity 0.4s, background 0.2s; -webkit-tap-highlight-color: transparent; }
  .arrow[hidden] { display: none; }
  .arrow:hover { background: rgba(13, 9, 7, 0.85); }
  .arrow.next { right: 18px; } .arrow.prev { left: 18px; }
  .arrow .lbl { position: absolute; top: 100%; margin-top: 8px; font: 500 10px/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); white-space: nowrap; }
  .arrow.prev .lbl { left: 0; } .arrow.next .lbl { right: 0; }

  /* 캐릭터 카드: 데스크톱은 오른쪽에서, 모바일은 아래에서 */
  .card { position: fixed; z-index: 6; top: 0; right: 0; bottom: 0; width: var(--card-w); background: var(--card); color: var(--card-ink); transform: translateX(100%); transition: transform 0.75s var(--ease); display: flex; flex-direction: column; box-shadow: -20px 0 40px rgba(0,0,0,0.35); }
  .card.on { transform: none; }
  .card .grab { display: none; }
  .card .close { position: absolute; z-index: 1; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--card-ink); cursor: pointer; }
  .card .photo { position: relative; flex: 0 0 auto; height: 46%; background: linear-gradient(180deg, #f1ede7, #ddd6cd); border-bottom: 1px solid rgba(29, 22, 17, 0.1); }
  .card .photo img { position: absolute; left: 50%; bottom: 0; translate: -50% 0; height: calc(100% - 40px); max-width: 80%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 6px 6px rgba(0,0,0,0.15)); }
  .card .body { padding: 22px 24px; overflow: auto; }
  .card .no { font: 500 10px/1 var(--mono); letter-spacing: 0.22em; color: var(--card-muted); }
  .card h2 { margin: 8px 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
  .card .line { margin: 0 0 18px; font-size: 13px; line-height: 1.55; color: #4b4038; }
  .card dl { margin: 0; display: grid; grid-template-columns: 82px 1fr; row-gap: 10px; font-size: 13px; border-top: 1px solid rgba(29,22,17,0.12); padding-top: 16px; }
  .card dt { color: var(--card-muted); }
  .card dd { margin: 0; }
  .card .pick { margin-top: 22px; width: 100%; padding: 14px; border: 1px solid var(--card-ink); background: var(--card-ink); color: var(--card); font: 600 13px/1 var(--sans); letter-spacing: 0.04em; cursor: pointer; }
  .card .pick.done { background: transparent; color: var(--card-ink); }
  .card .hop { display: flex; gap: 8px; margin-top: 22px; }
  .card .hop button { flex: 1; height: 42px; border: 1px solid rgba(29, 22, 17, 0.22); background: transparent; color: var(--card-ink); font: 500 13px/1 var(--sans); cursor: pointer; transition: background 0.2s; }
  .card .hop button:hover { background: rgba(29, 22, 17, 0.06); }
  .card .hop button:first-child { flex: 0 0 72px; }
  .card .hop span { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--card-muted); }
  .card .hop + .pick { margin-top: 8px; }

  /* ── 모바일: 무대를 크게 두고 옆으로 밀어 둘러본다. 카드는 아래에서 올라오는 시트 ── */
  @media (max-width: 640px), (max-aspect-ratio: 1/1) {
    .stage { height: 74svh; top: 51%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); }
    .scene { touch-action: none; }
    .top { padding: calc(14px + env(safe-area-inset-top)) 16px 0; }
    .where { display: none; }
    .whisper { bottom: calc(76px + env(safe-area-inset-bottom)); flex-direction: column; gap: 8px; font-size: 12px; }
    .whisper .swipe { display: block; font: 500 10px/1 var(--mono); letter-spacing: 0.16em; color: rgba(243, 236, 228, 0.4); }
    /* 돌아보기는 아래쪽 알약 버튼 */
    .arrow { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); translate: none; width: auto; height: 40px; padding: 0 16px; border-radius: 20px; display: flex; align-items: center; gap: 10px; font-size: 18px; }
    .arrow .lbl { position: static; margin: 0; font-size: 10.5px; color: var(--ink); }
    .arrow.next { right: 16px; flex-direction: row-reverse; } .arrow.prev { left: 16px; }
    /* 시트 */
    .card { top: auto; left: 0; right: 0; width: auto; height: min(50svh, 430px); border-radius: 16px 16px 0 0; transform: translateY(105%); box-shadow: 0 -16px 40px rgba(0,0,0,0.4); display: grid; grid-template-columns: 38% 1fr; grid-template-rows: 1fr; padding-bottom: env(safe-area-inset-bottom); overflow: hidden; }
    .card .grab { display: block; position: absolute; z-index: 2; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(29, 22, 17, 0.2); }
    .card .close { top: 10px; right: 8px; }
    .card .photo { height: auto; border-bottom: 0; border-right: 1px solid rgba(29, 22, 17, 0.08); }
    .card .photo img { height: calc(100% - 26px); max-width: 92%; }
    .card .body { padding: 26px 18px 16px 16px; display: flex; flex-direction: column; }
    .card h2 { font-size: 22px; margin-top: 6px; }
    .card .line { font-size: 12px; margin-bottom: 12px; }
    .card dl { grid-template-columns: 1fr; row-gap: 1px; font-size: 12px; padding-top: 10px; }
    .card dt { font-size: 10.5px; }
    .card dd { margin-bottom: 7px; }
    .card .pick { margin-top: 8px; padding: 13px; font-size: 13px; }
    /* 옆 방 보기: 시트를 닫지 않고 이웃 칸으로 */
    .card .hop { display: flex; gap: 8px; margin-top: auto; }
    .card .hop button { flex: 1; height: 38px; border: 1px solid rgba(29, 22, 17, 0.22); background: transparent; color: var(--card-ink); font: 500 12px/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .card .hop button:first-child { flex: 0 0 64px; }
    .card .hop span { font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; color: var(--card-muted); }
  }
  @media (prefers-reduced-motion: reduce) {
    .stage, .pan, .layer, .card { transition-duration: 0.01s !important; transition-delay: 0s !important; }
    .scene.turning::before, .whisper .rings i, .glow.on { animation: none; }
  }

/* Editorial navigation and the shared, three-person pick tray. The render,
   door boxes, door feet and pan coordinate system are preserved. */
:root{--bg:#211617;--ink:#eee8dd;--muted:#b4a49a;--brass:#c9ac7f;--card:#e9e3d8}
a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #c9ac7f;outline-offset:4px}.door:focus-visible{outline:2px solid #dfc594;background:#c9ac7f15}
.top{left:56px;right:56px;top:0;height:91px;padding:0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff20;pointer-events:auto}
.brand{font:500 47px/.8 var(--serif);letter-spacing:-.055em}.steps{display:flex;align-items:center;gap:26px;font-size:12px}.steps a{color:var(--muted)}.steps b{font-weight:500}.steps span{font:10px var(--mono);color:var(--brass);margin-right:9px}.steps i{height:1px;width:34px;background:#ffffff20}.season{font:9px/1.7 var(--mono);letter-spacing:.1em;text-align:right}
.steps a{color:#cdbfb4}
.room-intro-unused{position:fixed;z-index:4;left:56px;top:126px;pointer-events:none}.room-intro-unused .eyebrow{font:9px/1.5 var(--mono);letter-spacing:.14em;color:var(--brass);margin:0 0 9px}.room-intro-unused h1{font:italic 400 54px/1 var(--serif);letter-spacing:-.02em;margin:0 0 12px}.room-intro-unused p{font-size:12px;color:var(--muted);margin:0;line-height:1.7}
.arrow .lbl{background:#211617d9;padding:4px 7px;border:1px solid #c9ac7f40;color:#eee8dd}.whisper{bottom:109px}.where{bottom:109px;right:56px;font-size:9px;color:var(--brass)}.arrow{width:44px;height:44px;border-color:#c9ac7f70}.arrow.next{right:32px}.arrow.prev{left:32px}
.fitting-dock{position:fixed;left:0;right:0;bottom:0;z-index:5;border-top:1px solid #c9ac7f40;background:#211617f5;backdrop-filter:blur(15px);padding:14px 56px calc(14px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:18px;transition:opacity .2s}
.tray-label{font:10px/1.8 var(--mono);letter-spacing:.1em}.tray-label span{display:block;color:var(--brass)}.tray-slots{display:flex;gap:6px}.tray-slot{width:36px;height:43px;border:1px dashed #c9ac7f55;display:grid;place-items:center;color:#c9ac7f75;font:italic 16px var(--serif);position:relative;overflow:hidden;background:transparent;padding:0}.tray-slot.filled{background:#ddd6cb;border-style:solid;cursor:pointer}.tray-slot img{width:100%;position:absolute;top:1px}.tray-slot.filled:after{content:'✓';position:absolute;right:0;bottom:0;background:#332420;color:var(--brass);font:9px var(--sans);padding:2px}.tray-copy{font-size:12px;color:var(--muted)}.to-cover{margin-left:auto;min-height:43px;display:flex;align-items:center;justify-content:center;gap:28px;background:var(--brass);color:#302320;padding:0 24px;font-size:12px;font-weight:600}.to-cover span{font-size:18px;font-weight:400}.scene.open~.fitting-dock{opacity:0;pointer-events:none}
.card .pick{min-height:46px;background:#332320}.card .pick.done{background:transparent}.card .pick:disabled{opacity:.6;cursor:default}.card .close{width:44px;height:44px}.card .hop button{min-height:44px}.card .line{line-height:1.65}.card .body{scrollbar-width:thin}.room-toast{position:fixed;z-index:9;left:50%;bottom:100px;transform:translateX(-50%);padding:12px 18px;background:var(--card);color:#332320;font-size:12px;line-height:1.6;max-width:calc(100% - 32px);width:max-content;opacity:0;pointer-events:none;transition:opacity .2s}.room-toast.on{opacity:1}
@media(max-width:640px),(max-aspect-ratio:1/1){

.top{left:22px;right:22px;height:72px;padding:0}.brand{font-size:39px}.steps{gap:14px;font-size:10px}.steps span{font-size:8px;margin-right:5px}.steps i{width:18px}.season{display:none}.room-intro-unused{left:22px;top:98px;right:22px}.room-intro-unused .eyebrow{font-size:8px;margin-bottom:8px}.room-intro-unused h1{font-size:39px;margin-bottom:10px}.room-intro-unused p{font-size:11px}.arrow{bottom:calc(92px + env(safe-area-inset-bottom));height:42px;width:auto;border-radius:0;background:#211617b3}.arrow.next{right:22px}.arrow.prev{left:22px}.arrow .lbl{font-size:9px}.whisper{bottom:calc(159px + env(safe-area-inset-bottom));font-size:11px;gap:7px}.whisper .swipe{font-size:8px;color:#b4a49a}.where{display:block;left:22px;right:auto;bottom:calc(107px + env(safe-area-inset-bottom));font-size:8px}.where.back{left:auto;right:22px}.fitting-dock{padding:12px 20px calc(12px + env(safe-area-inset-bottom));gap:11px}.tray-label{font-size:8px;white-space:nowrap}.tray-slots{gap:5px}.tray-slot{width:29px;height:36px}.tray-copy{display:none}.to-cover{padding:0 12px;font-size:10px;gap:12px;min-height:39px}.card{height:min(54svh,456px);border-radius:6px 6px 0 0;grid-template-columns:35% 1fr}.card .body{padding:29px 18px 18px 16px}.card .close{top:7px;right:4px}.card .no{font-size:9px}.card dl{grid-template-columns:58px 1fr;gap:8px 5px;font-size:11px}.card dt{font-size:10px}.card dd{margin:0}.card .hop{margin-top:15px;gap:6px}.card .hop button{font-size:11px}.card .hop button:first-child{flex-basis:54px}.card .pick{font-size:11px;flex-shrink:0}.card .photo img{max-width:100%}.room-toast{bottom:calc(54svh + 12px)}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}


/* 상단: 평평한 단색 바 + 한 줄 카피. 그라데이션 없음 */
.top{height:72px!important;background:#211617;border-bottom:0!important;left:0!important;right:0!important;padding:0 56px!important}
.top:after{content:"";position:absolute;left:56px;right:56px;bottom:0;height:1px;background:#ffffff1f}
.tagline{font:500 22px/1 var(--serif);font-style:italic;letter-spacing:-.01em;color:#f3ece4;margin-left:34px;margin-right:auto}
.brand{font-size:40px!important}
.steps{margin-left:auto}.season{display:none!important}
@media(max-width:640px),(max-aspect-ratio:1/1){.top{height:60px!important;padding:0 22px!important}.top:after{left:22px;right:22px}.brand{font-size:34px!important}.tagline{font-size:18px;margin-left:auto;margin-right:0}.steps{display:none!important}}
