        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #FF6B9D;
            --secondary: #C44569;
            --accent: #FEC8D8;
            --background: #FFF5F7;
            --text-dark: #2C3E50;
            --text-light: #7F8C8D;
            --neutral: #9CA3AF;
        }

        /* Kakao AdFit Common */
        .adfit-center {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            margin: 16px 0;
            overflow-x: hidden;
            min-height: 50px;
            /* CLS Prevention */
        }

        .adfit-center--cta-gap {
            margin: 16px 0 22px;
        }

        html {
            background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
        }

        /* Updated Home Screen Styles - Glassmorphism & At-a-Glance */
        body {
            font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
            color: var(--text-dark);
            line-height: 1.6;
            min-height: 100vh;
            overflow-x: hidden;
            -webkit-text-size-adjust: 100%;
        }

        /* Animated Background */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                radial-gradient(2px 2px at 20% 30%, white, transparent),
                radial-gradient(2px 2px at 60% 70%, white, transparent),
                radial-gradient(1px 1px at 50% 50%, white, transparent),
                radial-gradient(2.5px 2.5px at 80% 10%, white, transparent),
                radial-gradient(1px 1px at 33% 80%, white, transparent);
            background-size: 200% 200%;
            animation: twinkle 10s ease-in-out infinite;
            opacity: 0.6;
            pointer-events: none;
            z-index: -1;
        }

        @keyframes twinkle {

            0%,
            100% {
                opacity: 0.6;
            }

            50% {
                opacity: 1;
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        /* Glassmorphism Card */
        .glass-card {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.6);
            padding: 3rem 2rem;
            border-radius: 40px;
            box-shadow: 0 8px 32px 0 rgba(255, 105, 180, 0.2), inset 0 0 60px rgba(255, 255, 255, 0.3);
            width: 100%;
            max-width: 800px;
            animation: fadeIn 0.8s ease-out;
        }

        /* Compatibility for existing classes overrides */
        .card {
            /* Inherit mostly from glass-card for home, but kept for legacy pages if needed */
            max-width: 800px;
            width: 100%;
            background: rgba(255, 255, 255, 0.9);
            padding: 40px;
            border-radius: 30px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            animation: fadeIn 0.8s ease-out;
            position: relative;
        }

        .home-header {
            text-align: center;
            margin-bottom: 2.5rem;
        }

        .logo-emoji {
            font-size: 4rem;
            margin-bottom: 0.5rem;
            display: block;
            animation: float 3s ease-in-out infinite;
        }

        .home-title {
            color: white;
            font-size: 2.2rem;
            margin-bottom: 0.5rem;
            font-weight: 800;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            background: linear-gradient(135deg, #fff 0%, #fff0f5 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .home-subtitle {
            color: rgba(255, 255, 255, 0.95);
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 2rem;
        }

        /* Action Grid Layout */
        .action-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }

        .action-card {
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.6);
            padding: 1.8rem;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.4s;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .action-card:hover {
            transform: translateY(-8px) scale(1.02);
            background: rgba(255, 255, 255, 0.6);
            box-shadow: 0 15px 30px rgba(255, 105, 180, 0.2);
        }

        .action-icon {
            font-size: 2.5rem;
            margin-bottom: 0.8rem;
        }

        .action-card h3 {
            font-size: 1.2rem;
            font-weight: 700;
            color: #4A4A4A;
            margin-bottom: 0.3rem;
        }

        .action-card p {
            font-size: 0.9rem;
            color: #666;
            line-height: 1.4;
        }

        /* Main Start Card */
        .main-action {
            grid-column: 1 / -1;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 230, 240, 0.5) 100%);
            border: 3px solid #fff;
            padding: 2.5rem 1.5rem;
            box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
        }

        .main-action .action-icon {
            font-size: 3.5rem;
            animation: bounce 2s ease-in-out infinite;
        }

        .main-action h3 {
            font-size: 1.6rem;
            color: #FF6B9D;
        }

        /* Transparent Feature Cards (Refined) */
        .sub-action {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            padding: 1rem !important;
        }

        .sub-action:hover {
            transform: translateY(-5px) scale(1.05);
            background: rgba(255, 255, 255, 0.2) !important;
        }

        /* Cute Home Button (Top Left) */
        .home-btn-wrapper {
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 10;
        }

        .cute-home-btn {
            background: rgba(255, 255, 255, 0.8);
            border: 2px solid #FF9A9E;
            padding: 10px 20px;
            border-radius: 30px;
            font-size: 0.95rem;
            font-weight: 700;
            color: #FF6B9D;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(255, 154, 158, 0.3);
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .cute-home-btn:hover {
            transform: translateY(-3px) scale(1.05);
            background: white;
            box-shadow: 0 8px 20px rgba(255, 154, 158, 0.5);
        }

        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }

            .glass-card {
                padding: 3rem 1.5rem 2rem;
                border-radius: 30px;
                position: relative;
            }

            .home-title {
                font-size: 1.8rem;
            }

            .home-btn-wrapper {
                top: 15px;
                left: 15px;
            }

            .cute-home-btn {
                padding: 8px 15px;
                font-size: 0.85rem;
            }

            .action-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .action-card {
                flex-direction: row;
                text-align: left;
                padding: 1.2rem;
                justify-content: flex-start;
            }

            .action-icon {
                margin-bottom: 0;
                margin-right: 1.2rem;
                font-size: 2rem;
            }

            .action-text {
                display: flex;
                flex-direction: column;
            }

            .main-action {
                grid-column: 1 / -1;
                flex-direction: column;
                text-align: center;
                padding: 2rem 1.5rem;
                justify-content: center;
                margin-bottom: 1rem;
            }

            .main-action .action-icon {
                margin-right: 0;
                margin-bottom: 1rem;
                font-size: 3rem;
            }

            .sub-action {
                justify-content: center;
                text-align: center;
                flex-direction: column;
                padding: 1rem !important;
            }

            .sub-action .action-icon {
                margin-right: 0;
                margin-bottom: 0.5rem;
                font-size: 2rem;
            }

            .sub-action .action-text {
                align-items: center;
            }

            .sub-action h3 {
                font-size: 0.85rem;
                margin-bottom: 2px;
            }

            .sub-action p {
                display: block;
                font-size: 0.7rem;
                line-height: 1.2;
                opacity: 0.8;
            }
        }

        @keyframes float {
            0% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-10px);
            }

            100% {
                transform: translateY(0px);
            }
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        .feature-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 50px;
        }

        .feature-card {
            text-align: center;
            padding: 30px 20px;
            background: var(--background);
            border-radius: 20px;
            transition: transform 0.3s;
        }

        .feature-card:hover {
            transform: translateY(-10px);
        }

        .feature-emoji {
            font-size: 3rem;
            margin-bottom: 15px;
            animation: pulse 2s ease-in-out infinite;
        }

        .feature-card h3 {
            color: var(--primary);
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .btn {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            padding: 20px 50px;
            border: none;
            border-radius: 50px;
            font-size: 1.3rem;
            font-weight: 600;
            cursor: pointer;
            display: block;
            margin: 0 auto;
            box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
            transition: all 0.3s;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
        }

        /* Test Page */
        .progress-bar {
            width: 100%;
            height: 12px;
            background: #F0F0F0;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
            transition: width 0.5s;
        }

        .progress-text {
            text-align: right;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 40px;
        }

        .question-number {
            display: inline-block;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: 600;
            margin-bottom: 20px;
        }

        .question-text {
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 40px;
        }

        .options-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .option-btn {
            width: 100%;
            background: white;
            border: 3px solid #F0F0F0;
            padding: 20px 25px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 1.05rem;
            cursor: pointer;
            transition: transform 0.2s;
            /* transform만 애니메이션 */
            text-align: left;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
        }

        .option-btn:hover {
            border-color: var(--accent);
            background: var(--background);
            transform: translateX(8px);
        }

        .option-btn:active {
            transform: scale(0.98);
        }

        .option-btn:focus:not(:focus-visible) {
            outline: none;
        }

        .option-btn:focus-visible {
            outline: 3px solid var(--primary);
            outline-offset: 2px;
        }

        /* 선택된 버튼 스타일 - !important로 강제 적용 */
        .option-btn.selected {
            border-color: var(--primary) !important;
            background: var(--background) !important;
            transform: scale(0.98) !important;
            transition: none !important;
            /* transition 완전 제거 */
        }

        .option-emoji {
            font-size: 2rem;
            flex-shrink: 0;
        }

        /* Score Bar Styles */
        .score-section {
            margin-bottom: 40px;
        }

        .score-item {
            margin-bottom: 30px;
        }

        .score-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .score-bar-container {
            display: flex;
            align-items: center;
            gap: 10px;
            height: 40px;
        }

        .score-bar {
            flex: 1;
            height: 100%;
            background: #F0F0F0;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
        }

        .score-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
            transition: width 0.8s ease-out;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-right: 15px;
            color: white;
            font-weight: 700;
        }

        .score-label {
            min-width: 80px;
            text-align: center;
            font-weight: 600;
            color: var(--text-dark);
        }

        .borderline-badge {
            display: inline-block;
            background: linear-gradient(135deg, #FEC8D8 0%, #FFE5EC 100%);
            color: var(--secondary);
            padding: 5px 15px;
            border-radius: 15px;
            font-size: 0.9rem;
            font-weight: 600;
            border: 2px solid var(--accent);
            margin-left: 10px;
        }

        /* Result Page */
        .result-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .result-announcement {
            font-size: 2rem;
            margin-bottom: 30px;
        }

        .result-type-badge {
            display: inline-flex;
            align-items: center;
            gap: 15px;
            padding: 20px 40px;
            border-radius: 50px;
            margin-bottom: 20px;
        }

        .result-emoji {
            font-size: 4rem;
        }

        .result-type {
            font-size: 3rem;
            font-weight: 700;
            color: white;
            letter-spacing: 2px;
        }

        .result-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .result-description {
            font-size: 1.2rem;
            color: var(--text-light);
            margin-bottom: 40px;
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .characteristic-item {
            background: var(--background);
            padding: 15px 20px;
            border-radius: 15px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .check-icon {
            color: var(--primary);
            font-weight: 700;
            font-size: 1.2rem;
        }

        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
        }

        .tag {
            padding: 12px 20px;
            border-radius: 20px;
            font-size: 0.95rem;
            font-weight: 500;
        }

        .strength-tag {
            background: #E6FFFA;
            color: #047857;
            border: 2px solid #10B981;
        }

        .weakness-tag {
            background: #FFF5F5;
            color: #B91C1C;
            border: 2px solid #EF4444;
        }

        .compatibility-item {
            background: linear-gradient(135deg, var(--background) 0%, white 100%);
            padding: 20px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            border: 2px solid var(--accent);
            margin-bottom: 15px;
        }

        .compat-emoji {
            font-size: 2.5rem;
        }

        .compat-type {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary);
            min-width: 80px;
        }

        .compat-title {
            color: var(--text-light);
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 50px;
        }

        .btn-secondary {
            background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
            color: white;
            padding: 15px 30px;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .btn-secondary:hover {
            transform: translateY(-5px);
        }

        @media (max-width: 768px) {
            .card {
                padding: 30px 16px 24px;
            }

            .question-text {
                font-size: 1.5rem;
            }

            .result-type {
                font-size: 2rem;
            }

            .result-announcement {
                font-size: 1.5rem;
            }

            .result-title {
                font-size: 1.6rem;
            }

            .result-description {
                font-size: 1rem;
            }

            .result-type-badge {
                padding: 15px 24px;
                gap: 10px;
            }

            .result-emoji {
                font-size: 3rem;
            }

            .action-buttons {
                flex-direction: column;
                gap: 12px;
            }

            .btn,
            .btn-secondary {
                width: 100%;
                min-height: 44px;
            }

            .btn-secondary {
                padding: 16px 30px;
            }

            .cute-home-btn {
                padding: 10px 16px;
                min-height: 44px;
                display: flex;
                align-items: center;
            }

            .score-bar-container {
                gap: 5px;
            }

            .score-label {
                min-width: 50px;
                font-size: 0.85rem;
            }

            .score-bar-fill {
                font-size: 0.8rem;
                padding-right: 8px;
            }

            .score-header {
                font-size: 0.9rem;
            }

            .option-btn {
                padding: 18px 20px;
                font-size: 0.95rem;
            }

            .option-emoji {
                font-size: 1.8rem;
            }
        }

        /* 소형 모바일 (iPhone SE, 320px~375px) */
        @media (max-width: 375px) {
            .container {
                padding: 10px;
            }

            .glass-card {
                padding: 2.5rem 1rem 1.5rem;
            }

            .card {
                padding: 24px 12px 20px;
            }

            .home-title {
                font-size: 1.6rem;
            }

            .question-text {
                font-size: 1.25rem;
                margin-bottom: 24px;
            }

            .progress-text {
                margin-bottom: 20px;
            }

            .options-container {
                gap: 8px;
            }

            .option-btn {
                padding: 14px 16px;
                font-size: 0.9rem;
                gap: 10px;
            }

            .option-emoji {
                font-size: 1.5rem;
            }

            .result-announcement {
                font-size: 1.3rem;
            }

            .result-title {
                font-size: 1.4rem;
            }

            .result-emoji {
                font-size: 2.5rem;
            }

            .score-label {
                min-width: 44px;
                font-size: 0.8rem;
            }

            .score-bar-fill {
                font-size: 0.75rem;
                padding-right: 6px;
            }

            .section-title {
                font-size: 1.1rem;
            }
        }

        /* ========================================
           캡처 전용 영역 스타일 (공유하기용)
           ======================================== */
        .capture-area {
            position: fixed;
            left: -9999px;
            top: 0;
            width: 400px;
            padding: 1.5rem;
            background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 50%, #FF6B9D 100%);
            border-radius: 24px;
            z-index: -1;
            visibility: hidden;
            overflow: visible;
        }

        .capture-card {
            background: rgba(255, 255, 255, 0.97);
            border-radius: 20px;
            padding: 1.5rem;
            text-align: center;
        }

        .capture-logo {
            font-size: 1.2rem;
            color: var(--primary);
            margin-bottom: 0.8rem;
            font-weight: 700;
        }

        .capture-emoji {
            font-size: 3.5rem;
            margin-bottom: 0.3rem;
        }

        .capture-type {
            font-size: 2rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 0.2rem;
        }

        .capture-title {
            font-size: 1.2rem;
            color: var(--text-dark);
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .capture-description {
            font-size: 0.85rem;
            color: var(--text-light);
            margin-bottom: 1rem;
            line-height: 1.4;
        }

        .capture-scores {
            background: #FFF5F7;
            padding: 0.8rem;
            border-radius: 12px;
            margin-bottom: 1rem;
        }

        .capture-score-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            margin-bottom: 0.3rem;
            color: var(--text-dark);
        }

        .capture-score-row:last-child {
            margin-bottom: 0;
        }

        .capture-section {
            background: #FFF5F7;
            padding: 0.8rem 1rem;
            border-radius: 12px;
            margin-bottom: 0.6rem;
            text-align: left;
        }

        .capture-section-title {
            color: var(--secondary);
            font-size: 0.85rem;
            font-weight: 700;
            margin-bottom: 0.4rem;
        }

        .capture-section-content {
            color: #333;
            font-size: 0.8rem;
            line-height: 1.5;
        }

        .capture-promo {
            background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
            padding: 1rem;
            border-radius: 16px;
            margin-top: 1rem;
            text-align: center;
        }

        .capture-promo p {
            color: white;
            font-size: 0.95rem;
            font-weight: 700;
            margin: 0;
        }

        .capture-promo .capture-url {
            font-size: 0.85rem;
            font-weight: 600;
            opacity: 0.9;
            margin-top: 0.3rem;
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }
