:root {
    --dark-slate: #2c3e50;
    --bright-blue: #3498db;
    --light-gray: #ecf0f1;
    --red: #e74c3c;
    --green: #2ecc71;
    --hologram-gradient: linear-gradient(135deg, var(--bright-blue), var(--green), var(--red));
    --hologram-glow: 0 0 20px rgba(52, 152, 219, 0.5);
    --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-slate);
    color: var(--light-gray);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 204, 113, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(231, 76, 60, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header */
header {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--bright-blue);
    box-shadow: var(--shadow-deep);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--hologram-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.5rem;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Main Content */
main {
    padding: 0 1rem 5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Welcome Card */
.welcome-card {
    background: rgba(236, 240, 241, 0.1);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: var(--hologram-glow), var(--shadow-deep);
    text-align: center;
}

.welcome-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--hologram-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-card p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Game Modes - Reorganizados */
.game-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.game-mode-btn {
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid var(--bright-blue);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    justify-content: center;
}

.game-mode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--hologram-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.game-mode-btn:hover::before {
    left: 0;
    opacity: 0.15;
}

.game-mode-btn:hover {
    transform: translateY(-8px);
    box-shadow: var(--hologram-glow), var(--shadow-deep);
    border-color: var(--green);
    background: rgba(52, 152, 219, 0.15);
}

.game-mode-btn:active {
    transform: translateY(-4px);
}

.game-mode-btn i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--bright-blue);
    transition: var(--transition);
}

.game-mode-btn:hover i {
    color: var(--green);
    transform: scale(1.1);
}

.game-mode-btn span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--light-gray);
    transition: var(--transition);
}

.game-mode-btn:hover span {
    color: white;
}

.game-mode-btn small {
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: center;
    line-height: 1.3;
    color: var(--light-gray);
    transition: var(--transition);
}

.game-mode-btn:hover small {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsividade para modos de jogo */
@media (max-width: 768px) {
    .game-modes {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 600px;
    }
    
    .game-mode-btn {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }
    
    .game-mode-btn i {
        font-size: 2rem;
    }
    
    .game-mode-btn span {
        font-size: 1rem;
    }
    
    .game-mode-btn small {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .game-modes {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
    }
    
    .game-mode-btn {
        padding: 1.5rem 1rem;
        min-height: 140px;
    }
    
    .game-mode-btn i {
        font-size: 1.8rem;
    }
    
    .game-mode-btn span {
        font-size: 0.95rem;
    }
    
    .game-mode-btn small {
        font-size: 0.75rem;
    }
}

/* Game Screen */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.back-btn {
    background: var(--red);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.game-info, .game-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
}

.game-info span:first-child,
.game-stats span:first-child {
    font-weight: 600;
    color: var(--bright-blue);
}

/* Game Container - Reorganizado */
.game-container {
    background: rgba(236, 240, 241, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    margin: 2rem 0;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(52, 152, 219, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

#game-instruction {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(52, 152, 219, 0.15);
    border-radius: 16px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    font-weight: 600;
    line-height: 1.4;
    max-width: 500px;
}

#game-area {
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 1.5rem;
}

.countdown {
    position: absolute;
    font-size: 4rem;
    font-weight: 700;
    color: var(--bright-blue);
    text-shadow: 0 0 20px var(--bright-blue);
    animation: pulse 1s infinite;
}

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

/* Game Elements - Reorganizados para melhor proporção */

/* Instruções dos jogos */
.color-instruction,
.shape-instruction,
.sound-instruction,
.speed-instruction {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(52, 152, 219, 0.15);
    border-radius: 16px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    font-weight: 600;
    line-height: 1.4;
}

/* Container de opções */
.color-options,
.shape-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* Elementos de cor - Proporção melhorada */
.color-target {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-deep), 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.color-target::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.color-target:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3), var(--shadow-deep);
    border-color: rgba(255, 255, 255, 0.6);
}

.color-target:hover::before {
    opacity: 1;
}

.color-target:active {
    transform: scale(0.98);
}

/* Elementos de forma - Proporção melhorada */
.shape-target {
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid var(--light-gray);
    border-radius: 16px;
    background: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.shape-target::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.shape-target:hover {
    transform: scale(1.05);
    box-shadow: var(--hologram-glow), 0 8px 25px rgba(52, 152, 219, 0.3);
    border-color: var(--bright-blue);
    background: rgba(52, 152, 219, 0.2);
}

.shape-target:hover::before {
    opacity: 1;
}

.shape-target:active {
    transform: scale(0.98);
}

/* Indicador de som - Proporção melhorada */
.sound-indicator {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bright-blue), #2980b9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    animation: soundPulse 2s infinite;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
}

.sound-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.sound-indicator:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(52, 152, 219, 0.6);
}

