/* ==========================================================================
   game_38 - category / browse page
   Used by: more.ftl
   Loaded AFTER 7602a4474aa53918.css (site shell lives there).
   Every selector below is namespaced with .b- so nothing leaks to
   index.ftl, details.ftl, the legal pages or search.ftl.
   ========================================================================== */

:root {
    --b-panel: rgba(10, 24, 42, .82);
    --b-panel-soft: rgba(14, 32, 54, .62);
    --b-line: rgba(84, 111, 156, .32);
    --b-cyan: #5df5ff;
    --b-blue: #8fb5ff;
    --b-muted: #8fa9cf;
    --b-text: #e2f0ff;
    --b-gold: #ffd24a;
    --b-radius: 1.15rem;
    --b-shadow: 0 30px 60px -45px rgba(4, 12, 24, .95);
}

html {
    scroll-behavior: smooth
}

.b-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto
}

.b-wrap img {
    display: block;
    max-width: 100%
}

/* keeps the shell header identical to details.ftl and the legal pages */
.logo-img {
    height: 50px;
    width: auto;
    aspect-ratio: auto;
}

/* --------------------------------------------------------------------------
   hero band
   -------------------------------------------------------------------------- */

.b-hero {
    padding: 1.8rem 2rem 1.6rem;
    border-radius: var(--b-radius);
    border: 1px solid var(--b-line);
    background: radial-gradient(circle at 88% 0%, rgba(93, 245, 255, .13), transparent 52%), var(--b-panel);
    box-shadow: var(--b-shadow)
}

.b-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0 0 1.1rem;
    padding: 0;
    list-style: none;
    font-size: .78rem;
    color: var(--b-muted)
}

.b-crumbs li + li:before {
    content: "/";
    margin-right: .45rem;
    color: rgba(143, 169, 207, .55)
}

.b-crumbs a:hover {
    color: var(--b-cyan)
}

.b-heroMain {
    display: grid;
    grid-template-columns:1fr auto;
    gap: 2rem;
    align-items: end
}

.b-kicker {
    margin: 0 0 .5rem;
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--b-cyan)
}

.b-title {
    margin: 0;
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    line-height: 1.06;
    letter-spacing: -.02em;
    color: #fff
}

.b-heroMeta {
    text-align: right;
    max-width: 20rem
}

.b-count {
    margin: 0;
    font-size: .86rem;
    color: var(--b-muted)
}

.b-count strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--b-text)
}

.b-heroNote {
    margin: .5rem 0 0;
    font-size: .8rem;
    line-height: 1.5;
    color: #7f9ac0
}

.b-about {
    margin-top: 1.3rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--b-line)
}

.b-about summary {
    cursor: pointer;
    font-size: .85rem;
    letter-spacing: .04em;
    color: var(--b-blue);
    list-style: none
}

.b-about summary::-webkit-details-marker {
    display: none
}

.b-about summary:before {
    content: "+";
    display: inline-block;
    width: 1.1rem;
    color: var(--b-cyan);
    transition: transform .2s ease
}

.b-about[open] summary:before {
    content: "-"
}

.b-about summary:hover {
    color: var(--b-cyan)
}

.b-aboutBody {
    margin-top: .9rem;
    max-width: 62rem;
    font-size: .9rem;
    line-height: 1.7;
    color: #b7cdea
}

.b-aboutBody p {
    margin: 0 0 .75rem
}

.b-aboutBody a {
    color: var(--b-cyan)
}

.b-aboutBody h2, .b-aboutBody h3 {
    margin: 1rem 0 .4rem;
    font-size: 1rem;
    color: var(--b-blue)
}

/* --------------------------------------------------------------------------
   ad slot
   -------------------------------------------------------------------------- */

.b-ad {
    margin: 2rem auto;
    max-width: 100%;
    text-align: center
}

.b-adLabel {
    display: block;
    margin-bottom: .5rem;
    font-size: .62rem;
    letter-spacing: .3em;
    color: #5a7699
}

.b-adBody {
    display: flex;
    justify-content: center
}

/* --------------------------------------------------------------------------
   layout: sticky category rail + results
   -------------------------------------------------------------------------- */

.b-layout {
    display: grid;
    grid-template-columns:210px minmax(0, 1fr);
    gap: 2.2rem;
    margin-top: 2rem;
    align-items: start
}

