/*
 * FlowInteract showcase module (mod_flowinteract_showcase).
 *
 * Visual spec: docs/plans/cwc-showcase-2026-10/synthesis.html. Flat: no rounded or outlined containers, full-bleed images, hairline
 * rules, black section labels; only the buttons are rounded. Light only, like the sites it sits on.
 *
 * Everything is scoped to .fi-sc, and every class is prefixed fisc-, so it cannot touch the template or the poll block elsewhere.
 * The colours below are the module's own defaults; a site restyles them by overriding the --fisc-* properties on .fi-sc.
 * Layout follows CONTAINER queries on .fisc-in (the module's own width, not the viewport): 900px and up is the desktop layout.
 */

.fi-sc {
    --fisc-accent: #0258ce;
    --fisc-accent-ink: #ffffff;
    --fisc-ink: #222222;
    --fisc-text: #212529;
    --fisc-muted: #5a6168;
    --fisc-line: #dee2e6;
    --fisc-soft: #f2f5f9;
    --fisc-page: #ffffff;
    --fisc-shade: #0b1a2e;
    /* the colours that sit on the shade (the slide scrim, the ghost button, the caption text, the slide bar's labels): a site that
       changes --fisc-shade changes these with it, instead of keeping the default blue-greys below */
    --fisc-scrim-rgb: 7 21 38;
    --fisc-on-shade: #e6edf6;
    --fisc-on-shade-2: #cfdaea;
    --fisc-nav-ink: #b9c6d8;
    --fisc-nav-ink-2: #7f93ad;
    --fisc-red: #ec0000;
    color: var(--fisc-text);
    color-scheme: light;
    font-family: inherit;
    line-height: 1.5;
    margin-block: 0 1.25rem;
}

.fi-sc *,
.fi-sc *::before,
.fi-sc *::after {
    box-sizing: border-box;
}

.fi-sc .fisc-in {
    container-type: inline-size;
    container-name: fisc;
    display: grid;
    gap: 18px;
}

.fi-sc h1,
.fi-sc h2,
.fi-sc h3,
.fi-sc p,
.fi-sc ul,
.fi-sc ol {
    margin: 0;
}

.fi-sc ul,
.fi-sc ol {
    padding: 0;
    list-style: none;
}

.fi-sc img {
    display: block;
    max-width: 100%;
}

.fi-sc a:focus-visible,
.fi-sc button:focus-visible {
    outline: 3px solid #f0a500;
    outline-offset: 2px;
}

.fi-sc .fisc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* the page heading (when it is shown): in the page flow from the first paint, so nothing moves when the script arrives */
.fi-sc h1.fisc-h1:not(.fisc-sr) {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--fisc-ink);
    text-wrap: balance;
}

.fi-sc .fisc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.45rem 1rem;
    border: 1px solid var(--fisc-accent);
    border-radius: 4px;
    background: var(--fisc-accent);
    color: var(--fisc-accent-ink) !important;
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.fi-sc .fisc-btn--ghost {
    background: rgb(var(--fisc-scrim-rgb) / 60%);
    border-color: #ffffffe6;
    color: #ffffff !important;
}

.fi-sc .fisc-btn--sm {
    min-height: 38px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
}

.fi-sc .fisc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.fi-sc .fisc-kind {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--fisc-muted);
}

.fi-sc .fisc-more {
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--fisc-accent);
}

.fi-sc .fisc-more::after {
    content: " \203A";
}

.fi-sc .fisc-more:hover {
    text-decoration: underline;
}

/* ---------- the rotating feature ---------- */
.fi-sc .fisc-rot {
    position: relative;
    background: var(--fisc-shade);
    color: #ffffff;
    overflow: hidden;
}

.fi-sc .fisc-track {
    display: grid;
}

.fi-sc .fisc-slide {
    grid-area: 1 / 1;
    position: relative;
    display: grid;
    align-items: end;
    aspect-ratio: 1148 / 440;
    min-height: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s, visibility 0s 0.45s;
}

.fi-sc .fisc-slide.is-on {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s;
}

.fi-sc .fisc-slide > img.fisc-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fi-sc .fisc-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    /* above the picture (the picture comes later in the markup, so without this it paints OVER the scrim) */
    z-index: 1;
    /* the scrim (James's pick, treatment C): a light shade rising from the bottom and the left edge, so the picture stays bright and
       uplifting; the text shadow below carries the contrast */
    background: linear-gradient(0deg, rgb(var(--fisc-scrim-rgb) / 70.196%) 0%, rgb(var(--fisc-scrim-rgb) / 25.098%) 38%, rgb(var(--fisc-scrim-rgb) / 0%) 60%), linear-gradient(90deg, rgb(var(--fisc-scrim-rgb) / 34.902%) 0%, rgb(var(--fisc-scrim-rgb) / 0%) 55%);
}

