* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 15px;
    color: #ffffff;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3px;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.8), 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #ffffff 0%, #b8b5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
    color: #a0a0a0;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz-container {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(120, 119, 198, 0.1);
    width: 100%;
    max-width: 600px;
    margin-bottom: 15px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    backdrop-filter: blur(10px);
}

.start-screen {
    text-align: center;
    padding: 15px;
}

.start-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 25px 15px;
}

.daily-quiz-info {
    background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(120, 119, 198, 0.2);
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.daily-date {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.daily-reset {
    font-size: 0.85em;
    opacity: 0.8;
    font-weight: 500;
    color: #a0a0a0;
}

.start-content h2 {
    color: #ffffff;
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.5);
}

.start-description {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.start-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
    border-radius: 15px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    font-size: 0.95rem;
    color: #d0d0d0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(120, 119, 198, 0.4);
}

.feature-icon {
    font-size: 1.2rem;
    min-width: 22px;
    color: #7877c6;
}

.start-btn {
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(120, 119, 198, 0.4), 0 0 20px rgba(120, 119, 198, 0.2);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.start-btn:hover::before {
    left: 100%;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(120, 119, 198, 0.5), 0 0 30px rgba(120, 119, 198, 0.3);
}

.start-btn.completed {
    background: linear-gradient(135deg, #00d4aa 0%, #00b4d8 100%);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4), 0 0 20px rgba(0, 212, 170, 0.2);
}

.start-btn.completed:hover {
    box-shadow: 0 15px 35px rgba(0, 212, 170, 0.5), 0 0 30px rgba(0, 212, 170, 0.3);
}

.start-btn:active {
    transform: translateY(0);
}

.continue-btn {
    background: linear-gradient(135deg, #00d4aa 0%, #00b4d8 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4), 0 0 20px rgba(0, 212, 170, 0.2);
    margin-top: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.continue-btn:hover::before {
    left: 100%;
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 170, 0.5), 0 0 30px rgba(0, 212, 170, 0.3);
}

.continue-btn:active {
    transform: translateY(0);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
    border-radius: 15px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.question-counter {
    font-size: 0.95rem;
    font-weight: 600;
    color: #d0d0d0;
}

.timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4aa;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    padding: 8px 16px;
    border-radius: 40px;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3), 0 0 20px rgba(0, 212, 170, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.timer.warning {
    color: #ffb347;
    background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3), 0 0 20px rgba(255, 179, 71, 0.1);
    border-color: rgba(255, 179, 71, 0.3);
}

.timer.urgent {
    color: #ff6b6b;
    background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3), 0 0 20px rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3), 0 0 20px rgba(255, 107, 107, 0.1); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4), 0 0 25px rgba(255, 107, 107, 0.2); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3), 0 0 20px rgba(255, 107, 107, 0.1); }
}

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 3px solid #2d2d44;
    border-top: 3px solid #7877c6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.celebrity-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    text-align: center;
}

.photo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 3px solid rgba(120, 119, 198, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 20px rgba(120, 119, 198, 0.2);
    transition: all 0.3s ease;
}

.photo-container:hover {
    transform: scale(1.05);
    border-color: rgba(120, 119, 198, 0.6);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4), 0 0 30px rgba(120, 119, 198, 0.3);
}

#celebrity-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#celebrity-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
}

#celebrity-bio {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #b0b0b0;
    max-width: 400px;
}

.quiz-question {
    text-align: center;
    margin-bottom: 12px;
}

