* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #FAFAFA;
    color: #0A0A0A;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Start Screen */
#startScreen {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-content {
    text-align: center;
    width: 100%;
}

.logo-section {
    margin-bottom: 40px;
}

.logo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E8FF00 0%, #D0E800 100%);
    color: #0A0A0A;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.main-title {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    color: #0A0A0A;
    line-height: 1.1;
}

.subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: #666;
    margin-bottom: 40px;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 24px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #E8FF00;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0A0A0A;
}

.feature-text {
    font-size: 14px;
    color: #666;
}

.btn-start {
    background: linear-gradient(135deg, #E8FF00 0%, #D0E800 100%);
    color: #0A0A0A;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(232, 255, 0, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 255, 0, 0.5);
    background: linear-gradient(135deg, #F0FF00 0%, #D8F000 100%);
}

.btn-start:active {
    transform: translateY(0);
}

.trust-badges {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #999;
    font-size: 14px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-badge span {
    color: #4CAF50;
    font-weight: 600;
}

/* Question Screen */
#questionScreen {
    display: none;
    min-height: 60vh;
    padding: 40px 0;
}

.progress-container {
    margin-bottom: 40px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.progress-bar {
    height: 6px;
    background: #E5E5E5;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E8FF00, #D0E800);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.question-card {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.question-text {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    margin-bottom: 32px;
    color: #0A0A0A;
    line-height: 1.3;
}

.answers-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    background: #F8F9FA;
    border: 2px solid #E9ECEF;
    color: #333;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.answer-btn:hover {
    background: linear-gradient(135deg, #F5FFB3 0%, #E8FF00 100%);
    border-color: #D0E800;
    transform: translateX(5px);
    color: #0A0A0A;
    font-weight: 500;
}

.answer-btn:active {
    transform: scale(0.98);
}

/* Result Screen */
#resultScreen {
    display: none;
    padding: 40px 0;
}

/* Shared Result Banner */
.shared-banner {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.shared-banner p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Personality Result Card */
.personality-card {
    background: linear-gradient(135deg, #FFFFFF, #F8F9FA);
    border: 2px solid #E8FF00;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.personality-content {
    position: relative;
    z-index: 1;
}

.personality-icon {
    font-size: clamp(60px, 10vw, 100px);
    margin-bottom: 20px;
    display: block;
}

.personality-title {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #0A0A0A, #333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.personality-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
}

/* Stats Section */
.stats-section {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stats-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0A0A0A;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Special Delusion Metric Styling */
.stat-item-special {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CD 100%);
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.stat-item-special .stat-label {
    font-weight: 700;
    font-size: clamp(14px, 2vw, 16px);
    color: #0A0A0A;
}

.stat-item-special .stat-value-special {
    font-size: clamp(16px, 3vw, 20px);
    color: #0A0A0A;
    font-weight: 800;
}

.stat-label {
    flex: 0 0 150px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.stat-bar-wrapper {
    flex: 1;
    height: 12px;
    background: #F0F0F0;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 0;
}

.stat-bar.danger { 
    background: linear-gradient(90deg, #ff4444, #ff6b6b); 
}
.stat-bar.warning { 
    background: linear-gradient(90deg, #ff9800, #ffc107); 
}
.stat-bar.success { 
    background: linear-gradient(90deg, #4CAF50, #8BC34A); 
}

.stat-value {
    flex: 0 0 60px;
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    color: #0A0A0A;
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analysis-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.analysis-card.strengths {
    border-top: 4px solid #4CAF50;
}

.analysis-card.weaknesses {
    border-top: 4px solid #ff4444;
}

.analysis-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0A0A0A;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-list {
    list-style: none;
}

.analysis-list li {
    padding: 10px 0;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #F0F0F0;
    position: relative;
    padding-left: 25px;
}

.analysis-list li:last-child {
    border-bottom: none;
}

.analysis-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #999;
}

/* Truth Bomb */
.truth-card {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border: 2px solid #FF9800;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.truth-title {
    color: #E65100;
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 800;
    margin-bottom: 15px;
}

.truth-text {
    font-size: clamp(16px, 3vw, 18px);
    line-height: 1.6;
    color: #5D4037;
    font-weight: 500;
}

/* All Personality Types Section */
.all-types-section {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.all-types-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.all-types-header:hover {
    background: #F8F9FA;
}

.all-types-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.all-types-toggle {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.all-types-header.open .all-types-toggle {
    transform: rotate(180deg);
}

.all-types-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.all-types-content.open {
    max-height: 3000px;
    overflow-y: auto;
}

.types-grid {
    padding-top: 20px;
    display: grid;
    gap: 15px;
}

.type-card {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #E8FF00;
    transition: all 0.2s ease;
}

.type-card:hover {
    background: #F0F0F0;
    transform: translateX(5px);
}

.type-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.type-card-icon {
    font-size: 32px;
}

.type-card-info {
    flex: 1;
}

.type-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 2px;
}

.type-card-subtitle {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.type-card-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Answer History Accordion */
.history-section {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.history-header:hover {
    background: #F8F9FA;
}

.history-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.history-toggle {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.history-header.open .history-toggle {
    transform: rotate(180deg);
}

.history-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.history-content.open {
    max-height: 2000px;
    overflow-y: auto;
}

.history-item {
    padding: 15px;
    border-bottom: 1px solid #F0F0F0;
}

.history-item:last-child {
    border-bottom: none;
}

.history-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.history-answer {
    color: #666;
    font-size: 14px;
    padding-left: 15px;
}

/* Share Section */
.share-section {
    text-align: center;
    padding: 30px;
    background: #F5F5F5;
    border-radius: 16px;
}

.share-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.btn-share {
    background: linear-gradient(135deg, #E8FF00 0%, #D0E800 100%);
    color: #0A0A0A;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 8px;
    -webkit-tap-highlight-color: transparent;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 255, 0, 0.5);
    background: linear-gradient(135deg, #F0FF00 0%, #D8F000 100%);
}

.btn-restart {
    background: #6C757D;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 8px;
    -webkit-tap-highlight-color: transparent;
}

.btn-restart:hover {
    background: #5A6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        gap: 15px;
    }
    
    .question-card {
        padding: 25px 20px;
    }
    
    .stat-label {
        flex: 0 0 100px;
        font-size: 12px;
    }
    
    .share-section {
        padding: 20px;
    }
    
    .btn-share, .btn-restart {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .stat-bar-wrapper {
        margin: 0 10px;
    }
    
    .stat-value {
        flex: 0 0 45px;
        font-size: 14px;
    }
}