/* Hero category buttons + Latest Release card (IFS index + SBP 3d-games). Keep identical. */
#games { scroll-margin-top: 5.75rem; }
.hero-cat-panel { width: 100%; max-width: 48rem; margin: 2rem auto 0; }
.hero-cat-btns {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    justify-content: center;
    width: 100%;
    padding-bottom: 6px;
}
@media (min-width: 640px) {
    .hero-cat-btns { flex-direction: row; }
}
/* Gamey arcade buttons, matched to indie portrait .big-btn / #htpBtn
   (Sky Strike Lanes, Neon Turret Rush, Drift Dash): chunky 16px corners,
   3px white rim, cyan gradient, top gloss, 5px 3D drop, glow, press. */
.hero-cat-btn {
    font-family: 'Bebas Neue', sans-serif;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem 0.95rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.12) 38%, rgba(0,0,0,0) 55%),
        linear-gradient(#38bdf8, #1d4ed8);
    color: #fff;
    border-radius: 16px;
    border: 3px solid #fff;
    letter-spacing: 1.5px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(0,0,0,.25);
    box-shadow: 0 0 16px rgba(56,189,248,.5), 0 5px 0 #0c4a6e, inset 0 2px 0 rgba(255,255,255,.35);
    cursor: pointer;
    white-space: nowrap;
    transform: translateY(0);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.hero-cat-btn:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(56,189,248,.7), 0 7px 0 #0c4a6e, inset 0 2px 0 rgba(255,255,255,.4);
}
.hero-cat-btn:focus-visible {
    color: #fff;
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
    filter: brightness(1.08);
}
.hero-cat-btn:active {
    color: #fff;
    filter: brightness(.95);
    transform: translateY(4px);
    box-shadow: 0 0 10px rgba(56,189,248,.4), 0 1px 0 #0c4a6e, inset 0 2px 0 rgba(255,255,255,.2);
}
.hero-cat-btn i { margin-right: 0.45rem; }
@media (min-width: 768px) {
    .hero-cat-btn { font-size: 1.35rem; padding: 0.95rem 1.5rem 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-cat-btn,
    .hero-cat-btn:hover,
    .hero-cat-btn:focus-visible,
    .hero-cat-btn:active {
        transition: none;
        transform: none;
    }
}
.latest-release { width: 100%; max-width: 34rem; margin: 1.5rem auto 2.75rem; text-align: left; }
@media (max-width: 639px) {
    .latest-release { margin-bottom: 2rem; }
}
.latest-release-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2ad1d6;
    margin: 0 0 0.5rem;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.latest-release-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(10,11,15,.72);
    border: 1px solid rgba(42,209,214,.45);
    box-shadow: 0 8px 28px rgba(0,0,0,.45);
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(8px);
    transition: border-color .2s, transform .2s;
}
.latest-release-card:hover,
.latest-release-card:focus-visible { border-color: #7be7e9; transform: translateY(-1px); }
.latest-release-card img {
    width: 120px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: #11131a;
}
.latest-release-body { min-width: 0; }
.latest-release-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.latest-release-blurb {
    font-size: 0.8rem;
    color: #d1d5db;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-release-play {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2ad1d6;
}
@media (max-width: 640px) {
    .latest-release-card img { width: 96px; height: 64px; }
}
/* Keep the panel visible when the SBP / games.html listing hero is collapsed. */
html.hero-start-collapsed .listing-hero .hero-cat-panel { margin-top: 0.85rem; }
html.hero-start-collapsed .listing-hero .hero-cat-btn { padding: 0.65rem 1rem; font-size: 1.05rem; }
html.hero-start-collapsed .listing-hero .latest-release { margin-top: 0.75rem; margin-bottom: 2.75rem; max-width: 28rem; }
html.hero-start-collapsed .listing-hero .latest-release--teaser { max-width: 45rem; }
html.hero-start-collapsed .listing-hero .latest-release-label,
html.hero-start-collapsed .listing-hero .latest-release-blurb { display: block !important; }

/* Arena Blasters teaser on the Latest Release card (IFS home + SBP 3d-games).
   1200x630 art, 720px (45rem) wide on desktop, full width on phone.
   width/height attributes plus aspect-ratio avoid layout shift. */
.latest-release--teaser { width: 100%; max-width: 45rem; }
.latest-release-card--teaser {
    display: block;
    padding: 0;
    overflow: hidden;
    background: #0a0818;
}
.latest-release-card--teaser picture {
    display: block;
    width: 100%;
    aspect-ratio: 1200 / 630;
    background: #0a0818;
}
.latest-release-card--teaser img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 1;
    background: #0a0818;
}
@media (max-width: 640px) {
    .latest-release-card--teaser img { width: 100%; height: auto; }
    .latest-release--teaser { margin-bottom: 2rem; }
}

/* Latest Release slot hosts the rotating Play More Games widget.
   Keep the Latest Release label; hide the widget's own Play More Games label. */
/* Definite width so the indie row and the 2-teaser row share the same total
   width. The hero content is a flex item and otherwise shrink-wraps, which
   made the 8/6-card row much narrower than the teasers. */
.hero-cat-panel:has(.latest-release--widget) {
    width: min(92vw, 920px);
    max-width: min(92vw, 920px);
}
.latest-release.latest-release--widget,
html.hero-start-collapsed .listing-hero .latest-release.latest-release--widget {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.latest-release--widget .ifs-play-more,
.latest-release--widget .latest-release-widget,
.latest-release--widget [data-ifs-play-more] {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}
.latest-release--widget .ifs-play-more-label { display: none; }
/* Reserve the tallest slide type (6 portrait cards vs 2 teasers on
   desktop; 4 cards vs 1 teaser on mobile) plus dots, matching the
   final ready height so the slot does not shift on load. The label
   is hidden in this slot, so do not add label slack. */
.latest-release--widget .latest-release-widget:not([data-ifs-ready="1"]) {
    display: grid;
    aspect-ratio: auto;
    min-height: 140px;
}
.latest-release--widget .latest-release-widget:not([data-ifs-ready="1"])::before,
.latest-release--widget .latest-release-widget:not([data-ifs-ready="1"])::after {
    content: "";
    grid-area: 1 / 1;
    width: 100%;
    height: 0;
    pointer-events: none;
    padding-top: 0;
}
.latest-release--widget .latest-release-widget:not([data-ifs-ready="1"])::before {
    padding-top: calc((100% - 50px) / 6 * 16 / 9 + 20px);
}
.latest-release--widget .latest-release-widget:not([data-ifs-ready="1"])::after {
    padding-top: calc((100% - 12px) / 2 * 630 / 1200 + 20px);
}
@media (max-width: 700px) and (orientation: portrait) {
    .latest-release--widget .latest-release-widget:not([data-ifs-ready="1"])::before {
        padding-top: calc((100% - 24px) / 4 * 16 / 9 + 20px);
    }
    .latest-release--widget .latest-release-widget:not([data-ifs-ready="1"])::after {
        padding-top: calc(min(100%, 640px) * 630 / 1200 + 20px);
    }
}
