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

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
    /* Remove automatic animation - let JS control */
}

.splash-content {
    text-align: center;
    color: white;
    animation: slideUp 0.8s ease-out;
}

.splash-logo {
    margin-bottom: 2rem;
}

.custom-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.splash-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.splash-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.splash-animation {
    margin: 2rem 0;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.splash-footer {
    margin-top: 2rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Splash Animations */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

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

.screen.active {
    display: flex;
}

/* User Welcome Section */
.user-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.welcome-message {
    font-size: 1.3em;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.user-name {
    color: #00ff88;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Responsive adjustments for welcome message */
@media (max-width: 480px) {
    .user-welcome {
        padding: 12px;
        gap: 12px;
        margin-bottom: 15px;
    }

    .user-avatar {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }

    .welcome-message {
        font-size: 1.1em;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .user-welcome {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .welcome-message {
        color: #ffffff;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    }
}

/* Enhanced screen transitions */
.screen {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.screen.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth question transitions */
.quiz-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Personality Analysis Styles */
.personality-analysis {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.analysis-header h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.2em;
    text-align: center;
}

.trait-scores h4, .insights h4, .comparison h4 {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 1em;
    font-weight: 600;
}

.trait-item {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.trait-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.trait-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.trait-score {
    font-weight: 700;
    color: #667eea;
    font-size: 14px;
}

.trait-bar {
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.trait-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.trait-desc {
    font-size: 12px;
    color: #718096;
    font-style: italic;
}

.insights {
    margin: 20px 0;
}

.insight-item {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 13px;
    color: #2d3748;
    line-height: 1.4;
}

.comparison {
    margin-top: 20px;
}

.result-distribution {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.dist-character {
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
    min-width: 80px;
}

.dist-count {
    font-size: 12px;
    color: #718096;
    min-width: 60px;
}

.dist-bar {
    flex: 1;
    height: 6px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.dist-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* Mobile responsiveness for analysis */
@media (max-width: 480px) {
    .personality-analysis {
        padding: 15px;
        margin-top: 20px;
    }

    .trait-item {
        padding: 10px;
    }

    .trait-name, .trait-score {
        font-size: 13px;
    }

    .insight-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .dist-character {
        min-width: 70px;
        font-size: 12px;
    }

    .dist-count {
        min-width: 50px;
        font-size: 11px;
    }
}

/* Leaderboard Styles */
.leaderboard-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 25px;
}

.leaderboard-header h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.2em;
}

.stats-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
}

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

.stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    font-size: 0.85em;
    color: #718096;
    font-weight: 500;
}

.global-distribution h4 {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 1em;
    font-weight: 600;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.character-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.character-stat-item:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.character-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.character-mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    object-fit: cover;
}

.character-details {
    display: flex;
    flex-direction: column;
}

.character-mini-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.character-count {
    font-size: 12px;
    color: #718096;
}

.character-percentage {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.percentage-text {
    font-weight: 700;
    color: #667eea;
    font-size: 14px;
    min-width: 35px;
    text-align: right;
}

.percentage-bar {
    width: 50px;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

.daily-highlight {
    margin: 20px 0;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    animation: highlightPulse 2s ease-in-out infinite;
}

.highlight-icon {
    font-size: 1.5em;
    animation: bounce 1s ease-in-out infinite;
}

.highlight-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 4px;
}

.highlight-text {
    color: #4a5568;
    font-size: 13px;
    line-height: 1.3;
}

.personal-history {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.personal-history h4 {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 1em;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.history-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.2);
    object-fit: cover;
}

.history-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.history-character {
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
}

.history-date {
    font-size: 11px;
    color: #718096;
}

.history-match {
    font-size: 11px;
    color: #667eea;
    font-weight: 500;
}

.history-more {
    margin-top: 15px;
    text-align: center;
}

.show-more-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* History Modal */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.1em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.history-item-full {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.history-details-full {
    flex: 1;
}

.history-traits {
    font-size: 11px;
    color: #718096;
    margin-top: 5px;
    line-height: 1.3;
}

/* Animations */
@keyframes highlightPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Mobile responsiveness for leaderboard */
@media (max-width: 480px) {
    .leaderboard-section {
        padding: 15px;
        margin-top: 20px;
    }

    .stats-summary {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.3em;
    }

    .character-stat-item {
        padding: 10px 12px;
    }

    .character-mini-avatar {
        width: 35px;
        height: 35px;
    }

    .character-mini-name {
        font-size: 13px;
    }

    .character-count {
        font-size: 11px;
    }

    .percentage-text {
        font-size: 13px;
    }

    .percentage-bar {
        width: 40px;
    }

    .highlight-card {
        padding: 12px 15px;
        gap: 12px;
    }

    .highlight-icon {
        font-size: 1.3em;
    }

    .highlight-title {
        font-size: 13px;
    }

    .highlight-text {
        font-size: 12px;
    }

    .history-avatar {
        width: 30px;
        height: 30px;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }
}

/* Leaderboard Page Styles */
.stats-overview {
    margin-bottom: 30px;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.stat-card .stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    color: #718096;
    font-weight: 500;
    font-size: 0.9em;
}

.leaderboard-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.leaderboard-section h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.3em;
    font-weight: 700;
}

.character-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-stat-item:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.character-stat-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.character-stat-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(169, 169, 169, 0.1));
    border-color: rgba(192, 192, 192, 0.3);
}

.character-stat-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(184, 115, 51, 0.1));
    border-color: rgba(205, 127, 50, 0.3);
}

.rank-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a9a9a9);
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b87333);
}

.character-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(102, 126, 234, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.character-details {
    flex: 1;
    min-width: 0;
}

.character-name {
    font-weight: 700;
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 4px;
}

.character-subtitle {
    color: #718096;
    font-size: 13px;
    margin-bottom: 4px;
}

.character-count {
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
}

.character-percentage {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 80px;
}

.percentage-text {
    font-weight: 700;
    color: #667eea;
    font-size: 18px;
}

.percentage-bar {
    width: 60px;
    height: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 2s ease-out;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.trending-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 193, 7, 0.5);
    object-fit: cover;
    flex-shrink: 0;
}

.highlight-content {
    flex: 1;
}

.highlight-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 18px;
    margin-bottom: 8px;
}

.highlight-text {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.4;
}

.trending-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
}

