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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 100%);
    overflow: hidden;
    /* Prevent zoom */
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    /* Prevent zoom gestures */
    touch-action: none;
}

#gameCanvas {
    display: block;
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 100%);
    width: 100%;
    height: 100%;
    /* Prevent zoom and ensure crisp rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.ui {
    position: fixed;
    bottom: 80px;
    left: 20px;
    color: black;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 1003;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* White box around score */
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ui div {
    margin-bottom: 10px;
}

/* Make background indicator white and invisible */
.background-info {
    color: white !important;
    opacity: 0;
}

/* Mute Button Styles */
.mute-button {
    position: fixed;
    top: 20px;
    left: 220px;
    z-index: 1001;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
}

.mute-button:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.6);
}

.mute-button:active {
    transform: scale(0.95);
}

.mute-button.muted {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 2px 10px rgba(107, 114, 128, 0.4);
}

.mute-button.muted:hover {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.6);
}



/* Wallet integration styles */
.wallet-footer-connect {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 14px;
}

.connect-wallet-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.connect-wallet-btn:active {
    transform: translateY(0);
}

.wallet-connected {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4) !important;
}

.wallet-connected:hover {
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.6) !important;
}

.add-network-btn, .leaderboard-btn {
    position: fixed;
    z-index: 1001;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.leaderboard-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.add-network-btn {
    top: 20px;
    right: 20px;
}

.leaderboard-btn {
    top: 60px;
    right: 20px;
}

/* Game over screen styles */
.hidden {
    display: none !important;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
}

 