:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --light-color: #ecf0f1;
    --dark-color: #1a252f;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-glow: 0 0 20px rgba(52, 152, 219, 0.3);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --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: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: var(--light-color);
    overflow-x: hidden;
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.app-header {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    backdrop-filter: blur(15px);
    padding: 1rem;
    box-shadow: var(--shadow-strong);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.app-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.header-stats {
    display: flex;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.header-stats span {
    background: rgba(52, 152, 219, 0.25);
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    border: 1px solid rgba(52, 152, 219, 0.4);
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

.header-stats .combo {
    background: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.4);
    animation: bounceIn 0.5s ease-out;
}

.main-content {
    flex: 1;
    padding: 1rem;
    padding-bottom: 120px; /* Espaço extra para navegação */
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 10;
}

.screen {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideInFromBottom 0.4s ease-out;
}

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

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: 0 0 30px rgba(52, 152, 219, 0.6); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.game-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
    min-height: 400px;
    background: rgba(26, 37, 47, 0.3);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

#game-canvas {
    border: 2px solid rgba(52, 152, 219, 0.6);
    border-radius: var(--border-radius);
    background: radial-gradient(circle at center, #1a252f 0%, #0f1419 100%);
    box-shadow: var(--shadow-glow), inset 0 0 50px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    touch-action: manipulation;
    display: block;
    transition: all 0.3s ease;
}

#game-canvas:hover {
    animation: pulseGlow 2s infinite;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius);
}

.menu-screen, .game-over-screen, .pause-screen {
    text-align: center;
    padding: 1.5rem;
    background: rgba(44, 62, 80, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    border: 2px solid rgba(52, 152, 219, 0.3);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.menu-logo, .game-over-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.menu-logo-img, .game-over-logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.menu-logo-img:hover, .game-over-logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.menu-screen h2, .game-over-screen h2, .pause-screen h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.game-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    max-width: 100%;
}

.mode-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-strong);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 90px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

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

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

