  :root {
    --bg: #0c0c10;
    --surface: #13131b;
    --border: rgba(255,255,255,0.055);
    --border-hover: rgba(255,255,255,0.11);
    --text-primary: #eae6de;
    --text-secondary: #8a8690;
    --text-muted: #48454f;
    --accent: #c4a882;
    --accent-dim: rgba(196,168,130,0.13);
    --accent-border: rgba(196,168,130,0.25);
    --radius: 14px;
    --hold-progress: 0;

    /* ── 디자인 토큰 (절제 시스템) ───────────────────── */
    /* 여백 — 8px 베이스 스케일 */
    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
    /* 잉크 — 따뜻한 오프화이트 위 5단계 위계 */
    --ink-1: rgba(234,230,222,0.92);
    --ink-2: rgba(234,230,222,0.72);
    --ink-3: rgba(234,230,222,0.42);
    --ink-4: rgba(234,230,222,0.26);
    --hair:  rgba(234,230,222,0.14);
    /* 타이포 — 4단계 + 자간 3종 */
    --fs-display: 24px; --fs-title: 19px; --fs-body: 14px; --fs-caption: 11px;
    --ls-tight: -.01em; --ls-body: .02em; --ls-caption: .14em;
    /* 모션 — easing 1종 + 속도 3단계 */
    --ease: cubic-bezier(.22,1,.36,1);
    --dur-slow: 1.4s; --dur: 0.9s; --dur-micro: 0.45s;
    --emotion-transition-1: var(--text-secondary);
    --emotion-transition-2: var(--text-muted);
    --emotion-flow-label: rgba(234,230,222,0.84);
    --emotion-flow-hint: rgba(234,230,222,0.66);
    --emotion-flow-text: var(--text-primary);
    --emotion-flow-close: var(--text-secondary);
    --emotion-flow-scale: 1;
    --emotion-flow-tracking: .01em;
  }

  * { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }

  .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }

  button {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  html, body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    overflow-x: hidden;
  }

  body::before {
    content:'';
    position:fixed; inset:0;
    background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events:none; z-index:0;
  }

  body.emotion-피곤함 {
    --emotion-transition-1: rgba(174,188,226,0.82);
    --emotion-transition-2: rgba(150,165,202,0.62);
    --emotion-flow-label: rgba(198,208,232,0.9);
    --emotion-flow-hint: rgba(184,196,222,0.7);
    --emotion-flow-text: rgba(228,234,244,0.96);
    --emotion-flow-close: rgba(176,188,214,0.76);
    --emotion-flow-scale: 0.995;
    --emotion-flow-tracking: .02em;
  }
  body.emotion-불안함 {
    --emotion-transition-1: rgba(208,177,232,0.84);
    --emotion-transition-2: rgba(176,146,206,0.62);
    --emotion-flow-label: rgba(224,202,241,0.92);
    --emotion-flow-hint: rgba(214,190,233,0.72);
    --emotion-flow-text: rgba(241,232,246,0.96);
    --emotion-flow-close: rgba(198,175,222,0.78);
    --emotion-flow-scale: 1;
    --emotion-flow-tracking: .015em;
  }
  body.emotion-공허함 {
    --emotion-transition-1: rgba(188,189,194,0.82);
    --emotion-transition-2: rgba(140,142,149,0.6);
    --emotion-flow-label: rgba(212,213,217,0.88);
    --emotion-flow-hint: rgba(184,186,190,0.68);
    --emotion-flow-text: rgba(232,232,235,0.94);
    --emotion-flow-close: rgba(176,178,184,0.74);
    --emotion-flow-scale: 1;
    --emotion-flow-tracking: .012em;
  }
  body.emotion-쓸쓸함 {
    --emotion-transition-1: rgba(220,193,166,0.86);
    --emotion-transition-2: rgba(190,162,134,0.62);
    --emotion-flow-label: rgba(232,214,192,0.92);
    --emotion-flow-hint: rgba(214,196,175,0.72);
    --emotion-flow-text: rgba(244,235,226,0.96);
    --emotion-flow-close: rgba(204,182,158,0.78);
    --emotion-flow-scale: 1.005;
    --emotion-flow-tracking: .012em;
  }
  body.emotion-복잡함 {
    --emotion-transition-1: rgba(164,214,214,0.84);
    --emotion-transition-2: rgba(124,184,184,0.62);
    --emotion-flow-label: rgba(196,230,230,0.92);
    --emotion-flow-hint: rgba(176,214,214,0.72);
    --emotion-flow-text: rgba(236,246,246,0.96);
    --emotion-flow-close: rgba(154,194,194,0.78);
    --emotion-flow-scale: 1;
    --emotion-flow-tracking: .01em;
  }
  body.emotion-괜찮음 {
    --emotion-transition-1: rgba(226,206,154,0.86);
    --emotion-transition-2: rgba(194,170,102,0.62);
    --emotion-flow-label: rgba(244,226,170,0.92);
    --emotion-flow-hint: rgba(224,206,150,0.72);
    --emotion-flow-text: rgba(250,242,214,0.96);
    --emotion-flow-close: rgba(204,180,104,0.78);
    --emotion-flow-scale: 1.01;
    --emotion-flow-tracking: .016em;
  }

  .app {
    position:relative; z-index:1;
    max-width:420px; margin:0 auto;
    min-height:100vh;
    display:flex; flex-direction:column;
  }

  .screen {
    display:none; flex-direction:column;
    min-height:100vh; padding:0 22px calc(48px + env(safe-area-inset-bottom, 0px));
    animation: fadeUp .55s cubic-bezier(.22,1,.36,1);
  }
  .screen.active { display:flex; }
  html, body, .app, .screen, #s-transition, #s-room, #s-flow, #s-complete { min-height: 100dvh; }
  .screen:focus { outline: none; }

  @keyframes fadeUp {
    from { opacity:0; transform:translateY(14px); }
    to   { opacity:1; transform:translateY(0); }
  }

  .header { padding: 48px 0 28px; }

  .wordmark {
    font-family:'Noto Serif KR', serif;
    font-size:var(--fs-caption); letter-spacing:.2em;
    color:var(--accent); opacity:.6; margin-bottom:var(--s3);
  }

  .h-title {
    font-family:'Noto Serif KR', serif;
    font-size:21px; font-weight:300;
    line-height:1.65; letter-spacing:-.01em;
    color:var(--text-primary);
  }
  .h-subtitle {
    margin-top: 16px;
    font-size: 13px; font-weight: 300;
    line-height: 1.85; letter-spacing: .01em;
    color: var(--ink-2);
  }

  .emotion-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:14px; margin-top:var(--s1);
  }

  .e-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.012);
    border:1px solid rgba(234,230,222,0.03);
    border-radius:12px; padding:24px 16px 26px; cursor:pointer;
    transition: border-color .5s var(--ease),
                background .5s var(--ease);
    display:flex; flex-direction:column; gap:12px; user-select:none;
  }
  .e-card::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 10px;
    height: 1px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(196,168,130,0), rgba(196,168,130,0.58), rgba(196,168,130,0));
    opacity: 0;
    transform: scaleX(0.32);
    transition: opacity .45s cubic-bezier(.22,1,.36,1),
                transform .55s cubic-bezier(.22,1,.36,1);
  }
  .e-card:hover {
    border-color: rgba(234,230,222,0.085);
    background: rgba(255,255,255,0.026);
  }
  .e-card:focus-visible { outline:1px solid rgba(196,168,130,0.32); outline-offset:3px; }
  .e-card.selected {
    border-color: rgba(196,168,130,0.38);
    background: rgba(196,168,130,0.09);
  }
  .e-card.selected::after { opacity: 0.75; transform: scaleX(1); }

  .e-dot {
    width: 7px; height: 7px; border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.62;
    transition: opacity .35s ease, box-shadow .35s ease;
  }
  .e-card:hover .e-dot {
    opacity: 0.82;
  }
  .e-card.selected .e-dot {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(234,230,222,0.08),
                0 0 12px 2px var(--dot-color, currentColor);
  }
  .e-word {
    font-family:'Noto Serif KR', serif;
    font-size:15px; font-weight:400;
    color:rgba(234,230,222,0.88); letter-spacing:.01em;
    transition: color .45s var(--ease), letter-spacing .3s var(--ease);
  }
  .e-card:hover .e-word,
  .e-card.selected .e-word { color:var(--ink-1); }
  .e-card.selected .e-word { letter-spacing:.04em; }
  .e-desc {
    font-size:12px; color:rgba(234,230,222,0.62); line-height:1.55;
    transition: color .45s var(--ease);
  }
  .e-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .e-room-name {
    min-height: 15px;
    font-family: 'Noto Serif KR', serif;
    font-size: 10.5px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: .055em;
    color: transparent;
  }
  .e-room-name.visible { color: rgba(206,202,195,0.42); }
  .e-card.selected .e-room-name.visible { color: rgba(220,215,206,0.56); }
  .e-card:hover .e-desc { color:rgba(234,230,222,0.6); }
  .e-card.selected .e-desc { color:rgba(234,230,222,0.64); }

  .btn {
    width:100%; border:1px solid rgba(196,168,130,0.1); border-radius:10px; padding:15px; cursor:pointer;
    font-family:'Noto Sans KR', sans-serif;
    font-size:12px; font-weight:300; letter-spacing:.055em;
    transition: background .3s cubic-bezier(.22,1,.36,1),
                border-color .3s cubic-bezier(.22,1,.36,1),
                color .3s cubic-bezier(.22,1,.36,1),
                box-shadow .3s cubic-bezier(.22,1,.36,1),
                transform .3s cubic-bezier(.22,1,.36,1);
    margin-top:17px;
  }
  .btn-primary { background:rgba(196,168,130,0.07); color:var(--ink-3); }
  .btn-primary:not(:disabled) {
    background: rgba(196,168,130,0.13);
    border-color: rgba(196,168,130,0.28);
    color: rgba(234,230,222,0.88);
    box-shadow: none;
  }
  .btn-primary:hover:not(:disabled) {
    background: rgba(196,168,130,0.18);
    border-color: rgba(196,168,130,0.34);
  }
  .btn-primary:disabled { opacity:.24; cursor:not-allowed; }
  .sound-toggle {
    position: relative;
    align-self: center;
    margin: 12px auto 0;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.01);
    color: rgba(234,230,222,0.34);
    border-radius: 999px;
    padding: 6px 10px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 10px; font-weight: 300;
    letter-spacing: .06em;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
  }
  .sound-toggle::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: max(100%, 44px); height: 44px;
    transform: translate(-50%, -50%);
  }
  .sound-toggle[aria-pressed="true"] {
    border-color: rgba(196,168,130,0.14);
    background: rgba(196,168,130,0.025);
    color: rgba(234,230,222,0.48);
    box-shadow: 0 0 10px rgba(196,168,130,0.04);
  }
  .sound-toggle:focus-visible { outline:1px solid rgba(196,168,130,0.38); outline-offset:3px; }
  .privacy-notice {
    width: 100%; max-width: 336px;
    margin: 24px auto 0;
    text-align: center;
    color: var(--ink-4);
    font-size: 9.5px; line-height: 1.75;
    letter-spacing: .015em;
  }
  .privacy-notice a {
    display: inline-flex; align-items: center;
    min-height: 44px;
    margin-top: 2px; padding: 6px 4px;
    color: rgba(234,230,222,0.38);
    font-size: 10px; line-height: 1.4;
    text-underline-offset: 3px;
    text-decoration-color: rgba(234,230,222,0.2);
  }
  .privacy-notice a:focus-visible {
    outline: 1px solid rgba(196,168,130,0.38);
    outline-offset: 3px;
  }
  .sound-icon-toggle {
    position: absolute; top: 17px; right: 16px;
    width: 44px; height: 44px;
    border: none; border-radius: 50%;
    background: transparent;
    color: rgba(234,230,222,0.38);
    opacity: 0.42;
    cursor: pointer;
    z-index: 10;
    transition: opacity .2s ease, color .2s ease, transform .2s ease;
  }
  .sound-icon-toggle::before {
    content: '';
    position: absolute;
    left: 15px; top: 18px;
    width: 5px; height: 8px;
    border-radius: 1px 0 0 1px;
    background: currentColor;
  }
  .sound-icon-toggle::after {
    content: '';
    position: absolute;
    left: 20px; top: 16px;
    width: 8px; height: 12px;
    border: 1px solid currentColor;
    border-left: none;
    border-radius: 0 10px 10px 0;
    opacity: 0.7;
  }
  .sound-icon-toggle[aria-pressed="false"]::after {
    width: 9px; height: 1px;
    top: 22px; left: 21px;
    border: none;
    border-top: 1px solid currentColor;
    border-radius: 0;
    transform: rotate(-34deg);
    opacity: 0.85;
  }
  .sound-icon-toggle[aria-pressed="true"] {
    color: rgba(196,168,130,0.72);
    opacity: 0.5;
  }
  .sound-icon-toggle:hover,
  .sound-icon-toggle:focus-visible {
    opacity: 0.72;
    outline: none;
  }
  .sound-icon-label {
    display: block;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: .06em;
    color: rgba(234,230,222,0.32);
    margin-top: 26px;
    white-space: nowrap;
  }

  body { transition: background 1.2s cubic-bezier(.4,0,.2,1); }
  body.emotion-피곤함 { background: radial-gradient(ellipse at top, #1a1f2e 0%, #0d1117 60%); }
  body.emotion-불안함 { background: radial-gradient(ellipse at top, #1a1528 0%, #0e0d1a 60%); }
  body.emotion-공허함 { background: radial-gradient(ellipse at top, #111111 0%, #080808 60%); }
  body.emotion-쓸쓸함 { background: radial-gradient(ellipse at top, #1e1410 0%, #120d0a 60%); }
  body.emotion-복잡함 { background: radial-gradient(ellipse at top, #0f1e22 0%, #090f12 60%); }
  body.emotion-괜찮음 { background: radial-gradient(ellipse at top, #141828 0%, #0a0c14 60%); }

  .privacy-page { min-height: 100dvh; }
  .privacy-shell {
    position: relative; z-index: 1;
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 64px 24px calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .privacy-back {
    display: inline-block;
    margin-bottom: 48px; padding: 8px 0;
    color: var(--ink-3);
    font-size: 11px; letter-spacing: .06em;
    text-decoration: none;
  }
  .privacy-back:focus-visible,
  .privacy-content a:focus-visible {
    outline: 1px solid rgba(196,168,130,0.38);
    outline-offset: 3px;
  }
  .privacy-content h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px; font-weight: 300;
    line-height: 1.5; letter-spacing: -.01em;
    color: var(--ink-1);
    margin-bottom: 12px;
  }
  .privacy-effective {
    color: var(--ink-4);
    font-size: 11px; line-height: 1.7;
    margin-bottom: 48px;
  }
  .privacy-content section { margin-top: 38px; }
  .privacy-content h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: 16px; font-weight: 400;
    line-height: 1.6; letter-spacing: .01em;
    color: var(--ink-2);
    margin-bottom: 12px;
  }
  .privacy-content p,
  .privacy-content li {
    color: rgba(234,230,222,0.58);
    font-size: 13px; line-height: 1.95;
    letter-spacing: .005em;
  }
  .privacy-content ul { padding-left: 20px; }
  .privacy-content li + li { margin-top: 6px; }
  .privacy-content a {
    color: rgba(196,168,130,0.76);
    text-underline-offset: 3px;
  }
  .privacy-placeholder {
    margin-top: 14px; padding: 14px 16px;
    border: 1px solid rgba(196,168,130,0.12);
    border-radius: 10px;
    background: rgba(196,168,130,0.035);
  }

  @media (max-width: 440px) {
    .privacy-shell { padding: 48px 22px calc(48px + env(safe-area-inset-bottom, 0px)); }
    .privacy-back { margin-bottom: 36px; }
    .privacy-effective { margin-bottom: 40px; }
  }

  #s-transition {
    justify-content: center; align-items: center;
    padding: 0 32px; min-height: 100vh;
    text-align: center; flex-direction: column; gap: 16px; position: relative;
  }
  .transition-text {
    font-family: 'Noto Serif KR', serif;
    font-size: 18px; font-weight: 300; color: var(--emotion-transition-1);
    letter-spacing: .04em; line-height: 1.7;
    opacity: 0; transform: translateY(8px); filter: blur(3px);
    transition: opacity 1s cubic-bezier(.22,1,.36,1),
                transform 1s cubic-bezier(.22,1,.36,1),
                filter 1s cubic-bezier(.22,1,.36,1);
  }
  .transition-text.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
  .transition-line2 { font-size: 15px; color: var(--emotion-transition-2); transition-delay: .5s; }

  /* 감정별 ROOM — 외부 이미지 없이 사물과 낮은 빛만으로 만든 정적 공간 */
  #s-room {
    position: relative;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    padding: calc(56px + env(safe-area-inset-top, 0px)) 28px calc(72px + env(safe-area-inset-bottom, 0px));
    isolation: isolate;
    background: transparent;
  }
  .room-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background:
      radial-gradient(ellipse at 82% 26%, rgba(123, 88, 52, 0.045) 0%, rgba(76, 57, 39, 0.018) 28%, transparent 53%),
      linear-gradient(180deg, #0d1118 0%, #0a0e15 56%, #070a0f 100%);
    filter: blur(.45px) saturate(.72) brightness(.92);
    transition: opacity 1s cubic-bezier(.22,1,.36,1), visibility 0s linear 1s;
  }
  body.room-active .room-scene { visibility: visible; }
  body.room-active.room-scene-visible .room-scene {
    opacity: .78;
    transition-delay: 0s;
  }
  body.room-active canvas#aurora.visible { opacity: .14; }
  body.room-active.room-step-3 .room-scene { opacity: .69; }
  body.room-active.room-image-loaded.room-step-3 .room-scene { opacity: .78; }
  .room-image {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 0;
    width: min(100vw, 420px);
    height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    filter: saturate(.82) brightness(.86);
    transition: opacity 1s cubic-bezier(.22,1,.36,1), filter 1s cubic-bezier(.22,1,.36,1);
  }
  body.room-active.room-image-loaded.room-scene-visible .room-image { opacity: .9; }
  body.room-active.room-image-loaded.room-step-2 .room-image { filter: saturate(.8) brightness(.83); }
  body.room-active.room-image-loaded.room-step-3 .room-image { filter: saturate(.78) brightness(.79); }
  body.weekly-scene-active.weekly-scene-loaded.room-scene-visible .room-image {
    opacity: .9;
    transform: translateX(-50%) scale(1);
    filter: saturate(.82) brightness(.86);
  }
  body.weekly-scene-active.weekly-step-1 .room-image {
    transform: translateX(-50%) scale(1);
    filter: saturate(.82) brightness(.86);
  }
  body.weekly-scene-active.weekly-step-2 .room-image {
    transform: translateX(-50%) scale(1.008);
    filter: saturate(.82) brightness(.87);
  }
  body.weekly-scene-active.weekly-step-3 .room-image {
    transform: translateX(-50%) scale(1.008);
    filter: saturate(.8) brightness(.82);
  }
  .room-variant {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 1;
    transition: opacity 1s cubic-bezier(.22,1,.36,1);
  }
  body.room-scene-empty .room-variant-empty,
  body.room-scene-lonely .room-variant-lonely,
  body.room-scene-tired .room-variant-tired { display: block; }
  body.room-image-loaded .room-variant { opacity: 0; }
  body.room-scene-lonely .room-scene {
    background:
      radial-gradient(ellipse at 14% 30%, rgba(151,103,60,.045), rgba(91,67,48,.012) 28%, transparent 52%),
      radial-gradient(ellipse at 70% 18%, rgba(72,91,112,.07), transparent 48%),
      linear-gradient(180deg, #0e141b 0%, #0a1017 57%, #070a0f 100%);
  }
  body.room-scene-tired .room-scene {
    background:
      radial-gradient(ellipse at 20% 46%, rgba(151,99,51,.065), rgba(96,65,39,.016) 31%, transparent 55%),
      linear-gradient(176deg, #10131a 0%, #0c0f15 54%, #07090d 100%);
  }
  .room-scene::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 62%; bottom: 0;
    z-index: 2;
    background: linear-gradient(174deg, rgba(28, 32, 40, 0.2), rgba(4, 6, 10, 0.78) 64%);
    border-top: 1px solid rgba(150, 157, 169, 0.022);
  }
  .room-air,
  .room-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .room-air { z-index: 3; }
  .room-grain { z-index: 4; }
  .room-air {
    background:
      radial-gradient(ellipse at 50% 42%, rgba(102,112,128,0.018), transparent 46%),
      linear-gradient(96deg, rgba(255,255,255,0.008), transparent 28% 72%, rgba(0,0,0,0.035));
    opacity: .66;
  }
  .room-grain {
    opacity: .025;
    background:
      repeating-radial-gradient(circle at 18% 23%, rgba(255,255,255,.34) 0 .35px, transparent .5px 3px),
      repeating-radial-gradient(circle at 77% 68%, rgba(0,0,0,.42) 0 .45px, transparent .6px 4px);
    background-size: 11px 13px, 17px 19px;
    mix-blend-mode: soft-light;
  }
  .room-lamp-glow {
    position: absolute;
    width: 46%; height: 34%;
    right: -19%; top: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(169, 111, 58, 0.085), rgba(112, 76, 44, 0.022) 44%, transparent 72%);
    filter: blur(15px);
    opacity: 1;
    transition: opacity 1.4s cubic-bezier(.22,1,.36,1);
  }
  body.room-active.room-step-2 .room-lamp-glow { opacity: .72; }
  body.room-active.room-step-3 .room-lamp-glow { opacity: .52; }
  .room-tv {
    position: absolute;
    width: clamp(156px, 54vw, 230px);
    aspect-ratio: 1.72;
    left: 50%; top: 18%;
    transform: translateX(-50%);
    padding: 4px;
    border-radius: 5px 4px 6px 3px;
    background: linear-gradient(151deg, rgba(29,33,41,.84), rgba(13,16,21,.9) 61%, rgba(5,7,10,.96));
    box-shadow: 0 21px 42px rgba(0,0,0,0.48), 0 0 0 1px rgba(180,190,205,0.012);
    opacity: 0;
    filter: blur(.32px);
    transition: opacity .95s cubic-bezier(.22,1,.36,1) .08s, filter 1.2s ease;
  }
  body.room-active.room-scene-visible .room-tv { opacity: .63; }
  .room-tv::after {
    content: '';
    position: absolute;
    width: 34%; height: 24px;
    left: 33%; top: 100%;
    background: linear-gradient(180deg, #0d1015 0 62%, #07090c 63%);
    clip-path: polygon(42% 0, 58% 0, 63% 68%, 100% 84%, 100% 100%, 0 100%, 0 84%, 37% 68%);
  }
  .room-tv-screen {
    position: relative;
    display: block;
    width: 100%; height: 100%;
    border-radius: 1px;
    background:
      linear-gradient(118deg, transparent 0 58%, rgba(145,158,177,0.018) 65%, transparent 74%),
      radial-gradient(ellipse at 68% 25%, rgba(119,132,151,0.025), transparent 42%),
      #040609;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
  }
  .room-tv-screen::after {
    content: '';
    position: absolute;
    inset: 8% 7%;
    border-radius: 48% 42% 54% 46%;
    background: linear-gradient(121deg, transparent 0 54%, rgba(146,157,173,.026) 63%, transparent 74%);
    filter: blur(4px);
    opacity: .72;
    transition: opacity 1.4s cubic-bezier(.22,1,.36,1);
  }
  body.room-active.room-step-3 .room-tv-screen::after { opacity: .28; }
  .room-sofa {
    position: absolute;
    width: min(78%, 320px); height: 20%;
    left: 50%; bottom: 20%;
    transform: translateX(-50%);
    border-radius: 22px 18px 8px 6px;
    background:
      radial-gradient(ellipse at 28% 4%, rgba(68,73,84,.08), transparent 42%),
      linear-gradient(183deg, rgba(19,23,30,.88), rgba(10,14,19,.94) 70%, rgba(5,8,12,.98));
    box-shadow: 0 24px 42px rgba(0,0,0,0.58), inset 0 1px rgba(176,186,202,0.008);
    opacity: 0;
    filter: blur(.62px);
    transition: opacity 1.1s cubic-bezier(.22,1,.36,1) .42s;
  }
  body.room-active.room-scene-visible .room-sofa { opacity: .62; }
  .room-sofa::before,
  .room-sofa::after {
    content: '';
    position: absolute;
    top: 39%; bottom: 0; width: 12%;
    border-radius: 7px 7px 4px 4px;
    background: #090c11;
  }
  .room-sofa::before { left: -4%; }
  .room-sofa::after { right: -4%; }
  .room-sofa span {
    position: absolute;
    left: 50%; top: 8%; bottom: 6%;
    width: 1px;
    background: rgba(183,190,202,0.014);
  }
  .room-table {
    position: absolute;
    width: 45%; height: 5%;
    left: 50%; bottom: 13%;
    transform: translateX(-50%) skewX(-4deg);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(29,33,40,0.58), rgba(6,8,11,0.9));
    box-shadow: 0 10px 19px rgba(0,0,0,0.54);
    opacity: 0;
    filter: blur(.7px);
    transition: opacity 1.15s cubic-bezier(.22,1,.36,1) .52s;
  }
  body.room-active.room-scene-visible .room-table { opacity: .48; }
  .room-floor-shadow {
    position: absolute;
    width: 92%; height: 16%;
    left: 4%; bottom: -5%;
    border-radius: 50%;
    background: rgba(0,0,0,0.56);
    filter: blur(18px);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(.22,1,.36,1) .5s;
  }
  body.room-active.room-scene-visible .room-floor-shadow { opacity: .74; }
  .room-rain-window {
    position: absolute;
    width: min(56%, 236px); height: 28%;
    left: 50%; top: 12%;
    transform: translateX(-50%);
    border: 5px solid rgba(20,25,32,.82);
    border-radius: 2px 3px 2px 4px;
    background:
      repeating-linear-gradient(101deg, transparent 0 19px, rgba(149,167,185,.018) 20px, transparent 22px 37px),
      linear-gradient(180deg, rgba(56,72,89,.2), rgba(24,34,45,.13) 55%, rgba(12,18,26,.26));
    box-shadow: inset 0 0 34px rgba(2,5,9,.7), 0 18px 40px rgba(0,0,0,.25);
    opacity: 0;
    filter: blur(.45px);
    transition: opacity 1.05s cubic-bezier(.22,1,.36,1) .08s;
  }
  .room-rain-window::before {
    content: '';
    position: absolute;
    inset: 5% 4%;
    background:
      repeating-linear-gradient(96deg, transparent 0 13px, rgba(182,194,205,.035) 14px, transparent 15px 27px),
      radial-gradient(ellipse at 62% 22%, rgba(145,163,181,.04), transparent 42%);
    filter: blur(1.1px);
    opacity: .55;
  }
  .room-rain-window::after {
    content: '';
    position: absolute;
    left: -8px; right: -8px; bottom: -9px;
    height: 7px;
    background: rgba(9,12,17,.88);
    box-shadow: 0 5px 10px rgba(0,0,0,.28);
  }
  body.room-active.room-scene-visible .room-rain-window { opacity: .52; }
  .room-dining-glow {
    left: -20%; right: auto; top: 24%;
    width: 48%; height: 42%;
    background: radial-gradient(circle, rgba(174,112,61,.095), rgba(105,73,48,.022) 45%, transparent 73%);
  }
  .room-dining-chair {
    position: absolute;
    width: 22%; max-width: 92px; height: 24%;
    right: 17%; bottom: 24%;
    border-radius: 8px 7px 3px 4px;
    background: linear-gradient(180deg, rgba(23,27,32,.82), rgba(9,12,16,.96));
    box-shadow: 0 20px 30px rgba(0,0,0,.42), inset 0 1px rgba(193,183,169,.01);
    opacity: 0;
    filter: blur(.7px);
    transition: opacity 1.1s cubic-bezier(.22,1,.36,1) .36s;
  }
  .room-dining-chair::before,
  .room-dining-chair::after {
    content: '';
    position: absolute;
    width: 7px; height: 42%; bottom: -35%;
    background: rgba(7,9,12,.9);
  }
  .room-dining-chair::before { left: 14%; transform: rotate(2deg); }
  .room-dining-chair::after { right: 14%; transform: rotate(-2deg); }
  .room-dining-chair span {
    position: absolute;
    inset: 12% 12% 42%;
    border: 1px solid rgba(132,128,121,.018);
    border-radius: 5px;
  }
  body.room-active.room-scene-visible .room-dining-chair { opacity: .5; }
  .room-dining-table {
    position: absolute;
    width: min(72%, 310px); height: 8%;
    left: 50%; bottom: 25%;
    transform: translateX(-50%) perspective(260px) rotateX(58deg);
    border-radius: 44% 47% 12% 14%;
    background:
      radial-gradient(ellipse at 30% 18%, rgba(96,78,62,.045), transparent 40%),
      linear-gradient(180deg, rgba(31,29,28,.86), rgba(10,11,13,.96));
    box-shadow: 0 15px 28px rgba(0,0,0,.5), inset 0 1px rgba(196,162,125,.012);
    opacity: 0;
    filter: blur(.55px);
    transition: opacity 1.1s cubic-bezier(.22,1,.36,1) .46s;
  }
  .room-dining-table::before,
  .room-dining-table::after {
    content: '';
    position: absolute;
    width: 7px; height: 105%; top: 78%;
    background: rgba(7,8,10,.92);
  }
  .room-dining-table::before { left: 16%; transform: skewX(-5deg); }
  .room-dining-table::after { right: 16%; transform: skewX(5deg); }
  body.room-active.room-scene-visible .room-dining-table { opacity: .58; }
  .room-dining-shadow {
    position: absolute;
    width: 86%; height: 18%;
    left: 7%; bottom: 9%;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(.22,1,.36,1) .5s;
  }
  body.room-active.room-scene-visible .room-dining-shadow { opacity: .7; }
  .room-tired-glow {
    left: -17%; right: auto; top: 20%;
    width: 58%; height: 55%;
    background: radial-gradient(ellipse, rgba(183,117,58,.12), rgba(119,78,43,.03) 43%, transparent 72%);
    filter: blur(19px);
  }
  .room-floor-lamp {
    position: absolute;
    width: 23%; max-width: 94px; height: 44%;
    left: 12%; top: 17%;
    opacity: 0;
    filter: blur(.55px);
    transition: opacity 1s cubic-bezier(.22,1,.36,1) .08s;
  }
  .room-floor-lamp::before {
    content: '';
    position: absolute;
    width: 76%; height: 24%;
    left: 9%; top: 0;
    border-radius: 42% 48% 12% 16%;
    background: linear-gradient(174deg, rgba(95,72,51,.78), rgba(31,27,25,.92) 74%);
    clip-path: polygon(17% 0, 83% 4%, 100% 100%, 0 94%);
    box-shadow: inset 0 -3px 8px rgba(196,127,64,.055), 0 9px 25px rgba(0,0,0,.32);
  }
  .room-floor-lamp::after {
    content: '';
    position: absolute;
    width: 3px; height: 65%;
    left: 48%; top: 22%;
    background: linear-gradient(180deg, rgba(64,57,51,.62), rgba(13,14,16,.9));
    box-shadow: 0 0 5px rgba(0,0,0,.35);
  }
  .room-floor-lamp span {
    position: absolute;
    width: 58%; height: 5%;
    left: 21%; bottom: 9%;
    border-radius: 50%;
    background: rgba(10,11,13,.94);
    box-shadow: 0 7px 14px rgba(0,0,0,.45);
  }
  body.room-active.room-scene-visible .room-floor-lamp { opacity: .56; }
  .room-bed-edge {
    position: absolute;
    width: 69%; height: 18%;
    right: -11%; bottom: 21%;
    border-radius: 18px 0 4px 9px;
    background:
      radial-gradient(ellipse at 15% 8%, rgba(105,84,66,.045), transparent 38%),
      linear-gradient(182deg, rgba(27,28,31,.84), rgba(9,11,14,.97) 72%);
    box-shadow: 0 25px 40px rgba(0,0,0,.5), inset 0 1px rgba(196,164,126,.01);
    opacity: 0;
    filter: blur(.72px);
    transform: rotate(-.7deg);
    transition: opacity 1.15s cubic-bezier(.22,1,.36,1) .4s;
  }
  .room-bed-edge::before {
    content: '';
    position: absolute;
    width: 34%; height: 29%;
    left: 7%; top: -12%;
    border-radius: 48% 43% 22% 18%;
    background: rgba(29,29,31,.72);
    box-shadow: 0 8px 18px rgba(0,0,0,.22);
  }
  .room-bed-edge span {
    position: absolute;
    left: 5%; right: 0; top: 43%;
    height: 1px;
    background: linear-gradient(90deg, rgba(170,145,116,.018), transparent 72%);
  }
  body.room-active.room-scene-visible .room-bed-edge { opacity: .58; }
  .room-light-pool {
    position: absolute;
    width: 61%; height: 18%;
    left: -7%; bottom: 13%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(164,103,53,.085), rgba(96,65,40,.018) 50%, transparent 73%);
    filter: blur(18px);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(.22,1,.36,1) .28s;
  }
  body.room-active.room-scene-visible .room-light-pool { opacity: .64; }
  body.room-active.room-step-2 .room-light-pool { opacity: .46; }
  body.room-active.room-step-3 .room-light-pool { opacity: .3; }
  .room-tired-shadow {
    position: absolute;
    width: 94%; height: 20%;
    left: 3%; bottom: 5%;
    border-radius: 50%;
    background: rgba(0,0,0,.52);
    filter: blur(21px);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(.22,1,.36,1) .48s;
  }
  body.room-active.room-scene-visible .room-tired-shadow { opacity: .72; }
  .room-copy-wrap {
    position: absolute;
    left: 28px; right: 28px; top: 49%;
    transform: translateY(-50%);
    width: auto;
    min-height: 108px;
    text-align: center;
    z-index: 1;
    text-shadow: 0 2px 18px rgba(0,0,0,0.92);
  }
  .room-name,
  .room-copy {
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
  }
  .room-name {
    font-family: 'Noto Serif KR', serif;
    font-size: 12px; font-weight: 300;
    line-height: 1.6; letter-spacing: .16em;
    color: rgba(220,218,213,0.55);
    margin-bottom: 16px;
  }
  .room-copy {
    font-family: 'Noto Serif KR', serif;
    max-width: 310px; margin: 0 auto;
    font-size: 14px; font-weight: 300;
    line-height: 1.9; letter-spacing: .015em;
    color: rgba(220,219,216,0.69);
  }
  #s-room.room-visible .room-name,
  #s-room.room-copy-visible .room-copy { opacity: 1; transform: translateY(0); }
  #s-room.room-leaving .room-name,
  #s-room.room-leaving .room-copy {
    opacity: 0;
    transform: translateY(-3px);
    transition-duration: .55s;
  }

  #s-flow {
    justify-content: center; align-items: center;
    padding: 0 32px; min-height: 100vh; position: relative;
  }
  body.room-active #s-flow { animation: none; }
  .flow-stage {
    text-align: center; margin-bottom: 14px;
    opacity: 0; transform: translateY(6px);
    transition: opacity .55s cubic-bezier(.22,1,.36,1),
                transform .55s cubic-bezier(.22,1,.36,1),
                color .35s ease,
                text-shadow .35s ease;
    min-height: 24px;
  }
  .flow-stage.visible {
    opacity: .78; transform: translateY(0);
  }
  .flow-stage:empty {
    min-height: 0;
    margin-bottom: 0;
  }
  .flow-stage {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px; line-height: 1.35; letter-spacing: var(--emotion-flow-tracking);
    color: var(--emotion-flow-label);
  }
  .flow-stage.holding {
    opacity: .96;
    transform: translateY(0);
    color: var(--emotion-flow-text);
    text-shadow: 0 0 10px rgba(234,230,222,0.08);
  }
  .flow-text {
    font-family: 'Noto Serif KR', serif;
    font-size: calc(22px * var(--emotion-flow-scale)); font-weight: 300; color: var(--emotion-flow-text);
    letter-spacing: -.01em; line-height: 1.7; text-align: center;
    opacity: 0; transform: translateY(10px); filter: blur(4px);
    transition: opacity .9s cubic-bezier(.22,1,.36,1),
                transform .9s cubic-bezier(.22,1,.36,1),
                filter .9s cubic-bezier(.22,1,.36,1);
    min-height: 66px;
  }
  .flow-text.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0)
            brightness(calc(1 + var(--text-presence, 0)))
            contrast(calc(1 + var(--text-presence, 0)));
    text-shadow: 0 0 18px rgba(234,230,222,var(--text-presence, 0));
  }
  .flow-text.step-stay {
    font-size: calc(21px * var(--emotion-flow-scale)); color: var(--emotion-flow-text); letter-spacing: .02em;
  }
  .flow-text.step-confirm {
    font-size: calc(23px * var(--emotion-flow-scale)); color: var(--emotion-flow-text); letter-spacing: .02em;
  }
  .flow-text.step-close {
    font-size: calc(18px * var(--emotion-flow-scale)); color: var(--emotion-flow-close); letter-spacing: .04em;
    transition: opacity 1.4s cubic-bezier(.22,1,.36,1),
                transform 1.4s cubic-bezier(.22,1,.36,1),
                filter 1.4s cubic-bezier(.22,1,.36,1);
  }

  .flow-exit-btn {
    position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); left: 22px;
    background: transparent; border: none; color: var(--text-muted);
    font-size: 20px; line-height: 1; cursor: pointer;
    padding: 4px 8px; opacity: 0.75; transition: opacity .2s ease; z-index: 10;
  }
  body.weekly-scene-active .flow-exit-btn {
    color: rgba(234,230,222,0.74);
    opacity: .86;
    text-shadow: 0 1px 10px rgba(0,0,0,0.78), 0 0 8px rgba(234,230,222,0.08);
  }
  .flow-exit-btn:hover { opacity: 1; }

  #s-complete {
    align-items: center; padding: 124px 32px calc(64px + env(safe-area-inset-bottom, 0px));
    min-height: 100vh; text-align: center;
  }
  .complete-moon {
    display: block;
    cursor: default;
    width: 60px; height: 60px; border-radius: 50%;
    margin: 0 auto 28px;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 1.4s cubic-bezier(.22,1,.36,1) .3s,
                transform 1.4s cubic-bezier(.22,1,.36,1) .3s,
                background .3s ease,
                box-shadow .3s ease;
  }
  #s-complete.visible .complete-moon {
    opacity: 1;
    transform: scale(1);
  }
  /* 감정별 색상 + 글로우 */
  .emotion-피곤함 .complete-moon {
    background: radial-gradient(circle at 38% 35%, rgba(140,160,220,0.82), rgba(80,100,160,0.62));
    box-shadow: 0 0 22px 6px rgba(100,120,180,0.22), 0 0 46px 16px rgba(80,100,160,0.1);
  }
  .emotion-불안함 .complete-moon {
    background: radial-gradient(circle at 38% 35%, rgba(180,140,220,0.82), rgba(120,80,160,0.62));
    box-shadow: 0 0 22px 6px rgba(140,100,180,0.22), 0 0 46px 16px rgba(120,80,160,0.1);
  }
  .emotion-공허함 .complete-moon {
    background: radial-gradient(circle at 38% 35%, rgba(120,120,130,0.72), rgba(60,60,70,0.54));
    box-shadow: 0 0 22px 6px rgba(80,80,90,0.18), 0 0 46px 16px rgba(60,60,70,0.07);
  }
  .emotion-쓸쓸함 .complete-moon {
    background: radial-gradient(circle at 38% 35%, rgba(220,170,130,0.82), rgba(160,110,70,0.62));
    box-shadow: 0 0 22px 6px rgba(196,150,110,0.22), 0 0 46px 16px rgba(160,110,70,0.1);
  }
  .emotion-복잡함 .complete-moon {
    background: radial-gradient(circle at 38% 35%, rgba(100,200,200,0.82), rgba(40,130,130,0.62));
    box-shadow: 0 0 22px 6px rgba(60,160,160,0.22), 0 0 46px 16px rgba(40,130,130,0.1);
  }
  .emotion-괜찮음 .complete-moon {
    background: radial-gradient(circle at 38% 35%, rgba(220,190,100,0.82), rgba(170,140,60,0.62));
    box-shadow: 0 0 22px 6px rgba(196,168,80,0.22), 0 0 46px 16px rgba(170,140,60,0.1);
  }
  .complete-emotion {
    font-family: 'Noto Serif KR', serif;
    font-size: 12px; font-weight: 300; color: var(--emotion-flow-text);
    letter-spacing: .06em; margin-bottom: 20px;
    opacity: 0; transform: translateY(8px);
    transition: opacity 1s cubic-bezier(.22,1,.36,1) .4s, transform 1s cubic-bezier(.22,1,.36,1) .4s;
  }
  .complete-sub {
    font-family: 'Noto Serif KR', serif;
    font-size: 14px; font-weight: 300; color: var(--emotion-flow-close);
    letter-spacing: .08em; margin-bottom: 72px;
    opacity: 0; transform: translateY(8px);
    transition: opacity 1s cubic-bezier(.22,1,.36,1) .8s, transform 1s cubic-bezier(.22,1,.36,1) .8s;
  }
  .complete-restart {
    border: none; border-radius: 0; padding: 10px 32px; cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 11px; font-weight: 300; letter-spacing: .1em;
    color: var(--text-muted); background: transparent;
    opacity: 0; transform: translateY(10px);
    transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1), color .2s ease;
    margin-top: 16px;
    text-decoration: underline; text-underline-offset: 4px;
    text-decoration-color: rgba(72,69,79,0.3);
    visibility: hidden;
    pointer-events: none;
  }
  .complete-restart:hover { color: var(--text-secondary); }
  .complete-restart.visible { opacity: 0.45; transform: translateY(0); visibility: visible; pointer-events: auto; }

  #s-complete.visible .complete-emotion,
  #s-complete.visible .complete-sub { opacity: 1; transform: translateY(0); }

  .complete-extras {
    display: none; flex-direction: column; align-items: center;
    width: 100%; margin-top: 26px; opacity: 0; transition: opacity 1.6s ease;
  }
  .complete-extras.visible { opacity: 1; }
  .complete-quote {
    font-family: 'Noto Serif KR', serif;
    font-size: 14px; font-weight: 300; color: rgba(234,230,222,0.66);
    line-height: 2.12; text-align: center; letter-spacing: .025em;
    padding: 12px 8px 0; width: 100%;
  }
  .complete-quote-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 9px; font-weight: 300; color: rgba(234,230,222,0.42);
    letter-spacing: .16em; line-height: 1;
    margin-bottom: 10px; opacity: 0.5;
  }
  .complete-quote-wrap {
    position: relative;
    width: 100%;
    padding-top: 20px;
    border-top: none;
  }
  .complete-quote-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(156px, 46vw);
    height: 1px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(234,230,222,0), rgba(234,230,222,0.22), rgba(234,230,222,0));
    opacity: 0.5;
    filter: blur(0.35px);
  }

  .echo-emoji {
    position: fixed; bottom: 48px; left: 50%;
    transform: translateX(-50%);
    width: 8px; height: 8px;
    opacity: 0; pointer-events: none; z-index: 2; transition: opacity .8s ease;
  }
  .echo-emoji.visible { opacity: 0.28; }
  .echo-emoji.fadeout { opacity: 0; transition: opacity 1.5s ease; }

  @media(max-width:440px){
    .app { max-width:100%; }
    #s-emotion { padding-bottom: 24px; }
    #s-emotion .header { padding-top: 32px; padding-bottom: 8px; }
    #s-emotion .h-subtitle { margin-top: 12px; line-height: 1.68; }
    #s-emotion .emotion-grid { gap: 12px; }
    #s-emotion .e-room-name { font-size: 10px; }
    #s-emotion #confirm-btn { margin-top: 4px; }
  }

  /* 완료 화면 — 짧은 모바일 뷰포트에서도 문장과 버튼의 호흡을 유지 */
  @media (max-width: 440px) and (max-height: 844px) {
    #s-complete {
      padding-top: 92px;
      padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }
    .complete-moon { margin-bottom: 24px; }
    .complete-sub { margin-bottom: 54px; }
    .complete-extras { margin-top: 20px; }
    .complete-quote-wrap { padding-top: 16px; }
    .complete-restart { margin-top: 12px; }
  }

  @media (max-width: 440px) and (max-height: 680px) {
    #s-room {
      padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
    }
    .room-tv { top: 14%; width: clamp(142px, 48vw, 190px); }
    .room-sofa { height: 17%; bottom: 20%; }
    .room-rain-window { top: 10%; height: 25%; }
    .room-dining-chair { bottom: 25%; height: 21%; }
    .room-dining-table { bottom: 27%; }
    .room-floor-lamp { left: 9%; top: 14%; height: 42%; }
    .room-bed-edge { bottom: 22%; height: 16%; }
    .room-light-pool { bottom: 14%; }
    .room-copy-wrap { top: 47%; min-height: 92px; }
    .room-name { margin-bottom: 10px; font-size: 11px; }
    .room-copy { font-size: 13px; line-height: 1.75; }
    #s-complete {
      padding-top: 64px;
      padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }
    .complete-moon {
      width: 52px;
      height: 52px;
      margin-bottom: 18px;
    }
    .complete-emotion { margin-bottom: 16px; }
    .complete-sub { margin-bottom: 40px; }
    .complete-extras { margin-top: 14px; }
    .complete-quote {
      line-height: 1.9;
      padding-top: 8px;
    }
    .complete-quote-wrap { padding-top: 12px; }
    .complete-restart { margin-top: 8px; }
  }

  canvas#aurora {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
  }
  canvas#aurora.visible { opacity: 1; }

  /* 시간대/계절 분위기 — 정보가 아니라 공기 (아주 옅게) */
  #ambient {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 2.6s ease, background 2.6s ease;
  }
  #ambient.on { opacity: 1; }
  /* 감정색 가드 — 감정 선택 후엔 감정색이 주인공, ambient는 뒤로 물러남 */
  body[class*="emotion-"] #ambient.on { opacity: 0.55; }

  /* 여름 밤 습기 — 정적 헤이즈 (계절 한정, 무애니메이션, 아주 옅게) */
  #season-haze {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 2.6s ease;
  }
  #season-haze.on { opacity: 1; }
  body[class*="emotion-"] #season-haze.on { opacity: 0.4; }

  .screen { position: relative; z-index: 1; }


  /* 감정별 Hold 버튼 색상 */
  .hold-btn { --btn-color: rgba(196,168,130,0.4); --btn-glow: rgba(196,168,130,0.2); }
  .emotion-피곤함 .hold-btn { --btn-color: rgba(100,120,180,0.5); --btn-glow: rgba(80,100,160,0.25); }
  .emotion-불안함 .hold-btn { --btn-color: rgba(140,100,180,0.5); --btn-glow: rgba(120,80,160,0.25); }
  .emotion-공허함 .hold-btn { --btn-color: rgba(80,80,90,0.5);  --btn-glow: rgba(200,200,210,0.12); }
  .emotion-쓸쓸함 .hold-btn { --btn-color: rgba(160,110,70,0.5); --btn-glow: rgba(196,150,100,0.25); }
  .emotion-복잡함 .hold-btn { --btn-color: rgba(60,140,140,0.5); --btn-glow: rgba(60,160,160,0.25); }
  .emotion-괜찮음 .hold-btn { --btn-color: rgba(180,155,80,0.5); --btn-glow: rgba(196,168,80,0.28); }

  /* ── 머무는 자리 (숨 고르는 영역) ─────────────────── */
  /* 버튼이 아니라 손을 올려두는 호흡하는 원(orb)이다. */
  @property --bar-pct {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
  }
  .hold-btn-wrap {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: none;
    justify-content: center;
    padding: 0 32px calc(52px + env(safe-area-inset-bottom, 0px));
    z-index: 10;
  }
  .hold-btn-wrap.visible { display: flex; }

  .hold-btn {
    --bar-pct: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    user-select: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: --bar-pct .52s cubic-bezier(.22,1,.36,1);
  }
  .hold-btn.holding { transition-duration: 0s; }
  .hold-btn:focus-visible {
    outline: 1px solid rgba(196,168,130,0.38);
    outline-offset: 5px;
    border-radius: 999px;
  }

  /* 호흡하는 원 */
  .hold-orb {
    position: relative;
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 1.5px solid var(--btn-color);
    opacity: 0.5;
    transition: opacity .7s var(--ease), transform .7s var(--ease),
                box-shadow .45s var(--ease);
  }
  .hold-btn:not(.holding):not(.paused):not(.completed) .hold-orb {
    animation: orbBreath 4.6s ease-in-out infinite;
  }
  .hold-btn.holding .hold-orb {
    opacity: 0.5;
    animation: none;
    transform: none;
    box-shadow: none;
    transition: opacity .18s ease-out;
  }
  .hold-btn.paused .hold-orb {
    opacity: 0.5;
    animation: none;
    transform: none;
    box-shadow: none;
    transition: opacity .18s ease-out;
  }
  .hold-btn.completed .hold-orb {
    animation: none;
    transform: none;
    animation: holdCompleteGlow .68s cubic-bezier(.22,1,.36,1) both;
  }
  @keyframes orbBreath {
    0%, 100% { opacity: 0.38; transform: scale(1); }
    50%      { opacity: 0.72; transform: scale(1.08); }
  }
  @keyframes holdCompleteGlow {
    0% { opacity: .58; box-shadow: 0 0 4px var(--btn-glow); }
    42% { opacity: .78; box-shadow: 0 0 11px var(--btn-glow); }
    100% { opacity: .58; box-shadow: 0 0 5px var(--btn-glow); }
  }
  .hold-progress-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(from -90deg,
      rgba(220,216,207,.38) calc(var(--bar-pct) * 3.6deg),
      transparent 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - .6px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - .6px));
    opacity: 0;
    filter: drop-shadow(0 0 2px var(--btn-glow));
    transition: opacity .28s ease;
  }
  .hold-btn.holding .hold-progress-ring,
  .hold-btn.paused .hold-progress-ring { opacity: calc(.34 + var(--hold-progress, 0) * .36); }
  .hold-btn.completed .hold-progress-ring {
    opacity: .76;
    filter: drop-shadow(0 0 4px var(--btn-glow));
  }
  /* 손을 올린 동안 안에서 차오르는 빛 — 진행률 연동 */
  .hold-orb::before {
    content: '';
    position: absolute; inset: 2px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, var(--btn-glow), transparent 72%);
    opacity: var(--hold-progress, 0);
    transform: scale(calc(0.5 + var(--hold-progress, 0) * 0.5));
    transition: opacity .14s linear, transform .14s linear;
  }
  /* 둘레를 따라 조용히 채워지는 1px 링 — 진행률 연동 */
  .hold-orb::after {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 50%;
    background: conic-gradient(from -90deg, var(--btn-color) calc(var(--hold-progress, 0) * 360deg), transparent 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  }

  /* 머무름 Hold — 진행 시간은 유지하되 채움이나 링 없이 호흡만 멈춘다. */
  .hold-btn.staying .hold-orb::before,
  .hold-btn.staying .hold-orb::after { opacity: 0; }
  .hold-btn.staying.holding .hold-orb::before,
  .hold-btn.staying.paused .hold-orb::before,
  .hold-btn.staying.completed .hold-orb::before {
    background: radial-gradient(circle at 50% 50%, var(--btn-color), transparent 72%);
    opacity: .12;
    transform: scale(.76);
  }
  .hold-btn.staying.holding .hold-orb,
  .hold-btn.staying.paused .hold-orb {
    opacity: .48;
    box-shadow: 0 0 4px var(--btn-glow);
    transition: opacity .18s ease-out, box-shadow .24s ease-out;
  }
  .hold-btn.staying.completed .hold-orb {
    opacity: .52;
    box-shadow: 0 0 4px var(--btn-glow);
  }

  /* 확인 Hold — 채움과 링은 식별 가능하되 국소 범위 안에서만 반응한다. */
  .hold-btn:not(.staying):not(.closing).holding .hold-orb,
  .hold-btn:not(.staying):not(.closing).paused .hold-orb {
    opacity: .5;
    box-shadow: 0 0 4px var(--btn-glow);
  }
  .hold-btn:not(.staying):not(.closing).completed .hold-orb {
    opacity: .56;
    box-shadow: 0 0 5px var(--btn-glow);
  }
  .hold-btn:not(.staying):not(.closing).holding .hold-orb::before,
  .hold-btn:not(.staying):not(.closing).paused .hold-orb::before,
  .hold-btn:not(.staying):not(.closing).completed .hold-orb::before {
    opacity: calc(.06 + var(--hold-progress, 0) * .3);
  }
  .hold-btn:not(.staying):not(.closing).holding .hold-orb::after,
  .hold-btn:not(.staying):not(.closing).paused .hold-orb::after,
  .hold-btn:not(.staying):not(.closing).completed .hold-orb::after {
    background: transparent;
    border: 1px solid var(--btn-color);
    box-sizing: border-box;
    -webkit-mask: none;
            mask: none;
    opacity: calc(.1 + var(--hold-progress, 0) * .22);
  }

  .hold-btn-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px; font-weight: 300; letter-spacing: .06em;
    color: rgba(234,230,222,0.72);
    min-width: 150px;
    text-align: center;
    transition: opacity .35s var(--ease), color .35s var(--ease);
  }
  .hold-btn.holding .hold-btn-label { opacity: .58; color: rgba(234,230,222,0.64); }
  .hold-btn.completed .hold-btn-label { opacity: .62; }
  .hold-btn.paused .hold-btn-label {
    opacity: 1;
    transition-duration: .2s;
  }
  .hold-btn-label.label-changing { animation: holdLabelChange .42s var(--ease); }
  @keyframes holdLabelChange {
    from { opacity: .34; }
    to { opacity: .72; }
  }

  /* 마감 Hold — 손을 올리면 빛이 차오르지 않고 사그라든다. */
  .hold-btn.closing .hold-orb::before { opacity: 0; }
  .hold-btn.closing .hold-orb::after { opacity: 0; }
  .hold-btn.closing.holding .hold-orb {
    opacity: calc(1 - var(--hold-progress, 0) * 0.82);
    transition: opacity .14s linear;
  }
  .hold-btn.closing.paused .hold-orb {
    opacity: calc(1 - var(--hold-progress, 0) * 0.82);
  }

  
  .screen-wash {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 5; opacity: 0;
  }
  .screen-wash.transition-enter {
    opacity: 1;
    transform: scale(1);
  }
  .screen-wash.flash { opacity: 0.18; transition: opacity 0.15s ease-in; }
  .screen-wash.fade  { opacity: 0;    transition: opacity 0.8s ease-out; }
  canvas#complete-fx {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.8s ease;
  }
  canvas#complete-fx.visible { opacity: 1; }


  /* 감정별 transition 진입 애니메이션 */

  /* 피곤함 — 위에서 내려앉음 */
  .transition-enter-피곤함 {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    filter: blur(2px) !important;
    transition: opacity 1.4s cubic-bezier(.22,1,.36,1),
                transform 1.4s cubic-bezier(.22,1,.36,1),
                filter 1.4s cubic-bezier(.22,1,.36,1) !important;
  }
  .transition-enter-피곤함.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0) !important;
  }

  /* 불안함 — 미세하게 흔들리다 멈춤 */
  .transition-enter-불안함 {
    opacity: 0 !important;
    transform: translateX(0) !important;
    filter: blur(2px) !important;
    transition: opacity 1s cubic-bezier(.22,1,.36,1),
                filter 1s cubic-bezier(.22,1,.36,1) !important;
  }
  .transition-enter-불안함.visible {
    opacity: 1 !important;
    filter: blur(0) !important;
    animation: tremble-settle 0.8s ease-out forwards;
  }
  @keyframes tremble-settle {
    0%   { transform: translateX(-4px); }
    20%  { transform: translateX(3px); }
    40%  { transform: translateX(-2px); }
    60%  { transform: translateX(1px); }
    80%  { transform: translateX(-1px); }
    100% { transform: translateX(0); }
  }

  /* 공허함 — 아주 천천히 페이드인 */
  .transition-enter-공허함 {
    opacity: 0 !important;
    transform: none !important;
    filter: blur(4px) !important;
    transition: opacity 2.4s cubic-bezier(.4,0,.2,1),
                filter 2.4s cubic-bezier(.4,0,.2,1) !important;
  }
  .transition-enter-공허함.visible {
    opacity: 0.85 !important;
    filter: blur(0) !important;
  }

  /* 쓸쓸함 — 오른쪽에서 천천히 흘러들어옴 */
  .transition-enter-쓸쓸함 {
    opacity: 0 !important;
    transform: translateX(24px) !important;
    filter: blur(2px) !important;
    transition: opacity 1.6s cubic-bezier(.22,1,.36,1),
                transform 1.6s cubic-bezier(.22,1,.36,1),
                filter 1.6s cubic-bezier(.22,1,.36,1) !important;
  }
  .transition-enter-쓸쓸함.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
    filter: blur(0) !important;
  }

  /* 복잡함 — 각각 다른 방향에서 */
  .transition-enter-복잡함-1 {
    opacity: 0 !important;
    transform: translateX(-18px) !important;
    filter: blur(2px) !important;
    transition: opacity 1s cubic-bezier(.22,1,.36,1),
                transform 1s cubic-bezier(.22,1,.36,1),
                filter 1s cubic-bezier(.22,1,.36,1) !important;
  }
  .transition-enter-복잡함-1.visible {
    opacity: 1 !important; transform: translateX(0) !important; filter: blur(0) !important;
  }
  .transition-enter-복잡함-2 {
    opacity: 0 !important;
    transform: translateX(18px) !important;
    filter: blur(2px) !important;
    transition: opacity 1s cubic-bezier(.22,1,.36,1),
                transform 1s cubic-bezier(.22,1,.36,1),
                filter 1s cubic-bezier(.22,1,.36,1) !important;
  }
  .transition-enter-복잡함-2.visible {
    opacity: 1 !important; transform: translateX(0) !important; filter: blur(0) !important;
  }

  /* 괜찮음 — 중앙에서 자연스럽게 퍼짐 */
  .transition-enter-괜찮음 {
    opacity: 0 !important;
    transform: scale(0.94) !important;
    filter: blur(1px) !important;
    transition: opacity 1.2s cubic-bezier(.22,1,.36,1),
                transform 1.2s cubic-bezier(.22,1,.36,1),
                filter 1.2s cubic-bezier(.22,1,.36,1) !important;
  }
  .transition-enter-괜찮음.visible {
    opacity: 1 !important; transform: scale(1) !important; filter: blur(0) !important;
  }


  /* 누르는 동안 화면 반응 오버레이 */
  /* 누르는 동안 레이어 — 손 떼면 사라짐 */
  #screen-react {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 4;
    opacity: 1;
    transition: filter 0.3s ease;
    --settle-progress: 0;
    --dwell-progress: 0;
    --settle-alpha: 0;
    --dwell-alpha: 0;
  }
  #screen-react::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 50% 46%,
        rgba(234,230,222,var(--dwell-alpha)) 0%,
        rgba(196,184,170,calc(var(--dwell-alpha) * .4)) 30%,
        rgba(0,0,0,0) 72%),
      rgba(8,8,12,var(--settle-alpha));
    opacity: 1;
    transition: backdrop-filter .45s ease, filter .8s ease;
    -webkit-backdrop-filter: saturate(calc(1 - var(--settle-progress) * .08)) contrast(calc(1 - var(--settle-progress) * .025));
            backdrop-filter: saturate(calc(1 - var(--settle-progress) * .08)) contrast(calc(1 - var(--settle-progress) * .025));
  }
  #screen-react.dwell-held::before {
    animation: dwellRest 4.8s ease-in-out infinite;
  }
  @keyframes dwellRest {
    0%, 100% { filter: brightness(.98); }
    50% { filter: brightness(1); }
  }
  #screen-react::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 44%,
      rgba(0,0,0,0.1) 0%,
      rgba(0,0,0,0.17) 44%,
      rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 750ms cubic-bezier(.45,0,.2,1);
  }
  #screen-react.closing-dim::after { opacity: 1; }
  /* transition 힌트 텍스트 */
  .transition-hint {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 11px; font-weight: 300;
    color: var(--text-muted); letter-spacing: .12em;
    opacity: 0;
    transition: opacity 1.2s ease 1s;
    margin-top: 40px;
  }
  .transition-hint.visible { opacity: 1; }

  /* transition 숨결 라인 */
  .transition-breath {
    position: relative;
    width: min(168px, 48vw);
    height: 22px;
    margin-top: 18px;
    opacity: 0;
    transition: opacity 0.8s ease;
  }
  .transition-breath.visible { opacity: 1; }
  .transition-breath-line {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      rgba(234,230,222,0),
      rgba(234,230,222,0.24) 18%,
      rgba(234,230,222,0.48) 50%,
      rgba(234,230,222,0.24) 82%,
      rgba(234,230,222,0)
    );
    opacity: 0;
    transform: translateY(-50%) scaleX(0.34);
    filter: blur(0.6px);
    transform-origin: center;
  }
  .transition-breath.visible .transition-breath-line {
    animation: transitionBreathLine 3.9s cubic-bezier(.45,0,.2,1) both;
  }
  .transition-text.space-open.visible {
    filter: blur(0);
    text-shadow: 0 0 14px rgba(234,230,222,0.055);
  }

  @keyframes transitionBreathLine {
    0% {
      opacity: 0;
      transform: translateY(-50%) scaleX(0.24);
      filter: blur(1.4px);
    }
    34% {
      opacity: 0.62;
      transform: translateY(-50%) scaleX(1);
      filter: blur(0.35px);
    }
    100% {
      opacity: 0;
      transform: translateY(-50%) scaleX(0.82);
      filter: blur(1.8px);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    body.weekly-scene-active .room-image {
      transform: translateX(-50%) scale(1) !important;
    }
  }
