/* Drop-in Play More Games cards. Column count comes from --ifs-cols
   (set by js/ifs-play-more.js). Rotation (default) alternates indie
   portrait cards with landscape teasers. data-rotate="0" keeps a static grid. */
.ifs-play-more {
    margin-top: 1.25rem;
    max-width: 100%;
    min-width: 0;
    position: relative;
}
.ifs-play-more-label {
    margin: 0 0 0.55rem;
    padding: 0;
    color: #9aa0b5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    line-height: 1.2;
    text-align: center;
    background: transparent;
    border: none;
}
.ifs-play-more-icons {
    display: grid;
    grid-template-columns: repeat(var(--ifs-cols, 4), minmax(0, 72px));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
}
.ifs-play-more-wide .ifs-play-more-icons,
.ifs-play-more-short .ifs-play-more-icons {
    grid-template-columns: repeat(var(--ifs-cols, 6), minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.ifs-play-more-short .ifs-play-more-icons {
    gap: 6px;
}
.ifs-play-more-portrait .ifs-play-more-icons {
    grid-template-columns: repeat(var(--ifs-cols, 4), minmax(0, 1fr));
    width: 100%;
    gap: 8px;
}
.ifs-play-more-icons a {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 9 / 16;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(42, 209, 214, 0.4);
    box-shadow: 0 0 12px rgba(42, 209, 214, 0.22), inset 0 0 8px rgba(42, 209, 214, 0.08);
    background: rgba(8, 12, 28, 0.85);
    transition: border-color .15s, box-shadow .15s;
}
.ifs-play-more-icons a:hover,
.ifs-play-more-icons a:focus-visible {
    border-color: rgba(42, 209, 214, 0.9);
    box-shadow: 0 0 16px rgba(42, 209, 214, 0.45);
    outline: none;
}
.ifs-play-more-icons img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: 50% 50%;
    border: 0;
    transition: opacity .28s ease;
}
.ifs-play-more-start { opacity: 1; z-index: 1; }
.ifs-play-more-play { opacity: 0; z-index: 2; }
.ifs-play-more-icons a:hover .ifs-play-more-play,
.ifs-play-more-icons a:focus-visible .ifs-play-more-play { opacity: 1; }

/* Teaser slide */
.ifs-play-more-teasers {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
.ifs-play-more-teasers.is-pair { grid-template-columns: 1fr 1fr; }
.ifs-play-more-teasers.is-single { grid-template-columns: 1fr; max-width: 640px; }
.ifs-play-more-teaser {
    display: block;
    overflow: hidden;
    background: #0a0818;
    border-radius: 12px;
    border: 1px solid rgba(42, 209, 214, 0.4);
    box-shadow: 0 0 12px rgba(42, 209, 214, 0.22);
    aspect-ratio: 1200 / 630;
}
.ifs-play-more-teaser:hover,
.ifs-play-more-teaser:focus-visible {
    border-color: rgba(42, 209, 214, 0.9);
    box-shadow: 0 0 16px rgba(42, 209, 214, 0.45);
    outline: none;
}
.ifs-play-more-teaser img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    border: 0;
}

/* Rotating stage — height is set in JS to the tallest slide type for
   the current layout and stays constant between teasers and cards. */
.ifs-play-more-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex: 0 0 auto;
    transition: none;
}
.ifs-play-more-stage .ifs-play-more-icons,
.ifs-play-more-stage .ifs-play-more-teasers {
    height: auto;
    width: 100%;
    flex: 0 0 auto;
}
.ifs-play-more-stage.is-instant { transition: none; }
.ifs-play-more-slide {
    position: absolute;
    top: 0;
    left: 0;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(0);
    box-sizing: border-box;
}
.ifs-play-more-slide.is-active {
    position: relative;
    height: 100%;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}
.ifs-play-more-slide.is-leaving,
.ifs-play-more-slide.is-entering {
    visibility: visible;
    pointer-events: none;
}
.ifs-play-more-slide.is-leaving { position: absolute; z-index: 2; }
.ifs-play-more-slide.is-entering { position: absolute; z-index: 3; }
.ifs-play-more-stage.is-sliding .ifs-play-more-slide.is-leaving,
.ifs-play-more-stage.is-sliding .ifs-play-more-slide.is-entering {
    transition: transform .5s ease;
}
.ifs-play-more-stage.is-instant .ifs-play-more-slide { transition: none; }