.fi-sc .fisc-cap {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    justify-items: start;
    max-width: min(34rem, 62%);
    padding: 28px 32px 30px;
}

.fi-sc .fisc-cap h2,
.fi-sc .fisc-cap p {
    text-shadow: 0 1px 2px #000000, 0 0 8px #000000b3, 0 2px 18px #000000b3;
}

.fi-sc .fisc-tag {
    display: inline-block;
    background: var(--fisc-red);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
}

.fi-sc .fisc-cap h2 {
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 800;
    color: #ffffff;
    text-wrap: balance;
}

.fi-sc .fisc-cap p {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--fisc-on-shade);
    max-width: 30rem;
}

.fi-sc .fisc-cap .fisc-row {
    margin-top: 4px;
}

/* a poll result told as a hook */
.fi-sc .fisc-hook {
    display: grid;
    gap: 6px;
}

.fi-sc .fisc-hook b {
    font-size: 4.2rem;
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fi-sc .fisc-hook span {
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 700;
    text-wrap: balance;
}

.fi-sc .fisc-cap p.fisc-proof {
    font-size: 0.82rem;
    color: var(--fisc-on-shade-2);
}

/* the picker under the slides: its labels double as the progress line */
.fi-sc .fisc-nav {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--fisc-shade);
    border-top: 1px solid #ffffff1f;
}

.fi-sc .fisc-nav ol {
    display: flex;
    flex: 1;
    min-width: 0;
}

.fi-sc .fisc-nav li {
    flex: 1;
    min-width: 0;
}

.fi-sc .fisc-nav li button {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 48px;
    padding: 10px 12px 12px;
    border: 0;
    background: none;
    color: var(--fisc-nav-ink);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    line-height: 1.25;
}

.fi-sc .fisc-nav li button small {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--fisc-nav-ink-2);
    margin-bottom: 2px;
}

.fi-sc .fisc-nav li button::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    background: #ffffff26;
}

.fi-sc .fisc-nav li button i {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    background: #ffffff;
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
}

.fi-sc .fisc-nav li button[aria-current="true"] {
    color: #ffffff;
}

.fi-sc .fisc-nav li button[aria-current="true"] small {
    color: #ff8a8a;
}

.fi-sc .fisc-nav li button[aria-current="true"] i {
    transform: none;
}

.fi-sc.is-playing .fisc-nav li button[aria-current="true"] i {
    animation: fisc-fill var(--fisc-dur, 8s) linear forwards;
}

@keyframes fisc-fill {
    from { transform: scaleX(0); }
    to { transform: none; }
}

.fi-sc .fisc-nav li button:hover {
    color: #ffffff;
}

.fi-sc .fisc-pause {
    flex: none;
    width: 48px;
    border: 0;
    border-left: 1px solid #ffffff1f;
    background: none;
    color: #ffffff;
    cursor: pointer;
    font: 700 0.9rem/1 inherit;
}

/* The page is laid out the same way before the script runs and after it (slide 1 on, the tab strip and the picker in place, panel 1
   on, the other panels hidden), so nothing moves when the script arrives (a page optimizer may hold it back until the first touch).
   Only a reader with scripts switched OFF gets the fallback: no picker, no tab strip, every panel stacked, and the plain <noscript>
   pictures instead of the ones that wait for the script. The template repeats these rules in a <noscript> style for browsers that
   do not know the scripting media feature. */
@media (scripting: none) {
    .fi-sc .fisc-nav,
    .fi-sc .fisc-tabs {
        display: none;
    }

    .fi-sc .fisc-panel[hidden] {
        display: block !important;
    }

    .fi-sc img[data-src] {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fi-sc .fisc-slide {
        transition: none;
    }

    .fi-sc.is-playing .fisc-nav li button[aria-current="true"] i {
        animation: none;
        transform: none;
    }
}

/* ---------- the tabs ---------- */
/* the tab strip: tabs along one baseline above ONE panel, whatever the number of tabs (two tabs no longer stretch to half the width each) */
.fi-sc .fisc-tabs {
    display: grid;
    grid-template-columns: repeat(var(--fisc-nt, 3), minmax(0, 22rem));
    justify-content: start;
    gap: 0 12px;
    border-bottom: 1px solid var(--fisc-line);
    margin-bottom: 16px;
}

.fi-sc .fisc-tabs button {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0 12px;
    align-items: center;
    padding: 10px 4px 12px 0;
    border: 0;
    border-bottom: 4px solid transparent;
    margin-bottom: -1px;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--fisc-text);
}