.sound-indicator:hover::before {
    opacity: 1;
}

.sound-indicator:active {
    transform: scale(0.98);
}

.sound-indicator i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.sound-indicator div {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

@keyframes soundPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 30px rgba(52, 152, 219, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 50px rgba(52, 152, 219, 0.6);
    }
}

/* Área de toque - Proporção melhorada */
.tap-area {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #27ae60);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.8rem;
    font-weight: 700;
    user-select: none;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.4);
    position: relative;
    overflow: hidden;
}

.tap-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.tap-area:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(46, 204, 113, 0.6);
}

.tap-area:hover::before {
    opacity: 1;
}

.tap-area:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, var(--bright-blue), #2980b9);
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.5);
}

.tap-area div:first-child {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tap-area div:last-child {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Buttons */
.primary-btn, .secondary-btn, .danger-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: var(--hologram-gradient);
    color: white;
    box-shadow: var(--hologram-glow);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--hologram-glow), var(--shadow-deep);
}

.secondary-btn {
    background: rgba(52, 152, 219, 0.1);
    color: var(--bright-blue);
    border: 2px solid var(--bright-blue);
}

.secondary-btn:hover {
    background: var(--bright-blue);
    color: white;
}

.danger-btn {
    background: var(--red);
    color: white;
}

.danger-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Rankings */
.rankings-container {
    padding: 2rem 0;
}

.rankings-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: var(--hologram-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ranking-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.ranking-tab {
    padding: 0.8rem 1.5rem;
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid var(--bright-blue);
    border-radius: 25px;
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.9rem;
}

.ranking-tab.active {
    background: var(--bright-blue);
    color: white;
    box-shadow: var(--hologram-glow);
}

.ranking-tab:hover {
    background: rgba(52, 152, 219, 0.2);
}

.ranking-list {
    background: rgba(236, 240, 241, 0.05);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    min-height: 200px;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--bright-blue);
}

