* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
}

/* Contract Address Section */
.contract-address-section {
    text-align: center;
    margin-bottom: 30px;
    max-width: 600px;
}

.logo {
    max-width: 500px;
    width: 50%;
    margin-bottom: 1.5rem;
}

.contract-label {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contract-address-box {
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #009c1f;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contract-address-box:hover {
    border-color: #FFA500;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 156, 31, 0.3);
}

.contract-address-box:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 156, 31, 0.2);
}

.contract-text {
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.copy-icon {
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contract-address-box:hover .copy-icon {
    opacity: 1;
    animation: bounce 0.6s ease;
}

.copy-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive design for contract address */
@media (max-width: 768px) {
    .contract-address-box {
        font-size: 12px;
        padding: 12px 15px;
    }
    
    .contract-text {
        font-size: 12px;
    }
    
    .copy-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contract-address-box {
        font-size: 10px;
        padding: 10px 12px;
    }
    
    .contract-text {
        font-size: 10px;
        /* On very small screens, show abbreviated address */
        word-break: break-all;
    }
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(-4px);
    }
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-panel {
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #009c1f;
    border-radius: 8px;
    padding: 20px;
    min-width: 300px;
}

.wallet-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.wallet-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    color: #fff;
    border: 2px solid #009c1f;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
}

.wallet-input:focus {
    outline: none;
    border-color: #FFA500;
    background: rgba(255, 215, 0, 0.2);
}

.wallet-hint {
    font-size: 12px;
    color: #888;
    text-align: center;
}

.score-section {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #009c1f;
}

.timer-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 5px;
}

.timer-label {
    font-size: 14px;
    color: #aaa;
}

.timer-value {
    font-size: 28px;
    color: #009c1f;
    font-weight: bold;
}

.rewards-pool {
    font-size: 18px;
    color: #4CAF50;
    text-align: center;
    margin-bottom: 20px;
}

.leaderboard {
    margin-top: 20px;
}

.leaderboard h3 {
    color: #009c1f;
    margin-bottom: 15px;
    text-align: center;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 40px 80px 1fr 60px;
    gap: 10px;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    border-bottom: 1px solid #444;
}

.leaderboard-entry {
    display: grid;
    grid-template-columns: 40px 80px 1fr 60px;
    gap: 10px;
    padding: 8px;
    margin-bottom: 5px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 4px;
    font-size: 14px;
    align-items: center;
}

/* First place - Golden border and background */
.leaderboard-entry:nth-child(1) {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Second place - Silver-ish */
.leaderboard-entry:nth-child(2) {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid #C0C0C0;
}

/* Third place - Bronze-ish */
.leaderboard-entry:nth-child(3) {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #CD7F32;
}

.game-controls {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid #009c1f;
    border-radius: 8px;
}

.control-hint {
    color: #aaa;
    margin-bottom: 10px;
}

.game-status {
    font-size: 24px;
    color: #009c1f;
    margin-bottom: 10px;
}

.start-btn {
    padding: 10px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.start-btn:hover {
    background: #45a049;
}

.start-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.lives {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.life {
    width: 25px;
    height: 25px;
    background: #009c1f;
    border-radius: 50%;
    position: relative;
}

.life::after {
    content: '💰';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

.game-canvas {
    display: block;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 1s infinite;
}