.fi-sc .fisc-tabs button.fisc-noimg {
    grid-template-columns: minmax(0, 1fr);
}

.fi-sc .fisc-tabs button img {
    grid-row: span 2;
    width: 64px;
    height: 48px;
    object-fit: cover;
    filter: saturate(0.75);
    opacity: 0.85;
    transition: opacity 0.2s, filter 0.2s;
}

.fi-sc .fisc-tabs b {
    font-size: 1.15rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--fisc-muted);
}

.fi-sc .fisc-tabs small {
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--fisc-muted);
}

.fi-sc .fisc-tabs button:hover b,
.fi-sc .fisc-tabs button[aria-selected="true"] b {
    color: var(--fisc-ink);
}

.fi-sc .fisc-tabs button[aria-selected="true"] {
    border-bottom-color: var(--fisc-accent);
}

.fi-sc .fisc-tabs button[aria-selected="true"] img {
    filter: none;
    opacity: 1;
}

.fi-sc .fisc-panel {
    min-width: 0;
}

.fi-sc .fisc-panel[hidden] {
    display: none;
}

/* desktop: all panels share one grid cell, so the height is the tallest panel's and the page does not jump when tabs switch (or when
   the script arrives: this does not wait for it) */
@container fisc (min-width: 900px) {
    .fi-sc .fisc-panels {
        display: grid;
    }

    .fi-sc .fisc-panel {
        grid-area: 1 / 1;
    }

    /* !important: the template's own [hidden] rule (Bootstrap) is !important too */
    .fi-sc .fisc-panel[hidden] {
        display: block !important;
        visibility: hidden;
    }
}

@media (scripting: none) {
    @container fisc (min-width: 900px) {
        .fi-sc .fisc-panels {
            display: block;
        }

        .fi-sc .fisc-panel[hidden] {
            visibility: visible;
        }
    }
}

/* ---------- what's new ---------- */
.fi-sc .fisc-vids {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.fi-sc .fisc-vb {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.fi-sc .fisc-vm {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--fisc-shade);
    overflow: hidden;
}

.fi-sc .fisc-vm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.fi-sc .fisc-vb:hover .fisc-vm img {
    transform: scale(1.03);
}

.fi-sc .fisc-vp {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000000b3;
    display: grid;
    place-items: center;
}

.fi-sc .fisc-vp::after {
    content: "";
    margin-left: 3px;
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent #ffffff;
}

.fi-sc .fisc-vx {
    display: block;
    min-width: 0;
}

.fi-sc .fisc-vt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fisc-ink);
}

.fi-sc .fisc-vs {
    display: block;
    margin-top: 2px;
    font-size: 0.76rem;
    color: var(--fisc-muted);
}

.fi-sc .fisc-vb:hover .fisc-vt {
    color: var(--fisc-accent);
}

.fi-sc .fisc-vb--feat .fisc-vt {
    margin-top: 10px;
    font-size: 1.3rem;
    line-height: 1.25;
}

.fi-sc .fisc-vb--feat .fisc-vp {
    width: 60px;
    height: 60px;
    left: 14px;
    bottom: 14px;
}

.fi-sc .fisc-vb--feat .fisc-vp::after {
    border-width: 12px 0 12px 19px;
}

.fi-sc .fisc-latest h3,
.fi-sc .fisc-qa h3,
.fi-sc .fisc-promo h3,
.fi-sc .fisc-play h3 {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--fisc-ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--fisc-muted);
}

.fi-sc .fisc-latest li {
    border-bottom: 1px solid var(--fisc-line);
}

.fi-sc .fisc-latest .fisc-vb {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px 0;
}

.fi-sc .fisc-latest .fisc-vt {
    margin-top: 0;
    font-size: 0.9rem;
}

.fi-sc .fisc-latest .fisc-vp {
    width: 28px;
    height: 28px;
    left: 6px;
    bottom: 6px;
}

.fi-sc .fisc-latest .fisc-vp::after {
    border-width: 5px 0 5px 9px;
    margin-left: 2px;
}

