/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 50%, #fd79a8 100%);
    min-height: 100vh;
    color: #2d3436;
    line-height: 1.6;
}

/* Game Container */
.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.game-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #fd79a8;
}

.game-title {
    font-size: 2rem;
    font-weight: bold;
    color: #e17055;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-emoji {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

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

.stats-panel {
    display: flex;
    gap: 20px;
}

.stat-item {
    background: rgba(253, 121, 168, 0.2);
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #fd79a8;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #636e72;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e17055;
}

/* Main Game Area */
.game-main {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.screen.active {
    display: block;
}

/* Welcome Screen */
.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #fd79a8;
    text-align: center;
}

.cat-mascot {
    margin-bottom: 30px;
    position: relative;
}

.cat-sprite {
    font-size: 4rem;
    display: inline-block;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.speech-bubble {
    background: #74b9ff;
    color: white;
    padding: 20px;
    border-radius: 20px;
    margin-top: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #74b9ff;
}

.speech-bubble p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.speech-bubble p:last-child {
    margin-bottom: 0;
}

/* Category Selection */
.category-selection h2 {
    color: #e17055;
    margin-bottom: 30px;
    font-size: 2rem;
}

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

.category-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #fd79a8;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(253, 121, 168, 0.3);
    border-color: #e84393;
}

.category-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
    border-radius: 50%;
    color: white;
}

.category-info h3 {
    color: #e17055;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.category-info p {
    color: #636e72;
    margin-bottom: 10px;
}

.cat-helper {
    color: #fd79a8;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    box-shadow: 0 5px 15px rgba(253, 121, 168, 0.4);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 121, 168, 0.6);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #e17055;
    border: 2px solid #fd79a8;
}

.btn.secondary:hover {
    background: #fd79a8;
    color: white;
    transform: translateY(-2px);
}

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

