/* ====================================
   FLAPPY BIRD GAME - COMPLETE STYLES
   ==================================== */

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

:root {
    --primary-color: #70c5ce;
    --secondary-color: #ffc107;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --pipe-color: #5fad41;
    --pipe-dark: #4a9234;
    --ground-color: #deb887;
    --sky-color: #87ceeb;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    height: 100vh;
}

/* ====================================
   HEADER STYLES
   ==================================== */
.game-header {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.95),
        rgba(22, 33, 62, 0.95)
    );
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.game-title {
    color: var(--light-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-title i {
    color: var(--secondary-color);
    animation: float 3s ease-in-out infinite;
}

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

.header-right {
    display: flex;
    gap: 1rem;
}

.info-btn,
.sound-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-btn:hover,
.sound-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sound-btn.muted i::before {
    content: '\f026';
}

/* ====================================
   GAME WRAPPER & CONTAINER
   ==================================== */
.game-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ====================================
   LEADERBOARD SIDEBAR
   ==================================== */
.leaderboard-sidebar {
    width: 300px;
    height: 800px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.leaderboard-header {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    padding: 1.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.leaderboard-header h3 {
    color: var(--light-color);
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.leaderboard-header i {
    color: #ffd700;
    animation: glow 2s ease-in-out infinite;
}

.reset-username-btn {
    background: rgba(244, 67, 54, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.3);
}

.reset-username-btn:hover {
    background: rgba(244, 67, 54, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
}

.reset-username-btn:active {
    transform: translateY(0);
}

.leaderboard-content {
    height: calc(100% - 180px);
    overflow-y: auto;
    padding: 1rem;
}

.leaderboard-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.leaderboard-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.leaderboard-empty p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.leaderboard-empty .small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.leaderboard-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.leaderboard-item.rank-1 {
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.2),
        rgba(255, 215, 0, 0.1)
    );
    border-color: #ffd700;
}

.leaderboard-item.rank-2 {
    background: linear-gradient(
        135deg,
        rgba(192, 192, 192, 0.2),
        rgba(192, 192, 192, 0.1)
    );
    border-color: #c0c0c0;
}

.leaderboard-item.rank-3 {
    background: linear-gradient(
        135deg,
        rgba(205, 127, 50, 0.2),
        rgba(205, 127, 50, 0.1)
    );
    border-color: #cd7f32;
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-color);
    min-width: 40px;
    text-align: center;
}

.rank-1 .leaderboard-rank {
    color: #ffd700;
}

.rank-2 .leaderboard-rank {
    color: #c0c0c0;
}

.rank-3 .leaderboard-rank {
    color: #cd7f32;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    color: var(--light-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leaderboard-name i {
    color: var(--secondary-color);
}

.leaderboard-score {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.leaderboard-score i {
    color: #ffd700;
}

.leaderboard-deleted {
    color: #f44336;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.2rem;
}

/* Leaderboard Pagination */
.leaderboard-pagination {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn {
    background: rgba(112, 197, 206, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(112, 197, 206, 1);
    transform: translateY(-2px);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    color: var(--light-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(to bottom, #87ceeb 0%, #e0f6ff 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ====================================
   START SCREEN
   ==================================== */
.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.5s ease;
}

.start-screen.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.start-content {
    text-align: center;
    color: var(--light-color);
    animation: slideUp 0.6s ease;
}

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

.game-logo {
    margin-bottom: 2rem;
}

.bird-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    animation: bounce 1s ease-in-out infinite;
    display: block;
    margin-bottom: 1rem;
}

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

.game-logo h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.start-btn {
    background: linear-gradient(135deg, var(--success-color), #66bb6a);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
    font-weight: bold;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.6);
}

.start-btn:active {
    transform: translateY(-1px);
}

.best-score-display {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.best-score-display i {
    font-size: 1.5rem;
}

/* ====================================
   GAME OVER SCREEN
   ==================================== */
.game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.5s ease;
}

.game-over-screen.active {
    display: flex;
}

.game-over-content {
    text-align: center;
    color: var(--light-color);
    animation: slideUp 0.6s ease;
    padding: 2rem;
}

.game-over-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--danger-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: shake 0.5s ease;
}

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

.score-board {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

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

.score-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.score-item.best .score-value {
    color: #ffd700;
}

.medals {
    margin: 1.5rem 0;
    min-height: 60px;
}

.medal {
    font-size: 3rem;
    display: inline-block;
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.game-over-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.restart-btn,
.menu-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.restart-btn {
    background: linear-gradient(135deg, var(--success-color), #66bb6a);
    color: white;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.6);
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ====================================
   PAUSE SCREEN
   ==================================== */
.pause-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.pause-screen.active {
    display: flex;
}

.pause-content {
    text-align: center;
    color: var(--light-color);
}

.pause-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.resume-btn {
    background: linear-gradient(135deg, var(--primary-color), #4fc3f7);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(112, 197, 206, 0.4);
    font-weight: bold;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(112, 197, 206, 0.6);
}

/* ====================================
   SCORE DISPLAY
   ==================================== */
.score-display {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3), -1px -1px 0 rgba(0, 0, 0, 0.3),
        1px -1px 0 rgba(0, 0, 0, 0.3), -1px 1px 0 rgba(0, 0, 0, 0.3),
        1px 1px 0 rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
}

/* ====================================
   FPS COUNTER
   ==================================== */
.fps-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #0f0;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    z-index: 10;
}

/* ====================================
   COUNTDOWN OVERLAY
   ==================================== */
.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    backdrop-filter: blur(5px);
}

.countdown-overlay.active {
    display: flex;
}

.countdown-number {
    font-size: 10rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.4),
        5px 5px 10px rgba(0, 0, 0, 0.5);
    animation: countdownPulse 1s ease-in-out;
}

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

/* ====================================
   USERNAME MODAL
   ==================================== */
.username-modal {
    display: none;
}

.username-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.username-modal-content {
    text-align: center;
    max-width: 450px;
}

.username-modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.username-modal-content > p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.username-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

#usernameInput {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

#usernameInput:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(112, 197, 206, 0.3);
}

#usernameInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.username-submit-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: var(--light-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 5px 20px rgba(112, 197, 206, 0.4);
}

.username-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(112, 197, 206, 0.6);
}

.username-submit-btn:active {
    transform: translateY(-1px);
}

.username-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ====================================
   INFO MODAL
   ==================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.98),
        rgba(22, 33, 62, 0.98)
    );
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: var(--light-color);
    position: relative;
    animation: slideUp 0.4s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light-color);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--secondary-color);
}