/* ---------- join in ---------- */
.fi-sc .fisc-join {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.fi-sc .fisc-join > :only-child {
    grid-column: 1 / -1;
}

/* the poll block here: no card frame, and no "one vote per reader" line or "more polls" link. The question, the options and the
   vote counts stay. This is the ONLY place those are hidden; the block itself is unchanged everywhere else. */
.fi-sc .fisc-pollcol .fi-block {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
}

.fi-sc .fisc-pollcol .fi-poll__desc,
.fi-sc .fisc-pollcol .fi-poll__fine,
.fi-sc .fisc-pollcol .fi-poll__foot a {
    display: none;
}

/* the poll CSS clears the element after its question (legend + *), which is the description; with that hidden the votes line must clear the floated question itself */
.fi-sc .fisc-pollcol .fi-poll__meta {
    clear: both;
}

.fi-sc .fisc-qf {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fisc-line);
}

.fi-sc .fisc-q {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--fisc-ink) !important;
    text-decoration: none;
}

.fi-sc .fisc-q:hover {
    color: var(--fisc-accent) !important;
}

.fi-sc .fisc-ql li {
    display: grid;
    gap: 2px;
    padding: 9px 0;
    border-bottom: 1px solid var(--fisc-line);
}

.fi-sc .fisc-ql a {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
    color: var(--fisc-ink) !important;
    text-decoration: none;
}

.fi-sc .fisc-ql a:hover {
    text-decoration: underline;
}

.fi-sc .fisc-qa .fisc-row {
    margin-top: 12px;
}

.fi-sc .fisc-qa h3 a {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.82rem;
    color: var(--fisc-accent);
}

/* ---------- the promo card (Join in, in the Q&A half when Q&A is off) ---------- */
.fi-sc .fisc-promo {
    min-width: 0;
}

.fi-sc .fisc-pp {
    position: relative;
    display: block;
    margin-top: 10px;
    text-decoration: none;
}

.fi-sc .fisc-pp img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    /* the subject sits in the upper third: keep it in frame when the 2:1 box crops a taller picture */
    object-position: 50% 30%;
    border-radius: 4px;
}

.fi-sc .fisc-pc {
    position: absolute;
    inset: auto 0 0;
    padding: 26px 12px 8px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(rgb(var(--fisc-scrim-rgb) / 0%), rgb(var(--fisc-scrim-rgb) / 85%));
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.fi-sc .fisc-pb {
    display: grid;
    gap: 4px;
    padding: 10px 0 8px;
}

.fi-sc .fisc-pt {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--fisc-ink);
}

.fi-sc .fisc-pl {
    margin: 2px 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--fisc-text);
}

.fi-sc .fisc-promo .fisc-row {
    margin-top: 8px;
}

.fi-sc .fisc-btn--line {
    background: transparent;
    border-color: var(--fisc-accent);
    color: var(--fisc-accent) !important;
}

/* the stats line under a question (markup from the Q&A hub: answers, vote score, views) */
.fi-sc .fi-qa-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.45rem;
    font-size: 0.8125rem;
    color: var(--fisc-muted);
}

.fi-sc .fi-qa-stats > span + span::before {
    content: "\00b7";
    margin-inline-end: 0.45rem;
}

.fi-sc .fi-qa-needs {
    color: var(--fisc-text);
    font-weight: 700;
}

.fi-sc .fi-qa-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.fi-sc .fisc-play {
    grid-column: 1 / -1;
}

.fi-sc .fisc-games {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.fi-sc .fisc-game {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: var(--fisc-text) !important;
}

.fi-sc .fisc-game img {
    width: 160px;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}

.fi-sc .fisc-game b {
    display: block;
    font-size: 1rem;
    color: var(--fisc-ink);
}

.fi-sc .fisc-game span span {
    display: block;
    font-size: 0.84rem;
    color: var(--fisc-muted);
    line-height: 1.35;
}

.fi-sc .fisc-game em {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--fisc-accent);
    margin-top: 3px;
}

.fi-sc .fisc-game:hover b {
    color: var(--fisc-accent);
}

/* ---------- learn and plan ---------- */
.fi-sc .fisc-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 16px;
}

.fi-sc .fisc-tools a {
    position: relative;
    display: grid;
    gap: 3px;
    text-decoration: none;
    color: var(--fisc-text) !important;
}

.fi-sc .fisc-tools img {
    width: 100%;
    aspect-ratio: 40 / 21;
    height: auto;
    object-fit: cover;
    margin-bottom: 5px;
}