.quiz-question h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.answer-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.answer-btn {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 110px;
    position: relative;
    overflow: hidden;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.answer-btn:hover::before {
    left: 100%;
}

.answer-btn.alive {
    background: linear-gradient(135deg, #00d4aa 0%, #00b4d8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4), 0 0 20px rgba(0, 212, 170, 0.2);
}

.answer-btn.dead {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 0 20px rgba(255, 107, 107, 0.2);
}

.answer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.answer-btn:active {
    transform: translateY(0);
}

.answer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.timeout-message {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.timeout-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.continue-btn {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(120, 119, 198, 0.4), 0 0 20px rgba(120, 119, 198, 0.2);
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.continue-btn:active {
    transform: translateY(0);
}

footer {
    text-align: center;
    color: rgba(160, 160, 160, 0.8);
    margin-top: auto;
    padding-top: 10px;
}

.summary {
    text-align: center;
    padding: 15px;
}

.summary h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #7877c6, #ff77c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.3);
}

.final-stats {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.final-score, .final-percentage {
    background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.score-label, .percentage-label {
    display: block;
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-value, .percentage-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.final-message {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.4;
    font-style: italic;
}

.question-review {
    display: none;
}

.question-review h3,
.question-review-item,
.question-review-item.correct-answer,
.question-review-item.incorrect-answer,
.question-number,
.question-details,
.answer-details,
.user-answer,
.correct-answer,
.question-icon {
    display: none;
}

.celebrity-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.answer-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.user-answer {
    color: #d0d0d0;
}

.correct-answer {
    color: #00d4aa;
    font-weight: 600;
}

.question-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

.restart-btn {
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(120, 119, 198, 0.4), 0 0 20px rgba(120, 119, 198, 0.2);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.restart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.restart-btn:hover::before {
    left: 100%;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(120, 119, 198, 0.5), 0 0 30px rgba(120, 119, 198, 0.3);
}

.restart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.restart-btn:disabled:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(120, 119, 198, 0.4), 0 0 20px rgba(120, 119, 198, 0.2);
}

/* Development Mode Clear Storage Button */
.dev-clear-storage-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 0 20px rgba(255, 107, 107, 0.2);
    margin: 12px 8px 0 8px;
    opacity: 0.8;
}

.dev-clear-storage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5), 0 0 25px rgba(255, 107, 107, 0.3);
    opacity: 1;
}

/* Clear Storage Confirmation Message */
.clear-storage-confirmation {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b4d8 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4), 0 0 20px rgba(0, 212, 170, 0.2);
    z-index: 1000;
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.confirmation-content h3 {
    margin-bottom: 8px;
    font-size: 1.1em;
}

.confirmation-content p {
    font-size: 0.9em;
    opacity: 0.9;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.daily-celebrities {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
    border-radius: 15px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.daily-celebrities h3 {
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
    font-size: 1.2em;
}

.results-overview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
    border-radius: 12px;
    border: 2px solid rgba(120, 119, 198, 0.2);
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.result-item.correct-answer {
    border-color: #00d4aa;
    background: linear-gradient(135deg, #1e2e2e 0%, #1e1e2e 100%);
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.2);
}

.result-item.incorrect-answer {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #2e1e1e 0%, #1e1e2e 100%);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.2);
}

.result-number {
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(120, 119, 198, 0.3);
}

.result-details {
    flex: 1;
}

.result-details .celebrity-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 1rem;
}

.result-info {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: #a0a0a0;
}

.result-info .status {
    text-transform: capitalize;
}

.result-info .your-answer {
    color: #d0d0d0;
    font-weight: 500;
}

.result-icon {
    font-size: 1.1em;
    margin-left: 12px;
    flex-shrink: 0;
}

/* New Day Notification */
.new-day-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b4d8 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.4), 0 0 20px rgba(0, 212, 170, 0.2);
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
    max-width: 300px;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.notification-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.notification-content p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Statistics Modal */
.stats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.stats-modal.hidden {
    display: none;
}

.stats-modal-content {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 25px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(120, 119, 198, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid rgba(120, 119, 198, 0.2);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stats-modal-header {
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 100%);
    color: white;
    padding: 25px;
    border-radius: 25px 25px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stats-modal-body {
    padding: 25px;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.modal-stat-item {
    background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 15px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modal-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(120, 119, 198, 0.4);
}

.modal-stat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #7877c6;
}

.modal-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 5px;
}

.modal-stat-label {
    font-size: 0.75rem;
    color: #a0a0a0;
    font-weight: 500;
    line-height: 1.2;
}

.modal-score-distribution h3 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-score-distribution-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-score-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.modal-score-label {
    min-width: 70px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #d0d0d0;
}

.modal-score-bar-container {
    flex: 1;
    height: 18px;
    background: #1e1e2e;
    border-radius: 9px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.modal-score-bar {
    height: 100%;
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 100%);
    border-radius: 9px;
    transition: width 0.5s ease;
    min-width: 4px;
}

.modal-score-count {
    min-width: 25px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: #d0d0d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 8px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .quiz-container {
        padding: 15px 12px;
    }
    
    .start-content h2 {
        font-size: 1.8rem;
    }
    
    .start-description {
        font-size: 0.9rem;
    }
    
    .start-features {
        gap: 8px;
    }
    
    .feature {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .start-btn {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .timer {
        font-size: 1.2rem;
        padding: 5px 10px;
        min-width: 40px;
    }
    
    .photo-container {
        width: 90px;
        height: 90px;
    }
    
    #celebrity-name {
        font-size: 1.2rem;
    }
    
    #celebrity-bio {
        font-size: 0.85rem;
    }
    
    .answer-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .answer-btn {
        width: 100%;
        max-width: 180px;
        padding: 8px 18px;
        font-size: 0.95rem;
    }
    
    .summary h2 {
        font-size: 1.5rem;
    }
    
    .final-stats {
        gap: 8px;
    }
    
    .score-value, .percentage-value {
        font-size: 1.2rem;
    }
    
    .question-review h3 {
        font-size: 1.1rem;
    }
    
    .question-review-list {
        gap: 8px;
    }
    
    .question-review-item {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .answer-details {
        flex-direction: column;
        gap: 4px;
    }
    
    .restart-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .dev-clear-storage-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin: 8px 4px 0 4px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
    }
    
    .quiz-container {
        padding: 12px 8px;
    }
    
    .start-content h2 {
        font-size: 1.5rem;
    }
    
    .start-description {
        font-size: 0.85rem;
    }
    
    .start-features {
        gap: 6px;
    }
    
    .feature {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .start-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        min-width: 140px;
    }
    
    .quiz-header {
        padding: 6px 10px;
    }
    
    .timer {
        font-size: 1rem;
        padding: 4px 8px;
        min-width: 35px;
    }
    
    .photo-container {
        width: 75px;
        height: 75px;
    }
    
    #celebrity-name {
        font-size: 1rem;
    }
    
    #celebrity-bio {
        font-size: 0.8rem;
    }
    
    .quiz-question h3 {
        font-size: 1rem;
    }
    
    .summary h2 {
        font-size: 1.3rem;
    }
    
    .final-stats {
        gap: 6px;
        flex-direction: column;
        align-items: center;
    }
    
    .score-value, .percentage-value {
        font-size: 1rem;
    }
    
    .restart-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .dev-clear-storage-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin: 6px 2px 0 2px;
    }
    
    .clear-storage-confirmation {
        top: 10px;
        right: 10px;
        max-width: 260px;
        padding: 12px;
    }
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .stats-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .stats-modal-header {
        padding: 15px;
    }
    
    .stats-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .close-modal-btn {
        font-size: 1.5rem;
        width: 25px;
        height: 25px;
    }
    
    .stats-modal-body {
        padding: 20px;
    }
    
    .modal-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .modal-stat-item {
        padding: 12px;
    }
    
    .modal-stat-icon {
        font-size: 1.5rem;
    }
    
    .modal-stat-value {
        font-size: 1.4rem;
    }
    
    .modal-score-item {
        gap: 8px;
    }
    
    .modal-score-label {
        min-width: 60px;
        font-size: 0.8rem;
    }
    
    .modal-score-count {
        min-width: 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats-modal-content {
        width: 98%;
        border-radius: 15px;
    }
    
    .stats-modal-header {
        padding: 12px;
        border-radius: 15px 15px 0 0;
    }
    
    .stats-modal-header h2 {
        font-size: 1.1rem;
    }
    
    .stats-modal-body {
        padding: 15px;
    }
    
    .modal-stats-grid {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .modal-stat-item {
        padding: 10px;
    }
    
    .modal-stat-icon {
        font-size: 1.3rem;
    }
    
    .modal-stat-value {
        font-size: 1.2rem;
    }
    
    .modal-stat-label {
        font-size: 0.7rem;
    }
    
    .modal-score-distribution h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .modal-score-item {
        padding: 8px 0;
    }
    
    .modal-score-label {
        min-width: 50px;
        font-size: 0.75rem;
    }
    
    .modal-score-bar-container {
        height: 16px;
    }
    
    .modal-score-count {
        min-width: 18px;
        font-size: 0.75rem;
    }
}

.button-container {
    text-align: center;
    margin-top: 20px;
    min-height: 60px; /* Ensure consistent height for centering */
    display: flex;
    justify-content: center;
    align-items: center;
}