.ranking-item:nth-child(1) { border-left-color: #ffd700; }
.ranking-item:nth-child(2) { border-left-color: #c0c0c0; }
.ranking-item:nth-child(3) { border-left-color: #cd7f32; }

.ranking-position {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bright-blue);
    min-width: 40px;
}

.ranking-score {
    font-weight: 600;
    color: var(--green);
}

.ranking-date {
    font-size: 0.8rem;
    opacity: 0.7;
}

.no-rankings {
    text-align: center;
    padding: 3rem;
    opacity: 0.6;
    font-style: italic;
}

/* Settings */
.settings-container {
    padding: 2rem 0;
    max-width: 500px;
    margin: 0 auto;
}

.settings-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: var(--hologram-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(236, 240, 241, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.setting-item i {
    color: var(--bright-blue);
    width: 20px;
}

.setting-item input[type="checkbox"] {
    width: 50px;
    height: 25px;
    appearance: none;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.setting-item input[type="checkbox"]:checked {
    background: var(--green);
}

.setting-item input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.setting-item input[type="checkbox"]:checked::before {
    left: 27px;
}

.setting-item select {
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid var(--bright-blue);
    border-radius: 8px;
    color: var(--light-gray);
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.setting-item select option {
    background: var(--dark-slate);
    color: var(--light-gray);
}

/* FAQ */
.faq-container {
    padding: 2rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.faq-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: var(--hologram-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(236, 240, 241, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(52, 152, 219, 0.2);
    overflow: hidden;
}

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

.faq-question:hover {
    background: rgba(52, 152, 219, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--bright-blue);
    transition: var(--transition);
}

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

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-gray);
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: var(--bright-blue);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    border-top: 2px solid var(--bright-blue);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--light-gray);
    opacity: 0.7;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 12px;
    min-width: 60px;
}

.nav-item.active {
    opacity: 1;
    color: var(--bright-blue);
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.nav-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    opacity: 0.6;
    font-size: 0.9rem;
    border-top: 1px solid rgba(52, 152, 219, 0.2);
    margin-bottom: 5rem;
}

.footer-link {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.footer-link:hover {
    color: var(--bright-blue);
    background: rgba(52, 152, 219, 0.1);
    opacity: 1;
    transform: translateY(-2px);
}

.footer-link:focus {
    outline: 2px solid var(--bright-blue);
    outline-offset: 2px;
}

/* Responsive Design - Melhorado */
@media (max-width: 768px) {
    .game-modes {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .game-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .ranking-tabs {
        flex-wrap: wrap;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Ajustes para elementos de jogo em tablets */
    .color-target {
        width: 120px;
        height: 120px;
    }
    
    .shape-target {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .sound-indicator {
        width: 160px;
        height: 160px;
    }
    
    .tap-area {
        width: 180px;
        height: 180px;
    }
    
    .color-options,
    .shape-options {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }
    
    .welcome-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .game-modes {
        grid-template-columns: 1fr;
    }
    
    .game-container {
        padding: 1.5rem 1rem;
        min-height: 400px;
    }
    
    #game-instruction {
        font-size: 1.1rem;
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Elementos de jogo otimizados para mobile */
    .color-target {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .shape-target {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        border-radius: 12px;
    }
    
    .sound-indicator {
        width: 140px;
        height: 140px;
    }
    
    .sound-indicator i {
        font-size: 2rem;
    }
    
    .sound-indicator div {
        font-size: 0.9rem;
    }
    
    .tap-area {
        width: 160px;
        height: 160px;
    }
    
    .tap-area div:first-child {
        font-size: 1.2rem;
    }
    
    .tap-area div:last-child {
        font-size: 1rem;
    }
    
    .color-options,
    .shape-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
        max-width: 400px;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
    
    /* Instruções otimizadas para mobile */
    .color-instruction,
    .shape-instruction,
    .sound-instruction,
    .speed-instruction {
        font-size: 1.1rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 360px) {
    /* Otimizações para telas muito pequenas */
    .color-target {
        width: 90px;
        height: 90px;
    }
    
    .shape-target {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .sound-indicator {
        width: 120px;
        height: 120px;
    }
    
    .tap-area {
        width: 140px;
        height: 140px;
    }
    
    .color-options,
    .shape-options {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.6rem;
    }
}

/* Game Animations - Melhoradas */
@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background-color: var(--green); }
    100% { transform: scale(1); }
}

@keyframes wrongAnswer {
    0% { transform: translateX(0); }
    25% { transform: translateX(-8px); background-color: var(--red); }
    75% { transform: translateX(8px); }
    100% { transform: translateX(0); }
}

.correct-animation {
    animation: correctAnswer 0.4s ease-in-out;
}

.wrong-animation {
    animation: wrongAnswer 0.4s ease-in-out;
}

/* Resultados do jogo - Reorganizados */
.game-results {
    text-align: center;
    padding: 2rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

.game-results h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    background: var(--hologram-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--light-gray);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bright-blue);
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

/* Responsividade para resultados */
@media (max-width: 480px) {
    .game-results {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .game-results h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-top: 3px solid var(--bright-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --hologram-gradient: linear-gradient(135deg, #ffffff, #000000);
        --hologram-glow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    
    .game-mode-btn, .ranking-item, .setting-item, .faq-item {
        border-width: 3px;
    }
}