.fi-sc .fisc-nm {
    display: block;
    font-size: 1rem;
    color: var(--fisc-ink);
}

.fi-sc .fisc-tools a:hover img {
    outline: 3px solid var(--fisc-accent);
    outline-offset: -3px;
}

.fi-sc .fisc-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

/* a game's wordmark in place of the headline text */
.fi-sc .fisc-mark {
    width: min(260px, 70%);
    height: auto;
    filter: drop-shadow(0 2px 8px #000000b3);
}

/* the section label, as the site's own black labels: a black tab on a rule */
.fi-sc .fisc-label {
    border-bottom: 2px solid var(--fisc-ink);
    line-height: 1;
    margin-bottom: 4px;
}

.fi-sc .fisc-label span {
    display: inline-block;
    background: var(--fisc-ink);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 12px 5px;
}

/* ---------- the destinations strip ---------- */
/* desktop: one row of equal tiles. The two groups share a grid with one column per tile, each group spanning as many columns as it
   has tiles, so a group of seven and a group of two have tiles of the same size. Narrower than 900px the groups stack. */
.fi-sc .fisc-dest {
    display: grid;
    grid-template-columns: repeat(var(--fisc-n, 1), minmax(0, 1fr));
    column-gap: 6px;
}

.fi-sc .fisc-dg {
    grid-column: span var(--fisc-g, 1);
    min-width: 0;
}

.fi-sc .fisc-dg > b {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--fisc-muted);
}

.fi-sc .fisc-dg ul {
    display: grid;
    grid-template-columns: repeat(var(--fisc-g, 1), minmax(0, 1fr));
    gap: 6px;
}

.fi-sc .fisc-dg a {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--fisc-shade);
    text-decoration: none;
}

.fi-sc .fisc-dg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.fi-sc .fisc-dg a:hover img {
    transform: scale(1.05);
}