/* Quiz Screen */
.quiz-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #fd79a8;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    background: rgba(116, 185, 255, 0.2);
    border: 2px solid #74b9ff;
    color: #74b9ff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #74b9ff;
    color: white;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-badge {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(253, 121, 168, 0.2);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

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

.question-area {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cat-companion {
    text-align: center;
    min-width: 120px;
}

.cat-sprite.companion {
    font-size: 5rem;
    display: block;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.cat-mood {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

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

.question-content {
    flex: 1;
}

.question-content h2 {
    color: #2d3436;
    font-size: 1.4rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

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

.answer-option {
    background: rgba(255, 255, 255, 0.8);
    border: 3px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
}

.answer-option:hover {
    border-color: #fd79a8;
    background: rgba(253, 121, 168, 0.1);
    transform: translateX(5px);
}

.answer-option.selected {
    border-color: #74b9ff;
    background: rgba(116, 185, 255, 0.2);
    transform: translateX(5px);
}

.answer-option.correct {
    border-color: #00b894;
    background: rgba(0, 184, 148, 0.2);
    animation: correctPulse 0.6s ease;
}

.answer-option.incorrect {
    border-color: #e17055;
    background: rgba(225, 112, 85, 0.2);
    animation: shake 0.6s ease;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.question-actions {
    text-align: center;
}

/* Feedback Area */
.feedback-area {
    margin-top: 30px;
    padding: 25px;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 20px;
    border: 2px solid #74b9ff;
    text-align: center;
}

.cat-reaction {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 1s ease;
}

.feedback-message {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 15px;
}

.explanation {
    font-size: 1rem;
    color: #636e72;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Cat Gallery */
.gallery-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #fd79a8;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.gallery-header h2 {
    color: #e17055;
    font-size: 2rem;
}

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

.cat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #fd79a8;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(253, 121, 168, 0.3);
}

.cat-card.selected {
    border-color: #74b9ff;
    background: rgba(116, 185, 255, 0.1);
}

.cat-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.cat-avatar {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.cat-name {
    font-weight: bold;
    color: #e17055;
    margin-bottom: 5px;
}

.cat-breed {
    color: #636e72;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.happiness-meter {
    background: rgba(253, 121, 168, 0.2);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.cat-status {
    font-size: 0.8rem;
    color: #636e72;
}

/* Cat Care Panel */
.cat-care-panel {
    background: rgba(116, 185, 255, 0.1);
    border: 2px solid #74b9ff;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

.cat-care-panel h3 {
    color: #74b9ff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.care-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.care-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #fd79a8;
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 120px;
}

.care-btn:hover {
    background: #fd79a8;
    color: white;
    transform: translateY(-2px);
}

.care-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.care-text {
    font-weight: bold;
}

.care-cost {
    font-size: 0.8rem;
    color: #636e72;
}

/* Achievements */
.achievements-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #fd79a8;
}

.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.achievements-header h2 {
    color: #e17055;
    font-size: 2rem;
}

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

.achievement-card {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #ddd;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card.unlocked {
    border-color: #00b894;
    background: rgba(0, 184, 148, 0.1);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.achievement-title {
    font-weight: bold;
    color: #e17055;
    margin-bottom: 5px;
}

.achievement-description {
    color: #636e72;
    font-size: 0.9rem;
}

/* Results Screen */
.results-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #fd79a8;
    text-align: center;
}

.results-header h2 {
    color: #e17055;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cat-celebration {
    margin-bottom: 30px;
}

.cat-sprite.celebrating {
    font-size: 5rem;
    animation: celebrate 1s ease-in-out infinite;
}

@keyframes celebrate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

.celebration-text {
    font-size: 1.2rem;
    color: #fd79a8;
    font-weight: bold;
    margin-top: 10px;
}

.results-stats {
    background: rgba(116, 185, 255, 0.1);
    border: 2px solid #74b9ff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.result-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.result-stat:last-child {
    margin-bottom: 0;
}

.result-label {
    color: #636e72;
    font-weight: 600;
}

.result-value {
    color: #e17055;
    font-weight: bold;
}

.results-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 15px;
    }

    .stats-panel {
        gap: 10px;
    }

    .stat-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-btn {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .question-area {
        flex-direction: column;
        gap: 20px;
    }

    .cat-companion {
        align-self: center;
    }

    .care-actions {
        flex-direction: column;
        align-items: center;
    }

    .results-actions,
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .game-main {
        padding: 10px;
    }

    .welcome-card,
    .quiz-container,
    .gallery-container,
    .achievements-container,
    .results-container {
        padding: 20px;
        margin: 0 10px;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .cat-emoji {
        font-size: 2rem;
    }

    .speech-bubble {
        padding: 15px;
    }

    .speech-bubble p {
        font-size: 1rem;
    }

    .category-selection h2 {
        font-size: 1.5rem;
    }

    .cats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.animate-feed {
    animation: feed 1s ease-in-out;
}

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

.animate-pet {
    animation: pet 1s ease-in-out;
}

@keyframes pet {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.animate-treat {
    animation: treat 1s ease-in-out;
}

@keyframes treat {
    0% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}/*
 Enhanced Button Layouts */
.nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #fd79a8;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    font-family: inherit;
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(253, 121, 168, 0.3);
    border-color: #e84393;
    background: rgba(253, 121, 168, 0.1);
}

.category-btn .category-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.category-btn .category-info h3 {
    color: #e17055;
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.category-btn .category-info p {
    color: #636e72;
    margin: 0;
    font-size: 1rem;
}

/* Cat Gallery Styles */
#cats-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #fd79a8;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(253, 121, 168, 0.3);
}

.cat-avatar {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.cat-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e17055;
    margin-bottom: 5px;
}

.cat-breed {
    color: #636e72;
    font-size: 1rem;
    margin-bottom: 10px;
}

.cat-happiness {
    color: #74b9ff;
    font-weight: 600;
    margin-bottom: 15px;
}

.cat-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* Achievement Styles */
.achievements-list {
    margin: 30px 0;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #00b894;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

.achievement-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00b894, #55efc4);
    border-radius: 50%;
    flex-shrink: 0;
}

.achievement-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e17055;
    margin-bottom: 5px;
}

.achievement-desc {
    color: #636e72;
    font-size: 0.9rem;
}

/* Enhanced Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: inherit;
    min-width: 150px;
}

.btn.primary {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    box-shadow: 0 5px 15px rgba(253, 121, 168, 0.4);
    border: 2px solid transparent;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(253, 121, 168, 0.6);
    background: linear-gradient(135deg, #e84393, #d63384);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #e17055;
    border: 2px solid #fd79a8;
    box-shadow: 0 3px 10px rgba(253, 121, 168, 0.2);
}

.btn.secondary:hover {
    background: #fd79a8;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(253, 121, 168, 0.4);
}

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

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-btn {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .cat-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .achievement-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .welcome-card {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 120px;
    }
    
    .category-btn .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .cat-avatar {
        font-size: 3rem;
    }
    
    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

/* Loading Animation */
.cat-sprite {
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* Hover Effects for Interactive Elements */
.welcome-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.2);
}

/* Better spacing and typography */
h2 {
    color: #e17055;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

h3 {
    color: #e17055;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}/* Le
arning Section on Main Page */
.learning-section {
    margin: 40px 0;
}

.learning-section h2 {
    color: #e17055;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

/* Enhanced Category Buttons for Main Page */
.categories-grid .category-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #fd79a8;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.categories-grid .category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.categories-grid .category-btn:hover::before {
    left: 100%;
}

.categories-grid .category-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(253, 121, 168, 0.4);
    border-color: #e84393;
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.1), rgba(255, 255, 255, 0.95));
}

.cat-helper {
    color: #fd79a8;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 5px 10px;
    background: rgba(253, 121, 168, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(253, 121, 168, 0.3);
}

/* Progress Indicators */
.category-btn .progress-indicator {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #00b894;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Unlock Animation */
@keyframes unlock {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.category-btn.unlocked {
    animation: unlock 0.6s ease;
}

/* Mobile Responsive for Main Page */
@media (max-width: 768px) {
    .learning-section h2 {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .categories-grid .category-btn {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .categories-grid .category-btn .category-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .learning-section {
        margin: 30px 0;
    }
    
    .learning-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .categories-grid .category-btn {
        padding: 15px;
        gap: 12px;
    }
    
    .categories-grid .category-btn .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .categories-grid .category-btn .category-info h3 {
        font-size: 1.1rem;
    }
    
    .categories-grid .category-btn .category-info p {
        font-size: 0.9rem;
    }
    
    .cat-helper {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* Enhanced Welcome Card */
.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #fd79a8;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(253, 121, 168, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.welcome-card > * {
    position: relative;
    z-index: 1;
}/* C
at Image Styles */
.cat-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fd79a8;
    box-shadow: 0 8px 25px rgba(253, 121, 168, 0.3);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.cat-image:hover {
    transform: scale(1.05);
    border-color: #e84393;
    box-shadow: 0 12px 35px rgba(253, 121, 168, 0.5);
}

.cat-avatar {
    margin-bottom: 15px;
    position: relative;
}

.cat-avatar.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.cat-avatar.locked::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated cat images */
.cat-image.happy {
    animation: happyBounce 0.6s ease;
}

.cat-image.fed {
    animation: fedGlow 1s ease;
}

.cat-image.petted {
    animation: pettedWiggle 0.8s ease;
}

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

@keyframes fedGlow {
    0%, 100% { box-shadow: 0 8px 25px rgba(253, 121, 168, 0.3); }
    50% { box-shadow: 0 8px 25px rgba(255, 193, 7, 0.8); }
}

@keyframes pettedWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* Responsive cat images */
@media (max-width: 768px) {
    .cat-image {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .cat-avatar.locked::after {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cat-image {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }
    
    .cat-avatar.locked::after {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Loading placeholder for images */
.cat-image-loading {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #999;
    border: 4px solid #ddd;
    margin: 0 auto 15px;
}

/* Cat card enhancements for images */
.cat-card:hover .cat-image {
    transform: scale(1.05);
}

.cat-card.selected .cat-image {
    border-color: #74b9ff;
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.5);
}

/* Happiness indicator overlay */
.cat-avatar::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: #00b894;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    font-weight: bold;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cat-card:hover .cat-avatar::before {
    opacity: 1;
    content: '😊';
}/* Ma
in Cat Image on Welcome Screen */
.main-cat-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fd79a8;
    box-shadow: 0 10px 30px rgba(253, 121, 168, 0.4);
    transition: all 0.3s ease;
    animation: wiggle 3s ease-in-out infinite;
}

.main-cat-image:hover {
    transform: scale(1.1);
    border-color: #e84393;
    box-shadow: 0 15px 40px rgba(253, 121, 168, 0.6);
}

/* Cat sprite container adjustments */
.cat-sprite {
    display: inline-block;
    margin-bottom: 20px;
}

/* Fallback for failed image loads */
.cat-image-error {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    border: 4px solid #fd79a8;
    margin: 0 auto;
}

/* Enhanced cat card hover effects */
.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(253, 121, 168, 0.4);
}

.cat-card:hover .cat-image {
    transform: scale(1.05);
    border-color: #e84393;
}

/* Loading state for images */
.cat-image {
    transition: opacity 0.3s ease;
}

.cat-image.loading {
    opacity: 0.5;
}

/* Mobile responsive adjustments for images */
@media (max-width: 768px) {
    .main-cat-image {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }
}

@media (max-width: 480px) {
    .main-cat-image {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
}
/* Quiz Sc
reen Enhancements */
.quiz-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #fd79a8;
    max-width: 900px;
    margin: 0 auto;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.quiz-progress {
    flex: 1;
    min-width: 300px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(253, 121, 168, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

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

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #636e72;
    font-weight: 600;
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: auto;
}

/* Quiz Content Layout */
.quiz-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    min-height: 500px;
    overflow: visible;
}

.quiz-cat-companion {
    text-align: center;
    min-width: 100px;
    max-width: 120px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.quiz-cat {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

.cat-mood {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.cat-speech {
    background: #74b9ff;
    color: white;
    padding: 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    position: relative;
}

.cat-speech::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #74b9ff;
}

.cat-speech p {
    margin: 0;
    font-weight: 600;
}

/* Question Area */
.question-area {
    flex: 1;
    min-width: 0; /* Allow shrinking */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-text {
    font-size: 1.3rem;
    color: #2d3436;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 600;
    padding: 20px;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 15px;
    border-left: 5px solid #74b9ff;
}

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

.answer-option {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(253, 121, 168, 0.1), transparent);
    transition: width 0.3s ease;
}

.answer-option:hover {
    border-color: #fd79a8;
    background: rgba(253, 121, 168, 0.05);
    transform: translateX(5px);
}

.answer-option:hover::before {
    width: 100%;
}

.answer-option.selected {
    border-color: #74b9ff;
    background: rgba(116, 185, 255, 0.15);
    transform: translateX(5px);
}

.answer-option.selected::before {
    width: 100%;
    background: linear-gradient(90deg, rgba(116, 185, 255, 0.2), transparent);
}

.answer-option.correct {
    border-color: #00b894;
    background: rgba(0, 184, 148, 0.15);
    animation: correctPulse 0.6s ease;
}

.answer-option.incorrect {
    border-color: #e17055;
    background: rgba(225, 112, 85, 0.15);
    animation: shake 0.6s ease;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.quiz-actions {
    text-align: center;
}

#submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#submit-btn:disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(253, 121, 168, 0.4);
}

/* Feedback Area */
.feedback-area {
    margin-top: 30px;
    padding: 25px;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 20px;
    border: 2px solid #74b9ff;
    text-align: center;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cat-reaction {
    font-size: 3rem;
    animation: bounce 1s ease;
}

.feedback-message {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3436;
}

.explanation {
    font-size: 1rem;
    color: #636e72;
    margin-bottom: 20px;
    line-height: 1.6;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #74b9ff;
}

/* Results Screen */
.results-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.result-stat {
    text-align: center;
    background: rgba(116, 185, 255, 0.1);
    border: 2px solid #74b9ff;
    border-radius: 20px;
    padding: 25px;
    min-width: 150px;
}

.result-number {
    font-size: 3rem;
    font-weight: bold;
    color: #e17055;
    margin-bottom: 10px;
}

.result-label {
    font-size: 1.1rem;
    color: #636e72;
    font-weight: 600;
}

.results-unlocks {
    background: rgba(253, 121, 168, 0.1);
    border: 2px solid #fd79a8;
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.results-unlocks h3 {
    color: #e17055;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.results-unlocks p {
    color: #636e72;
    font-size: 1.1rem;
    margin: 0;
}

.results-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Gallery Instructions */
.gallery-instructions {
    color: #636e72;
    font-size: 1rem;
    margin-bottom: 25px;
    text-align: center;
    font-style: italic;
}

/* Responsive Design for Quiz */
@media (max-width: 768px) {
    .quiz-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .quiz-cat-companion {
        align-self: center;
        order: -1;
    }
    
    .quiz-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .progress-text {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .question-text {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .results-summary {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .quiz-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .quiz-cat {
        font-size: 3rem;
    }
    
    .cat-mood {
        font-size: 1.5rem;
    }
    
    .cat-speech {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .question-text {
        font-size: 1rem;
        padding: 12px;
    }
    
    .answer-option {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .feedback-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .cat-reaction {
        font-size: 2.5rem;
    }
    
    .feedback-message {
        font-size: 1.1rem;
    }
    
    .result-number {
        font-size: 2.5rem;
    }
    
    .result-stat {
        padding: 20px;
        min-width: 120px;
    }
}

/* Animation for quiz transitions */
.quiz-container {
    animation: slideIn 0.5s ease;
}

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

/* Enhanced button states */
.btn:focus {
    outline: 3px solid rgba(116, 185, 255, 0.5);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fd79a8;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}/* Quiz L
ayout Fixes */
.quiz-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    overflow: visible;
}

.quiz-content {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    min-height: auto !important;
    flex-wrap: wrap;
}

.question-area {
    flex: 1 1 400px;
    min-width: 300px;
    max-width: 100%;
}

.quiz-cat-companion {
    flex: 0 0 100px;
    min-width: 100px;
    max-width: 120px;
}

.answers-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.answer-option {
    padding: 15px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
}

.feedback-area {
    margin-top: 20px !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.quiz-actions {
    margin-top: 15px !important;
    text-align: center !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .quiz-content {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .quiz-cat-companion {
        order: -1;
        align-self: center;
        flex: none;
    }
    
    .question-area {
        flex: none;
        width: 100%;
    }
    
    .quiz-container {
        margin: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .answer-option {
        padding: 12px !important;
        font-size: 0.9rem !important;
    }
    
    .quiz-cat {
        font-size: 3rem !important;
    }
    
    .feedback-area {
        padding: 15px !important;
    }
}/* Font a
nd Readability Improvements */
.game-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #2d3436;
    margin-bottom: 20px;
}

.answer-option {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
}

.category-btn h3 {
    font-weight: 600;
    font-size: 1.1rem;
}

.category-btn p {
    font-weight: 400;
    font-size: 0.9rem;
}

.feedback-message {
    font-weight: 500;
    font-size: 1rem;
}

.explanation {
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cat-name {
    font-weight: 600;
    font-size: 1rem;
}

.cat-breed {
    font-weight: 400;
    font-size: 0.9rem;
}

.cat-happiness {
    font-weight: 500;
    font-size: 0.85rem;
}

/* Button text improvements */
.btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    letter-spacing: 0.25px;
}

/* Stats panel improvements */
.stat-label {
    font-weight: 500;
    font-size: 0.8rem;
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem;
}/*
 How to Play Section */
.how-to-play {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(116, 185, 255, 0.2);
}

.how-to-play h3 {
    text-align: center;
    color: #e17055;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(116, 185, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid #74b9ff;
    transition: all 0.3s ease;
}

.instruction-item:hover {
    background: rgba(116, 185, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.2);
}

.instruction-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 50%;
}

.instruction-content h4 {
    color: #2d3436;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.instruction-content p {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.quick-tips {
    background: rgba(253, 121, 168, 0.05);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #fd79a8;
}

.quick-tips h4 {
    color: #e17055;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-tips li {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.quick-tips li::before {
    content: '🎯';
    position: absolute;
    left: 0;
    top: 0;
}

.quick-tips li strong {
    color: #2d3436;
    font-weight: 600;
}

/* Responsive design for How to Play */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .instruction-item {
        padding: 15px;
    }
    
    .instruction-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .how-to-play {
        padding: 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .instruction-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .instruction-icon {
        align-self: center;
    }
    
    .how-to-play h3 {
        font-size: 1.3rem;
    }
}/* H
ow to Play Toggle Functionality */
.how-to-play-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.how-to-play-header h3 {
    margin-bottom: 0;
    flex: 1;
}

.toggle-instructions-btn {
    background: rgba(116, 185, 255, 0.1);
    border: 2px solid #74b9ff;
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #74b9ff;
    min-width: 80px;
    justify-content: center;
}

.toggle-instructions-btn:hover {
    background: rgba(116, 185, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.3);
}

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

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.toggle-instructions-btn[aria-expanded="false"] .toggle-icon {
    transform: rotate(180deg);
}

.instructions-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Smooth animation for content */
.instructions-content.hiding {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
}

.instructions-content.showing {
    opacity: 1;
    max-height: 2000px;
    margin-bottom: 0;
}

/* Mobile responsive for toggle */
@media (max-width: 768px) {
    .how-to-play-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .how-to-play-header h3 {
        flex: none;
    }
    
    .toggle-instructions-btn {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .toggle-instructions-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }
}/* Home
 Link Styling */
.home-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-link:hover {
    color: #fd79a8;
    transform: translateY(-1px);
}

.home-link:active {
    transform: translateY(0);
}

/* Ensure the title maintains its styling when it's a link */
.game-title .home-link {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

/* Add a subtle home indicator on hover */
.home-link:hover .cat-emoji {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}/
* Quiz Actions Button Layout */
.quiz-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.quiz-actions .btn {
    flex: 0 0 auto;
    min-width: 140px;
    transition: all 0.3s ease;
}

/* Ensure buttons maintain consistent sizing */
#submit-btn, #next-btn {
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
}

/* Responsive design for quiz actions */
@media (max-width: 480px) {
    .quiz-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .quiz-actions .btn {
        width: 100%;
        min-width: auto;
    }
}/* Ov
erride with Cute Home Link Styling */
.home-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    cursor: pointer !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid transparent !important;
    position: relative !important;
    overflow: hidden !important;
}

.home-link::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.6s ease;
}

.home-link:hover::before {
    left: 100%;
}

.home-link:hover {
    color: #fd79a8 !important;
    transform: translateY(-2px) scale(1.02) !important;
    border-color: rgba(253, 121, 168, 0.3) !important;
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.1), rgba(116, 185, 255, 0.05)) !important;
    box-shadow: 0 8px 25px rgba(253, 121, 168, 0.2) !important;
}

.home-link:active {
    transform: translateY(-1px) scale(1.01) !important;
}

/* Cute cat emoji animations */
.home-link .cat-emoji {
    font-size: 2.8rem !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
}

.home-link:hover .cat-emoji {
    animation: cuteWiggle 0.8s ease !important;
    transform: rotate(-5deg) scale(1.1) !important;
    filter: drop-shadow(0 4px 8px rgba(253, 121, 168, 0.3)) !important;
}

/* Cute wiggle animation */
@keyframes cuteWiggle {
    0%, 100% { transform: rotate(-5deg) scale(1.1); }
    25% { transform: rotate(5deg) scale(1.15); }
    50% { transform: rotate(-3deg) scale(1.12); }
    75% { transform: rotate(3deg) scale(1.08); }
}

/* Add sparkle effect */
.home-link:hover::after {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.2rem;
    animation: sparkle 1s ease infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.8) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2) rotate(180deg); 
    }
}

/* Mobile responsive cute styling */
@media (max-width: 768px) {
    .home-link {
        padding: 6px 12px !important;
        gap: 8px !important;
    }
    
    .home-link .cat-emoji {
        font-size: 2.2rem !important;
    }
    
    .home-link:hover {
        transform: translateY(-1px) scale(1.01) !important;
    }
}/* 
Notification Animations */
@keyframes slideInNotification {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOutNotification {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

.notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}/
* Dynamic Cat Helper Styling */
.cat-helper.unlocked {
    color: #00b894;
    font-weight: 600;
    background: rgba(0, 184, 148, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.cat-helper:not(.unlocked) {
    color: #fd79a8;
    font-weight: 500;
    background: rgba(253, 121, 168, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(253, 121, 168, 0.3);
}/* A
chievements Page Styling */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.achievement-card.unlocked {
    border-color: rgba(0, 184, 148, 0.3);
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(255, 255, 255, 0.9));
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2);
}

.achievement-card.locked {
    border-color: rgba(99, 110, 114, 0.2);
    opacity: 0.7;
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(253, 121, 168, 0.1);
    border: 2px solid rgba(253, 121, 168, 0.3);
    flex-shrink: 0;
}

.achievement-icon.unlocked {
    background: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.3);
    animation: achievementGlow 2s ease infinite;
}

@keyframes achievementGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 184, 148, 0.4); }
    50% { box-shadow: 0 0 20px rgba(0, 184, 148, 0.4); }
}

.achievement-content {
    flex: 1;
    min-width: 0;
}

.achievement-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 5px;
}

.achievement-description {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 10px;
    line-height: 1.4;
}

.achievement-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-small {
    flex: 1;
    height: 6px;
    background: rgba(99, 110, 114, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, #fd79a8, #74b9ff);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.achievement-card.unlocked .progress-fill-small {
    background: linear-gradient(90deg, #00b894, #55a3ff);
}

.progress-text-small {
    font-size: 0.8rem;
    font-weight: 500;
    color: #636e72;
    min-width: 40px;
}

.achievement-unlocked {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00b894;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .achievement-card {
        padding: 15px;
        gap: 12px;
    }
    
    .achievement-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
}