/* ==========================================================================
   로그인 — 시네마 레이아웃 (body.login-cinema)

   화면 전체를 배경 연출이 덮고, 우측에 좁은 로그인 카드가 뜬다.

   ⚠ 정적으로 느껴지지 않게 하는 핵심은 **장면이 바뀌는 것**이다. 한 장면 안의 움직임만으로는
     아무리 정교해도 "정지 화면"으로 읽힌다(이전 시도에서 실제로 그렇게 느껴졌다).
     그래서 4개 장면을 5.2초마다 교대하고, 켜진 장면은 **느리게 확대**된다(Ken Burns).
   ⚠ 애니메이션은 transform/opacity/stroke-dashoffset 만 쓴다 — 레이아웃 재계산이 없어
     저사양 기기에서도 매끄럽다.
   ⚠ 실제 동영상으로 바꾸려면 `.lc-stage` 안에 <video autoplay muted loop playsinline> 을 넣고
     `.lc-scene` 들을 지우면 된다. 배경(.lc-sky/.lc-glow/.lc-grid)과 우측 카드(.lc-login)는
     그대로 쓸 수 있게 분리해 두었다.
   ========================================================================== */

/* ⚠⚠ `ironmd.css` 가 **`html, body { height:100%; overflow:hidden }`** 를 준다(앱 셸의 100dvh
     레이아웃 전용). 로그인 화면은 그 셸이 아닌데 같은 CSS 를 읽기 때문에 **html 에 직접** 걸린다.
     그래서 body 만 풀어도 스크롤이 살아나지 않는다 — 모바일에서 화면 밖으로 밀린 로그인 버튼을
     누를 수 없었던 진짜 원인이 이것이다(실측: html.overflowY = hidden, scrollHeight = clientHeight).
     이 파일은 **login.html 만** 읽으므로 여기서 html 을 되돌려도 다른 화면에 영향이 없다. */
html {
    height: auto;
}

.login-cinema {
    /* 배경이 화면을 덮으므로 스크롤을 만들지 않는다(좁은 화면에서는 아래에서 다시 허용) */
    min-height: 100vh;
    height: auto;
    margin: 0;
    overflow: hidden;
    background: #0b0f1c;
    color: #fff;
}

/* ------------------------------------------------------------------ 배경 무대 */
.lc-stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* 밑바탕 — 브랜드 인디고를 밤하늘처럼. 아주 느리게 흐른다(멀미가 나지 않는 속도). */
.lc-sky {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(60% 50% at 20% 20%, rgba(99, 102, 241, 0.45), transparent 70%),
        radial-gradient(50% 50% at 80% 30%, rgba(56, 189, 248, 0.28), transparent 70%),
        radial-gradient(60% 60% at 50% 90%, rgba(168, 85, 247, 0.3), transparent 70%),
        linear-gradient(160deg, #0b1020 0%, #111a35 55%, #0b0f1c 100%);
    animation: lcSky 34s ease-in-out infinite alternate;
}
@keyframes lcSky {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1.02);
    }
    to {
        transform: translate3d(2%, 1.5%, 0) scale(1.08);
    }
}

/* 떠다니는 광원 — 서로 다른 주기로 움직여 규칙성이 눈에 띄지 않게 한다 */
.lc-glow {
    position: absolute;
    width: 46vw;
    height: 46vw;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}
.lc-glow-a {
    left: -8vw;
    top: -10vw;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.75), transparent 65%);
    animation: lcFloatA 26s ease-in-out infinite alternate;
}
.lc-glow-b {
    right: -10vw;
    bottom: -14vw;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.55), transparent 65%);
    animation: lcFloatB 31s ease-in-out infinite alternate;
}
@keyframes lcFloatA {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(12vw, 8vh, 0) scale(1.15);
    }
}
@keyframes lcFloatB {
    from {
        transform: translate3d(0, 0, 0) scale(1.1);
    }
    to {
        transform: translate3d(-10vw, -10vh, 0) scale(1);
    }
}

/* 원근 격자 — 위로 흐른다. "계속 나아가는" 느낌을 배경에서 만든다. */
.lc-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(560px) rotateX(62deg) scale(2.4);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 62%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 62%);
    animation: lcGrid 7s linear infinite;
    opacity: 0.5;
}
@keyframes lcGrid {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 64px;
    }
}

/* ------------------------------------------------------------------ 장면 */
.lc-scene {
    position: absolute;
    /* ⚠ 폭을 고정하지 않는다. 620px 고정 + left:46% 로 두었더니 1280 화면에서
         무대 오른쪽이 로그인 카드(우측 380px) 아래로 50px 파고들었다.
         좌측 카피와 우측 카드 **사이**를 차지하게 두고, 안쪽(.lc-zoom)에서 폭을 제한한다. */
    left: 380px;
    right: 460px;
    top: 50%;
    height: 420px;
    margin-top: -210px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    /* ⚠ 불투명도만 바꾸면 "슬라이드가 갈린다"는 느낌이 약하다 → 살짝 **밀리고 눌린** 상태에서
         제자리로 온다. 나가는 장면은 반대쪽으로 빠진다(아래 is-out).
       ⚠ cubic-bezier 는 뒤로 살짝 넘치는 곡선 — 기계적인 ease 보다 손맛이 있다. */
    transform: translate3d(26px, 0, 0) scale(0.985);
    filter: blur(6px);
    transition:
        opacity 0.55s ease,
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.55s ease;
}
.lc-scene.is-on {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Ken Burns — 켜져 있는 동안만 느리게 확대·이동한다.
   ⚠ is-on 일 때만 애니메이션을 건다: 꺼진 장면까지 계속 돌리면 배터리를 낭비한다. */
.lc-zoom {
    width: 100%;
    /* 넓은 화면에서 무대가 한없이 커지지 않게 — 가운데 정렬로 남는 공간을 나눈다 */
    max-width: 620px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.94);
    opacity: 0.6;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.9s ease;
}
.lc-scene.is-on .lc-zoom {
    transform: scale(1);
    opacity: 1;
    animation: lcKen 5.6s ease-out forwards;
}
@keyframes lcKen {
    from {
        transform: scale(1) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.06) translate3d(-8px, -6px, 0);
    }
}

