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

html,
body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: #70c5ce;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* Handle iPhone safe areas */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #70c5ce;
}

#board {
    display: block;
    /* Removed width/height 100% to allow JS to control dimensions */
    background-image: url("/flappybird/flappybirdbg.png");
    background-size: cover;
    background-position: center bottom;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    /* nice shadow for desktop */
}

.game-over-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    display: none;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    z-index: 1000;
    pointer-events: auto;
}

.go-btn {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
    border: none;
}

.go-btn.primary {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.go-btn.secondary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.go-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    filter: brightness(1.05);
}

.go-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
    .game-over-actions {
        bottom: 16px;
        flex-direction: column;
        gap: 10px;
    }

    .go-btn {
        width: 100%;
        text-align: center;
        padding: 12px 14px;
    }
}