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

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
}

.game-container {
    text-align: center;
    position: relative;
}

h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 15px;
    font-size: 2.2em;
}

/* Wallet Section */
.wallet-section {
    margin-bottom: 15px;
}

.wallet-btn {
    background: #9945FF;
    margin-bottom: 10px;
}

.wallet-btn:hover {
    background: #7a36cc;
}

.wallet-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 10px;
}

.wallet-address {
    color: #333;
    font-weight: bold;
    margin: 0;
    font-size: 0.9em;
}

.btn-disconnect {
    background: #f44336;
    color: white;
    border: none;
    padding: 5px 15px;
    font-size: 0.9em;
    border-radius: 15px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s;
}

.btn-disconnect:hover {
    background: #d32f2f;
}

.score-board {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 10px;
}

.score, .high-score, .coins, .token-earned {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.coins {
    color: #FFD700;
}

.token-earned {
    color: #9945FF;
    flex-basis: 100%;
}

#gameCanvas {
    border: 3px solid #333;
    border-radius: 10px;
    background: #70C5CE;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.start-screen, .game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10;
}

.start-screen h2, .game-over h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2em;
}

.start-screen p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.payment-info {
    color: #FF6B35;
    font-weight: bold;
    font-size: 1.15em;
    margin-bottom: 10px;
}

.reward-info {
    color: #9945FF;
    font-weight: bold;
    margin-bottom: 20px;
}

.game-over p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.reward-message {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.reward-message.success {
    color: #4CAF50;
}

.reward-message.warning {
    color: #ff9800;
}

.tx-status {
    font-size: 0.95em;
    margin-bottom: 15px;
}

.tx-status.processing {
    color: #2196F3;
}

.tx-status.success {
    color: #4CAF50;
    font-weight: bold;
}

.tx-status.error {
    color: #f44336;
}

.btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #45a049;
}

.btn:active {
    transform: scale(0.95);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.btn-bot {
    background: #2196F3;
}

.btn-bot:hover {
    background: #1976D2;
}

.hidden {
    display: none;
}
