:root {
    --bg: #0b0e1a;
    --bg-dark: #060812;
    --accent: #00ff9d;
    --accent2: #00d4ff;
    --accent3: #7c9eff;
    --text: #e0f0ff;
    --text-dim: #a3bffa;
    --card: rgba(20, 25, 45, 0.65);
    --glow: 0 0 20px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --color-red: #ff4444;
    --color-blue: #44aaff;
    --color-green: #44ff44;
    --color-yellow: #ffdd44;
    --color-purple: #aa44ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, var(--bg-dark) 0%, var(--bg) 100%);
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
}

/* Navigation (keep existing) */
.navbar-desktop {
    position: fixed;
    inset: 0 0 auto 0;
    padding: 0.9rem 5vw;
    background: rgba(8, 12, 30, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 157, 0.16);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1024px) {
    .navbar-desktop {
        display: none;
    }
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 1.8rem);
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    transition: all 0.22s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent);
}

.btn-small {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #0b1121 !important;
    padding: 0.4rem 1rem;
    border-radius: 50vmax;
    font-weight: 700;
}

/* Sidebar */
.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: var(--card);
    border: 1px solid var(--accent2);
    color: var(--accent2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

@media (max-width: 1024px) {
    .sidebar-toggle {
        display: flex;
    }
}

.admin-sidebar {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    transform: translateX(-120%);
    opacity: 0;
    width: 260px;
    background: rgba(8, 12, 24, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--accent2);
    border-radius: 2rem;
    padding: 1.5rem 0.8rem;
    transition: transform 0.3s, opacity 0.2s;
    z-index: 2000;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        display: block;
    }
}

.admin-sidebar.open {
    transform: translateX(0);
    opacity: 1;
}

.sidebar-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 0.5rem 1.2rem;
    border-bottom: 1px solid var(--accent2);
    margin-bottom: 1.2rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 2rem;
}

.sidebar-nav a i {
    width: 1.5rem;
    color: var(--accent2);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent2);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 157, 0.1);
    margin-top: 1.5rem;
}

.sidebar-footer .signup-link {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #0b1121;
    padding: 0.7rem 1rem;
    border-radius: 2rem;
    text-align: center;
    display: block;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-footer .logout-link {
    background: linear-gradient(90deg, rgba(225, 62, 62, 0.81), red);
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0.5rem;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1025px) {
    .main-container {
        padding-top: 80px;
    }
}

@media (max-width: 1024px) {
    .main-container {
        padding-top: 0.5rem;
    }
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    text-decoration: none;
    margin: 1rem 0;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .back-home {
        margin-left: 3.5rem;
    }
}

.back-home:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

/* Game Header */
.game-header {
    text-align: center;
    padding: 1rem;
}

.game-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    font-weight: 900;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1rem auto;
    padding: 1rem;
    background: var(--card);
    border-radius: 2rem;
    border: 1px solid rgba(0, 255, 157, 0.2);
    max-width: 900px;
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game Canvas */
.game-container {
    position: relative;
    margin: 1rem auto;
    display: flex;
    justify-content: center;
}

canvas {
    background: var(--card);
    border-radius: 1.5rem;
    border: 2px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    cursor: crosshair;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem auto;
    padding: 0.5rem;
    background: var(--card);
    border-radius: 2rem;
    max-width: 400px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(0, 255, 157, 0.2);
    transform: scale(1.05);
}

/* Color Selector */
.color-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem auto;
    flex-wrap: wrap;
}

.color-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.color-ball:hover {
    transform: scale(1.1);
    border-color: white;
}

.color-ball.active {
    transform: scale(1.15);
    border-color: var(--accent);
    box-shadow: 0 0 15px currentColor;
}

.color-ball.red {
    background: var(--color-red);
    box-shadow: 0 0 5px var(--color-red);
}

.color-ball.blue {
    background: var(--color-blue);
    box-shadow: 0 0 5px var(--color-blue);
}

.color-ball.green {
    background: var(--color-green);
    box-shadow: 0 0 5px var(--color-green);
}

.color-ball.yellow {
    background: var(--color-yellow);
    box-shadow: 0 0 5px var(--color-yellow);
}

.color-ball.purple {
    background: var(--color-purple);
    box-shadow: 0 0 5px var(--color-purple);
}