.b-rail {
    position: sticky;
    top: 6.5rem
}

.b-railTitle {
    margin: 0 0 .8rem;
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--b-cyan)
}

.b-railList {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .15rem;
    border-left: 1px solid var(--b-line)
}

.b-railLink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-left: -1px;
    padding: .55rem .8rem;
    border-left: 2px solid transparent;
    font-size: .89rem;
    color: #a9c3e4;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
    white-space: nowrap;
}

.b-railLink em {
    font-style: normal;
    font-size: .7rem;
    color: #6f8cb5
}

.b-railLink:hover {
    color: #fff;
    background: rgba(93, 245, 255, .06)
}

.b-railLink.is-current {
    border-left-color: var(--b-cyan);
    color: var(--b-cyan);
    background: linear-gradient(90deg, rgba(93, 245, 255, .12), transparent)
}

.b-railLink.is-current em {
    color: var(--b-cyan)
}

/* --------------------------------------------------------------------------
   results column
   -------------------------------------------------------------------------- */

.b-results {
    min-width: 0
}

/* --------------------------------------------------------------------------
   toolbar: sort group + filter box
   -------------------------------------------------------------------------- */

.b-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .55rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--b-line);
    background: var(--b-panel-soft)
}

.b-sorts {
    display: flex;
    gap: .25rem
}

.b-sort {
    padding: .45rem .95rem;
    border-radius: 999px;
    background: transparent;
    color: #a9c3e4;
    font-size: .84rem;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease
}

.b-sort:hover {
    color: #fff;
    background: rgba(93, 245, 255, .08)
}

.b-sort.is-on {
    background: rgba(93, 245, 255, .16);
    color: var(--b-cyan);
    font-weight: 600
}

.b-filter {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(17, 36, 62, .8);
    border: 1px solid rgba(84, 111, 156, .35);
    min-width: 15rem
}

.b-filterIcon {
    display: inline-flex;
    color: #6f8cb5
}

.b-filterIcon svg {
    width: 14px;
    height: 14px
}

.b-filter input {
    flex: 1;
    min-width: 0;
    background: transparent;
    color: var(--b-text);
    font-size: .86rem
}

.b-filter input::placeholder {
    color: #6f8cb5
}

.b-status {
    margin: .8rem 0 1rem;
    font-size: .78rem;
    letter-spacing: .04em;
    color: #7f9ac0
}

/* --------------------------------------------------------------------------
   poster wall
   -------------------------------------------------------------------------- */

.b-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(178px, 1fr));
    gap: 1rem
}

.b-card {
    position: relative;
    display: grid;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--b-line);
    background: #0a1626;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease
}

.b-card[hidden] {
    display: none
}

.b-cardThumb {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #0a1626
}

.b-cardThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease
}

.b-card:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 245, 255, .5);
    box-shadow: 0 28px 48px -36px rgba(0, 0, 0, .95)
}

.b-card:hover .b-cardThumb img {
    transform: scale(1.06)
}

.b-cardNum {
    position: absolute;
    top: .55rem;
    left: .55rem;
    padding: .1rem .45rem;
    border-radius: .45rem;
    background: rgba(6, 16, 30, .78);
    border: 1px solid rgba(93, 245, 255, .3);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--b-cyan)
}

.b-cardBody {
    display: grid;
    gap: .2rem;
    padding: .7rem .8rem .8rem
}

.b-cardType {
    font-style: normal;
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--b-blue)
}

.b-cardName {
    font-size: .93rem;
    line-height: 1.3;
    color: #fff
}

.b-cardGo {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .15rem;
    font-size: .74rem;
    color: var(--b-gold);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .22s ease, transform .22s ease
}

.b-cardGo svg {
    width: 12px;
    height: 12px
}

.b-card:hover .b-cardGo, .b-card:focus-visible .b-cardGo {
    opacity: 1;
    transform: translateY(0)
}

/* --------------------------------------------------------------------------
   empty / no-match states
   -------------------------------------------------------------------------- */

.b-nomatch {
    margin: 1.4rem 0 0;
    padding: 1rem 1.2rem;
    border-radius: .9rem;
    border: 1px dashed var(--b-line);
    font-size: .88rem;
    color: var(--b-muted)
}