.activity-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 4px;
}

.activity-desc {
    color: #718096;
    font-size: 13px;
}

/* Mobile responsiveness for leaderboard page */
@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-card .stat-number {
        font-size: 2em;
    }

    .leaderboard-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .character-stat-item {
        padding: 12px 15px;
        gap: 12px;
    }

    .character-avatar {
        width: 50px;
        height: 50px;
    }

    .character-name {
        font-size: 14px;
    }

    .character-subtitle {
        font-size: 12px;
    }

    .percentage-text {
        font-size: 16px;
    }

    .percentage-bar {
        width: 50px;
        height: 8px;
    }

    .highlight-card {
        padding: 15px;
        gap: 15px;
    }

    .trending-avatar {
        width: 60px;
        height: 60px;
    }

    .highlight-title {
        font-size: 16px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .activity-item {
        padding: 15px;
    }
}

/* Simple screen transitions - no complex animations */

/* Start Screen */
.hero {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.leader-preview {
    margin: 30px 0;
}

.preview-avatars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.avatar-mini {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.preview-text {
    font-size: 14px;
    color: #888;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    border: 2px solid #ddd;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
}

/* Quiz Screen */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.question-counter {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 30px;
}

.question-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
}

.question-container h2 {
    font-size: 20px;
    margin-bottom: 25px;
    line-height: 1.4;
    color: #333;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.answer-btn {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border: 2px solid rgba(102, 126, 234, 0.25);
    padding: 12px 18px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    color: #2d3748;
    font-weight: 500;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    min-height: 50px;
    display: flex;
    align-items: center;
}

.answer-btn:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    color: #2d3748;
}

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

.answer-btn.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    animation: selectedPulse 0.3s ease-out;
    font-weight: 600;
}

.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.answer-btn:disabled:not(.selected) {
    background: rgba(255, 255, 255, 0.7);
    color: rgba(51, 51, 51, 0.5);
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

@keyframes selectedPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.02);
    }
}

/* Result Screen */
.result-container {
    width: 100%;
    text-align: center;
}

.result-header h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.result-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.result-image {
    display: flex;
    height: 250px;
    overflow: hidden;
}

.result-image img {
    width: 40%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 0 0 0;
}

.result-overlay {
    flex: 1;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.result-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ecf0f1;
}

.result-subtitle {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 12px;
}

.result-traits {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 15px;
    line-height: 1.4;
}

.result-quote {
    font-size: 13px;
    font-style: italic;
    color: #e8f4fd;
    border-left: 3px solid #3498db;
    padding-left: 10px;
}

.result-description {
    padding: 25px;
}

.result-description p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }

    .screen {
        padding: 15px;
    }

    .hero {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .result-image {
        flex-direction: column;
        height: auto;
    }

    .result-image img {
        width: 100%;
        height: 200px;
        border-radius: 15px 15px 0 0;
    }

    .result-overlay {
        padding: 20px;
        text-align: center;
    }

    .result-name {
        font-size: 18px;
    }
}

/* Personality Analysis Styles - IMPROVED CONTRAST */
.personality-analysis {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.analysis-header h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.match-strength {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.match-circle {
    text-align: center;
    min-width: 90px;
}

.match-percentage {
    font-size: 2.2rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.match-label {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

.match-description {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.answer-distribution h4,
.insights h4 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.distribution-bars {
    margin-bottom: 2rem;
}

.dist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.dist-name {
    color: #ffffff;
    min-width: 90px;
    font-size: 1rem;
    font-weight: 500;
}

.dist-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dist-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.dist-count {
    color: #ffffff;
    font-size: 1rem;
    min-width: 50px;
    font-weight: 500;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    color: #ffffff;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid #00ff88;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Simple Stats Styles REMOVED - User requested removal */