.mode-btn:hover, .mode-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.mode-btn i {
    font-size: 1.4rem;
    width: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.mode-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mode-btn span {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mode-btn small {
    display: block;
    opacity: 0.9;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
}

.final-stats {
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    text-align: center;
}

.final-stats p {
    margin: 0;
    font-size: 1rem;
    padding: 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

#new-record {
    color: var(--success-color);
    font-weight: 700;
    animation: pulse 1s infinite;
}

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

@keyframes lifeLost {
    0% { transform: scale(1); filter: brightness(1); }
    25% { transform: scale(1.2); filter: brightness(1.5); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
    100% { transform: scale(1); filter: brightness(1); }
}

.restart-btn, .resume-btn {
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.8rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-strong);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem auto;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.restart-btn:hover::before, .resume-btn:hover::before {
    left: 100%;
}

.restart-btn:hover, .restart-btn:active,
.resume-btn:hover, .resume-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.game-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(52, 152, 219, 0.9);
    border: 2px solid rgba(52, 152, 219, 0.6);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.control-btn:hover::before {
    width: 100%;
    height: 100%;
}

.game-status {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.status-item {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light-color);
    animation: fadeIn 0.3s ease-out;
}

.progress-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-success);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.control-btn:hover, .control-btn:active {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h2 {
    font-size: 1.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
}

.clear-scores-btn {
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-scores-btn:hover, .clear-scores-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.leaderboard-container {
    background: rgba(44, 62, 80, 0.6);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.mode-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 0.2rem;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: calc(var(--border-radius) - 3px);
    padding: 0.6rem 0.8rem;
    color: var(--light-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    min-width: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.scores-list {
    min-height: 200px;
}

.no-scores {
    text-align: center;
    padding: 2rem;
    color: rgba(236, 240, 241, 0.6);
}

.score-item {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: var(--border-radius);
    padding: 0.8rem;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.score-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.score-item:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateX(3px);
}

.score-item:hover::before {
    transform: scaleY(1);
}

.score-item.best {
    border-color: var(--success-color);
    background: rgba(46, 204, 113, 0.1);
}

.score-item.best::before {
    content: '👑';
    margin-right: 0.5rem;
}

.score-rank {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    min-width: 2rem;
}

.score-details {
    flex: 1;
    margin: 0 1rem;
}

.score-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-color);
}

.score-date {
    font-size: 0.8rem;
    color: rgba(236, 240, 241, 0.6);
    margin-top: 0.2rem;
}

.settings-container {
    background: rgba(44, 62, 80, 0.6);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.setting-group {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    transition: var(--transition);
}

.setting-group:hover {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    padding: 0.8rem;
    margin: 0 -0.8rem 1rem -0.8rem;
}

.setting-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1rem;
}

.setting-label i {
    width: 1.5rem;
    text-align: center;
    color: var(--secondary-color);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--gradient-success);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.setting-select {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.5);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    color: var(--light-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.setting-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow);
}

.setting-select option {
    background: var(--primary-color);
    color: var(--light-color);
}

.faq-container {
    background: rgba(44, 62, 80, 0.6);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    padding-bottom: 1rem;
}

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

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

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    transition: var(--transition);
}

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

.faq-answer {
    padding: 0 0 1rem 0;
    color: rgba(236, 240, 241, 0.8);
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-answer p {
    margin: 0;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0.8rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(52, 152, 219, 0.3);
    z-index: 1000;
    width: 100%;
    max-width: 600px;
    border-radius: 12px 12px 0 0;
    min-height: 80px;
    box-sizing: border-box;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: rgba(236, 240, 241, 0.6);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    flex: 1;
    min-height: 60px;
    box-sizing: border-box;
    max-width: 120px;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover, .nav-item.active {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.nav-item:hover::before, .nav-item.active::before {
    width: 80%;
}

.nav-item.active {
    background: rgba(52, 152, 219, 0.25);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.5);
}



.nav-item i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    display: block;
    margin-bottom: 0.2rem;
    flex-shrink: 0;
}

.nav-item:hover i, .nav-item.active i {
    transform: scale(1.1);
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    display: block;
    line-height: 1.2;
    flex-shrink: 0;
}

footer {
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    color: rgba(236, 240, 241, 0.7);
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: auto;
    border-top: 2px solid rgba(52, 152, 219, 0.3);
    position: relative;
    z-index: 50;
    margin-bottom: 100px;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

footer a:hover {
    color: var(--light-color);
    text-decoration: underline;
}

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

.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0.8;
    transition: opacity 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.footer-logo-img:hover {
    opacity: 1;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.footer-links .separator {
    color: rgba(236, 240, 241, 0.4);
    font-weight: 300;
}

@media (max-width: 480px) {
    .app-header {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.5rem;
        min-height: 80px;
    }
    
    .header-logo {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .menu-logo-img, .game-over-logo-img {
        height: 40px;
    }
    
    .footer-logo-img {
        height: 25px;
    }
    
    .app-header h1 {
        font-size: 1.4rem;
        order: 1;
    }
    
    .header-stats {
        font-size: 0.8rem;
        gap: 0.5rem;
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .header-stats span {
        padding: 0.3rem 0.5rem;
        min-width: 55px;
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 0.8rem;
        padding-bottom: 110px;
    }
    
    .game-area {
        min-height: 350px;
        padding: 0.3rem;
        margin-bottom: 0.6rem;
    }
    
    #game-canvas {
        width: 100%;
        max-width: 300px;
        max-height: 350px;
    }
    
    .menu-screen, .game-over-screen, .pause-screen {
        padding: 1.2rem;
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
        box-sizing: border-box;
    }
    
    .menu-logo-img, .game-over-logo-img {
        height: 40px;
    }
    
    .game-modes {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 1rem 0;
    }
    
    .mode-btn {
        padding: 0.8rem;
        gap: 0.7rem;
        min-height: 75px;
    }
    
    .mode-btn span {
        font-size: 1rem;
    }
    
    .mode-btn small {
        font-size: 0.75rem;
    }
    
    .mode-btn i {
        font-size: 1.2rem;
    }
    
    .mode-btn span {
        font-size: 0.9rem;
    }
    
    .mode-btn small {
        font-size: 0.7rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .mode-tabs {
        flex-direction: row;
        gap: 0.2rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .nav-item span {
        font-size: 0.6rem;
    }
    
    .bottom-nav {
        padding: 0.6rem 0.5rem;
        max-width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
        min-height: 70px;
        width: 100%;
    }
    
    .nav-item {
        padding: 0.4rem 0.3rem;
        min-height: 50px;
        max-width: none;
    }
    
    .nav-item i {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
    }
    
    .nav-item span {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .final-stats {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .final-stats p {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
    
    .restart-btn, .resume-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .game-status {
        gap: 0.5rem;
        margin-top: 0.3rem;
    }
    
    .status-item {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .header-stats .combo {
        min-width: 50px;
        font-size: 0.7rem;
    }
    
    .progress-bar {
        width: 80px;
        height: 5px;
        margin: 0 0.3rem;
    }
    
    .footer-content {
        gap: 0.3rem;
    }
    
    .footer-links {
        font-size: 0.75rem;
        gap: 0.3rem;
    }
}

@media (min-width: 768px) {
    .app-container {
        max-width: 800px;
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
        border-radius: 0;
    }
    
    .app-header {
        border-radius: 0;
        padding: 1.2rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .menu-logo-img, .game-over-logo-img {
        height: 70px;
    }
    
    .footer-logo-img {
        height: 35px;
    }
    
    .main-content {
        padding: 1.5rem;
        padding-bottom: 130px;
    }
    
    .game-area {
        min-height: 450px;
        margin-bottom: 1rem;
    }
    
    #game-canvas {
        max-width: 500px;
        max-height: 450px;
    }
    
    .game-modes {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .mode-btn {
        min-height: 100px;
        padding: 1.2rem;
    }
    
    .mode-btn i {
        font-size: 1.6rem;
    }
    
    .mode-btn span {
        font-size: 1.2rem;
    }
    
    .mode-btn small {
        font-size: 0.85rem;
    }
    
    .mode-tabs {
        justify-content: center;
        max-width: 500px;
        margin: 0 auto 1.5rem;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .bottom-nav {
        max-width: 700px;
        border-radius: 12px 12px 0 0;
        padding: 0.8rem 1.5rem;
    }
    
    .nav-item {
        padding: 0.6rem 0.5rem;
        min-height: 65px;
        max-width: 140px;
    }
    
    .nav-item i {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .nav-item span {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 1000px;
        border-radius: 0;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .menu-logo-img, .game-over-logo-img {
        height: 80px;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .menu-screen, .game-over-screen, .pause-screen {
        max-width: 700px;
    }
    
    .app-header {
        padding: 1.5rem;
        min-height: 80px;
    }
    
    .app-header h1 {
        font-size: 2rem;
    }
    
    .header-stats {
        font-size: 1rem;
        gap: 1rem;
    }
    
    .header-stats span {
        padding: 0.4rem 0.8rem;
        min-width: 70px;
        font-size: 0.95rem;
    }
    
    .game-modes {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 900px;
        margin: 2rem auto;
    }
    
    .mode-btn {
        min-height: 110px;
        padding: 1.5rem;
    }
    
    .mode-btn i {
        font-size: 1.8rem;
    }
    
    .mode-btn span {
        font-size: 1.3rem;
    }
    
    .mode-btn small {
        font-size: 0.9rem;
    }
    
    .game-area {
        min-height: 500px;
    }
    
    #game-canvas {
        max-width: 600px;
        max-height: 500px;
    }
}

@media (min-width: 1200px) {
    .app-container {
        max-width: 1200px;
    }
    
    .menu-screen, .game-over-screen, .pause-screen {
        max-width: 800px;
    }
    
    .game-modes {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1000px;
    }
    
    .mode-btn {
        min-height: 120px;
        padding: 1.8rem;
    }
    
    .mode-btn i {
        font-size: 2rem;
    }
    
    .mode-btn span {
        font-size: 1.4rem;
    }
    
    .mode-btn small {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .menu-logo-img, .game-over-logo-img {
        height: 90px;
    }
    
    .footer-logo-img {
        height: 45px;
    }
}

/* Suporte para telas de alta resolução */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .menu-logo-img,
    .game-over-logo-img,
    .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        image-rendering: pixelated;
    }
}

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

.game-target {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: 3px solid white;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    animation: pulse 1s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}

.game-target.speed-mode {
    background: var(--gradient-success);
    animation-duration: 0.5s;
}

.game-target.endurance-mode {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.game-obstacle {
    position: absolute;
    background: var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

@keyframes targetHit {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.hit-effect {
    position: absolute;
    pointer-events: none;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.5rem;
    animation: scoreFloat 1s ease-out forwards;
}

@keyframes scoreFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.2);
    }
}

.combo-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: var(--shadow-glow);
    animation: comboGlow 0.5s ease-out;
}

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