:root {
    --primary-color: #3A86FF; /* Azul principal */
    --secondary-color: #00C2FF; /* Azul claro */
    --accent-color: #00FFA3; /* Verde neon */
    --purple: #6C5CE7; /* Roxo gamer */
    --blue: #1E90FF; /* Azul vivo */
    --dark: #1a1a1a;
    --light: #ffffff;
    --gradient: linear-gradient(135deg, var(--blue), var(--accent-color));
    --neon-glow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Arial', sans-serif;
    background: var(--gradient);
    color: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

#app {
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.header-logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.bird-logo-small {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.main-content {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.screen {
    display: none;
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.screen.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Start Screen */
.start-content {
    text-align: center;
    max-width: 400px;
    margin: 0px 0px 160px 0px;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-logo {
    margin-bottom: 1.5rem;
}

.bird-logo {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
    animation: birdFloat 3s ease-in-out infinite;
}

@keyframes birdFloat {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: var(--light);
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.8),
        0 0 20px var(--accent-color),
        0 0 40px var(--accent-color);
    animation: pulse 2s infinite;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Menu Section */
.menu-section {
    text-align: center;
}

.menu-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.start-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.cloud-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cloud-2 {
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.cloud-3 {
    top: 60%;
    left: 20%;
    animation-delay: 4s;
}

/* Game Screen */
.game-hud {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.score-display {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0px 0px 160px 0px;
    width: 100%;
}

#game-canvas {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--accent-color);
    border-radius: 15px;
    box-shadow: var(--neon-glow);
    background: linear-gradient(180deg, #87CEEB 0%, #98FB98 100%);
}

.game-controls {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Instructions Screen */
.instructions-content {
    max-width: 500px;
    margin: auto;
    width: 100%;
}

.instruction-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.instruction-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.instruction-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.instruction-item h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.instruction-item p {
    line-height: 1.5;
    opacity: 0.9;
}

/* Settings Screen */
.settings-content {
    max-width: 600px;
    margin: auto;
    width: 100%;
    padding: 0 1rem;
}

.settings-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.settings-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-height: 60px;
    gap: 1rem;
    flex-wrap: nowrap;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.settings-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 255, 163, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.setting-item label {
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--dark);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background-color: var(--accent-color);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

input:checked + .slider:before {
    transform: translateX(30px);
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

select {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--light);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    flex-shrink: 0;
}

select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.2);
}

select option {
    background: var(--dark);
    color: var(--light);
}

/* FAQ Screen */
.faq-content {
    max-width: 600px;
    margin: auto;
    width: 100%;
}

.faq-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.faq-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    opacity: 1;
    max-height: 200px;
}

.faq-answer p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--light);
    margin-top: 10px;
}

.btn-primary {
    background: var(--gradient);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 163, 0.35);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #00ff88);
    border: none;
    color: var(--dark);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 163, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #00ff88, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 163, 0.4);
}

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

.btn-accent:hover::before {
    left: 100%;
}

/* Share Modal Styles */
.share-modal-content {
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.share-message {
    margin: 1rem 0;
}

.share-message label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--light);
}

.share-message textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 0.85rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.share-message textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.2);
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-2px);
}

