:root {
    --bf-navy: #070d1b;
    --bf-ink: #0b1327;
    --bf-panel: rgba(15, 25, 48, .78);
    --bf-panel-solid: #101a31;
    --bf-line: rgba(255, 255, 255, .11);
    --bf-line-strong: rgba(85, 178, 255, .34);
    --bf-blue: #27a8ff;
    --bf-purple: #7c4dff;
    --bf-pink: #d84dff;
    --bf-soft: #dce9ff;
    --bf-muted: rgba(222, 234, 255, .68);
    --bf-shadow: 0 18px 60px rgba(0, 0, 0, .36);
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    background: var(--bf-navy);
    color: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.page-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(39, 168, 255, .26), transparent 28rem),
        radial-gradient(circle at 84% 10%, rgba(124, 77, 255, .28), transparent 31rem),
        radial-gradient(circle at 50% 105%, rgba(216, 77, 255, .16), transparent 30rem),
        linear-gradient(135deg, #07101f 0%, #0a1023 42%, #171038 100%);
    position: relative;
    overflow-x: hidden;
}

.page-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 72%);
}

.bf-navbar {
    background: rgba(7, 13, 27, .78);
    border-bottom: 1px solid var(--bf-line);
    backdrop-filter: blur(18px);
}

.navbar-brand {
    letter-spacing: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bf-blue), var(--bf-purple));
    box-shadow: 0 0 28px rgba(39, 168, 255, .34);
    display: inline-grid;
    place-items: center;
    font-weight: 900;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .72);
    padding: .55rem .75rem;
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.nav-auth {
    border-color: rgba(255, 255, 255, .2);
}

.hero-section {
    padding: 6.6rem 0 4.2rem;
}

.hero-title {
    font-size: clamp(2.55rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.02;
    max-width: 10ch;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .72rem;
    border: 1px solid rgba(39, 168, 255, .3);
    border-radius: 999px;
    background: rgba(39, 168, 255, .12);
    color: #eaf6ff;
    font-size: .86rem;
    font-weight: 700;
}

.hero-panel {
    background:
        linear-gradient(145deg, rgba(39, 168, 255, .16), rgba(124, 77, 255, .14)),
        rgba(15, 25, 48, .78);
    border: 1px solid var(--bf-line);
    border-radius: 8px;
    box-shadow: var(--bf-shadow);
}

.hero-mini-card {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .22);
    border-radius: 8px;
}

.text-soft {
    color: var(--bf-soft);
}

.text-muted-soft {
    color: var(--bf-muted);
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading h1,
.section-heading h2 {
    font-weight: 850;
}

.btn {
    border-radius: 8px;
}

.btn-blox {
    background: linear-gradient(135deg, var(--bf-blue), var(--bf-purple));
    border: 0;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(39, 168, 255, .22);
}

.btn-blox:hover,
.btn-blox:focus {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, .22);
}

.btn-outline-light:hover {
    transform: translateY(-1px);
}

.bf-card {
    background: var(--bf-panel);
    border: 1px solid var(--bf-line);
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .22);
    backdrop-filter: blur(14px);
}

.interactive-card {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.interactive-card:hover {
    transform: translateY(-4px);
    border-color: var(--bf-line-strong);
    box-shadow: 0 20px 65px rgba(39, 168, 255, .18);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0c1627;
}

.game-thumb-fallback {
    display: grid;
    place-items: center;
    padding: 1.5rem;
    text-align: center;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .18), transparent 10rem),
        linear-gradient(135deg, rgba(39, 168, 255, .95), rgba(124, 77, 255, .9));
}

.game-thumb-fallback span {
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.2;
    text-wrap: balance;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
}

.badge-genre,
.text-bg-primary {
    background: rgba(39, 168, 255, .18) !important;
    border: 1px solid rgba(39, 168, 255, .34);
    color: #e8f7ff !important;
}

.badge-mood,
.text-bg-secondary {
    background: rgba(124, 77, 255, .18) !important;
    border: 1px solid rgba(124, 77, 255, .34);
    color: #f0ebff !important;
}

