/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #fad0c4 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.test-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* 광고 컨테이너 - 기기별 최적화 */
.ad-container {
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 100px; /* 기본 높이 대폭 감소 */
    max-height: 120px; /* 최대 높이 제한 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 154, 158, 0.1);
    position: relative;
}

.ad-container.top {
    margin: 8px 0 15px 0;
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.05), rgba(250, 208, 196, 0.05));
    min-height: 90px; /* 상단 광고 더 작게 */
    max-height: 100px;
}

.ad-container.mid {
    margin: 10px 0; /* 질문과 답변 사이 여백 최소화 */
    background: rgba(255, 154, 158, 0.03);
    min-height: 80px; /* 중간 광고 가장 작게 */
    max-height: 100px;
}

.ad-container.result {
    margin: 15px 0;
    background: rgba(250, 208, 196, 0.03);
    min-height: 120px; /* 결과 페이지는 조금 여유 */
    max-height: 150px;
}

/* 시작 페이지 단계별 표시 */
.intro-step {
    min-height: 80vh; /* 모바일에서 한 화면에 맞게 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.step-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.step-navigation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.next-btn, .prev-btn {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.3);
}

.prev-btn {
    background: rgba(255, 154, 158, 0.1);
    color: #ff9a9e;
    border: 2px solid #ff9a9e;
    box-shadow: none;
}

.next-btn:hover, .prev-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 154, 158, 0.4);
}

.mobile-navigation {
    margin-top: 20px;
}

/* 데스크톱과 모바일 구분 */
.desktop-only {
    display: none; /* 데스크톱에서도 초기에는 숨김 */
}

.mobile-only {
    display: none;
}

/* 데스크톱에서는 모든 스텝을 한번에 보여주기 */
@media (min-width: 769px) {
    .intro-step {
        min-height: auto;
        margin-bottom: 40px;
        padding: 30px;
    }
    
    .desktop-only {
        display: block;
    }
    
    .step-navigation {
        display: none; /* 데스크톱에서는 네비게이션 숨김 */
    }
    
    .step-title {
        margin-bottom: 30px;
    }
    
    /* 데스크톱 결과 페이지 */
    .result-step {
        min-height: auto;
        margin-bottom: 40px;
        padding: 30px;
        justify-content: flex-start;
    }
    
    .result-navigation {
        display: flex !important; /* 데스크톱에서도 결과 네비게이션 표시 */
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }
    
    .result-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 30px 0;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* 모바일에서 단계별 표시 및 높이 최적화 */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .intro-step {
        min-height: 85vh; /* 모바일에서 전체 화면 높이에 맞춤 */
        padding: 15px;
        justify-content: space-between;
    }
    
    .step-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .main-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .start-animation {
        margin: 20px 0;
        width: 150px;
        height: 150px;
    }
    
    .personality-wheel {
        width: 150px;
        height: 150px;
    }
    
    .sub-title {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 20px 0;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .stats-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .urgency-notice {
        margin: 20px 0;
        padding: 15px;
    }
    
    .testimonials {
        margin: 20px 0;
    }
    
    .testimonial {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .testimonial-author {
        font-size: 0.8rem;
    }
    
    .step-navigation {
        margin-top: 15px;
        gap: 10px;
    }
    
    .next-btn, .prev-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .start-btn {
        margin: 20px 0;
        padding: 15px 30px;
    }
    
    .share-section {
        margin-top: 15px;
    }
}

/* 시작 페이지 */
.start-page {
    padding: 40px;
    text-align: center;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.start-animation {
    position: relative;
    margin: 40px 0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personality-wheel {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #ffecd2, #fcb69f);
    animation: rotate 10s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personality-segment {
    position: absolute;
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.personality-segment:nth-child(1) { transform: rotate(0deg) translateY(-60px); animation-delay: 0s; }
.personality-segment:nth-child(2) { transform: rotate(90deg) translateY(-60px); animation-delay: 0.5s; }
.personality-segment:nth-child(3) { transform: rotate(180deg) translateY(-60px); animation-delay: 1s; }
.personality-segment:nth-child(4) { transform: rotate(270deg) translateY(-60px); animation-delay: 1.5s; }

.pulse-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255, 154, 158, 0.3);
    border-radius: 50%;
    animation: ripple 3s ease-in-out infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.sub-title {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 500;
}

/* 특징 그리드 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 154, 158, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

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

/* 통계 섹션 */
.stats-section {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 154, 158, 0.1);
    border-radius: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ff9a9e;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* 긴급 알림 */
.urgency-notice {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.urgency-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notice-header {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.notice-content {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.live-counter {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* 시작 버튼 */
.start-btn {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.4);
    position: relative;
    overflow: hidden;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 30px auto;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 154, 158, 0.5);
}

.start-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 후기 */
.testimonials {
    margin: 40px 0;
}

.testimonial {
    background: rgba(255, 154, 158, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #ff9a9e;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.testimonial-author {
    color: #ff9a9e;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 공유 섹션 */
.share-section {
    margin-top: 30px;
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.share-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.3rem;
}

.share-section p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.kakao-share-btn {
    background: #FEE500 !important;
    color: #3C1E1E !important;
    border: none;
}

.kakao-share-btn:hover {
    background: #FFD600 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(254, 229, 0, 0.4);
}

.kakao-share-large {
    background: #FEE500;
    color: #3C1E1E;
    border: none;
    padding: 20px 30px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(254, 229, 0, 0.3);
}

.kakao-share-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(254, 229, 0, 0.5);
    background: #FFD600;
}

.kakao-icon {
    font-size: 2rem;
    min-width: 40px;
}

.kakao-text {
    text-align: left;
    flex-grow: 1;
}

.kakao-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.kakao-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.kakao-share {
    background: #FEE500;
    color: #3C1E1E;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.kakao-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 229, 0, 0.4);
}

.kakao-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3c5.799 0 10.5 3.664 10.5 8.185 0 4.52-4.701 8.184-10.5 8.184a13.5 13.5 0 0 1-1.727-.11l-4.408 2.883c-.501.265-.678.236-.472-.413l.892-3.678c-2.88-1.46-4.785-3.99-4.785-6.866C1.5 6.665 6.201 3 12 3z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* 질문 페이지 - 컴팩트하게 조정 */
.question-page {
    padding: 8px; /* 패딩 더 줄임 */
    max-height: 100vh;
    overflow-y: auto;
}

.hidden {
    display: none !important;
}

.progress-section {
    margin-bottom: 8px; /* 여백 더 줄임 */
    text-align: center;
}

.progress-bar {
    background: rgba(255, 154, 158, 0.2);
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.question-counter {
    font-size: 1rem;
    font-weight: 700;
    color: #ff9a9e;
    margin-bottom: 5px;
}

.time-indicator {
    font-size: 0.8rem;
    color: #666;
}

.question-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px; /* 여백 늘림 - 이모지 제거로 인한 보상 */
    line-height: 1.2;
    text-align: center;
}

.question-subtitle {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-bottom: 8px; /* 여백 더 줄임 */
}

.answers-grid {
    display: grid;
    gap: 8px; /* 간격 줄임 */
    margin-bottom: 10px; /* 여백 줄임 */
}

.answer-btn {
    background: white;
    border: 2px solid rgba(255, 154, 158, 0.2);
    padding: 12px; /* 패딩 줄임 */
    border-radius: 10px; /* 모서리 줄임 */
    font-size: 0.95rem; /* 폰트 크기 줄임 */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.answer-btn:hover {
    border-color: #ff9a9e;
    background: rgba(255, 154, 158, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.15);
}

.answer-btn:active {
    transform: translateY(0);
}

/* 로딩 페이지 */
.loading-page {
    padding: 60px 40px;
    text-align: center;
}

.loading-animation {
    margin-bottom: 40px;
}

@keyframes scan {
    0% { top: 0; opacity: 1; }
    50% { opacity: 0.5; }
    100% { top: 100%; opacity: 1; }
}

.loading-title {
    font-size: 1.8rem;
    color: #ff9a9e;
    margin-bottom: 30px;
    font-weight: 700;
}

.loading-steps {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.step {
    padding: 15px;
    background: rgba(255, 154, 158, 0.1);
    border-radius: 10px;
    color: #666;
    transition: all 0.5s ease;
}

.step.active {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    transform: scale(1.05);
}

.loading-bar {
    background: rgba(255, 154, 158, 0.2);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    width: 0%;
    animation: loading 3s ease-in-out infinite;
    border-radius: 10px;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-text {
    color: #666;
    font-style: italic;
}

/* 결과 페이지 단계별 표시 */
.result-step {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
}

.result-navigation {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.next-result-btn, .prev-result-btn, .final-action-btn {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.3);
    min-width: 140px;
    justify-content: center;
}

.prev-result-btn {
    background: rgba(255, 154, 158, 0.1);
    color: #ff9a9e;
    border: 2px solid #ff9a9e;
    box-shadow: none;
}

.final-action-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.next-result-btn:hover, .prev-result-btn:hover, .final-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 154, 158, 0.4);
}

/* 결과 페이지 */
.result-page {
    padding: 20px;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-badge {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.3);
}

.result-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 800;
}

.result-subtitle {
    font-size: 1.2rem;
    color: #ff9a9e;
    font-weight: 600;
}

.personality-summary {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.personality-summary h3 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.summary-card {
    background: rgba(255, 154, 158, 0.05);
    padding: 20px;
    border-radius: 10px;
    color: #555;
    line-height: 1.6;
    border-left: 4px solid #ff9a9e;
}

.personality-chart,
.personality-details {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.personality-chart h3,
.personality-details h3 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.chart-container {
    padding: 20px;
    background: rgba(255, 154, 158, 0.05);
    border-radius: 10px;
    min-height: 200px;
}

.personality-insights {
    margin-top: 30px;
}

.insights-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.insight-item {
    background: rgba(255, 154, 158, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff9a9e;
}

.detail-card {
    background: rgba(255, 154, 158, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #ff9a9e;
}

.detail-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.personality-score {
    color: #ff9a9e;
    font-weight: 700;
    font-size: 1.1rem;
}

.romantic-profile {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.romantic-profile h3 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.profile-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.advice-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.advice-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.advice-card {
    background: rgba(255, 154, 158, 0.05);
    padding: 20px;
    border-radius: 10px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.improvement-tips h3 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.tips-grid {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.tip-item {
    background: rgba(255, 154, 158, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff9a9e;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

.daily-practices {
    margin-top: 30px;
}

.practices-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.practice-item {
    background: rgba(255, 154, 158, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff9a9e;
    color: #555;
    line-height: 1.4;
}

.compatibility-info {
    margin-top: 30px;
}

.compatibility-card {
    background: rgba(255, 154, 158, 0.05);
    padding: 20px;
    border-radius: 10px;
    color: #555;
    line-height: 1.6;
    border-left: 4px solid #ff9a9e;
}

.recommended-activities {
    margin-top: 30px;
}

.activities-grid {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.activity-item {
    background: rgba(255, 154, 158, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff9a9e;
    color: #555;
    line-height: 1.4;
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.share-result-btn,
.url-share-btn,
.retry-btn {
    padding: 15px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-result-btn {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.3);
}

.url-share-btn {
    background: #28a745;
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.retry-btn {
    background: white;
    color: #ff9a9e;
    border: 2px solid #ff9a9e;
}

.share-result-btn:hover,
.url-share-btn:hover,
.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 154, 158, 0.4);
}

.related-tests {
    margin-top: 40px;
}

.related-tests h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 154, 158, 0.1);
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #ff9a9e;
}

.related-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.related-title {
    font-size: 0.9rem;
    font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 5px;
    }
    
    .start-page,
    .loading-page,
    .result-page {
        padding: 20px;
    }
    
    .question-page {
        padding: 5px; /* 모바일에서 더 줄임 */
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .kakao-share-large {
        padding: 15px 20px;
        max-width: 100%;
    }
    
    .kakao-title {
        font-size: 1rem;
    }
    
    .kakao-subtitle {
        font-size: 0.8rem;
    }
    
    .share-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .share-section h3 {
        font-size: 1.1rem;
    }
    
    /* 모바일에서 질문과 답안 최적화 */
    .question-page {
        padding: 10px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .progress-section {
        margin-bottom: 10px;
    }
    
    .question-container {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .question-text {
        font-size: 1.1rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .question-subtitle {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .answers-grid {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .answer-btn {
        padding: 14px;
        font-size: 0.9rem;
        border-radius: 12px;
        line-height: 1.3;
        min-height: 50px; /* 터치하기 쉽게 최소 높이 설정 */
    }
    
    .ad-container {
        margin: 5px -5px; /* 여백 최소화 */
        border-radius: 6px;
        min-height: 70px; /* 모바일에서 매우 작게 */
        max-height: 80px; /* 최대 높이 제한 */
        padding: 5px;
        box-shadow: 0 1px 8px rgba(255, 154, 158, 0.1);
        background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255, 154, 158, 0.02));
        border: 1px solid rgba(255, 154, 158, 0.1);
    }
    
    .ad-container.top {
        margin: 0 -5px 8px -5px;
        background: linear-gradient(135deg, rgba(255, 154, 158, 0.05), rgba(250, 208, 196, 0.05));
        border: 1px solid rgba(255, 154, 158, 0.15);
        min-height: 60px; /* 상단 광고 더 작게 */
        max-height: 70px;
    }
    
    .ad-container.mid {
        margin: 5px -5px; /* 질문과 답변 사이 여백 최소화 */
        background: linear-gradient(135deg, rgba(255, 154, 158, 0.03), rgba(255, 255, 255, 0.98));
        border: 1px solid rgba(255, 154, 158, 0.1);
        box-shadow: 0 2px 10px rgba(255, 154, 158, 0.1);
        min-height: 60px; /* 중간 광고 가장 작게 */
        max-height: 70px;
    }
    
    .ad-container.result {
        margin: 10px -5px;
        background: linear-gradient(135deg, rgba(250, 208, 196, 0.03), rgba(255, 255, 255, 0.98));
        border: 1px solid rgba(250, 208, 196, 0.1);
        min-height: 80px; /* 결과 페이지만 조금 여유 */
        max-height: 100px;
    }
    
    .adsbygoogle {
        min-height: 60px !important; /* 광고 최소 높이 제한 */
        max-height: 80px !important; /* 광고 최대 높이 제한 */
        width: 100% !important;
        display: block !important;
        overflow: hidden; /* 넘치는 부분 숨김 */
    }
}