.fi-sc .fisc-dg a span {
    position: absolute;
    inset: auto 0 0;
    padding: 22px 8px 7px;
    background: linear-gradient(#0000, #000000cc);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.2;
}

/* ---------- the lightbox: plays over the page, the page never resizes ---------- */
.fi-sc dialog.fisc-lb {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: none;
    max-height: none;
    overflow: visible;
    color: #ffffff;
}

.fi-sc dialog.fisc-lb::backdrop {
    background: #000000d9;
}

.fi-sc .fisc-lb-in {
    position: relative;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.fi-sc .fisc-player {
    background: var(--fisc-shade);
}

.fi-sc .fisc-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.fi-sc .fisc-player.fisc-land {
    width: min(92vw, 960px);
    aspect-ratio: 16 / 9;
}

.fi-sc .fisc-player.fisc-port {
    height: min(82vh, 760px);
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: 92vw;
}

.fi-sc .fisc-lb-t {
    max-width: min(92vw, 960px);
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #ffffff;
}

.fi-sc .fisc-lb-x {
    position: absolute;
    top: -46px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ffffff66;
    background: #000000;
    color: #ffffff;
    font: 700 1.2rem/1 inherit;
    cursor: pointer;
}

/* ---------- 6 col and narrower (under 900px) ---------- */
@container fisc (max-width: 899px) {
    .fi-sc .fisc-slide {
        aspect-ratio: auto;
        min-height: 340px;
    }

    .fi-sc .fisc-cap {
        padding: 22px 20px;
    }

    .fi-sc .fisc-cap h2 {
        font-size: 1.6rem;
    }

    .fi-sc .fisc-hook b {
        font-size: 3.4rem;
    }

    .fi-sc .fisc-hook span {
        font-size: 1.2rem;
    }

    .fi-sc .fisc-nav li button {
        font-size: 0;
        padding: 0;
    }

    .fi-sc .fisc-nav li button small {
        display: none;
    }

    .fi-sc .fisc-nav li button::after,
    .fi-sc .fisc-nav li button i {
        left: 6px;
        right: 6px;
        bottom: 22px;
    }

    .fi-sc .fisc-nav ol {
        padding: 0 6px;
    }

    .fi-sc .fisc-vids {
        grid-template-columns: 1fr;
    }

    .fi-sc .fisc-latest ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
    }

    .fi-sc .fisc-latest .fisc-vb {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .fi-sc .fisc-join {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .fi-sc .fisc-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fi-sc .fisc-dest {
        grid-template-columns: 1fr;
        row-gap: 14px;
    }

    .fi-sc .fisc-dg {
        grid-column: auto;
    }

    .fi-sc .fisc-dg ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fi-sc .fisc-tabs button {
        grid-template-columns: 1fr;
        padding: 8px 6px 10px 0;
    }

    .fi-sc .fisc-tabs button img {
        display: none;
    }

    .fi-sc .fisc-tabs b {
        font-size: 1.02rem;
    }

    .fi-sc .fisc-games {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ---------- phone (under 560px): the picture on top, the words below it on the dark blue ---------- */
@container fisc (max-width: 559px) {
    /* The rotator is as tall as its tallest slide so nothing below it ever moves. A slide with less text lets its PICTURE take the
       spare height (the picture covers its box), so there is no empty dark band under its buttons. */
    .fi-sc .fisc-slide {
        display: flex;
        flex-direction: column;
        min-height: 0;
        aspect-ratio: auto;
        align-items: stretch;
    }

    .fi-sc .fisc-slide::before {
        content: none;
    }

    .fi-sc .fisc-slide > img.fisc-bg {
        position: static;
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .fi-sc .fisc-cap {
        padding: 14px 16px 16px;
        gap: 8px;
        max-width: none;
        flex: none;
    }

    .fi-sc .fisc-cap h2 {
        font-size: 1.4rem;
    }

    .fi-sc .fisc-cap p {
        font-size: 0.92rem;
    }

    .fi-sc .fisc-hook b {
        font-size: 3rem;
    }

    .fi-sc .fisc-hook span {
        font-size: 1.1rem;
    }

    .fi-sc .fisc-cap .fisc-row {
        width: 100%;
    }

    .fi-sc .fisc-cap .fisc-row .fisc-btn {
        flex: 1 1 auto;
    }

    .fi-sc .fisc-tabs small {
        display: none;
    }

    .fi-sc .fisc-tabs b {
        font-size: 0.95rem;
    }

    .fi-sc .fisc-tabs button {
        text-align: center;
        padding: 10px 2px 11px;
    }

    .fi-sc .fisc-latest ul {
        grid-template-columns: 1fr;
    }

    .fi-sc .fisc-latest .fisc-vb {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 10px;
    }

    .fi-sc .fisc-vb--feat .fisc-vt {
        font-size: 1.1rem;
    }

    .fi-sc .fisc-game {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .fi-sc .fisc-game img {
        width: 120px;
    }

    /* each group swipes in its own row, so the niche routes stay on screen */
    .fi-sc .fisc-dg ul,
    .fi-sc .fisc-dg--first ul {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 38%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .fi-sc .fisc-dg li {
        scroll-snap-align: start;
    }
}

/* ---------- 3 col (under 300px) ---------- */
@container fisc (max-width: 300px) {
    .fi-sc .fisc-cap {
        padding: 12px 12px 14px;
    }

    .fi-sc .fisc-cap h2 {
        font-size: 1.15rem;
    }

    .fi-sc .fisc-cap p {
        font-size: 0.84rem;
    }

    .fi-sc .fisc-hook b {
        font-size: 2.4rem;
    }

    .fi-sc .fisc-hook span {
        font-size: 0.98rem;
    }

    .fi-sc .fisc-cap .fisc-row {
        flex-direction: column;
        align-items: stretch;
    }

    .fi-sc .fisc-cap .fisc-btn {
        min-height: 42px;
        font-size: 0.86rem;
        white-space: normal;
        text-align: center;
    }

    .fi-sc .fisc-tabs b {
        font-size: 0.82rem;
    }

    .fi-sc .fisc-latest .fisc-vb {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .fi-sc .fisc-latest .fisc-vt {
        font-size: 0.82rem;
    }

    .fi-sc .fisc-q {
        font-size: 1.02rem;
    }

    .fi-sc .fisc-tools {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .fi-sc .fisc-tools a {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: center;
        gap: 0 10px;
    }

    .fi-sc .fisc-tools img {
        grid-row: span 2;
        margin: 0;
    }

    .fi-sc .fisc-nm {
        font-size: 0.86rem;
        line-height: 1.25;
    }

    .fi-sc .fisc-game {
        grid-template-columns: 1fr;
    }

    .fi-sc .fisc-game img {
        width: 100%;
    }

    .fi-sc .fisc-dg ul,
    .fi-sc .fisc-dg--first ul {
        grid-auto-columns: 62%;
    }

    .fi-sc .fisc-qa .fisc-row .fisc-btn {
        flex: 1 1 100%;
    }
}