.text-bg-info {
    background: rgba(74, 222, 255, .17) !important;
    border: 1px solid rgba(74, 222, 255, .34);
    color: #e8fbff !important;
}

.text-bg-dark {
    background: rgba(255, 255, 255, .1) !important;
    border: 1px solid rgba(255, 255, 255, .12);
}

.text-bg-success {
    background: rgba(70, 211, 145, .16) !important;
    border: 1px solid rgba(70, 211, 145, .34);
    color: #eafff4 !important;
}

.text-bg-warning {
    background: rgba(255, 207, 79, .18) !important;
    border: 1px solid rgba(255, 207, 79, .36);
    color: #fff5d6 !important;
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #ffd76a;
    font-weight: 900;
}

.rating-stars .stars-muted {
    color: rgba(255, 255, 255, .2);
}

.meta-tile {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .24);
    border-radius: 8px;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--bf-blue), var(--bf-purple));
    font-weight: 900;
    box-shadow: 0 0 28px rgba(124, 77, 255, .24);
}

.genre-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .78rem 1rem;
    border: 1px solid var(--bf-line);
    border-radius: 8px;
    background: rgba(15, 25, 48, .76);
    color: #fff;
}

.genre-pill:hover {
    color: #fff;
    border-color: var(--bf-line-strong);
    background: rgba(39, 168, 255, .12);
    transform: translateY(-2px);
}

.genre-pill span {
    color: var(--bf-muted);
    font-size: .875rem;
}

.mood-card {
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid var(--bf-line);
    border-radius: 8px;
    background: rgba(12, 22, 39, .86);
    color: #fff;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.mood-card:hover,
.btn-check:checked + .mood-card {
    border-color: rgba(39, 168, 255, .85);
    background: rgba(39, 168, 255, .14);
    transform: translateY(-2px);
}

.mood-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--bf-blue), var(--bf-purple));
    font-weight: 900;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.summary-row span {
    color: rgba(255, 255, 255, .62);
}

.empty-state {
    text-align: center;
    padding: clamp(2rem, 6vw, 4rem);
}

.empty-state-icon {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(39, 168, 255, .25), rgba(124, 77, 255, .25));
    border: 1px solid var(--bf-line);
    font-weight: 900;
}

.form-control,
.form-select {
    background-color: rgba(12, 22, 39, .92);
    border-color: rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(12, 22, 39, .98);
    border-color: var(--bf-blue);
    color: #fff;
    box-shadow: 0 0 0 .25rem rgba(39, 168, 255, .2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, .42);
}

.filter-panel {
    background:
        linear-gradient(135deg, rgba(39, 168, 255, .08), rgba(124, 77, 255, .08)),
        rgba(15, 25, 48, .78);
}

.site-footer {
    border-top: 1px solid var(--bf-line);
    color: var(--bf-muted);
    background: rgba(7, 13, 27, .54);
    backdrop-filter: blur(12px);
}

.footer-brand {
    color: #fff;
    font-weight: 850;
}

.pagination {
    --bs-pagination-bg: rgba(15, 25, 48, .8);
    --bs-pagination-border-color: rgba(255, 255, 255, .12);
    --bs-pagination-color: #fff;
    --bs-pagination-hover-bg: rgba(39, 168, 255, .16);
    --bs-pagination-hover-border-color: rgba(39, 168, 255, .35);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-active-bg: #27a8ff;
    --bs-pagination-active-border-color: #27a8ff;
    --bs-pagination-disabled-bg: rgba(15, 25, 48, .45);
    --bs-pagination-disabled-border-color: rgba(255, 255, 255, .08);
    --bs-pagination-disabled-color: rgba(255, 255, 255, .36);
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 4rem 0 2.5rem;
    }

    .hero-title {
        max-width: none;
    }

    .bf-card .p-4,
    .hero-panel {
        padding: 1.25rem !important;
    }

    .btn {
        width: 100%;
    }

    .navbar-nav {
        padding-top: 1rem;
    }

    .summary-row {
        flex-direction: column;
        gap: .25rem;
    }
}