.ifs-play-more-dots {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin: 12px 0 0;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
/* Beat host-page `button { min-width: 10vw; ... }` rules (Space Wow, etc.). */
.ifs-play-more .ipm-dot,
.ifs-play-more .ifs-play-more-dots button {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: block;
    flex: none;
    width: 8px !important;
    height: 8px !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    background: rgba(200, 210, 220, 0.35) !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    font-family: inherit;
    text-indent: 0;
    overflow: hidden;
    cursor: pointer;
}
.ifs-play-more .ipm-dot[aria-current="true"],
.ifs-play-more .ifs-play-more-dots button[aria-current="true"] {
    background: #d8ffe0 !important;
    box-shadow: 0 0 6px rgba(0, 255, 80, 0.7) !important;
    width: 8px !important;
    height: 8px !important;
}
.ifs-play-more .ipm-dot:hover,
.ifs-play-more .ifs-play-more-dots button:hover {
    background: rgba(200, 210, 220, 0.6) !important;
    color: transparent !important;
}
.ifs-play-more .ipm-dot[aria-current="true"]:hover,
.ifs-play-more .ifs-play-more-dots button[aria-current="true"]:hover {
    background: #d8ffe0 !important;
}

.ifs-play-more .ipm-arrow,
.ifs-play-more .ifs-play-more-arrow {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    flex: none;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(8, 12, 20, 0.72) !important;
    color: #e8ffe8 !important;
    font-size: 26px !important;
    font-family: inherit;
    line-height: 1 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5) !important;
    cursor: pointer;
}
.ifs-play-more-prev { left: 0; }
.ifs-play-more-next { right: 0; }
.ifs-play-more .ipm-arrow:hover,
.ifs-play-more .ipm-arrow:focus-visible,
.ifs-play-more .ifs-play-more-arrow:hover,
.ifs-play-more .ifs-play-more-arrow:focus-visible {
    background: rgba(0, 200, 50, 0.85) !important;
    color: #e8ffe8 !important;
    outline: none;
}
@media (hover: hover) and (pointer: fine) {
    .ifs-play-more-rotate .ipm-arrow,
    .ifs-play-more-rotate .ifs-play-more-arrow { display: block; }
    .ifs-play-more-rotate { padding: 0 22px; }
}