.btn-facebook {
    background: linear-gradient(135deg, #1877F2, #0D47A1);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #0D47A1, #1877F2);
    transform: translateY(-2px);
}

.btn-twitter {
    background: linear-gradient(135deg, #1DA1F2, #0D47A1);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.btn-twitter:hover {
    background: linear-gradient(135deg, #0D47A1, #1DA1F2);
    transform: translateY(-2px);
}

/* Share Modal Responsive */
@media (max-width: 768px) {
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .share-modal-content {
        max-width: 85%;
        padding: 1.2rem;
    }
    
    .share-message {
        margin: 0.8rem 0;
    }
    
    .share-message textarea {
        font-size: 0.8rem;
        min-height: 70px;
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-modal-content {
        padding: 1rem;
        max-width: 90%;
    }
    
    .share-message {
        margin: 0.6rem 0;
    }
    
    .share-message textarea {
        font-size: 0.75rem;
        min-height: 60px;
        padding: 0.5rem;
    }
    
    .btn-whatsapp, .btn-facebook, .btn-twitter {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    /* Prevent accidental closing - modal should only be closed by buttons */
    pointer-events: auto;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.9), rgba(0, 255, 163, 0.9));
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 2px solid var(--accent-color);
    box-shadow: var(--neon-glow);
    /* Prevent clicks from bubbling to modal overlay */
    position: relative;
    z-index: 1001;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.score-summary {
    margin-bottom: 2rem;
}

.score-summary p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.new-record {
    background: var(--accent-color);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 1rem;
    animation: bounce 1s infinite;
}

.new-record.hidden {
    display: none;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* Footer */
footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.6;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand p {
    margin: 0;
    color: var(--light);
    font-weight: 400;
    opacity: 0.9;
}

.footer-brand strong {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-brand a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-brand a:hover {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.footer-brand a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-brand a:hover::after {
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    background: rgba(0, 255, 163, 0.15);
    border-color: rgba(0, 255, 163, 0.3);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 163, 0.2);
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.1), rgba(0, 255, 136, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-copyright {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.7;
    color: var(--light);
}

@media (max-width: 768px) {
    footer {
        padding: 1.2rem 0.8rem;
    }
    
    .footer-content {
        gap: 0.8rem;
    }
    
    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .footer-brand p {
        font-size: 0.85rem;
        text-align: center;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1rem 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .footer-links a {
        width: 100%;
        text-align: center;
    }
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .settings-content {
        max-width: 500px;
    }
    
    .settings-card {
        padding: 1.8rem;
    }
    
    .setting-item {
        padding: 1.1rem;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .screen {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .menu-title {
        font-size: 1.5rem;
    }
    
    .instruction-card,
    .settings-card {
        padding: 1.5rem;
    }
    
    .settings-content {
        padding: 0 0.5rem;
    }
    
    .settings-card h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .setting-item {
        padding: 1rem;
        margin-bottom: 1rem;
        gap: 0.8rem;
    }
    
    .setting-item label {
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .app-header h1 {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .menu-title {
        font-size: 1.3rem;
    }
    
    .hero-logo .bird-logo {
        width: 60px;
        height: 45px;
    }
    
    .instruction-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .setting-item {
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .setting-item label {
        font-size: 1rem;
    }
    
    .settings-content {
        padding: 0 0.25rem;
    }
    
    .settings-card {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .settings-card h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .setting-item {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
        min-height: auto;
        gap: 0.5rem;
    }
    
    .setting-item label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .toggle-switch {
        width: 50px;
        height: 25px;
    }
    
    .slider:before {
        height: 19px;
        width: 19px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .slider:before {
        transform: translateX(25px);
    }
    
    select {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .score-display {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .settings-content {
        padding: 0;
    }
    
    .settings-card {
        padding: 0.8rem;
        border-radius: 12px;
        margin: 0.5rem;
    }
    
    .settings-card h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .setting-item {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
        border-radius: 12px;
        gap: 0.6rem;
        min-height: 50px;
    }
    
    .setting-item label {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .toggle-switch {
        width: 45px;
        height: 22px;
    }
    
    .slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .slider:before {
        transform: translateX(23px);
    }
    
    select {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        min-width: 90px;
    }
}

/* Theme Variations */
.theme-neon {
    --primary-color: #00FFFF;
    --secondary-color: #FF00FF;
    --accent-color: #00FF00;
    --purple: #FF0080;
    --blue: #0080FF;
    --dark: #001a1a;
    --light: #ffffff;
    --gradient: linear-gradient(135deg, #00FFFF, #FF00FF);
    --neon-glow: 0 0 20px #00FF00, 0 0 40px #00FF00;
    --shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

.theme-dark {
    --primary-color: #333333;
    --secondary-color: #555555;
    --accent-color: #FFFFFF;
    --purple: #666666;
    --blue: #888888;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gradient: linear-gradient(135deg, #1a1a1a, #333333);
    --neon-glow: 0 0 20px #FFFFFF, 0 0 40px #FFFFFF;
    --shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

/* Theme-specific bird logo colors */
.theme-neon .bird-logo,
.theme-neon .bird-logo-small {
    filter: drop-shadow(3px 3px 6px rgba(0, 255, 255, 0.4)) drop-shadow(0 0 10px #FF00FF);
}

.theme-neon .bird-logo #birdGradient stop:first-child,
.theme-neon .bird-logo-small #birdGradientSmall stop:first-child {
    stop-color: #FF66FF;
}

.theme-neon .bird-logo #birdGradient stop:last-child,
.theme-neon .bird-logo-small #birdGradientSmall stop:last-child {
    stop-color: #CC00CC;
}

.theme-dark .bird-logo,
.theme-dark .bird-logo-small {
    filter: drop-shadow(3px 3px 6px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 10px #FFFFFF);
}

.theme-dark .bird-logo #birdGradient stop:first-child,
.theme-dark .bird-logo-small #birdGradientSmall stop:first-child {
    stop-color: #FFFFFF;
}

.theme-dark .bird-logo #birdGradient stop:last-child,
.theme-dark .bird-logo-small #birdGradientSmall stop:last-child {
    stop-color: #d9d9d9;
}

/* Theme-specific hero title contrast */
.theme-classic .hero-title {
    color: #ffffff;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 20px #00FFA3,
        0 0 40px #00FFA3,
        0 0 60px #3A86FF;
}

.theme-neon .hero-title {
    color: #ffffff;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 20px #00FF00,
        0 0 40px #00FF00,
        0 0 60px #FF00FF;
}

.theme-dark .hero-title {
    color: #ffffff;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 20px #ffffff,
        0 0 40px #ffffff,
        0 0 60px #ffffff;
}
