/* Best Free PC Games page. Builds on the Free Games styles (free-games.css) and the Lab panels (test-lab.css). */
.bf-rank { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(11, 18, 32, 0.92); color: #fff; font-weight: 900; font-size: 0.95rem; line-height: 1; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.bf-rank small { font-weight: 800; font-size: 0.72rem; }
.bf-up { color: #4ade80; }
.bf-down { color: #f87171; }
.bf-same { color: #94a3b8; }
.bf-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.82rem; color: var(--text-muted); }
.bf-meta strong { color: #e2e8f0; }
.bf-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-genre { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: #cbd5e1; }
.bf-desc { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }
.bf-empty { margin: 0 0 25px 0; }
.bf-method { font-size: 0.9rem; line-height: 1.6; }
.bf-method li { margin-bottom: 6px; }
.bf-picks-note { margin: -6px 0 14px 0; font-size: 0.88rem; }
.bf-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 30px 0; }
.bf-pick { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
.bf-pick:hover { border-color: var(--accent-primary); transform: translateY(-2px); }
.bf-pick img { width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 8px; }
.bf-pick-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-primary); margin-top: 4px; }
.bf-pick-title { font-size: 1rem; }
.bf-pick-line { font-size: 0.82rem; color: var(--text-muted); }

/* Rank badge top-left; the store tag moves to the top-right so the two never overlap */
.fg-img .fg-store { left: auto; right: 10px; }

/* Filters: chips on desktop, drop-down on phones (same panel style as /free-games/) */
.bf-filters { margin-bottom: 22px; }
.bf-filters[hidden] { display: none; }
.bf-filters .fg-chip { padding: 5px 12px; font-size: 0.8rem; }
.bf-filters .bf-select-wrap { display: none; align-items: center; gap: 10px; width: 100%; }
.bf-select-label { font-size: 0.8rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bf-select { flex: 1; min-width: 0; font-family: inherit; font-size: 0.9rem; font-weight: 700; color: #e2e8f0; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); border-radius: 999px; padding: 8px 14px; }
.bf-select:focus { outline: none; border-color: var(--accent-primary); }
.bf-select option, .bf-select optgroup { background: #0f172a; color: #e2e8f0; }

@media (max-width: 650px) {
    /* Tighter top, same rhythm as /free-games/: smaller heading, stats pill + beer on one row */
    .hero.fg-hero .fg-h1 { font-size: 1.3rem !important; letter-spacing: -0.5px; }
    .hero.fg-hero p.fg-lede { font-size: 0.92rem; line-height: 1.45; }
    .fg-hero .bf-stat-ready { display: none; }
    .fg-hero .fg-hero-row { flex-wrap: nowrap; }
    /* Section links: one swipeable row */
    .section-wrapper .fg-hubnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 2px; }
    .section-wrapper .fg-hubnav::-webkit-scrollbar { display: none; }
    .section-wrapper .fg-hubnav .fg-chip { white-space: nowrap; flex: 0 0 auto; padding: 5px 11px; font-size: 0.78rem; }
    /* Drop-down replaces the chips */
    .bf-filters .bf-chips { display: none; }
    .bf-filters .bf-select-wrap { display: flex; }
    .bf-filters { margin-bottom: 18px; }
    /* Quick picks: two across */
    .bf-picks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .bf-pick { padding: 8px; }
    .bf-pick-title { font-size: 0.92rem; }
    .bf-pick-line { font-size: 0.76rem; }
}
@media (max-width: 360px) { .hero.fg-hero .fg-h1 { font-size: 1.15rem !important; } }