/* 씬① 기기 무대 — 원래 카드 안에서 쓰던 것을 그대로 재활용한다.

   ⚠⚠ **폭을 280px 로 고정해야 한다.** 이 무대의 기기 배치는 px 절대좌표이고
     hub 중심 (140,112) = **폭 280 전제**로 잡혀 있다(login.css). 그리고 태블릿만
     `right: 0` 이라, 폭을 넓히면 **태블릿 혼자 오른쪽으로 밀려난다**(사용자가 신고한 증상).
     문서가 오가는 애니메이션 궤적도 "오른쪽으로 102px" 처럼 px 로 잡혀 있어 폭이 바뀌면 빗나간다.
     → 크기는 **scale 로만** 키운다. 280×250 × 1.5 = 420×375 로 무대(440×420) 안에 들어간다. */
.lc-scene .lp-stage {
    width: 280px;
    height: 250px;
    margin: 0;
    transform: scale(1.5);
    transform-origin: center;
}

/* 태블릿만 허브에서 더 멀었다(원래 좌표계가 `right:0` 이라 폭 끝에 붙는다 → 중심거리 120,
   데스크탑은 102). 확대하면 그 차이도 1.5배로 벌어져 "혼자 떨어져 보인다".
   → 18px 당겨 좌우 거리를 맞춘다(280-18-20=242 → 허브 140 에서 102, 데스크탑과 동일).
   ⚠ 원본 login.css 는 건드리지 않는다 — 이 배치는 시네마 무대(확대 사용)에만 해당한다. */
.lc-scene .lp-dev[data-kind='tablet'] {
    right: 18px;
}

/* ------------------------------------------------------ 씬②: 원문 → 결과 */
.lc-split {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.lc-pane {
    flex: 1;
    min-width: 0;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    backdrop-filter: blur(6px);
}
.lc-pane-bar {
    display: flex;
    gap: 5px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.06);
}
.lc-pane-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}
.lc-code,
.lc-render {
    padding: 14px 16px;
    min-height: 168px;
}
.lc-code {
    font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.82);
}
.lc-code b {
    color: #a5b4fc;
    font-weight: 500;
}
/* 한 줄씩 나타난다 — "지금 타이핑되는 중" 으로 읽히게 */
.lc-cl {
    opacity: 0;
    transform: translateX(-6px);
}
.lc-scene.is-on .lc-cl {
    animation: lcLine 0.5s ease forwards;
}
.lc-scene.is-on .lc-d1 {
    animation-delay: 0.5s;
}
.lc-scene.is-on .lc-d2 {
    animation-delay: 1s;
}
.lc-scene.is-on .lc-d3 {
    animation-delay: 1.5s;
}
.lc-scene.is-on .lc-d4 {
    animation-delay: 2s;
}
@keyframes lcLine {
    to {
        opacity: 1;
        transform: none;
    }
}
.lc-cur {
    display: inline-block;
    width: 6px;
    height: 1em;
    margin-left: 2px;
    background: #a5b4fc;
    vertical-align: -2px;
    animation: lcBlink 1s step-end infinite;
}
@keyframes lcBlink {
    50% {
        opacity: 0;
    }
}
.lc-arrow {
    flex: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.25rem;
    animation: lcNudge 1.6s ease-in-out infinite;
}
@keyframes lcNudge {
    50% {
        transform: translateX(4px);
    }
}

/* 결과 쪽 — 원문과 같은 박자로 나타난다(lc-d1~d4 를 함께 쓴다) */
.lc-render .lc-h1 {
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    margin-bottom: 8px;
}
.lc-render .lc-h2 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c7d2fe;
    margin-bottom: 6px;
}
.lc-render .lc-li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}
.lc-render .lc-li i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #818cf8;
    flex: none;
}
.lc-render .lc-li b {
    color: #34d399;
}
.lc-render > * {
    opacity: 0;
}
.lc-scene.is-on .lc-render > * {
    animation: lcLine 0.5s ease forwards;
}
.lc-tbl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin-top: 8px;
}
.lc-tbl span {
    height: 13px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
}
.lc-tbl span:nth-child(-n + 2) {
    background: rgba(129, 140, 248, 0.4);
}

