html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
}

#game-canvas {
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#score-display {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 36px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 4px rgba(0,0,0,0.3);
}

/* Start overlay */
.sendmessage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
}

.sendmessage h1 {
    color: #fbbf24;
    font-size: 1.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    margin-bottom: 16px;
}

/* Bird selector */
#bird-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 20px;
    max-width: 340px;
}

.bird-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bird-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-2px);
}

.bird-card.selected {
    border-color: #fbbf24;
    background: rgba(251,191,36,0.15);
    box-shadow: 0 0 12px rgba(251,191,36,0.25);
}

.bird-name {
    color: #e2e8f0;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.5px;
}

.bird-card.selected .bird-name {
    color: #fbbf24;
}

/* Play button */
.play-btn {
    margin-top: 20px;
    padding: 12px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    color: #0f172a;
    background: #fbbf24;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(251,191,36,0.3);
}

.play-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251,191,36,0.4);
}

.niokbutton {
    position: absolute;
    inset: 0;
}

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

#game-over-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    gap: 12px;
}

.game-over-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.game-over-score {
    font-size: 1.3rem;
    color: #e2e8f0;
    font-weight: 600;
}

.game-over-hint {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 8px;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
