/* Flappy Doge Custom Game Styling */

.flappy-game-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 20px auto;
    max-width: 900px;
}

.flappy-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: #0d0d1a;
}

#flappyCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Glassmorphic Overlays */
.flappy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 26, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.flappy-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    padding: 20px;
    width: 100%;
}

.neon-text-gold {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.neon-text-red {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff3b30;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.6), 0 0 20px rgba(255, 59, 48, 0.4);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.overlay-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.doge-preview-box {
    margin: 20px auto;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cute-doge-sprite {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: url('../capybara-clicker/capybara.png') no-repeat center/contain, #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    border: 3px solid #fff;
    animation: dogeFloat 2s ease-in-out infinite;
}

/* Fallback preview rendering if capybara.png is not used */
.cute-doge-sprite {
    background-color: #ffd700;
    background-image: radial-gradient(circle at 35% 35%, #fff 2px, transparent 3px),
                      radial-gradient(circle at 65% 35%, #fff 2px, transparent 3px),
                      radial-gradient(circle at 50% 60%, #8b5a2b 4px, transparent 5px);
}

@keyframes dogeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.play-btn {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d0d1a;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.6);
    filter: brightness(1.1);
}

.play-btn.retry {
    background: linear-gradient(135deg, #ff3b30, #ff8c00);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.4);
}

.play-btn.retry:hover {
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.6);
}

.controls-tip {
    display: block;
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Stats dashboard */
.flappy-dashboard {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-box.gold-glow {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.05);
}

.stat-lbl {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    font-family: monospace;
}

.stat-box.gold-glow .stat-val {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.arcade-tip-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px dashed rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
}

.arcade-tip-box h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #ffd700;
    font-size: 0.95rem;
    font-weight: 600;
}

.arcade-tip-box p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

/* Game Over Card */
.score-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 280px;
    margin: 0 auto 25px auto;
}

.card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
}

.card-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
    .flappy-game-container {
        flex-direction: column;
        align-items: center;
    }
    .flappy-canvas-wrapper {
        width: 100%;
        max-width: 400px;
    }
    .flappy-dashboard {
        width: 100%;
        max-width: 400px;
    }
}