.modal-content h3 {
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
}

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

.instruction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.instruction-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    min-width: 30px;
    text-align: center;
}

.medal-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.medal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.medal-item .medal {
    font-size: 2rem;
}

/* ====================================
   CONTROLS INFO
   ==================================== */
.controls-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.control-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.control-hint:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.control-hint i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.control-hint span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ====================================
   FOOTER
   ==================================== */
.game-footer {
    background: rgba(26, 26, 46, 0.9);
    color: var(--light-color);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.game-footer p {
    margin: 0;
    opacity: 0.8;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 1200px) {
    .game-wrapper {
        flex-direction: column;
    }

    .leaderboard-sidebar {
        width: 100%;
        max-width: 600px;
        height: auto;
        max-height: 400px;
        order: -1;
    }

    .leaderboard-content {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .game-header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .game-title {
        font-size: 1.5rem;
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .game-wrapper {
        padding: 1rem;
    }

    .game-container {
        max-width: 100%;
    }

    .game-logo h1 {
        font-size: 2rem;
    }

    .bird-icon {
        font-size: 3rem;
    }

    .start-btn,
    .resume-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }

    .game-over-title {
        font-size: 2rem;
    }

    .score-value {
        font-size: 2rem;
    }

    .score-display {
        font-size: 2rem;
        top: 10px;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .controls-info {
        gap: 1rem;
    }

    .control-hint {
        padding: 0.8rem 1rem;
    }

    .control-hint i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.2rem;
    }

    .back-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .info-btn,
    .sound-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .game-logo h1 {
        font-size: 1.8rem;
    }

    .game-subtitle {
        font-size: 1rem;
    }

    .score-board {
        flex-direction: column;
        gap: 1rem;
    }

    .game-over-buttons {
        flex-direction: column;
        width: 100%;
    }

    .restart-btn,
    .menu-btn {
        width: 100%;
        justify-content: center;
    }

    .countdown-number {
        font-size: 6rem;
    }
}

/* ====================================
   ANIMATIONS & EFFECTS
   ==================================== */
@keyframes glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        135deg,
        var(--secondary-color),
        var(--primary-color)
    );
}

/* Selection */
::selection {
    background: var(--secondary-color);
    color: var(--dark-color);
}

/* Focus Outline */
button:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Disable text selection on game elements */
.game-container,
.score-display,
.fps-counter {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