/* Combo Meter */
.combo-meter {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    font-size: 1rem;
    z-index: 100;
    display: none;
    white-space: nowrap;
}

.combo-meter.show {
    display: block;
    animation: comboPop 0.3s ease;
}

@keyframes comboPop {
    0% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* Leaderboard */
.leaderboard-section {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.shooter-rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shooter-rank-number {
    font-family: 'Orbitron', monospace;
    width: 40px;
    font-weight: bold;
    color: var(--accent);
}

.shooter-rank-flag {
    font-size: 1.2rem;
    width: 30px;
}

.shooter-rank-name {
    flex: 1;
}

.shooter-rank-score {
    font-family: 'Orbitron', monospace;
    color: var(--accent2);
    font-weight: bold;
}

.shooter-rank-stats {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

/* Modal */
.game-over-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1f35, #0b0e1a);
    border-radius: 2rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--accent);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.modal-btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #0b1121;
}

.modal-btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* Footer */
footer {
    padding: 2rem 5vw 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    color: var(--text-dim);
    border-top: 1px solid rgba(0, 255, 157, 0.1);
    font-size: 0.8rem;
    margin-top: 2rem;
    width: 100%;
    padding-bottom: calc(1.5rem + var(--safe-bottom));
}

.footer-developer {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #8ab4ff;
}

footer a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
}

footer a:hover {
    color: var(--accent);
}

@media (max-width: 930px) {
    footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }
}

body.sidebar-open {
    overflow: hidden;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
        display: none;
    }
}

/* ============================================
   BRICK SHOOTER - RESPONSIVE STYLES
   ============================================ */

/* Base responsive canvas container */
.game-container {
    position: relative;
    margin: 1rem auto;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

canvas {
    background: var(--card);
    border-radius: 1.5rem;
    border: 2px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    cursor: crosshair;
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: 800px;
}

/* Responsive stats grid */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem auto;
    padding: 1rem;
    background: var(--card);
    border-radius: 2rem;
    border: 1px solid rgba(0, 255, 157, 0.2);
    max-width: 100%;
    width: 100%;
}

.stat-box {
    text-align: center;
    flex: 1;
    min-width: 70px;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Color selector - responsive */
.color-selector {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 1rem auto;
    flex-wrap: wrap;
    padding: 0.5rem;
}

.color-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.color-ball:hover {
    transform: scale(1.1);
    border-color: white;
}

.color-ball.active {
    transform: scale(1.15);
    border-color: var(--accent);
    box-shadow: 0 0 15px currentColor;
}

/* Controls - responsive */
.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem auto;
    padding: 0.5rem;
    background: var(--card);
    border-radius: 2rem;
    max-width: 100%;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(0, 255, 157, 0.2);
    transform: scale(1.05);
}

/* Leaderboard section - responsive */
.leaderboard-section {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 100%;
    border: 1px solid rgba(0, 255, 157, 0.2);
    overflow-x: auto;
}