.b-nomatch[hidden] {
    display: none
}

.b-empty {
    padding: 3rem 2rem;
    border-radius: var(--b-radius);
    border: 1px dashed var(--b-line);
    background: var(--b-panel-soft);
    text-align: center
}

.b-emptyTitle {
    margin: 0 0 .5rem;
    font-size: 1.15rem;
    color: #fff
}

.b-emptyText {
    margin: 0 auto 1.4rem;
    max-width: 30rem;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--b-muted)
}

.b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--b-gold), #ffb547);
    color: #16233d;
    font-size: .9rem;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease
}

.b-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -16px rgba(255, 210, 74, .8)
}

/* --------------------------------------------------------------------------
   closing band with an inline search
   -------------------------------------------------------------------------- */

.b-closing {
    margin-top: 3rem;
    display: grid;
    grid-template-columns:1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.7rem 2rem;
    border-radius: var(--b-radius);
    border: 1px solid rgba(93, 245, 255, .22);
    background: radial-gradient(circle at 10% 20%, rgba(93, 245, 255, .12), transparent 55%), var(--b-panel)
}

.b-closing h2 {
    margin: 0 0 .4rem;
    font-size: 1.25rem;
    color: #fff
}

.b-closing p {
    margin: 0;
    font-size: .88rem;
    color: #b7cdea
}

.b-closingSearch {
    display: grid;
    grid-template-columns:1fr auto;
    gap: .4rem;
    padding: .35rem;
    border-radius: 999px;
    border: 1px solid var(--b-line);
    background: rgba(17, 36, 62, .8);
    min-width: 20rem
}

.b-closingSearch input {
    padding: .55rem .9rem;
    border-radius: 999px;
    background: transparent;
    color: var(--b-text);
    font-size: .88rem
}

.b-closingSearch input::placeholder {
    color: #6f8cb5
}

.b-closingSearch button {
    padding: .55rem 1.1rem;
    border-radius: 999px;
    background: rgba(93, 245, 255, .16);
    color: var(--b-cyan);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease
}

.b-closingSearch button:hover {
    background: rgba(93, 245, 255, .26)
}

/* --------------------------------------------------------------------------
   responsive: the rail turns into a horizontal chip row
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .b-layout {
        grid-template-columns:1fr;
        gap: 1.2rem
    }

    .b-rail {
        position: static;
        overflow: hidden;
    }

    .b-railList {
        display: flex;
        gap: .4rem;
        overflow-x: auto;
        border-left: 0;
        padding-bottom: .3rem;
        scrollbar-width: none;
        -ms-overflow-style: none
    }

    .b-railList::-webkit-scrollbar {
        display: none;
        height: 0
    }

    .b-railLink {
        margin-left: 0;
        flex: 0 0 auto;
        border-left: 0;
        border: 1px solid var(--b-line);
        border-radius: 999px
    }

    .b-railLink.is-current {
        border-color: rgba(93, 245, 255, .5)
    }

    .b-heroMain {
        grid-template-columns:1fr;
        gap: 1rem;
        align-items: start
    }

    .b-heroMeta {
        text-align: left;
        max-width: 100%
    }

    .b-count strong {
        display: inline;
        margin-right: .35rem;
        font-size: 1.1rem
    }
}

@media (max-width: 900px) {
    .b-closing {
        grid-template-columns:1fr
    }

    .b-closingSearch {
        min-width: 0
    }
}

@media (max-width: 640px) {
    .b-hero {
        padding: 1.3rem 1.15rem
    }

    .b-grid {
        grid-template-columns:repeat(auto-fill, minmax(142px, 1fr));
        gap: .7rem
    }

    .b-toolbar {
        border-radius: .9rem;
        padding: .5rem
    }

    .b-filter {
        min-width: 0;
        width: 100%
    }

    .b-sorts {
        flex-wrap: wrap
    }

    .b-empty {
        padding: 2.2rem 1.2rem
    }

    .b-closing {
        padding: 1.3rem 1.15rem
    }
}

@media (prefers-reduced-motion: reduce) {
    .b-card, .b-cardThumb img, .b-railLink, .b-btn {
        transition: none
    }

    html {
        scroll-behavior: auto
    }
}