@media (max-width: 700px) and (orientation: portrait) {
    .ifs-play-more-teasers.is-single { max-width: 100%; }
    .ifs-play-more-label { font-size: 0.8rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .ifs-play-more { margin-top: 8px; }
    .ifs-play-more-label { font-size: 10px; margin-bottom: 4px; }
    .ifs-play-more-teasers { gap: 8px; max-width: 86%; }
    .ifs-play-more-icons a,
    .ifs-play-more-teaser { border-radius: 8px; }
    .ifs-play-more-dots { margin-top: 8px; }
}


/* Reserve the tallest slide type + dots (and a little label slack) until
   JS marks the widget ready, so the first paint matches the final height. */
[data-ifs-play-more]:not([data-ifs-ready="1"]) {
    display: grid;
    min-height: 180px;
}
[data-ifs-play-more]:not([data-ifs-ready="1"])::before,
[data-ifs-play-more]:not([data-ifs-ready="1"])::after {
    content: "";
    grid-area: 1 / 1;
    width: 100%;
    height: 0;
    pointer-events: none;
}
/* Desktop / landscape: 6× 9:16 cards vs 2 teasers, plus dots + label slack. */
[data-ifs-play-more]:not([data-ifs-ready="1"])::before {
    padding-top: calc((100% - 50px) / 6 * 16 / 9 + 40px);
}
[data-ifs-play-more]:not([data-ifs-ready="1"])::after {
    padding-top: calc((100% - 12px) / 2 * 630 / 1200 + 40px);
}
@media (max-width: 700px) and (orientation: portrait) {
    [data-ifs-play-more]:not([data-ifs-ready="1"])::before {
        padding-top: calc((100% - 24px) / 4 * 16 / 9 + 40px);
    }
    [data-ifs-play-more]:not([data-ifs-ready="1"])::after {
        padding-top: calc(min(100%, 640px) * 630 / 1200 + 40px);
    }
}




.ifs-play-more-dots.is-counter {
    gap: 0;
}
.ifs-play-more .ipm-dot-counter {
    flex: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #9aa0b5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}
.ifs-play-more[data-max-per-slide] .ifs-play-more-dots {
    gap: 4px;
}
/* data-max-per-slide / data-min-card-width: cards fill the host width in one row. */
.ifs-play-more[data-max-per-slide] .ifs-play-more-icons,
.ifs-play-more[data-min-card-width] .ifs-play-more-icons {
    grid-template-columns: repeat(var(--ifs-cols, 2), minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    .ifs-play-more-stage,
    .ifs-play-more-slide,
    .ifs-play-more-icons img { transition: none; }
}
/* Bottom Play More: related-panel width on every page (including root
   threejs-examples-*.html), stacked above fixed canvases with an opaque panel.
   Do not apply to custom mid-page / top-slot mounts. */
[data-ifs-play-more].sbp-play-more-bottom,
[data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
.sbp-related ~ [data-ifs-play-more],
[data-sbp-related-articles] ~ [data-ifs-play-more],
[data-sbp-related-tutorials] ~ [data-ifs-play-more] {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(64rem + 2.5rem) !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    background: #0a0b0f;
}
@media (max-width: 768px) {
    [data-ifs-play-more].sbp-play-more-bottom,
    [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
    .sbp-related ~ [data-ifs-play-more],
    [data-sbp-related-articles] ~ [data-ifs-play-more],
    [data-sbp-related-tutorials] ~ [data-ifs-play-more] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: calc(64rem + 1.5rem) !important;
    }
}

/* SBP-DEMO-HIDE-WIDGETS: hide bottom related/play-more/footer chrome while a
   live demo or fullscreen session is running. Paired with
   js/sbp-live-demo.js toggling html/body.sbp-demo-on. */
html.sbp-demo-on .sbp-related,
html.sbp-demo-on .sbp-related-tutorials,
html.sbp-demo-on [data-sbp-related-articles],
html.sbp-demo-on [data-sbp-related-tutorials],
html.sbp-demo-on [data-ifs-play-more].sbp-play-more-bottom,
html.sbp-demo-on .sbp-play-more-bottom,
html.sbp-demo-on [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
body.sbp-demo-on .sbp-related,
body.sbp-demo-on .sbp-related-tutorials,
body.sbp-demo-on [data-sbp-related-articles],
body.sbp-demo-on [data-sbp-related-tutorials],
body.sbp-demo-on [data-ifs-play-more].sbp-play-more-bottom,
body.sbp-demo-on .sbp-play-more-bottom,
body.sbp-demo-on [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
html.demo-active .sbp-related,
html.demo-active .sbp-related-tutorials,
html.demo-active [data-sbp-related-articles],
html.demo-active [data-sbp-related-tutorials],
html.demo-active [data-ifs-play-more].sbp-play-more-bottom,
html.demo-active .sbp-play-more-bottom,
html.demo-active [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
body.demo-active .sbp-related,
body.demo-active .sbp-related-tutorials,
body.demo-active [data-sbp-related-articles],
body.demo-active [data-sbp-related-tutorials],
body.demo-active [data-ifs-play-more].sbp-play-more-bottom,
body.demo-active .sbp-play-more-bottom,
body.demo-active [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
html.sbp-demo-active .sbp-related,
html.sbp-demo-active .sbp-related-tutorials,
html.sbp-demo-active [data-sbp-related-articles],
html.sbp-demo-active [data-sbp-related-tutorials],
html.sbp-demo-active [data-ifs-play-more].sbp-play-more-bottom,
html.sbp-demo-active .sbp-play-more-bottom,
html.sbp-demo-active [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
body.sbp-demo-active .sbp-related,
body.sbp-demo-active .sbp-related-tutorials,
body.sbp-demo-active [data-sbp-related-articles],
body.sbp-demo-active [data-sbp-related-tutorials],
body.sbp-demo-active [data-ifs-play-more].sbp-play-more-bottom,
body.sbp-demo-active .sbp-play-more-bottom,
body.sbp-demo-active [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
html.fire-demo-active .sbp-related,
html.fire-demo-active .sbp-related-tutorials,
html.fire-demo-active [data-sbp-related-articles],
html.fire-demo-active [data-sbp-related-tutorials],
html.fire-demo-active [data-ifs-play-more].sbp-play-more-bottom,
html.fire-demo-active .sbp-play-more-bottom,
html.fire-demo-active [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
body.fire-demo-active .sbp-related,
body.fire-demo-active .sbp-related-tutorials,
body.fire-demo-active [data-sbp-related-articles],
body.fire-demo-active [data-sbp-related-tutorials],
body.fire-demo-active [data-ifs-play-more].sbp-play-more-bottom,
body.fire-demo-active .sbp-play-more-bottom,
body.fire-demo-active [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
html.fps-playing .sbp-related,
html.fps-playing .sbp-related-tutorials,
html.fps-playing [data-sbp-related-articles],
html.fps-playing [data-sbp-related-tutorials],
html.fps-playing [data-ifs-play-more].sbp-play-more-bottom,
html.fps-playing .sbp-play-more-bottom,
html.fps-playing [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
body.fps-playing .sbp-related,
body.fps-playing .sbp-related-tutorials,
body.fps-playing [data-sbp-related-articles],
body.fps-playing [data-sbp-related-tutorials],
body.fps-playing [data-ifs-play-more].sbp-play-more-bottom,
body.fps-playing .sbp-play-more-bottom,
body.fps-playing [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
html.tommy-playing .sbp-related,
html.tommy-playing .sbp-related-tutorials,
html.tommy-playing [data-sbp-related-articles],
html.tommy-playing [data-sbp-related-tutorials],
html.tommy-playing [data-ifs-play-more].sbp-play-more-bottom,
html.tommy-playing .sbp-play-more-bottom,
html.tommy-playing [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
body.tommy-playing .sbp-related,
body.tommy-playing .sbp-related-tutorials,
body.tommy-playing [data-sbp-related-articles],
body.tommy-playing [data-sbp-related-tutorials],
body.tommy-playing [data-ifs-play-more].sbp-play-more-bottom,
body.tommy-playing .sbp-play-more-bottom,
body.tommy-playing [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
html.mg-active .sbp-related,
html.mg-active .sbp-related-tutorials,
html.mg-active [data-sbp-related-articles],
html.mg-active [data-sbp-related-tutorials],
html.mg-active [data-ifs-play-more].sbp-play-more-bottom,
html.mg-active .sbp-play-more-bottom,
html.mg-active [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
body.mg-active .sbp-related,
body.mg-active .sbp-related-tutorials,
body.mg-active [data-sbp-related-articles],
body.mg-active [data-sbp-related-tutorials],
body.mg-active [data-ifs-play-more].sbp-play-more-bottom,
body.mg-active .sbp-play-more-bottom,
body.mg-active [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
html.is-playing .sbp-related,
html.is-playing .sbp-related-tutorials,
html.is-playing [data-sbp-related-articles],
html.is-playing [data-sbp-related-tutorials],
html.is-playing [data-ifs-play-more].sbp-play-more-bottom,
html.is-playing .sbp-play-more-bottom,
html.is-playing [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
body.is-playing .sbp-related,
body.is-playing .sbp-related-tutorials,
body.is-playing [data-sbp-related-articles],
body.is-playing [data-sbp-related-tutorials],
body.is-playing [data-ifs-play-more].sbp-play-more-bottom,
body.is-playing .sbp-play-more-bottom,
body.is-playing [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
html:fullscreen .sbp-related,
html:fullscreen .sbp-related-tutorials,
html:fullscreen [data-sbp-related-articles],
html:fullscreen [data-sbp-related-tutorials],
html:fullscreen [data-ifs-play-more].sbp-play-more-bottom,
html:fullscreen .sbp-play-more-bottom,
html:fullscreen [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
html:-webkit-full-screen .sbp-related,
html:-webkit-full-screen .sbp-related-tutorials,
html:-webkit-full-screen [data-sbp-related-articles],
html:-webkit-full-screen [data-sbp-related-tutorials],
html:-webkit-full-screen [data-ifs-play-more].sbp-play-more-bottom,
html:-webkit-full-screen .sbp-play-more-bottom,
html:-webkit-full-screen [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
body:fullscreen .sbp-related,
body:fullscreen .sbp-related-tutorials,
body:fullscreen [data-sbp-related-articles],
body:fullscreen [data-sbp-related-tutorials],
body:fullscreen [data-ifs-play-more].sbp-play-more-bottom,
body:fullscreen .sbp-play-more-bottom,
body:fullscreen [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
body:-webkit-full-screen .sbp-related,
body:-webkit-full-screen .sbp-related-tutorials,
body:-webkit-full-screen [data-sbp-related-articles],
body:-webkit-full-screen [data-sbp-related-tutorials],
body:-webkit-full-screen [data-ifs-play-more].sbp-play-more-bottom,
body:-webkit-full-screen .sbp-play-more-bottom,
body:-webkit-full-screen [data-ifs-play-more].sbp-play-more-bottom .ifs-play-more {
    display: none !important;
    visibility: hidden !important;
}
/* end SBP-DEMO-HIDE-WIDGETS */

/* Shane, Nov 18 2026: the in-page games carousel (articles, tutorials, home)
   is transparent (no dark panel) and always has 25px of space above and below.
   Scoped to page-flow mounts only, so in-game mounts (Zombie Attack menus and
   game-over/win panels, the Tic-Tac-Toe column, games loading this widget
   cross-site) and the hero "Latest Release" mount keep their tight layouts. */
[data-ifs-play-more].sbp-play-more-bottom,
.sbp-related ~ [data-ifs-play-more],
[data-sbp-related-articles] ~ [data-ifs-play-more],
[data-sbp-related-tutorials] ~ [data-ifs-play-more],
[data-ifs-play-more].ifs-play-more-gap {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
}
[data-ifs-play-more].sbp-play-more-bottom,
[data-ifs-play-more].sbp-play-more-bottom .ifs-play-more,
.sbp-related ~ [data-ifs-play-more],
[data-sbp-related-articles] ~ [data-ifs-play-more],
[data-sbp-related-tutorials] ~ [data-ifs-play-more] {
    background: transparent !important;
}