.leaderboard-section h3 {
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.shooter-rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.shooter-rank-number {
    font-family: 'Orbitron', monospace;
    width: 40px;
    font-weight: bold;
    color: var(--accent);
}

.shooter-rank-flag {
    font-size: 1.2rem;
    width: 30px;
}

.shooter-rank-name {
    flex: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shooter-rank-score {
    font-family: 'Orbitron', monospace;
    color: var(--accent2);
    font-weight: bold;
    font-size: 0.9rem;
}

.shooter-rank-stats {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

/* Combo meter - responsive */
.combo-meter {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 100;
    display: none;
    white-space: nowrap;
}

/* Modal - responsive */
.game-over-modal .modal-content {
    background: linear-gradient(135deg, #1a1f35, #0b0e1a);
    border-radius: 1.5rem;
    padding: 1.5rem;
    max-width: 90%;
    width: 90%;
    text-align: center;
    border: 1px solid var(--accent);
    margin: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

/* Back home button */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    text-decoration: none;
    margin: 1rem 0;
    font-size: 0.85rem;
}

/* ============================================
   TABLET STYLES (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .game-stats {
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .color-ball {
        width: 35px;
        height: 35px;
    }

    .control-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .combo-meter {
        bottom: 70px;
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

/* ============================================
   MOBILE STYLES (480px - 768px)
   ============================================ */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 1.8rem;
    }

    .game-stats {
        gap: 0.5rem;
        padding: 0.6rem;
        border-radius: 1.5rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }

    .color-selector {
        gap: 0.5rem;
    }

    .color-ball {
        width: 32px;
        height: 32px;
    }

    .controls {
        gap: 0.6rem;
    }

    .control-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }

    .control-btn i {
        font-size: 0.8rem;
    }

    .leaderboard-section {
        padding: 1rem;
        margin: 1rem auto;
    }

    .leaderboard-section h3 {
        font-size: 0.9rem;
    }

    .shooter-rank-item {
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .shooter-rank-number {
        width: 35px;
        font-size: 0.8rem;
    }

    .shooter-rank-flag {
        font-size: 1rem;
        width: 25px;
    }

    .shooter-rank-name {
        font-size: 0.8rem;
    }

    .shooter-rank-score {
        font-size: 0.8rem;
    }

    .shooter-rank-stats {
        font-size: 0.6rem;
    }

    .combo-meter {
        bottom: 60px;
        font-size: 0.75rem;
        padding: 0.25rem 0.7rem;
    }

    .modal-content {
        padding: 1.2rem;
    }

    .modal-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   SMALL MOBILE STYLES (320px - 480px)
   ============================================ */
@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.5rem;
    }

    .game-header p {
        font-size: 0.7rem;
    }

    .game-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        padding: 0.5rem;
    }

    .stat-box {
        min-width: auto;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.5rem;
    }

    .color-selector {
        gap: 0.4rem;
    }

    .color-ball {
        width: 28px;
        height: 28px;
    }

    .controls {
        gap: 0.4rem;
    }

    .control-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }

    .control-btn i {
        font-size: 0.7rem;
    }

    .back-home {
        font-size: 0.75rem;
        margin-left: 0.5rem;
    }

    .leaderboard-section {
        padding: 0.8rem;
    }

    /* Stack leaderboard items for small screens */
    .shooter-rank-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.3rem;
        padding: 0.5rem;
    }

    .shooter-rank-number {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }

    .shooter-rank-flag {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
        justify-self: start;
    }

    .shooter-rank-name {
        grid-row: 2 / 3;
        grid-column: 1 / 4;
        white-space: normal;
        word-break: break-word;
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }

    .shooter-rank-score {
        grid-row: 1 / 2;
        grid-column: 3 / 4;
        font-size: 0.75rem;
        justify-self: end;
    }

    .shooter-rank-stats {
        grid-row: 2 / 3;
        grid-column: 3 / 4;
        font-size: 0.55rem;
        margin-left: 0;
        justify-self: end;
        align-self: start;
    }

    .combo-meter {
        bottom: 50px;
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        white-space: nowrap;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-buttons {
        gap: 0.8rem;
    }

    .modal-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   EXTRA SMALL MOBILE (below 320px)
   ============================================ */
@media (max-width: 320px) {
    .game-header h1 {
        font-size: 1.3rem;
    }

    .game-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .color-ball {
        width: 24px;
        height: 24px;
    }

    .control-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
    }

    .shooter-rank-name {
        font-size: 0.65rem;
    }

    .shooter-rank-score {
        font-size: 0.7rem;
    }

    .combo-meter {
        bottom: 45px;
        font-size: 0.65rem;
    }
}

/* ============================================
   TOUCH OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .control-btn {
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
    }

    .color-ball {
        min-width: 40px;
        min-height: 40px;
    }

    .control-btn:active {
        transform: scale(0.95);
    }

    .color-ball:active {
        transform: scale(0.95);
    }

    /* Larger hit area for canvas */
    canvas {
        cursor: pointer;
        touch-action: manipulation;
    }
}

/* ============================================
   LANDSCAPE MODE OPTIMIZATIONS
   ============================================ */
@media (max-width: 900px) and (orientation: landscape) {
    .game-stats {
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .color-ball {
        width: 30px;
        height: 30px;
    }

    .combo-meter {
        bottom: 40px;
    }

    .main-container {
        padding-bottom: 60px;
    }
}

/* ============================================
   SAFE AREA FOR NOTCHED PHONES
   ============================================ */
@supports (padding: max(0px)) {
    .main-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .combo-meter {
        bottom: max(60px, env(safe-area-inset-bottom));
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
        display: none;
    }
}

@keyframes comboPop {
    0% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* Hide scrollbar on mobile for cleaner look */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-dark);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 4px;
    }
}