/* --- Final and Corrected CSS --- */
html, body {
    height: 100%; width: 100%; margin: 0; padding: 0;
    overflow: hidden; background-color: #000;
}
body {
    display: flex; justify-content: center; align-items: center;
    font-family: 'Press Start 2P', cursive; color: #32ff71;
}
#main-wrapper {
    display: flex; flex-direction: column; align-items: center;
    transform-origin: center center;
}
#app-header { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: #fff; }
#header-logo { width: 64px; height: 64px; margin-right: 15px; image-rendering: pixelated; }
#coin-address { font-size: 1rem; text-shadow: 2px 2px #ff0000; cursor: pointer; }
#coin-address:hover { color: #32ff71; }
#game-container { position: relative; border: 4px solid #32ff71; box-shadow: 0 0 20px #32ff71; }
canvas { display: block; background-color: #1a1a1a; }
#start-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; z-index: 10; }
#start-screen h1 { font-size: 2rem; padding: 20px; text-shadow: 3px 3px #ff0000; }

/* === THE BUTTON FIX === */
#start-button, #share-button {
    background-color: #ff0000; color: #fff; font-family: 'Press Start 2P', cursive;
    font-size: 1.15rem; /* Slightly smaller font to guarantee fit */
    border: 3px solid #fff;
    padding: 20px 10px; /* Adjusted padding */
    cursor: pointer; transition: background-color: 0.3s;
    width: 400px; /* Slightly wider button */
    margin-top: 15px;
    line-height: 1; /* Ensure single line */
}
#start-button:hover, #share-button:hover { background-color: #32ff71; color: #000; }

#rugged-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 20; animation: glitch 0.5s infinite; }
.hidden { display: none !important; }
#credits { margin-top: 20px; font-size: 0.5rem; color: #555; text-align: center; max-width: 90vw; }
#motto-section { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); color: #888; text-shadow: 2px 2px #000; text-align: center; z-index: 100; font-size: 0.75rem; line-height: 1.6; }
#motto-section .motto-title { color: #ff0000; }
@media (max-height: 650px) { #motto-section { display: none; } }
@keyframes glitch { 0% { transform: translate(-50%, -50%) skewX(0); } 25% { transform: translate(-52%, -48%) skewX(-5deg); } 50% { transform: translate(-48%, -52%) skewX(5deg); } 75% { transform: translate(-51%, -49%) skewX(-2deg); } 100% { transform: translate(-50%, -50%) skewX(0); } }