        * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        body {
            background: #09090d;
            color: #f3f3f3;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            min-height: 100vh;
            min-height: 100dvh;
            margin: 0;
            padding: 20px 20px 30px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            text-align: center;
            overflow-x: hidden;
            position: relative;
        }

        .header {
            position: fixed;
            top: max(calc(env(safe-area-inset-top, 0px) + 10px), 18px);
            left: 50%;
            transform: translateX(-50%) translateY(-180%);
            width: min(94vw, 480px);
            max-width: 480px;
            max-height: 85vh;
            max-height: 85dvh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 16px 18px;
            z-index: 50000 !important;
            backdrop-filter: blur(28px);
            -webkit-backdrop-filter: blur(28px);
            background: rgba(14, 14, 22, 0.97);
            border-radius: 20px;
            border: 1px solid rgba(255, 123, 84, 0.45);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 28px rgba(255, 123, 84, 0.25);
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
            opacity: 0;
            pointer-events: none;
            box-sizing: border-box;
            scrollbar-width: none;
        }
        .header::-webkit-scrollbar { display: none; }
        .header.active {
            transform: translateX(-50%) translateY(0);
            opacity: 1 !important;
            pointer-events: auto !important;
            display: flex !important;
        }
        /* 상단 플로팅 미니멀 버튼 (설정 + 스크린리스/화면유지 토글 2개만, 평상시 초경량 반투명) */
        .top-summon-btn {
            position: fixed;
            top: max(calc(env(safe-area-inset-top, 0px) + 12px), 22px);
            right: 14px;
            z-index: 50001 !important;
            background: rgba(15, 15, 22, 0.35);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #ff9a76;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05rem;
            cursor: pointer;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            touch-action: manipulation;
            opacity: 0.38;
            pointer-events: auto;
        }
        .top-summon-btn:hover, .top-summon-btn:active {
            opacity: 1 !important;
            background: rgba(255, 123, 84, 0.35);
            border-color: #ff7b54;
            color: #fff;
            box-shadow: 0 0 16px rgba(255, 123, 84, 0.45);
            transform: scale(1.06);
        }
        .top-screenless-btn {
            position: fixed;
            top: max(calc(env(safe-area-inset-top, 0px) + 12px), 22px);
            right: 58px;
            z-index: 50001 !important;
            background: rgba(15, 15, 22, 0.35);
            border: 1px solid rgba(0, 242, 254, 0.25);
            color: #00f2fe;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05rem;
            cursor: pointer;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            touch-action: manipulation;
            opacity: 0.38;
            pointer-events: auto;
        }
        .top-screenless-btn:hover, .top-screenless-btn:active {
            opacity: 1 !important;
            background: rgba(0, 242, 254, 0.35);
            border-color: #00f2fe;
            color: #fff;
            box-shadow: 0 0 16px rgba(0, 242, 254, 0.45);
            transform: scale(1.06);
        }
        .top-screenless-btn.stay-screen-mode {
            border-color: rgba(255, 123, 84, 0.4) !important;
            background: rgba(15, 15, 22, 0.35) !important;
            color: #ff9a76 !important;
        }
        .top-screenless-btn.stay-screen-mode:hover, .top-screenless-btn.stay-screen-mode:active {
            border-color: #ff7b54 !important;
            background: rgba(255, 123, 84, 0.35) !important;
            box-shadow: 0 0 16px rgba(255, 123, 84, 0.45) !important;
        }
        .top-summon-btn.active,
        .header.active ~ .top-summon-btn,
        body:has(.header.active) .top-summon-btn,
        .header.active ~ .top-screenless-btn,
        body:has(.header.active) .top-screenless-btn {
            display: none !important;
            opacity: 0 !important;
            pointer-events: none !important;
            visibility: hidden !important;
        }
        .header-title {
            font-size: 1.05rem;
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #ff7b54;
            opacity: 0.95;
        }
        .badge {
            font-size: 0.75rem;
            padding: 4px 10px;
            border-radius: 12px;
            background: rgba(255, 123, 84, 0.15);
            color: #ff9a76;
            border: 1px solid rgba(255, 123, 84, 0.3);
        }

        .main-stage {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            width: 100%;
            max-width: 440px;
            z-index: 10;
            pointer-events: none;
            position: fixed;
            bottom: 84px;
            left: 50%;
            transform: translateX(-50%);
            margin: 0;
            padding: 0 16px;
        }

        /* 오라클 구체 비주얼라이저 */
        .orb-wrapper {
            position: relative;
            width: 220px;
            height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 35px;
        }

        .orb-glow {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 107, 107, 0.35) 0%, rgba(255, 142, 83, 0) 70%);
            filter: blur(25px);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .orb {
            position: relative;
            width: 170px;
            height: 170px;
            border-radius: 50%;
            background: radial-gradient(circle at 35% 35%, #ff7e5f 0%, #feb47b 45%, #ff5252 85%, #d43f3a 100%);
            box-shadow: 0 0 50px rgba(255, 94, 98, 0.65), inset 0 0 35px rgba(255, 255, 255, 0.4);
            animation: breathe 3.6s infinite ease-in-out;
            cursor: pointer;
            transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
        }

        /* 상태 1: 경청 중 (Listening) */
        .orb.listening {
            background: radial-gradient(circle at 35% 35%, #00f2fe 0%, #4facfe 50%, #0072ff 100%);
            box-shadow: 0 0 65px rgba(0, 242, 254, 0.8), inset 0 0 35px rgba(255, 255, 255, 0.6);
            animation: listenPulse 1.4s infinite ease-in-out;
        }
        .listening + .orb-glow, .orb-wrapper:has(.listening) .orb-glow {
            background: radial-gradient(circle, rgba(0, 242, 254, 0.45) 0%, rgba(79, 172, 254, 0) 70%);
        }

        /* 상태 2: 생각 중 (Thinking) */
        .orb.thinking {
            background: radial-gradient(circle at 40% 40%, #f77062 0%, #fe5196 50%, #9055ff 100%);
            box-shadow: 0 0 60px rgba(254, 81, 150, 0.75), inset 0 0 30px rgba(255, 255, 255, 0.5);
            animation: thinkRotate 2s infinite linear;
        }

        /* 상태 3: 말하는 중 (Speaking) */
        .orb.speaking {
            background: radial-gradient(circle at 35% 35%, #ff9966 0%, #ff5e62 45%, #e52d27 90%);
            box-shadow: 0 0 75px rgba(255, 120, 80, 0.9), inset 0 0 45px rgba(255, 255, 255, 0.7);
            animation: speakWave 0.75s infinite ease-in-out;
        }

        /* 상태 4: 음소거 (Muted) */
        .orb.muted {
            background: radial-gradient(circle at 35% 35%, #666 0%, #3e3e3e 70%, #222 100%);
            box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
            animation: none;
            filter: grayscale(0.85);
        }

        @keyframes breathe {
            0%, 100% { transform: scale(0.96); filter: brightness(0.95); }
            50% { transform: scale(1.04); filter: brightness(1.1); }
        }
        @keyframes listenPulse {
            0%, 100% { transform: scale(0.98); }
            50% { transform: scale(1.1); }
        }
        @keyframes thinkRotate {
            0% { transform: scale(1.0) rotate(0deg); }
            50% { transform: scale(1.05) rotate(180deg); }
            100% { transform: scale(1.0) rotate(360deg); }
        }
        @keyframes speakWave {
            0%, 100% { transform: scale(1.0); }
            50% { transform: scale(1.16); }
        }

        /* 노윤서 스타일 실사 아바타 몰입형 캔버스 (화면 전체 융합) */
        .avatar-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
            overflow: hidden;
            cursor: pointer;
            user-select: none;
            background: #09090d;
        }

        .avatar-ambient-glow {
            position: absolute;
            top: 36%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: min(85vw, 550px);
            height: min(85vw, 550px);
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 123, 84, 0.25) 0%, rgba(255, 154, 118, 0) 70%);
            filter: blur(60px);
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            z-index: 1;
        }

        .avatar-img-container {
            position: relative;
            width: 100%;
            height: 100%;
            max-width: 650px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }

        .avatar-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 25%;
            filter: brightness(0.98) contrast(1.02);
            z-index: 2;
            pointer-events: none;
        }

        .avatar-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 25%;
            filter: brightness(0.98) contrast(1.03);
            transition: opacity 0.4s ease, filter 0.5s ease;
            animation: livingBreathe 5.8s infinite ease-in-out;
            mask-image: none !important;
            -webkit-mask-image: none !important;
            transform-origin: center 35%;
            will-change: transform, filter;
        }

        .avatar-img-active {
            opacity: 1 !important;
            z-index: 2;
            pointer-events: auto;
        }

        .avatar-img-inactive {
            opacity: 0 !important;
            z-index: 1;
            pointer-events: none;
        }

        /* 시네마틱 비네팅 오버레이 */
        .avatar-vignette {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(9, 9, 13, 0.25) 0%, transparent 18%, transparent 75%, rgba(9, 9, 13, 0.55) 100%);
            pointer-events: none;
            z-index: 3;
        }

        /* 은은하게 스쳐 지나가는 자연스러운 실크 조명/빛 스침 애니메이션 */
        .avatar-living-sheen {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(125deg, transparent 25%, rgba(255, 230, 215, 0.07) 48%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 230, 215, 0.07) 52%, transparent 75%);
            background-size: 300% 300%;
            animation: livingSheenSweep 9.5s infinite ease-in-out;
            pointer-events: none;
            z-index: 4;
            mix-blend-mode: soft-light;
        }
        @keyframes livingSheenSweep {
            0% { background-position: 0% 0%; opacity: 0.25; }
            50% { background-position: 100% 100%; opacity: 0.8; }
            100% { background-position: 0% 0%; opacity: 0.25; }
        }

        /* 사진 배지 완전 제거 (실제 상황 화면 구현) */
        .photo-change-btn, #photoChangeBtn {
            display: none !important;
        }
        .photo-toast {
            position: fixed;
            top: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(-20px);
            background: rgba(18, 18, 26, 0.92);
            border: 1px solid rgba(255, 123, 84, 0.45);
            color: #ff9a76;
            font-size: 0.85rem;
            font-weight: 700;
            padding: 8px 20px;
            border-radius: 20px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 50005;
        }
        .photo-toast.show {
            opacity: 1 !important;
            transform: translateX(-50%) translateY(0) !important;
        }

        /* 상태 1: 경청 중 (Listening) */
        .avatar-wrapper.listening .avatar-ambient-glow {
            background: radial-gradient(circle, rgba(0, 242, 254, 0.38) 0%, rgba(79, 172, 254, 0) 70%);
            filter: blur(70px);
        }
        .avatar-wrapper.listening .avatar-img {
            animation: humanListenPulse 4.0s infinite ease-in-out;
        }

        /* 상태 2: 생각 중 (Thinking) */
        .avatar-wrapper.thinking .avatar-ambient-glow {
            background: radial-gradient(circle, rgba(254, 81, 150, 0.38) 0%, rgba(144, 85, 255, 0) 70%);
            filter: blur(70px);
        }
        .avatar-wrapper.thinking .avatar-img {
            animation: humanThinkPulse 3.8s infinite ease-in-out;
        }

        /* 상태 3: 말하는 중 (Speaking) - 살아 숨쉬는 잔잔한 호흡 */
        .avatar-wrapper.speaking .avatar-ambient-glow {
            background: radial-gradient(circle, rgba(255, 123, 84, 0.5) 0%, rgba(255, 70, 70, 0) 70%);
            filter: blur(75px);
        }
        .avatar-wrapper.speaking .avatar-img {
            animation: livingSpeakPulse 0.36s infinite ease-in-out !important;
            will-change: transform, filter;
        }

        /* 상태 4: 음소거 (Muted) */
        .avatar-wrapper.muted .avatar-ambient-glow {
            background: transparent;
        }
        .avatar-wrapper.muted .avatar-img {
            filter: grayscale(0.65) brightness(0.85);
            animation: none;
        }

        /* ===== 60fps GPU 하드웨어 가속 리빙 애니메이션 5종 프리셋 (잔잔하고 부드러운 자연 호흡) ===== */
        .living-anim-breathe .avatar-img {
            animation: livingBreathe 8.0s infinite ease-in-out;
        }
        @keyframes livingBreathe {
            0%, 100% {
                transform: scale(1.0) translateY(0px);
                filter: brightness(0.99) contrast(1.01);
            }
            50% {
                transform: scale(1.015) translateY(-2px);
                filter: brightness(1.01) contrast(1.02);
            }
        }

        /* 2. 영화 같은 시네마틱 슬로우 줌 & 드리프트 (Living Cinematic - 잔잔한 미세 시선) */
        .living-anim-cinematic .avatar-img {
            animation: livingCinematic 16.0s infinite ease-in-out;
        }
        @keyframes livingCinematic {
            0%, 100% {
                transform: scale(1.0) translate(0px, 0px);
            }
            50% {
                transform: scale(1.022) translate(-2px, -3px);
            }
        }

        /* 3. 관능적인 실크 빛 스침 & 조명 워시 (Living Sensual Sheen - 은은한 자연광) */
        .living-anim-sheen .avatar-img {
            animation: livingSensualSheen 9.0s infinite ease-in-out;
        }
        @keyframes livingSensualSheen {
            0%, 100% {
                transform: scale(1.0) translateY(0px);
                filter: brightness(0.99) contrast(1.01);
            }
            50% {
                transform: scale(1.015) translateY(-2px);
                filter: brightness(1.03) contrast(1.02);
            }
        }

        /* 4. 두근거리는 하트비트 심장박동 (Living Heartbeat - 잔잔한 미세 펄스) */
        .living-anim-heartbeat .avatar-img {
            animation: livingHeartbeat 5.0s infinite ease-in-out;
        }
        @keyframes livingHeartbeat {
            0%, 100% {
                transform: scale(1.0) translateY(0);
            }
            50% {
                transform: scale(1.014) translateY(-1.5px);
            }
        }

        /* 5. 마스터 올인원 (Living Master Suite - 부드러운 공기감) */
        .living-anim-all .avatar-img {
            animation: livingMasterSuite 12.0s infinite ease-in-out;
        }
        @keyframes livingMasterSuite {
            0%, 100% {
                transform: scale(1.0) translate(0px, 0px);
                filter: brightness(0.99) contrast(1.01);
            }
            50% {
                transform: scale(1.018) translate(2px, -2px);
                filter: brightness(1.02) contrast(1.02);
            }
        }

        /* 6. 관능적인 상체 화끈한 초밀착 클로즈업 & 바디라인 슬로우 스캔 (Living Sensual Bust & Body Scan - 잔잔한 밀착) */
        .living-anim-sensual .avatar-img,
        .living-anim-sensual .avatar-video,
        .living-anim-bodyscan .avatar-img,
        .living-anim-bodyscan .avatar-video {
            animation: livingSensualBodyScan 14s infinite ease-in-out !important;
            transform-origin: center 36% !important;
            will-change: transform, filter;
        }
        @keyframes livingSensualBodyScan {
            0%, 100% {
                transform: scale(1.0) translateY(0px);
                filter: brightness(1.0) contrast(1.01);
            }
            50% {
                transform: scale(1.045) translateY(-1.5%);
                filter: brightness(1.03) contrast(1.03);
            }
        }

        /* 7. 초현실 시네마틱 훔쳐보기 리빙 포토 (Living Voyeur Intimate POV - 잔잔한 눈맞춤) */
        .living-anim-voyeur .avatar-img,
        .living-anim-voyeur .avatar-video {
            animation: livingVoyeurIntimate 12.0s infinite ease-in-out !important;
            transform-origin: center 38% !important;
            will-change: transform, filter;
        }
        @keyframes livingVoyeurIntimate {
            0%, 100% {
                transform: scale(1.0) translate(0px, 0px);
                filter: brightness(0.99) contrast(1.01);
            }
            50% {
                transform: scale(1.032) translate(-1px, -2px);
                filter: brightness(1.02) contrast(1.02);
            }
        }

        /* ===== [파트너 모드] 애니메이션 완전 배제 & 차분한 고화질 단일 스틸 이미지 모드 ===== */
        body.partner-mode .avatar-wrapper,
        body.partner-mode .avatar-wrapper *,
        .partner-still-mode,
        .partner-still-mode * {
            animation: none !important;
            transform: none !important;
            filter: none !important;
        }
        body.partner-mode .avatar-living-sheen,
        .partner-still-mode .avatar-living-sheen {
            display: none !important;
        }
        body.partner-mode #avatarImgA,
        .partner-still-mode #avatarImgA {
            display: block !important;
            opacity: 1 !important;
            animation: none !important;
            transform: none !important;
            object-fit: cover !important;
        }
        body.partner-mode #avatarImgB,
        body.partner-mode #avatarVideoA,
        body.partner-mode #avatarVideoB,
        .partner-still-mode #avatarImgB,
        .partner-still-mode #avatarVideoA,
        .partner-still-mode #avatarVideoB {
            display: none !important;
            opacity: 0 !important;
        }

        @keyframes humanListenPulse {
            0%, 100% { transform: scale(1.0) translateY(0px); }
            50% { transform: scale(1.008) translateY(-1px); }
        }
        @keyframes humanThinkPulse {
            0%, 100% { transform: scale(1.0) translateY(0px); }
            50% { transform: scale(1.006) translateY(-1px); }
        }
        @keyframes livingSpeakPulse {
            0%, 100% {
                transform: scale(1.0);
                filter: brightness(0.99) contrast(1.01);
            }
            50% {
                transform: scale(1.006);
                filter: brightness(1.02) contrast(1.03);
            }
        }

        .living-preset-btn {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ccc;
            font-size: 0.72rem;
            padding: 7px 3px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap !important;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: keep-all;
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .living-preset-btn:hover {
            background: rgba(255, 123, 84, 0.2);
            color: #ff9a76;
            border-color: #ff7b54;
        }
        .living-preset-btn.active {
            background: linear-gradient(135deg, rgba(255, 123, 84, 0.35), rgba(255, 107, 107, 0.3));
            border-color: #ff7b54;
            color: #fff;
            font-weight: 700;
            box-shadow: 0 0 10px rgba(255, 123, 84, 0.4);
        }
        .living-preset-btn#btnLivingAuto.active {
            background: linear-gradient(135deg, rgba(255, 100, 160, 0.4), rgba(255, 123, 84, 0.4));
            border-color: #ff7bac;
            color: #fff;
            box-shadow: 0 0 12px rgba(255, 120, 180, 0.5);
            animation: pulseAutoBtn 2.8s infinite ease-in-out;
        }
        @keyframes pulseAutoBtn {
            0%, 100% { box-shadow: 0 0 8px rgba(255, 120, 180, 0.4); }
            50% { box-shadow: 0 0 16px rgba(255, 120, 180, 0.7); }
        }

        .view-mode-btn {
            background: rgba(255, 123, 84, 0.15);
            color: #ff9a76;
            border: 1px solid rgba(255, 123, 84, 0.35);
            font-size: 0.72rem;
            padding: 7px 3px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
            white-space: nowrap !important;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: keep-all;
            box-sizing: border-box;
        }
        .view-mode-btn:hover {
            background: rgba(255, 123, 84, 0.3);
            border-color: #ff7b54;
        }

        /* 극단적 현실감: 텍스트/자막 기본 완전 숨김 (오직 민지 모습만 100% 몰입) */
        .status-container {
            display: none !important;
        }
        .status-container.show-subtitles {
            display: flex !important;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            pointer-events: none;
            transition: opacity 0.3s ease;
            width: 100%;
            margin-bottom: 8px;
        }
        .status-badge { display: none; }
        .status-text {
            font-size: 0.92rem;
            line-height: 1.5;
            color: #ffffff;
            text-shadow: 0 2px 8px rgba(0,0,0,0.9);
            background: rgba(14, 14, 22, 0.68);
            padding: 8px 20px;
            border-radius: 20px;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.14);
            max-width: 90vw;
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
            transition: all 0.3s ease;
            word-break: keep-all;
            overflow-wrap: break-word;
            text-align: center;
            letter-spacing: -0.2px;
        }
        .barge-in-hint {
            display: none !important;
        }

        /* 컨트롤 영역 — 대화 시작 버튼 및 하단 캡슐 독 (마이크 버튼 등) */
        .controls {
            position: fixed;
            bottom: calc(22px + env(safe-area-inset-bottom, 0px));
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 16px);
            max-width: 440px;
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 10005 !important;
            pointer-events: auto !important;
            box-sizing: border-box;
        }
        .capsule-dock {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(3px, 1.2vw, 8px);
            padding: 5px clamp(6px, 1.8vw, 12px);
            max-width: 100%;
            box-sizing: border-box;
            background: rgba(14, 14, 22, 0.88);
            border: 1px solid rgba(255, 123, 84, 0.4);
            border-radius: 36px;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
            opacity: 1 !important;
            transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease, background 0.3s ease;
            touch-action: manipulation;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .capsule-dock::-webkit-scrollbar {
            display: none;
        }
        .capsule-dock:hover,
        .capsule-dock.active,
        .capsule-dock:focus-within {
            opacity: 1 !important;
            background: rgba(14, 14, 22, 0.95);
            border-color: rgba(255, 123, 84, 0.6);
            box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65);
        }
        .capsule-dock.collapsed {
            display: none !important;
        }
        .dock-toggle-pill {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 7px 18px;
            border-radius: 20px;
            background: rgba(16, 16, 26, 0.42); /* 배경 영상이 부드럽게 비치는 반투명 */
            border: 1px solid rgba(255, 255, 255, 0.18);
            color: rgba(255, 255, 255, 0.88);
            font-size: 0.78rem;
            font-weight: 600;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            cursor: pointer;
            opacity: 0.60; /* 은은하게 비추듯이 살짝 보이는 최적 투명도 */
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 123, 84, 0.15);
            touch-action: manipulation;
            pointer-events: auto !important;
            margin: 0 auto;
        }
        .dock-toggle-pill .dock-pill-icon {
            font-size: 0.85rem;
            opacity: 0.9;
        }
        .dock-toggle-pill .dock-pill-text {
            letter-spacing: -0.2px;
            color: #ffb499;
        }
        .dock-toggle-pill:hover,
        .dock-toggle-pill:active {
            opacity: 0.95 !important;
            background: rgba(22, 22, 34, 0.75);
            border-color: rgba(255, 123, 84, 0.55);
            transform: scale(1.04);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 123, 84, 0.35);
        }
        .dock-toggle-pill.visible {
            display: inline-flex !important;
        }

        /* [초미니 듀얼 토글 바: 🎙️ 마이크 | 💖 여친] */
        .mini-bottom-bar {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 4px 10px;
            background: rgba(14, 14, 22, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 24px;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 123, 84, 0.15);
            opacity: 0.85;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            margin: 0 auto;
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            pointer-events: auto !important;
        }
        .mini-bottom-bar:hover,
        .mini-bottom-bar:focus-within {
            opacity: 1;
            background: rgba(18, 18, 28, 0.72);
            border-color: rgba(255, 123, 84, 0.5);
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 123, 84, 0.3);
            transform: translateY(-1px);
        }
        .mini-dock-btn {
            background: transparent;
            border: none;
            color: #fff;
            padding: 5px 8px;
            border-radius: 18px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.82rem;
            font-weight: 700;
            transition: all 0.2s ease;
            outline: none;
            touch-action: manipulation;
        }
        .mini-dock-btn:hover {
            background: rgba(255, 255, 255, 0.12);
        }
        .mini-dock-btn:active {
            transform: scale(0.92);
        }
        .mini-dock-btn.mode-pill {
            color: #ff9a76;
            font-size: 0.78rem;
            letter-spacing: -0.2px;
            padding: 5px 10px;
            background: rgba(255, 123, 84, 0.12);
            border: 1px solid rgba(255, 123, 84, 0.3);
        }
        .mini-dock-btn.mode-pill:hover {
            background: rgba(255, 123, 84, 0.25);
            border-color: rgba(255, 123, 84, 0.6);
        }
        .mini-bar-divider {
            width: 1px;
            height: 16px;
            background: rgba(255, 255, 255, 0.18);
            margin: 0 2px;
        }

        .cap-btn {
            width: clamp(34px, 8.8vw, 42px);
            height: clamp(34px, 8.8vw, 42px);
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.10);
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(0.95rem, 3.2vw, 1.15rem);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            touch-action: manipulation;
            flex-shrink: 0;
        }
        .cap-btn:active {
            transform: scale(0.92);
            background: rgba(255, 255, 255, 0.25);
        }
        .cap-btn.primary {
            background: linear-gradient(135deg, rgba(255, 123, 84, 0.85), rgba(255, 107, 107, 0.85));
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
        }
        .cap-btn.muted {
            background: rgba(255, 68, 68, 0.25) !important;
            border-color: #ff5555 !important;
            color: #ff7777 !important;
        }
        .connect-dock-btn {
            position: relative;
            z-index: 10006 !important;
            pointer-events: auto !important;
            padding: 10px 24px;
            border-radius: 26px;
            background: rgba(20, 20, 30, 0.55);
            border: 1px solid rgba(255, 123, 84, 0.4);
            color: #ff9a76;
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            transition: all 0.25s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 6px;
            touch-action: manipulation !important;
            user-select: none;
            -webkit-user-select: none;
            -webkit-tap-highlight-color: transparent;
            word-break: keep-all;
            white-space: nowrap;
            letter-spacing: -0.2px;
            opacity: 0.85;
        }
        .connect-dock-btn:hover,
        .connect-dock-btn:active {
            opacity: 1 !important;
            transform: scale(1.03);
            background: rgba(26, 26, 38, 0.85);
            border-color: #ff7b54;
            color: #fff;
            box-shadow: 0 6px 24px rgba(255, 123, 84, 0.4);
        }
        .connect-dock-btn * {
            pointer-events: none !important;
        }
        @keyframes pulse-soft {
            0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(255, 82, 82, 0.35); }
            50% { transform: scale(1.02); box-shadow: 0 10px 28px rgba(255, 82, 82, 0.5); }
        }
        .connect-dock-btn:active {
            transform: scale(0.96);
        }
        .btn-muted {
            background: #502525 !important;
            border-color: #8c3b3b !important;
            color: #ffb4b4 !important;
        }
        .btn-ghost {
            background: transparent;
            border: 1px solid #2b2b3a;
            color: #888;
            font-size: 0.8rem;
            padding: 8px 16px;
            border-radius: 16px;
        }
        .btn-exit {
            background: rgba(255, 68, 68, 0.15) !important;
            border: 1px solid rgba(255, 68, 68, 0.35) !important;
            color: #ff8888 !important;
            font-size: 0.72rem;
            padding: 7px 3px;
            border-radius: 12px;
            transition: all 0.2s ease;
            cursor: pointer;
            white-space: nowrap !important;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: keep-all;
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
        }
        .btn-exit:hover, .btn-exit:active {
            background: rgba(255, 68, 68, 0.35) !important;
            color: #ffaaaa !important;
        }
        /* 카메라 전체화면 오버레이 */
        .cam-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: rgba(0, 0, 0, 0.94);
            z-index: 40000 !important;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            animation: fadeIn 0.2s ease;
            box-sizing: border-box;
            padding: 20px 14px;
        }
        .cam-overlay.active {
            display: flex;
        }
        body:has(#camOverlay.active) .controls,
        #camOverlay.active ~ .controls {
            display: none !important;
            pointer-events: none !important;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .cam-overlay video {
            width: 100%;
            max-width: 440px;
            max-height: 70vh;
            object-fit: cover;
            border-radius: 20px;
            border: 2px solid rgba(255, 123, 84, 0.5);
            box-shadow: 0 0 60px rgba(255, 123, 84, 0.3);
        }
        .cam-overlay-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 18px;
            z-index: 40001 !important;
            width: 100%;
            max-width: 440px;
        }
        .cam-action-btn {
            background: rgba(18, 18, 28, 0.88);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.18);
            padding: 12px 18px;
            border-radius: 24px;
            font-size: 0.90rem;
            font-weight: 600;
            cursor: pointer;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.6);
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            touch-action: manipulation;
        }
        .cam-action-btn:active { transform: scale(0.97); }
        .cam-action-btn.primary {
            background: linear-gradient(135deg, #ff6b6b, #ff8e53);
            border: none;
            box-shadow: 0 8px 24px rgba(255,107,107,0.4);
        }
        .cam-badge {
            position: absolute;
            top: 4px;
            right: 6px;
            font-size: 0.65rem;
            background: rgba(0,0,0,0.65);
            color: #ff9a76;
            padding: 2px 5px;
            border-radius: 6px;
            pointer-events: none;
        }

        /* ===== 패스워드 게이트 ===== */
        .pw-gate {
            position: fixed;
            inset: 0;
            z-index: 99999;
            background: #09090d;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 24px;
            pointer-events: auto;
            touch-action: manipulation;
        }
        .pw-gate.hidden { display: none !important; }
        .pw-logo {
            font-size: 2.8rem;
            font-weight: 800;
            background: linear-gradient(135deg, #ff9a76, #ff6b6b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -1px;
        }
        .pw-sub {
            font-size: 0.88rem;
            color: #888;
            margin-top: -14px;
            text-align: center;
            word-break: keep-all;
            line-height: 1.45;
            letter-spacing: -0.2px;
            width: 290px;
            max-width: 90vw;
        }
        .pw-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            width: 280px;
            pointer-events: auto;
        }
        .pw-input {
            width: 100%;
            background: #131318;
            border: 1.5px solid #2a2a38;
            border-radius: 20px;
            padding: 14px 20px;
            color: #fff;
            font-size: 1.1rem;
            text-align: center;
            letter-spacing: 4px;
            outline: none;
            transition: border-color 0.2s;
        }
        .pw-input:focus { border-color: #ff7b54; }
        .pw-input.error { border-color: #ff4444; animation: shake 0.35s ease; }
        @keyframes shake {
            0%,100% { transform: translateX(0); }
            20%,60% { transform: translateX(-8px); }
            40%,80% { transform: translateX(8px); }
        }
        .pw-btn {
            width: 100%;
            padding: 14px;
            border-radius: 20px;
            border: none;
            background: linear-gradient(135deg, #ff7b54, #ff6b6b);
            color: #fff;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 8px 24px rgba(255,107,107,0.35);
            transition: opacity 0.2s;
            touch-action: manipulation;
            pointer-events: auto;
        }
        .pw-btn:active { opacity: 0.85; }
        .pw-btn-faceid {
            width: 100%;
            padding: 16px 20px;
            border-radius: 22px;
            border: 1.5px solid rgba(255, 123, 84, 0.55);
            background: linear-gradient(135deg, rgba(255, 123, 84, 0.25), rgba(255, 107, 107, 0.16));
            color: #fff;
            font-size: 1.02rem;
            font-weight: 700;
            cursor: pointer;
            touch-action: manipulation;
            pointer-events: auto;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.2s ease;
            box-shadow: 0 6px 24px rgba(255, 123, 84, 0.25);
            animation: faceIdPulse 2.6s infinite ease-in-out;
        }
        @keyframes faceIdPulse {
            0%, 100% { box-shadow: 0 4px 18px rgba(255, 123, 84, 0.22); transform: scale(1.0); }
            50% { box-shadow: 0 6px 26px rgba(255, 123, 84, 0.55); transform: scale(1.02); }
        }
        .pw-btn-faceid:active { transform: scale(0.96); background: rgba(255, 123, 84, 0.4); }
        .pw-divider {
            display: flex;
            align-items: center;
            width: 100%;
            gap: 10px;
            color: #555;
            font-size: 0.78rem;
        }
        .pw-divider::before, .pw-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #232330;
        }
        .pw-err {
            font-size: 0.82rem;
            color: #ff5555;
            min-height: 18px;
        }

        /* ===== 완전 종료 (True Shutdown) OLED 블랙 스크린 ===== */
        .shutdown-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: #000000;
            z-index: 999999;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            color: #ffffff;
            user-select: none;
            text-align: center;
            padding: 24px;
            box-sizing: border-box;
            animation: shutdownFadeIn 0.35s ease forwards;
        }
        @keyframes shutdownFadeIn {
            from { opacity: 0; transform: scale(0.98); }
            to { opacity: 1; transform: scale(1.0); }
        }
        .shutdown-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            max-width: 360px;
            width: 100%;
        }
        .shutdown-power-icon {
            width: 76px;
            height: 76px;
            border-radius: 50%;
            border: 1.5px solid rgba(255, 255, 255, 0.15);
            background: radial-gradient(circle, rgba(255, 85, 85, 0.12) 0%, rgba(20, 20, 26, 0.6) 80%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            color: #ff5555;
            cursor: pointer;
            margin-bottom: 22px;
            box-shadow: 0 0 35px rgba(255, 85, 85, 0.2);
            transition: all 0.25s ease;
        }
        .shutdown-power-icon:active {
            transform: scale(0.92);
            box-shadow: 0 0 50px rgba(255, 85, 85, 0.45);
        }
        .shutdown-title {
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: -0.3px;
            margin-bottom: 10px;
            color: #f2f2f7;
        }
        .shutdown-desc {
            font-size: 0.92rem;
            line-height: 1.6;
            color: #8e8e99;
            margin-bottom: 14px;
        }
        .shutdown-hint {
            font-size: 0.78rem;
            color: #555562;
            margin-bottom: 30px;
        }
        .shutdown-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
        }
        .shutdown-btn {
            width: 100%;
            padding: 14px 18px;
            border-radius: 20px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .shutdown-btn.primary {
            background: linear-gradient(135deg, #24242e, #14141a);
            border: 1.5px solid rgba(255, 255, 255, 0.16);
            color: #ffffff;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
        }
        .shutdown-btn.primary:active {
            transform: scale(0.98);
            background: rgba(255, 255, 255, 0.15);
        }
        .shutdown-btn.ghost {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #777785;
        }
        .shutdown-btn.ghost:active {
            background: rgba(255, 255, 255, 0.06);
        }

        /* ===== 🎧 목소리 오디션 스튜디오 모달 스타일 ===== */
        .voice-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(8, 8, 14, 0.88);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            z-index: 60000 !important;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            box-sizing: border-box;
            animation: modalFadeIn 0.25s ease-out;
        }
        @keyframes modalFadeIn {
            from { opacity: 0; transform: scale(0.97); }
            to { opacity: 1; transform: scale(1.0); }
        }
        .voice-modal-card {
            background: linear-gradient(145deg, rgba(28, 28, 38, 0.95), rgba(18, 18, 26, 0.98));
            border: 1px solid rgba(255, 123, 84, 0.35);
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 123, 84, 0.15);
            width: min(95vw, 720px);
            max-width: 720px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-sizing: border-box;
        }
        .voice-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.02);
        }
        .voice-modal-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: #ff9a76;
            letter-spacing: -0.3px;
        }
        .voice-modal-subtitle {
            font-size: 0.73rem;
            color: #888;
            margin-top: 3px;
        }
        .voice-modal-close {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #aaa;
            font-size: 0.9rem;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .voice-modal-close:hover {
            color: #fff;
            background: rgba(255, 123, 84, 0.3);
            border-color: #ff7b54;
        }
        .voice-modal-body {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .voice-audition-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 12px 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: all 0.25s ease;
            position: relative;
        }
        .voice-audition-card:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 123, 84, 0.3);
        }
        .voice-audition-card.active-selected {
            background: rgba(255, 123, 84, 0.12);
            border: 1.5px solid #ff7b54;
            box-shadow: 0 0 16px rgba(255, 123, 84, 0.25);
        }
        .voice-card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .voice-card-name-wrap {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .voice-card-name {
            font-size: 0.92rem;
            font-weight: 700;
            color: #eee;
        }
        .voice-badge {
            font-size: 0.68rem;
            padding: 2px 6px;
            border-radius: 8px;
            font-weight: 600;
        }
        .voice-badge-tag {
            background: rgba(255, 123, 84, 0.18);
            color: #ff9a76;
            border: 1px solid rgba(255, 123, 84, 0.3);
        }
        .voice-badge-speed {
            background: rgba(0, 242, 254, 0.15);
            color: #7ee7ff;
            border: 1px solid rgba(0, 242, 254, 0.25);
        }
        .voice-badge-current {
            background: #ff7b54;
            color: #fff;
            font-size: 0.68rem;
            padding: 2px 7px;
            border-radius: 10px;
            font-weight: 700;
        }
        .voice-card-quote {
            font-size: 0.78rem;
            color: #bbb;
            font-style: italic;
            line-height: 1.35;
            padding: 6px 9px;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 8px;
            border-left: 2px solid #ff7b54;
        }
        .voice-card-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: 2px;
        }
        .voice-play-sample-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.16);
            color: #ddd;
            border-radius: 10px;
            padding: 6px 12px;
            font-size: 0.75rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            font-weight: 600;
            transition: all 0.2s ease;
        }
        .voice-play-sample-btn:hover {
            background: rgba(255, 255, 255, 0.14);
            color: #fff;
        }
        .voice-play-sample-btn.playing {
            background: linear-gradient(135deg, rgba(255, 123, 84, 0.45), rgba(255, 70, 70, 0.35));
            border-color: #ff7b54;
            color: #fff;
            animation: pulsePlay 1s infinite alternate;
        }
        @keyframes pulsePlay {
            from { box-shadow: 0 0 5px rgba(255, 123, 84, 0.3); }
            to { box-shadow: 0 0 15px rgba(255, 123, 84, 0.8); }
        }
        .voice-apply-btn {
            background: linear-gradient(135deg, #ff7b54, #ff5252);
            border: none;
            color: #fff;
            border-radius: 10px;
            padding: 6px 14px;
            font-size: 0.75rem;
            cursor: pointer;
            font-weight: 700;
            box-shadow: 0 4px 10px rgba(255, 123, 84, 0.3);
            transition: all 0.2s ease;
        }
        .voice-apply-btn:hover {
            opacity: 0.92;
            transform: translateY(-1px);
        }
        .voice-apply-btn.applied {
            background: rgba(255, 255, 255, 0.1);
            color: #888;
            box-shadow: none;
            cursor: default;
        }
        .voice-modal-footer {
            padding: 12px 18px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(0, 0, 0, 0.25);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .voice-modal-done-btn {
            background: #ff7b54;
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 7px 18px;
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
        }
        /* 알림 토스트 */
        .voice-toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: rgba(25, 25, 35, 0.95);
            border: 1px solid #ff7b54;
            color: #ff9a76;
            padding: 10px 20px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 123, 84, 0.3);
            z-index: 11000;
            transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
            opacity: 0;
            pointer-events: none;
        }
        .voice-toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* Face ID 비접촉 즉시 스캔 칩 배너 */
        .bio-scan-badge {
            position: fixed;
            top: calc(20px + env(safe-area-inset-top, 0px));
            left: 50%;
            transform: translateX(-50%);
            background: rgba(20, 20, 28, 0.94);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 123, 84, 0.5);
            border-radius: 30px;
            padding: 10px 22px;
            color: #fff;
            font-size: 0.90rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
            z-index: 100002;
            animation: fadeInDown 0.35s ease;
            pointer-events: none;
            transition: all 0.3s ease;
            white-space: nowrap;
            word-break: keep-all;
            letter-spacing: -0.2px;
            max-width: 90vw;
        }
        .bio-scan-badge.success {
            border-color: #00f2fe;
            color: #00f2fe;
            box-shadow: 0 8px 32px rgba(0, 242, 254, 0.45);
        }
        @keyframes fadeInDown {
            from { opacity: 0; transform: translate(-50%, -15px); }
            to { opacity: 1; transform: translate(-50%, 0); }
        }

        /* ========================================================
           가로 모드 (Landscape) & 와이드 화면 최적화:
           얼굴부터 가슴/바스트 라인 및 상체 전체가 화면에 시원하게 100% 다 보이도록 설정
           ======================================================== */
        @media (orientation: landscape), (min-aspect-ratio: 1/1) {
            .avatar-wrapper {
                align-items: center !important;
                justify-content: center !important;
                width: 100vw !important;
                height: 100vh !important;
                height: 100dvh !important;
            }
            .avatar-img-container {
                max-width: 100vw !important;
                width: 100% !important;
                height: 100vh !important;
                height: 100dvh !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }
            .avatar-img, .avatar-video {
                width: auto !important;
                max-width: 100vw !important;
                height: 100vh !important;
                height: 100dvh !important;
                object-fit: contain !important;
                object-position: center top !important;
                transform-origin: center top !important;
            }
            /* 가로 화면에서 애니메이션 실행 시 상체/바스트가 잘려나가지 않도록 transform-origin 상단 고정 */
            .living-anim-voyeur .avatar-img,
            .living-anim-sensual .avatar-img,
            .living-anim-bodyscan .avatar-img,
            .living-anim-cinematic .avatar-img,
            .living-anim-all .avatar-img,
            .living-anim-breathe .avatar-img,
            .living-anim-sheen .avatar-img,
            .living-anim-heartbeat .avatar-img {
                transform-origin: center top !important;
                object-fit: contain !important;
                object-position: center top !important;
            }
            .avatar-ambient-glow {
                width: min(85vh, 500px) !important;
                height: min(85vh, 500px) !important;
                top: 40% !important;
                filter: blur(70px) !important;
            }
        }

        /* ===== [스크린리스 포켓 모드: GPU 렌더링 0% 완전 절전 & 발열 차단 & DDIC 1Hz ProMotion LTPO 최적화] ===== */
        body.screenless-active {
            background-color: #000000 !important;
            overflow: hidden !important;
        }
        body.screenless-active * {
            animation: none !important;
            transition: none !important;
            will-change: auto !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            box-shadow: none !important;
            text-shadow: none !important;
        }
        body.screenless-active #avatarWrapper,
        body.screenless-active .main-stage,
        body.screenless-active #appHeader,
        body.screenless-active .bottom-dock,
        body.screenless-active .cap-bottom-bar,
        body.screenless-active .top-summon-btn,
        body.screenless-active .top-screenless-btn,
        body.screenless-active #statusContainer,
        body.screenless-active #micLevelContainer,
        body.screenless-active .samantha-action-card,
        body.screenless-active #samanthaActionOverlay {
            display: none !important;
            pointer-events: none !important;
        }

        /* ===== 사만다 멀티모달 인터랙티브 액션 카드 (Glassmorphism Slide-In) ===== */
        .samantha-action-card {
            position: fixed;
            right: 16px;
            bottom: 95px;
            max-width: 330px;
            width: calc(100vw - 32px);
            background: rgba(18, 18, 28, 0.90);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 123, 84, 0.45);
            border-radius: 20px;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 123, 84, 0.25);
            z-index: 10000;
            overflow: hidden;
            box-sizing: border-box;
            animation: actionCardSlideUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        @keyframes actionCardSlideUp {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1.0); }
        }
        .action-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px 6px 14px;
        }
        .action-card-badge {
            font-size: 0.72rem;
            font-weight: 700;
            color: #ff9a76;
            background: rgba(255, 123, 84, 0.15);
            border: 1px solid rgba(255, 123, 84, 0.35);
            border-radius: 8px;
            padding: 3px 8px;
            letter-spacing: 0.5px;
        }
        .action-card-close-btn {
            background: none;
            border: none;
            color: #aaa;
            font-size: 1.1rem;
            cursor: pointer;
            padding: 2px 6px;
            line-height: 1;
            transition: color 0.2s;
        }
        .action-card-close-btn:hover { color: #fff; }
        .action-card-media {
            width: 100%;
            height: 230px;
            overflow: hidden;
            background: #0d0d16;
            position: relative;
            cursor: pointer;
            border-top: 1px solid rgba(255, 123, 84, 0.2);
            border-bottom: 1px solid rgba(255, 123, 84, 0.2);
        }
        .action-card-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 20%;
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .action-card-media:hover img {
            transform: scale(1.04);
        }
        .action-card-media-zoom-hint {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: rgba(10, 10, 20, 0.82);
            color: #ff9a76;
            font-size: 0.72rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 12px;
            border: 1px solid rgba(255, 123, 84, 0.45);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            pointer-events: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
            letter-spacing: 0.3px;
        }

        /* ===== 🖼️ 민지 오늘 룩 / 포토 라이트박스 전체화면 모달 (전체 모습 풀뷰어) ===== */
        .image-lightbox-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(8, 8, 16, 0.94);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            z-index: 75000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            box-sizing: border-box;
            animation: lightboxFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        @keyframes lightboxFadeIn {
            from { opacity: 0; transform: scale(0.96); }
            to { opacity: 1; transform: scale(1.0); }
        }
        .lightbox-content {
            max-width: 94vw;
            max-height: 94vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(22, 22, 34, 0.95);
            border: 1px solid rgba(255, 123, 84, 0.5);
            border-radius: 24px;
            padding: 16px 18px 14px 18px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 123, 84, 0.3);
            box-sizing: border-box;
        }
        .lightbox-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255, 123, 84, 0.25);
        }
        .lightbox-title {
            font-size: 1.02rem;
            font-weight: 800;
            color: #ff9a76;
            letter-spacing: 0.5px;
        }
        .lightbox-close-btn {
            background: rgba(255, 123, 84, 0.15);
            border: 1px solid rgba(255, 123, 84, 0.4);
            color: #ff9a76;
            font-size: 1.1rem;
            font-weight: 700;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .lightbox-close-btn:hover {
            background: rgba(255, 123, 84, 0.35);
            color: #fff;
            transform: scale(1.08);
        }
        .lightbox-image-container {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-radius: 16px;
            background: #09090f;
            box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
        }
        .lightbox-image-container img {
            max-width: 88vw;
            max-height: 72vh;
            object-fit: contain;
            display: block;
            border-radius: 14px;
        }
        .lightbox-caption {
            margin-top: 10px;
            font-size: 0.78rem;
            color: #aaa;
            letter-spacing: 0.3px;
        }
        .action-card-body {
            padding: 10px 14px 14px 14px;
            color: #fff;
            text-align: left;
        }
        .action-card-title {
            margin: 0 0 4px 0;
            font-size: 0.98rem;
            font-weight: 700;
            color: #fff;
            line-height: 1.35;
        }
        .action-card-subtitle {
            font-size: 0.78rem;
            color: #ff9a76;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        .action-card-details {
            margin: 0 0 10px 0;
            padding-left: 0;
            list-style: none;
            font-size: 0.75rem;
            color: #ccc;
            line-height: 1.5;
        }
        .action-card-details li {
            margin-bottom: 3px;
        }
        .action-card-action-box {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-top: 8px;
        }
        .action-card-link-btn {
            flex: 1;
            display: inline-block;
            text-align: center;
            padding: 8px 12px;
            background: linear-gradient(135deg, #ff7b54, #ff5252);
            color: #fff;
            text-decoration: none;
            border-radius: 10px;
            font-size: 0.76rem;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(255, 123, 84, 0.35);
        }
        .action-card-music-btn {
            flex: 1;
            padding: 8px 12px;
            background: rgba(255, 123, 84, 0.2);
            border: 1px solid rgba(255, 123, 84, 0.5);
            color: #ff9a76;
            border-radius: 10px;
            font-size: 0.76rem;
            font-weight: 700;
            cursor: pointer;
        }

        /* 첫인사 발화 중 마이크 버튼 펄스 효과 */
        .cap-btn.greeting-active {
            border-color: #ff7b54 !important;
            box-shadow: 0 0 16px rgba(255, 123, 84, 0.8), inset 0 0 10px rgba(255, 123, 84, 0.4) !important;
            animation: greeting-btn-pulse 1.4s ease-in-out infinite !important;
        }

        @keyframes greeting-btn-pulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 12px rgba(255, 123, 84, 0.6);
            }
            50% {
                transform: scale(1.08);
                box-shadow: 0 0 22px rgba(255, 123, 84, 0.95);
            }
        }

        /* ===== 파트너 모드 (영화 HER OS1) 전용 상단 플로팅 버튼 & 설정 모달 ===== */
        .partner-settings-floating-btn {
            position: fixed;
            top: max(16px, env(safe-area-inset-top));
            right: 58px;
            height: 38px;
            padding: 0 14px;
            background: rgba(20, 10, 12, 0.75);
            border: 1px solid rgba(255, 123, 84, 0.35);
            border-radius: 19px;
            color: #fff4f0;
            font-size: 0.78rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            cursor: pointer;
            z-index: 50004;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
            transition: all 0.25s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .partner-settings-floating-btn:active {
            background: rgba(255, 107, 74, 0.25);
            border-color: #ff7b54;
            transform: scale(0.96);
        }

        .her-settings-modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            width: 100vw; height: 100%;
            height: -webkit-fill-available;
            height: 100dvh;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 999999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            box-sizing: border-box;
        }

        .her-settings-card {
            width: 100%;
            max-width: 380px;
            background: #180a0c;
            border: 1px solid rgba(255, 120, 95, 0.3);
            border-radius: 20px;
            padding: 22px 20px;
            color: #fff;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 16px;
            animation: herModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes herModalIn {
            from { opacity: 0; transform: scale(0.94) translateY(10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .her-settings-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 12px;
        }
        .her-settings-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: #ff9a76;
            letter-spacing: -0.01em;
        }
        .her-settings-sub {
            font-size: 0.62rem;
            font-weight: 500;
            letter-spacing: 0.16em;
            color: rgba(255, 255, 255, 0.45);
            margin-top: 3px;
            text-transform: uppercase;
        }
        .her-settings-close-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #fff;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            font-size: 0.8rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .her-settings-body {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .her-settings-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 10px;
            font-size: 0.82rem;
        }
        .her-settings-label {
            color: #aaa;
        }
        .her-settings-val {
            color: #fff;
            font-weight: 600;
        }
        .her-settings-desc {
            font-size: 0.74rem;
            color: #888;
            line-height: 1.45;
            padding: 4px 6px;
        }

        .her-settings-footer {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 4px;
        }
        .her-settings-btn-ghost {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 12px;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
        }
        .her-settings-btn-danger {
            background: rgba(217, 59, 43, 0.18);
            border: 1px solid rgba(217, 59, 43, 0.5);
            color: #ff7b70;
            padding: 11px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
        }
        .her-settings-btn-danger:active {
            background: rgba(217, 59, 43, 0.35);
        }

        /* ===== [Movie HER Samantha Partner Mode / Generic] 민지 아바타 전면 은닉 & 100% 스크린리스 ===== */
        body.partner-mode .avatar-container,
        body.partner-mode #avatarContainer,
        body.partner-mode #avatarWrapper,
        body.partner-mode .avatar-orb img,
        body.partner-mode .avatar-orb video,
        body.partner-mode #galleryContainer,
        body.partner-mode #galleryVideoPlayer,
        body.partner-mode .gallery-video-wrap,
        body.partner-mode .gallery-player-wrap,
        body.partner-mode .living-gallery-bar,
        body.partner-mode .video-bg-wrap,
        body.partner-mode #videoBackgroundWrap,
        body.partner-mode .top-screenless-btn,
        body.partner-mode #personaToggleBtn {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        body.partner-mode {
            background: radial-gradient(ellipse at 50% 45%, #1f0705 0%, #100303 60%, #000000 100%) !important;
        }

        body.partner-mode #orbWrapper {
            display: flex !important;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }

        body.partner-mode .oracle-orb {
            box-shadow: 0 0 60px rgba(255, 107, 74, 0.3), inset 0 0 30px rgba(255, 123, 84, 0.4) !important;
            border: 1px solid rgba(255, 123, 84, 0.4) !important;
        }

