/* flappy-bird game page: carried over from template-flappy-bird.php's inline <style> (2026-11-09, block pages). Loaded in the head on a page with this game's block. */
/* ── Page layout ── */
.single-game-page {
    padding: 2rem 0 4rem;
}

.game-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.game-breadcrumb a { color: var(--theme-primary-color); text-decoration: none; }
.game-breadcrumb a:hover { text-decoration: underline; }
.game-breadcrumb .separator { margin: 0 0.5rem; color: #999; }
.game-breadcrumb .current { color: var(--text-color); }

.single-game-page .wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.game-breadcrumb { grid-column: 1 / -1; }

.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .game-info-card { background: #1e1e1e; }

.game-info-card h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--text-color);
}

.game-info-card ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: #666;
    line-height: 1.6;
}

[data-theme="dark"] .game-info-card ul { color: #999; }

.game-info-card li { margin-bottom: 0.375rem; }
.game-info-card li:last-child { margin-bottom: 0; }

.game-tip {
    margin: 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    font-size: 0.875rem;
    color: #666;
}

[data-theme="dark"] .game-tip {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

@media (max-width: 860px) {
    .single-game-page .wrapper { grid-template-columns: 1fr; }
    .game-sidebar { order: 1; }
    .game-page-content { order: 0; }
}

/* ── Flappy Bird game styles ── */
.flappy-bird-game {
    max-width: 400px;
    margin: 0 auto;
}

.flappy-bird-ui {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.flappy-score-display,
.flappy-best-display {
    background: #fff;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1;
}

[data-theme="dark"] .flappy-score-display,
[data-theme="dark"] .flappy-best-display {
    background: #1e1e1e;
}

.flappy-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 0.125rem;
}

[data-theme="dark"] .flappy-label {
    color: #999;
}

.flappy-score,
.flappy-best {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-primary-color, #00843d);
}

.flappy-canvas-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#flappy-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.flappy-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.flappy-overlay-content {
    text-align: center;
    color: white;
}

.flappy-bird-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.flappy-overlay-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: white;
}

.flappy-overlay-content p {
    font-size: 0.9375rem;
    margin: 0 0 1.25rem;
    opacity: 0.9;
}

.flappy-start-btn {
    background: var(--theme-primary-color, #00843d);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.flappy-start-btn:hover {
    background: #006b31;
    transform: scale(1.05);
}

.flappy-controls-hint {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #999;
}

.flappy-controls-hint i {
    margin-right: 0.25rem;
}
