* {
    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);
}



.score {
    display: none;
}

/* Top buttons positioned next to home button */
.top-buttons {
    position: fixed;
    top: 20px;
    left: 80px; /* Position right next to home button (home is at left: 20px, width: 50px + 10px gap) */
    z-index: 1001;
}

.top-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

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

.control-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.6);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.restart-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

.restart-btn:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6) !important;
}

/* 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 {
    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);
}



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



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

/* Mute Button - positioned next to score UI */
.mute-button {
    position: fixed;
    bottom: 80px;
    left: 240px; /* Position next to the score UI - moved right by 70px total */
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 1004;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mute-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

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

/* Wee Button - positioned next to mute button */
.wee-button {
    position: fixed;
    bottom: 80px;
    left: 290px; /* Position next to the mute button */
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1004;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.wee-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

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

/* Mute Wee Button - positioned next to wee button */
.mute-wee-button {
    position: fixed;
    bottom: 80px;
    left: 350px; /* Position next to the wee button */
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1004;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mute-wee-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

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

#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;
} 