/* ------------------------------------------------------- 씬③: 함께 본다 */
.lc-share {
    position: relative;
    width: 420px;
    height: 240px;
}
.lc-doc-card {
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2433;
    font-weight: 600;
    font-size: 0.8125rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.lc-doc-card .ti {
    color: #4f46e5;
    font-size: 1.1rem;
}
/* 선이 그려지며 뻗어나간다 — stroke-dashoffset 은 레이아웃을 건드리지 않는다 */
.lc-wires {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.lc-wires path {
    fill: none;
    stroke: rgba(165, 180, 252, 0.75);
    stroke-width: 1.6;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
}
.lc-scene.is-on .lc-wires path {
    animation: lcWire 1.1s ease forwards;
}
.lc-scene.is-on .lc-wires path:nth-child(2) {
    animation-delay: 0.25s;
}
.lc-scene.is-on .lc-wires path:nth-child(3) {
    animation-delay: 0.5s;
}
.lc-scene.is-on .lc-wires path:nth-child(4) {
    animation-delay: 0.75s;
}
@keyframes lcWire {
    to {
        stroke-dashoffset: 0;
    }
}
.lc-people {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: space-around;
    padding: 0 18px;
}
.lc-av {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #fff;
    background: linear-gradient(140deg, #6366f1, #22d3ee);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: scale(0.6);
}
.lc-scene.is-on .lc-av {
    animation: lcPop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
    animation-delay: calc(0.9s + var(--d));
}
@keyframes lcPop {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------------------- 씬④: 링크 하나로 */
.lc-link {
    width: 100%;
    max-width: 480px;
}
.lc-link-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2433;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
    font-size: 0.8125rem;
}
.lc-link-bar > .ti-lock {
    color: #10b981;
}
.lc-link-url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.lc-link-url b {
    color: #4f46e5;
}
.lc-link-copy {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    animation: lcNudge 1.8s ease-in-out infinite;
}
.lc-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.lc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(8px);
}
.lc-scene.is-on .lc-chip {
    animation: lcPop 0.5s ease forwards;
    animation-delay: calc(0.5s + var(--d));
}

/* ------------------------------------------------------------------ 좌측 카피 */
.lc-copy {
    position: fixed;
    left: clamp(28px, 6vw, 96px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    /* ⚠ width 를 반드시 준다. max-width 만 두었더니 폭이 161px 로 찌그러졌다 —
         안의 .lc-cap 들이 position:absolute 라 부모 폭에 전혀 기여하지 않기 때문이다
         (fixed 요소는 내용에 맞춰 줄어든다). 그러면 제목이 한 글자씩 꺾인다.
       ⚠⚠ **폭을 넓혔다**(2026-09-08 지시: *"좌측에 메시지 말이야 너무 짧게 줄내림을 하는것
         같아. 좀 화면 사이즈에 맞춰 좀 길게 보여줘도 되는데"*). 종전 `min(30ch, 32vw)` 는
         한글에서 `ch`(숫자 0 폭) 가 실제 글자보다 좁아 제목이 세 줄로 꺾였다.
         → **픽셀로 잡는다.** 우측 로그인 칸과 겹치지 않는 선이 화면의 44% 다. */
    width: min(560px, 44vw);
}
.lc-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}
.lc-brand .md-brand-thin {
    font-weight: 300;
    opacity: 0.85;
}

/* 카피도 장면과 함께 넘어간다 — 겹쳐 두고 켜진 것만 보여준다
   (자리를 차지한 채 바뀌어야 글이 위아래로 흔들리지 않는다) */
.lc-caps {
    position: relative;
    min-height: 190px;
}
.lc-cap {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
}
.lc-cap.is-on {
    opacity: 1;
    transform: none;
}
.lc-cap h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    font-weight: 700;
    line-height: 1.32;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    /* ⚠ 줄을 **폭이 정하게** 둔다(`<br>` 를 문장에서 뺐다 — 위 `.lc-copy` 주석 참고).
         `balance` 는 두 줄이 될 때 길이를 고르게 나눠 준다("어디서 쓰든 한 / 곳에 모여요"
         처럼 한쪽만 긴 모양을 막는다). */
    text-wrap: balance;
}
.lc-cap p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.lc-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* ⚠ 종전에는 단추 자체가 4px 짜리 막대였다 — 실측 높이 4px 으로, 손가락으로 누를 수 없었다
     (2026-09-09 UI/UX 검토. 프로젝트 CLAUDE.md §3.2.2 의 최소 28px 위반).
   → **단추는 히트 영역**(28px)으로 두고 보이는 막대는 `::before` 로 그린다. 모양은 그대로다. */
.lc-dots button {
    display: grid;
    place-items: center;
    width: 26px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: width 0.3s ease;
}
.lc-dots button::before {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: background 0.3s ease;
}
.lc-dots button.is-on {
    width: 40px;
}
.lc-dots button.is-on::before {
    background: #a5b4fc;
}

/* ------------------------------------------------------------ 우측 로그인 카드 */
.lc-login {
    position: fixed;
    right: clamp(24px, 4vw, 72px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 380px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.lc-login-card {
    background: var(--theme-body-bg, #fff);
    color: var(--theme-body-color, #1f2433);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    /* 어두운 배경 위에 놓이므로 경계가 사라지지 않게 테두리를 살짝 밝게 */
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.lc-login-card .card-body {
    padding: 28px 26px;
}
.lc-login-card .text-muted {
    color: var(--theme-secondary-color, #6b7280) !important;
}

/* ---------------------------------------------------------------- 반응형
   좁은 화면에서는 연출을 접고 로그인만 남긴다 — 작은 화면에서 배경 애니메이션은
   읽기를 방해하고, 고정 배치한 카드가 화면 밖으로 밀린다. */
@media (max-width: 1199.98px) {
    /* ⚠⚠ 여기서 **overflow 를 완전히 풀어야** 한다. `overflow-y: auto` 로만 덮었더니
         body 의 `overflow: hidden`(위쪽 기본값)이 **viewport 로 전파돼 html 까지 hidden** 이 되고,
         body 만 스크롤 컨테이너가 됐다. 그 결과 **모바일에서 스크롤이 먹지 않아
         화면 밖(y=850)의 로그인 버튼을 누를 수 없었다**(실측: 문서 812 / 카드 하단 1057).
         → visible 로 두어 문서 흐름이 늘어나고 html 이 정상적으로 스크롤하게 한다. */
    /* html 과 body **둘 다** 풀어야 스크롤이 산다(위 머리말 참조) */
    html,
    .login-cinema {
        overflow: visible;
        height: auto;
    }
    /* ⚠⚠ `static` 이 아니라 **`relative`** 로 둔다. static 요소는 `z-index` 가 무시되므로
         `position: fixed` 인 배경(.lc-stage)이 위로 올라와 **로그인 폼을 덮는다.**
         실측에서 로그인 버튼 자리를 히트테스트하면 `.lc-sky`(배경)가 잡혔다 — 즉 폼을
         누를 수 없는 상태였다. 이것이 "모바일에서 로그인창이 이상하다"의 실제 원인 중 하나다. */
    .lc-copy {
        position: relative;
        z-index: 2;
        transform: none;
        /* ⚠⚠ `left`·`top` 도 함께 되돌린다. `position: relative` 에서도 `left` 는 그대로
             먹으므로, 넓은 화면용 `left: clamp(28px, 6vw, 96px)` 이 남아 있으면
             **폭은 맞는데 통째로 밀려** 가로 스크롤이 생긴다.
             실측(2026-09-09, 517px): left 31.02px + width 502px → 문서 폭 533px > 창 517px.
             폰(575px 이하)은 전용 로그인 페이지로 갈라지므로 **576~767px 구간에서만** 나타났다. */
        left: 0;
        top: auto;
        /* ⚠ width 도 반드시 되돌린다. 넓은 화면용 `min(30ch, 32vw)` 가 남아 있어
             375px 기기에서 120px 로 찌그러졌고 제목이 한 글자씩 세로로 쌓였다. */
        width: auto;
        max-width: none;
        padding: 28px 24px 0;
        margin: 0 auto;
    }
    .lc-caps {
        min-height: 0;
    }
    .lc-cap {
        position: static;
        display: none;
    }
    .lc-cap.is-on {
        display: block;
    }
    .lc-login {
        position: relative; /* static 이면 z-index 가 무시돼 배경에 덮인다(위 주석 참조) */
        z-index: 3;
        transform: none;
        width: min(420px, calc(100% - 32px));
        max-height: none; /* 고정 배치일 때의 높이 제한을 풀어야 카드가 잘리지 않는다 */
        overflow: visible; /* 카드가 문서 흐름에 있으니 내부 스크롤이 필요 없다 */
        margin: 24px auto 40px;
    }
    /* 무대는 이 폭부터 감춘다 — `left/right` 로 좌우 사이를 차지하게 만든 배치라
       카피·카드가 문서 흐름으로 내려오면 화면 가운데에 떠서 카드와 겹친다
       (예전 991px 기준으로는 태블릿에서 겹친 채 남았다). */
    .lc-scene {
        display: none;
    }
}
@media (max-width: 991.98px) {
    .lc-grid {
        display: none;
    }
    .lc-copy {
        text-align: center;
        padding-top: 22px;
    }
    .lc-brand {
        justify-content: center;
        margin-bottom: 14px;
    }
    /* 좁은 화면에서는 **로그인이 목적**이다. 설명 문장과 장면 점은 자리만 차지하므로
       제목 한 줄만 남기고 카드를 위로 올린다. */
    .lc-cap h2 {
        font-size: 1.25rem;
    }
    .lc-cap p,
    .lc-dots {
        display: none;
    }
    /* ⚠⚠ **진행바도 가운데로 옮긴다**(2026-09-11 신고: *"브라우저가 작아질때 진행율이
         가운데 있지않고 따로 노는데?"*). 이 폭부터 `.lc-copy` 가 `text-align: center` 로
         바뀌는데, `text-align` 은 **인라인 내용만** 가운데로 보낸다 — 진행바는 블록이고
         `max-width: 320px` 가 걸려 있어 **왼쪽에 그대로 붙어 있었다.**
         로고·제목은 가운데인데 바만 왼쪽이라 따로 노는 것으로 보인다. */
    .lc-prog {
        margin-inline: auto;
    }
    .lc-login {
        margin: 16px auto 32px;
    }
}

/* 폰 — **스크롤 없이 한 화면에 들어가는 것**이 목표다. 스크롤은 살려 두었지만(오류 메시지가
   뜨면 넘칠 수 있다), 로그인 화면에서 버튼을 찾아 스크롤해야 하는 것은 그 자체로 불편하다.
   실측(375×667): 여백을 줄이기 전 문서 높이 840 → 뷰포트를 173px 초과했다. */
@media (max-width: 575.98px) {
    .lc-copy {
        padding: 16px 20px 0;
    }
    .lc-brand {
        font-size: 1.0625rem;
        margin-bottom: 10px;
    }
    .lc-cap h2 {
        font-size: 1.125rem;
        margin-bottom: 0;
    }
    .lc-login {
        margin: 12px auto 24px;
    }
    .lc-login-card .card-body {
        padding: 20px 18px;
    }
    /* Bootstrap 유틸리티(mb-4/mt-4)가 만든 큰 여백을 이 화면에서만 좁힌다 */
    .lc-login-card .auth-brand {
        margin-bottom: 1rem !important;
    }
    .lc-login-card .auth-brand h4 {
        font-size: 1.0625rem;
    }
    .lc-login-card .login-note {
        margin-top: 0.75rem !important;
    }
    .lc-login-card .text-muted.fs-xs.mt-4 {
        margin-top: 1rem !important;
    }
}

/* 움직임을 원치 않는 사용자 — 모든 연출을 정지한다(장면 전환도 JS 에서 멈춘다) */
@media (prefers-reduced-motion: reduce) {
    .lc-sky,
    .lc-glow,
    .lc-grid,
    .lc-zoom,
    .lc-cl,
    .lc-av,
    .lc-chip,
    .lc-cur,
    .lc-arrow,
    .lc-link-copy,
    .lc-wires path {
        animation: none !important;
    }
    .lc-cl,
    .lc-av,
    .lc-chip,
    .lc-render > * {
        opacity: 1 !important;
        transform: none !important;
    }
    .lc-wires path {
        stroke-dashoffset: 0 !important;
    }
}

/* ==========================================================================
   와이드 화면 — 무대를 화면에 맞춰 키운다

   문제(실측 2560×1080): 카피 끝(328) ~ 카드 시작(2108) 사이 **가용폭 1780px** 인데
   무대는 `.lc-zoom { max-width:620px }` 에 묶여 620px 만 썼다 → **1160px 를 버렸고**
   애니메이션이 한가운데 작게 떠 보였다.

   ⚠ 씬① 기기 무대(.lp-stage)는 **px 절대좌표**라 width 를 바꿀 수 없다(태블릿만 밀려난다 —
     위쪽 주석 참조). 그래서 **scale 로만** 키운다. 나머지 씬은 유동 폭이라 max-width 로 키운다.
   ⚠ 높이 조건(min-height)을 함께 건다. 무대는 250px × scale 로 세로도 같이 커지므로,
     세로가 짧은 와이드 화면에서 조건 없이 키우면 위아래가 잘린다.
   ⚠ `.lc-scene` 의 height 도 같이 키운다 — 안 키우면 커진 내용이 영역을 넘친다.
   ========================================================================== */
@media (min-width: 1600px) and (min-height: 760px) {
    .lc-scene {
        left: 420px;
        right: 500px;
        height: 520px;
        margin-top: -260px;
    }
    .lc-zoom {
        max-width: 820px;
    }
    .lc-scene .lp-stage {
        transform: scale(1.95);
    }
    .lc-share {
        width: 520px;
        height: 300px;
    }
    .lc-link {
        max-width: 600px;
    }
    .lc-code,
    .lc-render {
        min-height: 210px;
    }
    .lc-code {
        font-size: 0.8125rem;
    }
    /* 카피도 함께 키운다 — 무대만 커지면 좌측이 초라해 보인다 */
    .lc-copy {
        width: min(34ch, 30vw);
    }
}

@media (min-width: 2000px) and (min-height: 860px) {
    .lc-scene {
        left: 480px;
        right: 560px;
        height: 640px;
        margin-top: -320px;
    }
    .lc-zoom {
        max-width: 1020px;
    }
    .lc-scene .lp-stage {
        transform: scale(2.45);
    }
    .lc-share {
        width: 620px;
        height: 350px;
    }
    .lc-link {
        max-width: 720px;
    }
    .lc-code,
    .lc-render {
        min-height: 250px;
    }
    .lc-code {
        font-size: 0.875rem;
    }
    .lc-av {
        width: 56px;
        height: 56px;
        font-size: 1.125rem;
    }
}

@media (min-width: 2560px) and (min-height: 960px) {
    .lc-scene {
        left: 540px;
        right: 620px;
        height: 760px;
        margin-top: -380px;
    }
    .lc-zoom {
        max-width: 1240px;
    }
    .lc-scene .lp-stage {
        transform: scale(2.95);
    }
    .lc-share {
        width: 740px;
        height: 420px;
    }
    .lc-link {
        max-width: 860px;
    }
    .lc-code,
    .lc-render {
        min-height: 300px;
    }
    .lc-code {
        font-size: 0.9375rem;
    }
    .lc-av {
        width: 64px;
        height: 64px;
        font-size: 1.25rem;
    }
    .lc-doc-card {
        font-size: 0.9375rem;
        padding: 13px 20px;
    }
    .lc-link-bar {
        font-size: 0.9375rem;
        padding: 16px 20px;
    }
}

/* 초와이드(3440 이상) — 여기서 더 키우면 글자가 우스꽝스러워진다.
   무대만 조금 더 키우고 **텍스트 크기는 올리지 않는다.** */
@media (min-width: 3200px) and (min-height: 1000px) {
    .lc-scene {
        left: 620px;
        right: 700px;
        height: 860px;
        margin-top: -430px;
    }
    .lc-zoom {
        max-width: 1480px;
    }
    .lc-scene .lp-stage {
        transform: scale(3.4);
    }
    .lc-share {
        width: 860px;
        height: 480px;
    }
}

/* ==========================================================================
   추가 장면 ⑤~⑧ — 차트 · 보안 문서 · 알림 · 외부 연동

   ⚠⚠ **켜진 장면 안에서만** 움직이게 한다(`.lc-scene.is-on` 하위에만 animation).
     꺼진 장면까지 계속 돌리면 배터리를 먹고, 다시 켜졌을 때 **중간부터 보인다**
     (애니메이션이 이미 진행돼 있어서 "처음부터 자라나는" 맛이 사라진다).
   ⚠ transform / opacity / stroke-dashoffset 만 쓴다 — 레이아웃 재계산이 없다.
   ⚠ 움직임을 원치 않는 사용자는 파일 끝의 prefers-reduced-motion 에서 전부 멈춘다.
   ========================================================================== */

/* ------------------------------------------------------------------ ⑤ 차트 */
.lc-chart {
    width: min(520px, 78vw);
    padding: 22px 24px 26px;
    border-radius: 18px;
    background: rgba(10, 14, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.lc-chart-head {
    font: 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 18px;
}
.lc-chart-fence {
    display: block;
    color: #818cf8;
}
.lc-chart-typing {
    display: block;
    white-space: nowrap;
    overflow: hidden;
}
/* 글자가 실제로 쳐지는 것처럼 — 폭을 늘려 보여준다 */
.lc-scene.is-on .lc-chart-typing {
    animation: lcType 2.6s steps(28) 0.2s both;
}
@keyframes lcType {
    from { max-width: 0; }
    to   { max-width: 30ch; }
}

.lc-chart-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr auto;
    gap: 20px;
    align-items: end;
    height: 132px;
}

/* 막대 — 아래에서 자라난다 */
.lc-bars {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    height: 100%;
}
.lc-bars span {
    flex: 1;
    height: var(--h);
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #818cf8, #4f46e5);
    transform-origin: bottom;
    transform: scaleY(0);
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.35);
}
.lc-scene.is-on .lc-bars span {
    animation: lcGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d) both;
}
@keyframes lcGrow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

/* 라인 — 선이 그려지고 끝점이 뛴다 */
.lc-spark {
    width: 100%;
    height: 100%;
}
.lc-spark-line {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}
.lc-scene.is-on .lc-spark-line {
    animation: lcDraw 1.5s ease-out 0.5s both;
}
@keyframes lcDraw {
    to { stroke-dashoffset: 0; }
}
.lc-spark-dot {
    fill: #38bdf8;
    opacity: 0;
}
.lc-scene.is-on .lc-spark-dot {
    animation: lcPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s both, lcBlip 1.8s ease-in-out 2.4s infinite;
}
@keyframes lcPop {
    from { opacity: 0; r: 0; }
    to   { opacity: 1; r: 3.5; }
}
@keyframes lcBlip {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* 도넛 — 원호가 돌아간다 */
.lc-donut {
    width: 78px;
    height: 78px;
}
.lc-donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.lc-donut-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 7;
}
.lc-donut-fg {
    fill: none;
    stroke: #a855f7;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 100.5;
    stroke-dashoffset: 100.5;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}
.lc-scene.is-on .lc-donut-fg {
    animation: lcArc 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}
@keyframes lcArc {
    to { stroke-dashoffset: 32; }
}

/* -------------------------------------------------------------- ⑥ 보안 문서 */
.lc-sec {
    position: relative;
    width: min(460px, 76vw);
    padding: 26px 28px 24px;
    border-radius: 18px;
    background: rgba(10, 14, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.lc-sec-doc {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}
/* 평문 → 암호문. 두 겹을 겹쳐 두고 **교차 전환**한다(자리 이동이 없어 매끄럽다). */
.lc-sec-line {
    position: relative;
    height: 20px;
    font: 13px/20px 'Pretendard Variable', Pretendard, system-ui, sans-serif;
}
.lc-sec-line > span {
    position: absolute;
    inset: 0;
    white-space: nowrap;
}
.lc-plain {
    color: rgba(255, 255, 255, 0.88);
}
.lc-cipher {
    color: #818cf8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.06em;
    opacity: 0;
    filter: blur(3px);
}
.lc-scene.is-on .lc-plain {
    animation: lcFadeOut 0.5s ease-in calc(1.5s + var(--d, 0s)) both;
}
.lc-scene.is-on .lc-cipher {
    animation: lcCipher 0.7s ease-out calc(1.6s + var(--d, 0s)) both;
}
@keyframes lcFadeOut {
    from { opacity: 1; filter: blur(0); }
    to   { opacity: 0; filter: blur(4px); }
}
@keyframes lcCipher {
    from { opacity: 0; filter: blur(6px); transform: translateX(4px); }
    to   { opacity: 1; filter: blur(0); transform: none; }
}

/* 자물쇠 — 고리가 내려와 잠기고, 파문이 한 번 퍼진다 */
.lc-sec-lock {
    position: absolute;
    right: 26px;
    top: 22px;
    width: 46px;
    height: 52px;
}
.lc-sec-shackle {
    position: absolute;
    left: 50%;
    top: 0;
    width: 24px;
    height: 22px;
    margin-left: -12px;
    border: 3px solid #818cf8;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    transform: translateY(-6px);
}
.lc-scene.is-on .lc-sec-shackle {
    animation: lcShackle 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both;
}
@keyframes lcShackle {
    from { transform: translateY(-10px); }
    to   { transform: translateY(0); }
}
.lc-sec-body {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(180deg, #6366f1, #4338ca);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
}
.lc-sec-pulse {
    position: absolute;
    left: 50%;
    bottom: 17px;
    width: 46px;
    height: 46px;
    margin-left: -23px;
    margin-bottom: -23px;
    border-radius: 50%;
    border: 2px solid rgba(129, 140, 248, 0.7);
    opacity: 0;
}
.lc-scene.is-on .lc-sec-pulse {
    animation: lcRipple 1.8s ease-out 1.7s infinite;
}
@keyframes lcRipple {
    from { transform: scale(0.6); opacity: 0.8; }
    to   { transform: scale(2.4); opacity: 0; }
}
.lc-sec-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------------ ⑦ 알림 */
.lc-notify {
    position: relative;
    display: flex;
    align-items: center;
    /* ⚠⚠ 궤적이 **지나갈 자리**를 비워 둔다. 예전에는 gap 이 18px 이라 궤적 SVG 가
         받는 쪽 카드 **아래에 깔려** 아예 안 보였다(실측: SVG x512~790, 카드 x541~).
         칸을 벌리고 그 사이로 날아가게 한다. */
    gap: 116px;
    width: min(600px, 84vw);
}
.lc-nt-from {
    flex: none;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    gap: 2px;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #c7d2fe;
    font-size: 12px;
}
.lc-nt-from i {
    font-size: 24px;
    color: #818cf8;
}
.lc-scene.is-on .lc-nt-from {
    animation: lcNudge 2.6s ease-in-out 0.4s infinite;
}
@keyframes lcNudge {
    0%, 100%   { transform: none; }
    12%        { transform: scale(1.06); }
    24%        { transform: none; }
}

/* 궤적 — 점선이 그려진다 */
.lc-nt-path {
    position: absolute;
    left: 78px;
    top: 4px;
    width: 190px;
    height: 96px;
    pointer-events: none;
    /* ⚠ 카드보다 **위**에 둔다 — 아래에 두면 카드 배경이 덮는다(위 주석의 그 문제) */
    z-index: 2;
}
.lc-nt-trail {
    fill: none;
    stroke: rgba(129, 140, 248, 0.55);
    stroke-width: 2;
    stroke-dasharray: 5 7;
    stroke-dashoffset: 240;
}
.lc-scene.is-on .lc-nt-trail {
    animation: lcTrail 1.1s ease-out 0.3s both, lcTrailFlow 2.4s linear 1.4s infinite;
}
@keyframes lcTrail {
    from { stroke-dashoffset: 240; }
    to   { stroke-dashoffset: 0; }
}
@keyframes lcTrailFlow {
    to { stroke-dashoffset: -48; }
}

/* 쪽지가 날아간다 */
.lc-nt-fly {
    position: absolute;
    z-index: 3;
    left: 80px;
    top: 24px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(180deg, #6366f1, #4338ca);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 10px 26px rgba(67, 56, 202, 0.5);
    opacity: 0;
}
.lc-scene.is-on .lc-nt-fly {
    animation: lcFly 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s infinite;
}
@keyframes lcFly {
    0%   { opacity: 0; transform: translate(0, 20px) scale(0.7); }
    12%  { opacity: 1; }
    55%  { transform: translate(84px, -22px) scale(1); }
    88%  { opacity: 1; transform: translate(166px, 6px) scale(0.9); }
    100% { opacity: 0; transform: translate(166px, 6px) scale(0.9); }
}

/* 받는 쪽 */
.lc-nt-to {
    flex: 1;
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(10, 14, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.lc-nt-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: #e0e7ff;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
}
.lc-nt-toast i {
    flex: none;
    color: #818cf8;
}
.lc-scene.is-on .lc-nt-toast {
    animation: lcToast 2.2s ease-out 2.5s infinite;
}
@keyframes lcToast {
    0%        { opacity: 0; transform: translateY(-6px); }
    14%, 70%  { opacity: 1; transform: none; }
    100%      { opacity: 0; transform: translateY(-4px); }
}
.lc-nt-list {
    display: grid;
    gap: 7px;
}
.lc-nt-row {
    height: 9px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
}
.lc-nt-row.is-new {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 9px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #818cf8;
    font-size: 11px;
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
}
.lc-scene.is-on .lc-nt-row.is-new {
    animation: lcRow 2.2s cubic-bezier(0.22, 1, 0.36, 1) 2.7s infinite;
}
@keyframes lcRow {
    0%       { transform: scaleX(0); opacity: 0; }
    18%, 76% { transform: scaleX(1); opacity: 1; }
    100%     { transform: scaleX(1); opacity: 0.25; }
}

/* --------------------------------------------------------------- ⑧ 외부 연동 */
.lc-api {
    width: min(520px, 80vw);
}
.lc-api-term {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(6, 9, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    margin-bottom: 16px;
}
.lc-api-bar {
    display: flex;
    gap: 6px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.05);
}
.lc-api-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}
.lc-api-lines {
    padding: 16px 18px 20px;
    font: 12.5px/2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: rgba(255, 255, 255, 0.78);
}
.lc-api-ln {
    white-space: nowrap;
    opacity: 0;
}
.lc-api-ln b {
    color: #818cf8;
}
.lc-api-ok {
    color: #6ee7b7;
}
.lc-api-ok b {
    color: #34d399;
}
.lc-scene.is-on .lc-api-ln {
    animation: lcLine 0.5s ease-out both;
    animation-delay: 0.3s;
}
.lc-scene.is-on .lc-api-ln.lc-d1 { animation-delay: 0.9s; }
.lc-scene.is-on .lc-api-ln.lc-d3 { animation-delay: 1.9s; }
@keyframes lcLine {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: none; }
}
.lc-api-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------- 움직임을 줄이는 설정 */
@media (prefers-reduced-motion: reduce) {
    .lc-scene.is-on .lc-chart-typing,
    .lc-scene.is-on .lc-bars span,
    .lc-scene.is-on .lc-spark-line,
    .lc-scene.is-on .lc-spark-dot,
    .lc-scene.is-on .lc-donut-fg,
    .lc-scene.is-on .lc-plain,
    .lc-scene.is-on .lc-cipher,
    .lc-scene.is-on .lc-sec-shackle,
    .lc-scene.is-on .lc-sec-pulse,
    .lc-scene.is-on .lc-nt-from,
    .lc-scene.is-on .lc-nt-trail,
    .lc-scene.is-on .lc-nt-fly,
    .lc-scene.is-on .lc-nt-toast,
    .lc-scene.is-on .lc-nt-row.is-new,
    .lc-scene.is-on .lc-api-ln {
        animation: none !important;
    }
    /* 애니메이션을 끄면 both 로 채워지던 마지막 상태가 사라진다 → 보이게 고정한다 */
    .lc-chart-typing { max-width: none; }
    .lc-bars span    { transform: scaleY(1); }
    .lc-spark-line   { stroke-dashoffset: 0; }
    .lc-spark-dot    { opacity: 1; }
    .lc-donut-fg     { stroke-dashoffset: 32; }
    .lc-plain        { opacity: 0; }
    .lc-cipher       { opacity: 1; filter: none; }
    .lc-nt-trail     { stroke-dashoffset: 0; }
    .lc-nt-fly       { opacity: 1; transform: translate(150px, -26px); }
    .lc-nt-toast     { opacity: 1; }
    .lc-nt-row.is-new{ transform: scaleX(1); opacity: 1; }
    .lc-api-ln       { opacity: 1; }
}

/* ==========================================================================
   무대를 더 살아 있게 — 떠다니는 입자 · 훑고 지나가는 빛 · 진행 막대

   ⚠ 장면 전환만으로는 "다음 장면까지 멈춰 있다"는 느낌이 남는다. 배경에 **항상 조금씩
     움직이는 것**을 두면 정지 화면으로 읽히지 않는다. 단 시선을 뺏으면 안 되므로
     아주 느리고 아주 옅게 둔다.
   ⚠ 입자는 DOM 을 늘리지 않고 **radial-gradient 여러 겹**으로 만든다(요소 20개보다 가볍다).
   ========================================================================== */

/* 떠다니는 먼지 — 두 겹이 서로 다른 속도로 흐른다(시차) */
.lc-stage::before,
.lc-stage::after {
    content: '';
    position: absolute;
    inset: -30%;
    pointer-events: none;
    background-repeat: repeat;
}
.lc-stage::before {
    background-image:
        radial-gradient(1.6px 1.6px at 12% 22%, rgba(199, 210, 254, 0.55), transparent 60%),
        radial-gradient(1.4px 1.4px at 68% 14%, rgba(165, 243, 252, 0.45), transparent 60%),
        radial-gradient(1.8px 1.8px at 84% 62%, rgba(216, 180, 254, 0.5), transparent 60%),
        radial-gradient(1.3px 1.3px at 32% 78%, rgba(199, 210, 254, 0.4), transparent 60%),
        radial-gradient(1.5px 1.5px at 52% 44%, rgba(255, 255, 255, 0.35), transparent 60%);
    background-size: 620px 620px;
    animation: lcDust 46s linear infinite;
}
.lc-stage::after {
    background-image:
        radial-gradient(1.2px 1.2px at 24% 58%, rgba(255, 255, 255, 0.3), transparent 60%),
        radial-gradient(1.6px 1.6px at 76% 34%, rgba(129, 140, 248, 0.45), transparent 60%),
        radial-gradient(1.1px 1.1px at 44% 88%, rgba(165, 243, 252, 0.35), transparent 60%);
    background-size: 430px 430px;
    animation: lcDust 68s linear infinite reverse;
    opacity: 0.7;
}
@keyframes lcDust {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-620px, -280px, 0); }
}

/* 훑고 지나가는 빛 — 아주 가끔, 아주 옅게 */
.lc-sweep {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.055) 46%,
        rgba(199, 210, 254, 0.09) 50%,
        rgba(255, 255, 255, 0.055) 54%,
        transparent 62%
    );
    background-size: 260% 100%;
    animation: lcSweep 13s ease-in-out infinite;
}
@keyframes lcSweep {
    0%, 62%  { background-position: 190% 0; }
    100%     { background-position: -60% 0; }
}

/* 진행 막대 — 다음 장면까지 얼마나 남았는지 보인다(기다림이 지루하지 않게)
   ⚠ 장면이 바뀔 때 JS 가 `.is-run` 을 다시 붙여 처음부터 채운다. */
.lc-prog {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 2px;
    margin-top: 22px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.13);
    overflow: hidden;
}
.lc-prog span {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform: scaleX(0);
    border-radius: 2px;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
}
.lc-prog.is-run span {
    animation: lcProg var(--lc-dur, 5.6s) linear both;
}
@keyframes lcProg {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ⚠ 점(dot) 규칙을 여기서 다시 쓰지 않는다. 위쪽에 이미 `26px → 40px` 로 잘 되어 있는데
     뒤에 `width: 26px` 을 얹었더니 **활성/비활성이 같은 폭**이 됐다(실측 22/22).
     같은 것을 두 번 정의하면 뒤엣것이 이긴다 — 고칠 때는 원래 자리에서 고친다. */

/* 캡션 — 글자가 아래에서 올라오며 또렷해진다 */
.lc-cap h2,
.lc-cap p {
    transition:
        opacity 0.5s ease,
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.lc-cap:not(.is-on) h2,
.lc-cap:not(.is-on) p {
    opacity: 0;
    transform: translateY(10px);
}
.lc-cap.is-on h2 {
    transition-delay: 0.06s;
}
.lc-cap.is-on p {
    transition-delay: 0.16s;
}

/* ------------------------------------------------------ 씬 ⑨ · ONE AI (2026-09-08)
   ⚠ 흐름을 순서대로 보여준다: 질문이 떠오르고 → 답이 써지고 → 표가 그려지고 → 단추가 뜬다.
     `animation-delay` 로 박자를 맞춘다(장면이 5.6초 머무르므로 그 안에 끝나야 한다).
   ⚠ `.lc-scene.is-on` 안에서만 돌게 한다 — 꺼진 장면에서 미리 재생되면 다시 켤 때
     이미 끝난 상태로 보인다(다른 장면들과 같은 규칙). */
.lc-ai {
    width: min(460px, 82vw);
}
.lc-ai-panel {
    border-radius: 16px;
    padding: 14px 16px 16px;
    background: rgba(6, 9, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    margin-bottom: 16px;
}
.lc-ai-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* 패널 머리의 ONE AI 전체 로고 — 이 화면은 늘 어두운 바탕이라 **흰 글자 판**(`oneai-full-dark.png`)을 바로 쓴다 */
.lc-ai-brand {
    height: 20px;
    width: auto;
    display: block;
}
/* 소개 문장 속 워드마크 — 검정 글자를 어두운 바탕에 맞게 흰색으로 뒤집는다(마크가 없는 글자 판이라 filter 가 안전하다) */
.lc-oneai-word {
    height: 1em;
    width: auto;
    vertical-align: -0.12em;
    filter: invert(1);
}
.lc-ai-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    margin-left: auto;
    opacity: 0;
}
.lc-scene.is-on .lc-ai-dot {
    animation: lcAiBlink 1.6s ease-in-out 0.3s infinite;
}
@keyframes lcAiBlink {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* 내가 묻는 말 — 오른쪽에 붙은 말풍선 */
.lc-ai-ask {
    margin: 13px 0 0 auto;
    max-width: 84%;
    padding: 8px 12px;
    border-radius: 12px 12px 3px 12px;
    background: rgba(108, 92, 231, 0.34);
    border: 1px solid rgba(140, 130, 245, 0.4);
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
}
.lc-scene.is-on .lc-ai-ask {
    animation: lcPop 0.5s ease 0.25s forwards;
}

/* AI 가 쓰는 답 — 글줄이 차례로 늘어나고 그 뒤에 표가 그려진다 */
.lc-ai-say {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px 12px 12px 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    opacity: 0;
}
.lc-scene.is-on .lc-ai-say {
    animation: lcPop 0.45s ease 0.85s forwards;
}
.lc-ai-ln {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    width: 0;
}
.lc-ai-ln2 {
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.2);
}
.lc-scene.is-on .lc-ai-ln {
    animation: lcAiType 0.6s ease 1.1s forwards;
}
.lc-scene.is-on .lc-ai-ln2 {
    animation: lcAiType 0.5s ease 1.6s forwards;
    --lc-w: 62%;
}
@keyframes lcAiType {
    to { width: var(--lc-w, 88%); }
}

/* 표 — 칸이 하나씩 채워진다(마크다운 표를 만들어 준다는 뜻) */
.lc-ai-tbl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 10px;
}
.lc-ai-tbl > i {
    height: 13px;
    border-radius: 3px;
    background: rgba(140, 130, 245, 0.3);
    border: 1px solid rgba(140, 130, 245, 0.22);
    opacity: 0;
    transform: scale(0.9);
}
.lc-scene.is-on .lc-ai-tbl > i {
    animation: lcPop 0.32s ease forwards;
}
.lc-scene.is-on .lc-ai-tbl > i:nth-child(1) { animation-delay: 2.1s; }
.lc-scene.is-on .lc-ai-tbl > i:nth-child(2) { animation-delay: 2.2s; }
.lc-scene.is-on .lc-ai-tbl > i:nth-child(3) { animation-delay: 2.3s; }
.lc-scene.is-on .lc-ai-tbl > i:nth-child(4) { animation-delay: 2.42s; }
.lc-scene.is-on .lc-ai-tbl > i:nth-child(5) { animation-delay: 2.52s; }
.lc-scene.is-on .lc-ai-tbl > i:nth-child(6) { animation-delay: 2.62s; }
/* 첫 줄은 머리행처럼 진하게 — "표를 만들었다" 가 한눈에 읽히게 */
.lc-ai-tbl > i:nth-child(-n + 3) {
    background: rgba(140, 130, 245, 0.52);
}

.lc-ai-cur {
    display: inline-block;
    width: 2px;
    height: 12px;
    margin-top: 8px;
    background: #a99cff;
    opacity: 0;
}
.lc-scene.is-on .lc-ai-cur {
    animation: lcAiCaret 0.8s steps(1) 1.1s infinite;
}
@keyframes lcAiCaret {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* 답 아래 단추 — 실제 화면과 같은 두 개(문서로 저장 · 이 문서에 덮어쓰기) */
.lc-ai-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.lc-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    opacity: 0;
    transform: translateY(8px);
}
/* 덮어쓰기는 문서를 바꾸는 단추 → 앱 화면과 같은 색으로 성격을 알린다 */
.lc-ai-btn.is-over {
    color: #ff8b93;
    border-color: rgba(255, 139, 147, 0.45);
}
.lc-scene.is-on .lc-ai-btn {
    animation: lcPop 0.42s ease forwards;
}
.lc-scene.is-on .lc-ai-btn:nth-child(1) { animation-delay: 2.9s; }
.lc-scene.is-on .lc-ai-btn:nth-child(2) { animation-delay: 3.05s; }

@media (prefers-reduced-motion: reduce) {
    .lc-stage::before,
    .lc-stage::after,
    .lc-sweep,
    .lc-prog.is-run span {
        animation: none !important;
    }
    /* 씬 ⑨ — 움직임 없이도 **다 보이게** 둔다(안 보이면 장면이 빈 상자가 된다) */
    .lc-ai-ask,
    .lc-ai-say,
    .lc-ai-tbl > i,
    .lc-ai-btn,
    .lc-ai-dot {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .lc-ai-ln {
        animation: none !important;
        width: 88% !important;
    }
    .lc-ai-ln2 {
        width: 62% !important;
    }
    .lc-ai-cur {
        animation: none !important;
        opacity: 0 !important;
    }
    .lc-sweep { opacity: 0; }
    .lc-prog span { transform: scaleX(1); }
    .lc-scene {
        transform: none;
        filter: none;
    }
}
