* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #CF9FFF;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.homeBtn {
        position: fixed;   /* stays at top-left even on scroll */
        top: 10px;         /* distance from top */
        left: 10px;        /* distance from left */
        z-index: 1000;     /* stays above other elements */
        }

        .homeBtn button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        }

        #imgbtn {
        width: 100px;       /* adjust size if needed */
        height: auto;
        }


.icon {
    font-size: 40px;
}

.header h1 {
    font-size: 28px;
    color: #5a67d8;
    font-weight: 700;
}

.header-right {
    text-align: right;
}

.score-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.score-value {
    font-size: 36px;
    font-weight: bold;
    color: #5a67d8;
}

.screen {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

/* Instructions */
.instructions-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.info-icon {
    font-size: 48px;
}

.instructions-header h2 {
    font-size: 32px;
    color: #333;
    font-weight: 700;
}

.instruction-steps {
    margin-bottom: 30px;
}

.instruction-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.instruction-item p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

.instruction-item ul {
    margin-top: 10px;
    margin-left: 20px;
    color: #555;
    line-height: 1.8;
}

.instruction-item li {
    margin-bottom: 8px;
}

.green {
    color: #10b981;
    font-weight: bold;
}

.red {
    color: #ef4444;
    font-weight: bold;
}

/* Buttons */
.btn-start, .btn-play-again, .btn-exit {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-start {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Game Screen */
.progress-bar {
    margin-bottom: 30px;
}

.progress-text {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.progress-bg {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.question-container {
    text-align: center;
    margin-bottom: 30px;
}

.emoji-display {
    font-size: 100px;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.question-text {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.clue-text {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    border: 3px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.option-btn:hover {
    border-color: #667eea;
    background: #f3f4f6;
    transform: translateY(-2px);
}

.option-btn.correct {
    background: #10b981;
    color: white;
    border-color: #10b981;
    animation: correctPulse 0.5s;
}

.option-btn.wrong {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    animation: wrongShake 0.5s;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.feedback {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px;
}

.feedback.correct {
    background: #d1fae5;
    color: #065f46;
}

.feedback.wrong {
    background: #fee2e2;
    color: #991b1b;
}

/* Final Screen */
.final-card {
    text-align: center;
}

.trophy-icon {
    font-size: 120px;
    animation: bounce 2s infinite;
}

.final-card h2 {
    font-size: 42px;
    color: #333;
    margin: 25px 0;
    font-weight: 700;
}

.final-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #5a67d8;
}

.performance-message {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #92400e;
    margin: 25px 0;
}

.final-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-play-again {
    flex: 1;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-play-again:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-exit {
    flex: 1;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-exit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .final-stats {
        grid-template-columns: 1fr;
    }
}