.sa-language-switcher ul,
.sa-game-card-grid,
.sa-gallery-grid,
.sa-media-grid,
.sa-track-list,
.sa-trailer-grid {
    box-sizing: border-box;
}

.sa-language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.sa-language-switcher a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(10, 30, 92, .06);
}

.sa-language-switcher a[aria-current="true"] {
    font-weight: 700;
    background: rgba(143, 224, 61, .2);
}

.sa-game-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.sa-game-card,
.sa-game-panel,
.sa-gallery-card,
.sa-track-item,
.sa-trailer-card {
    border: 1px solid rgba(10, 30, 92, .14);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.sa-game-card a {
    color: inherit;
    text-decoration: none;
}

.sa-game-card img,
.sa-game-cover img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.sa-game-card-body,
.sa-game-panel,
.sa-gallery-body,
.sa-track-item,
.sa-trailer-body {
    padding: 1rem;
}

.sa-game-card h3,
.sa-game-panel h2,
.sa-gallery-card h3,
.sa-trailer-card h3 {
    color: #0A1E5C;
    margin: 0 0 .45rem;
}

.sa-muted {
    color: #64708c;
}

.sa-pill-row,
.sa-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .75rem;
}

.sa-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: .25rem .55rem;
    background: rgba(143, 224, 61, .18);
    color: #0A1E5C;
    font-size: .85em;
    font-weight: 650;
}

.sa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .45rem .75rem;
    background: #0A1E5C;
    color: #fff;
    text-decoration: none;
    font-weight: 650;
}

.sa-gallery-grid,
.sa-media-grid,
.sa-trailer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.sa-gallery-thumbs,
.sa-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .5rem;
}

.sa-gallery-thumbs img,
.sa-media-grid img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.sa-media-grid figure {
    margin: 0;
}

.sa-media-grid figcaption {
    font-size: .9em;
    color: #64708c;
    margin-top: .25rem;
}

.sa-track-list {
    display: grid;
    gap: .75rem;
}

.sa-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sa-trailer-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

/* Alpha.11 unified media/gallery cards */
.sa-unified-gallery-grid {
    align-items: stretch;
}

.sa-unified-gallery-item {
    border: 1px solid rgba(10, 30, 92, .14);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    margin: 0;
}

.sa-unified-gallery-item > a {
    display: block;
}

.sa-unified-gallery-item figcaption {
    display: grid;
    gap: .35rem;
    padding: .8rem;
}

.sa-unified-gallery-item figcaption strong {
    color: #0A1E5C;
}

.sa-unified-gallery-item time,
.sa-media-caption {
    color: #64708c;
    font-size: .9em;
}

.sa-media-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

/* Alpha.12 frontend filters + lightbox */
.sa-unified-media {
    display: grid;
    gap: 1.15rem;
}

.sa-media-filterbar {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .85rem;
    border: 1px solid rgba(10, 30, 92, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .74);
}

.sa-media-filterbar label {
    display: grid;
    gap: .25rem;
    font-size: .85rem;
    font-weight: 650;
    color: #0A1E5C;
}

.sa-media-filterbar select {
    min-width: 170px;
    border: 1px solid rgba(10, 30, 92, .18);
    border-radius: 999px;
    padding: .5rem .75rem;
    background: #fff;
    color: #0A1E5C;
}

.sa-media-filter-count {
    margin-left: auto;
    color: #64708c;
    font-weight: 650;
}

.sa-media-category-group {
    display: grid;
    gap: .7rem;
}

.sa-media-category-group h3 {
    margin: .25rem 0 0;
    color: #0A1E5C;
    font-size: 1.15rem;
}

.sa-media-source {
    color: #64708c;
    font-size: .85em;
    font-style: italic;
}

.sa-unified-gallery-item[hidden],
.sa-media-category-group[hidden] {
    display: none !important;
}

.sa-lightbox-open {
    overflow: hidden;
}

.sa-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(4, 12, 38, .88);
}

.sa-lightbox-overlay[hidden] {
    display: none;
}

.sa-lightbox-overlay figure {
    width: min(1100px, 96vw);
    max-height: 92vh;
    margin: 0;
    display: grid;
    gap: .8rem;
}

.sa-lightbox-overlay img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 18px;
    background: #050b1d;
}

.sa-lightbox-overlay figcaption {
    color: #fff;
    display: grid;
    gap: .25rem;
    text-align: center;
}

.sa-lightbox-overlay figcaption strong {
    color: #fff;
    font-size: 1.1rem;
}

.sa-lightbox-overlay figcaption span {
    color: rgba(255, 255, 255, .78);
}

.sa-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #8FE03D;
    color: #0A1E5C;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}


/* Alpha.13: 5-column visual gallery with progressive loading */
.sa-unified-media {
    --sa-media-columns: 5;
}

.sa-media-grid.sa-unified-gallery-grid {
    grid-template-columns: repeat(var(--sa-media-columns, 5), minmax(0, 1fr));
    gap: .8rem;
}

.sa-media-load-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .35rem;
}

.sa-media-load-more-count {
    color: #64708c;
    font-weight: 650;
}

.sa-image-gallery-archive {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0;
    display: grid;
    gap: 1.5rem;
}

.sa-image-gallery-archive-head h1 {
    margin: .25rem 0;
    color: #0A1E5C;
}

.sa-image-gallery-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.sa-image-gallery-archive-card {
    border: 1px solid rgba(10, 30, 92, .14);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.sa-image-gallery-archive-card a {
    color: inherit;
    text-decoration: none;
}

.sa-image-gallery-archive-thumbs {
    min-height: 150px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(10, 30, 92, .06);
}

.sa-image-gallery-archive-thumbs img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}

.sa-image-gallery-archive-body {
    padding: 1rem;
}

.sa-image-gallery-archive-body h3 {
    margin: 0 0 .35rem;
    color: #0A1E5C;
}

@media (max-width: 1100px) {
    .sa-media-grid.sa-unified-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sa-media-grid.sa-unified-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .sa-media-grid.sa-unified-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Alpha.14: polished gallery cards, subtle filters and gallery homepage hero */
.sa-unified-media {
    gap: 1.4rem;
}

.sa-media-filterbar {
    align-items: center;
    padding: .8rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(143, 224, 61, .22);
    background: linear-gradient(135deg, rgba(10, 30, 92, .82), rgba(10, 30, 92, .56));
    box-shadow: 0 18px 45px rgba(4, 12, 38, .22), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.sa-media-filterbar label {
    color: rgba(255,255,255,.86);
    font-size: .78rem;
    letter-spacing: .02em;
}

.sa-media-filterbar select {
    min-width: 180px;
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.94);
    color: #0A1E5C;
    box-shadow: none;
}

.sa-media-filterbar select:focus {
    outline: 2px solid rgba(143, 224, 61, .7);
    outline-offset: 2px;
}

.sa-media-filter-count {
    color: rgba(255,255,255,.82);
}

.sa-media-filter-count strong {
    color: #8FE03D;
}

.sa-media-grid.sa-unified-gallery-grid {
    gap: .95rem;
}

.sa-unified-gallery-item {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 22px;
    background: transparent;
    box-shadow: 0 18px 40px rgba(4, 12, 38, .2);
    isolation: isolate;
}

.sa-unified-gallery-item > a {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.sa-unified-gallery-item > a::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 56%;
    background: linear-gradient(to top, rgba(4, 12, 38, .72), rgba(4, 12, 38, 0));
    opacity: .88;
    pointer-events: none;
}

.sa-unified-gallery-item img,
.sa-media-grid.sa-unified-gallery-grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
    transition: transform .28s ease, filter .28s ease;
}

.sa-unified-gallery-item:hover img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.04);
}

.sa-media-card-category,
.sa-media-card-flag {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(4, 12, 38, .22);
}

.sa-media-card-category {
    left: .62rem;
    bottom: .62rem;
    padding: .32rem .58rem;
    background: rgba(143, 224, 61, .92);
    color: #0A1E5C;
    font-weight: 800;
    font-size: .72rem;
    line-height: 1;
}

.sa-media-card-flag {
    top: .58rem;
    right: .58rem;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.86);
    font-size: 1rem;
}

.sa-unified-gallery-item figcaption {
    position: absolute;
    z-index: 3;
    left: .65rem;
    right: .65rem;
    bottom: 2.15rem;
    display: grid;
    gap: .18rem;
    padding: 0;
    color: #fff;
    pointer-events: none;
}

.sa-unified-gallery-item figcaption strong,
.sa-unified-gallery-item figcaption time,
.sa-unified-gallery-item .sa-media-caption,
.sa-unified-gallery-item .sa-media-source {
    color: #fff;
    text-shadow: 0 2px 10px rgba(4, 12, 38, .65);
}

.sa-unified-gallery-item figcaption strong {
    font-size: .88rem;
    line-height: 1.18;
}

.sa-unified-gallery-item figcaption time,
.sa-unified-gallery-item .sa-media-caption,
.sa-unified-gallery-item .sa-media-source {
    font-size: .74rem;
    opacity: .88;
}

.sa-image-gallery-archive {
    width: min(1220px, calc(100% - 2rem));
    padding: clamp(1.5rem, 4vw, 3.5rem) 0;
}

.sa-image-gallery-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(340px, 46vw, 560px);
    display: grid;
    align-items: end;
    border-radius: 34px;
    color: #fff;
    background: radial-gradient(circle at 20% 10%, rgba(143,224,61,.22), transparent 28%), linear-gradient(135deg, #061446, #0A1E5C 52%, #15398f);
    box-shadow: 0 30px 80px rgba(4, 12, 38, .28);
}

.sa-image-gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--sa-gallery-hero-image);
    background-size: cover;
    background-position: center;
    opacity: .32;
    filter: saturate(1.1) contrast(1.04);
    transform: scale(1.03);
}

.sa-image-gallery-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,12,38,.94), rgba(4,12,38,.56) 46%, rgba(4,12,38,.12)), linear-gradient(to top, rgba(4,12,38,.7), transparent 45%);
}

.sa-image-gallery-hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    padding: clamp(2rem, 5vw, 4rem);
}

.sa-image-gallery-hero h1 {
    margin: .15rem 0 .65rem;
    color: #fff;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: .9;
    letter-spacing: -.06em;
}

.sa-image-gallery-hero p {
    max-width: 650px;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.sa-gallery-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.35rem;
}

.sa-gallery-hero-stats span {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: .58rem .85rem;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,.82);
    font-weight: 700;
}

.sa-gallery-hero-stats strong {
    color: #8FE03D;
}

.sa-image-gallery-archive-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-top: .6rem;
}

.sa-image-gallery-archive-head h2 {
    margin: .15rem 0 0;
    color: #0A1E5C;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.sa-image-gallery-archive-card {
    border: 1px solid rgba(10, 30, 92, .12);
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 18px 45px rgba(10,30,92,.1);
    transition: transform .22s ease, box-shadow .22s ease;
}

.sa-image-gallery-archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(10,30,92,.16);
}

.sa-image-gallery-archive-thumbs {
    min-height: 180px;
    background: #071746;
}

.sa-image-gallery-archive-thumbs img {
    min-height: 180px;
}

.sa-gallery-card-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: .35rem;
    border-radius: 999px;
    padding: .25rem .55rem;
    background: rgba(143,224,61,.18);
    color: #0A1E5C;
    font-size: .76rem;
    font-weight: 800;
}

@media (max-width: 760px) {
    .sa-media-filterbar {
        border-radius: 24px;
        align-items: stretch;
    }

    .sa-media-filterbar label,
    .sa-media-filterbar select {
        width: 100%;
    }

    .sa-media-filter-count {
        margin-left: 0;
    }

    .sa-image-gallery-archive-head {
        display: block;
    }
}

.sa-image-gallery-hero .sa-theme-eyebrow {
    margin: 0 0 .35rem;
    color: #8FE03D;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
}

/* Alpha 14.1 — Unified Sims Archives button system.
   Buttons now use the official Core colours and a diamond/plumbob mark. */
:root {
    --sa-button-navy: #0A1E5C;
    --sa-button-green: #8FE03D;
}

.sa-button,
.sa-button:visited,
button.sa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .58rem;
    min-height: 42px;
    padding: .65rem 1.08rem;
    border-radius: 999px;
    border: 1px solid rgba(143, 224, 61, .58);
    background: linear-gradient(135deg, var(--sa-button-green) 0%, #b9ff7c 100%);
    color: var(--sa-button-navy);
    text-decoration: none;
    font-weight: 850;
    letter-spacing: -.01em;
    box-shadow: 0 16px 34px rgba(143, 224, 61, .20), inset 0 1px 0 rgba(255, 255, 255, .48);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.sa-button::before,
button.sa-button::before {
    content: '';
    width: .78rem;
    height: 1.08rem;
    flex: 0 0 .78rem;
    background: var(--sa-button-navy);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .20), 0 0 12px rgba(10, 30, 92, .24);
    transform: translateY(-1px);
}

.sa-button:hover,
button.sa-button:hover {
    color: var(--sa-button-navy);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .70);
    box-shadow: 0 22px 44px rgba(143, 224, 61, .28), inset 0 1px 0 rgba(255, 255, 255, .62);
}

.sa-button:focus-visible,
button.sa-button:focus-visible {
    outline: 3px solid rgba(143, 224, 61, .55);
    outline-offset: 3px;
}

.sa-button.secondary,
.sa-button.is-secondary,
.sa-media-filter-pill,
.sa-language-switcher a {
    background: rgba(10, 30, 92, .92);
    color: #fff;
    border-color: rgba(143, 224, 61, .34);
}

.sa-button.secondary::before,
.sa-button.is-secondary::before,
.sa-media-filter-pill::before {
    background: var(--sa-button-green);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 0 14px rgba(143, 224, 61, .35);
}

.sa-button.secondary:hover,
.sa-button.is-secondary:hover,
.sa-media-filter-pill:hover,
.sa-language-switcher a:hover {
    color: #fff;
    border-color: var(--sa-button-green);
}

.sa-media-load-more {
    padding-inline: 1.35rem;
}

.sa-lightbox-close::before {
    content: none;
}


/* Alpha.15 — Per-game gallery pages with image-type tabs */
.sa-public-game-gallery-page {
    background: #071746;
    min-height: 100vh;
}

.sa-game-gallery-page {
    color: #fff;
}

.sa-game-gallery-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(360px, 50vw, 620px);
    display: grid;
    align-items: end;
    background: radial-gradient(circle at 18% 18%, rgba(143,224,61,.26), transparent 30%), linear-gradient(135deg, #061446, #0A1E5C 56%, #15398f);
}

.sa-game-gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--sa-game-gallery-hero-image);
    background-size: cover;
    background-position: center;
    opacity: .36;
    filter: saturate(1.1) contrast(1.06);
    transform: scale(1.04);
}

.sa-game-gallery-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,12,38,.95), rgba(4,12,38,.58) 48%, rgba(4,12,38,.16)), linear-gradient(to top, rgba(4,12,38,.75), transparent 45%);
}

.sa-game-gallery-hero-content {
    position: relative;
    z-index: 2;
    width: min(880px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.sa-game-gallery-hero h1 {
    margin: .1rem 0 .75rem;
    color: #fff;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: .88;
    letter-spacing: -.065em;
}

.sa-game-gallery-hero p {
    max-width: 680px;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.sa-game-gallery-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.35rem;
}

.sa-game-gallery-shell {
    width: min(1220px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.5rem) 0;
}

.sa-game-gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sa-game-gallery-toolbar h2 {
    margin: .15rem 0 0;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3.3rem);
}

.sa-game-gallery-toolbar .sa-muted {
    color: rgba(255,255,255,.68);
}

.sa-game-gallery-toolbar > span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid rgba(143, 224, 61, .28);
    border-radius: 999px;
    padding: .55rem .8rem;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.78);
    font-weight: 800;
}

.sa-game-gallery-toolbar > span strong {
    color: #8FE03D;
}

.sa-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .75rem;
    border: 1px solid rgba(143, 224, 61, .18);
    border-radius: 28px;
    background: rgba(255,255,255,.07);
    box-shadow: 0 18px 45px rgba(4, 12, 38, .24), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
}

.sa-gallery-tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 40px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: .48rem .75rem;
    background: rgba(10, 30, 92, .72);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.sa-gallery-tab::before {
    content: "";
    width: .55rem;
    height: .8rem;
    background: #8FE03D;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 12px rgba(143, 224, 61, .35);
}

.sa-gallery-tab strong {
    display: inline-flex;
    min-width: 1.65rem;
    min-height: 1.65rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #8FE03D;
    font-size: .78rem;
}

.sa-gallery-tab:hover,
.sa-gallery-tab.is-active {
    transform: translateY(-1px);
    border-color: rgba(143, 224, 61, .8);
    background: linear-gradient(135deg, #8FE03D, #b9ff7c);
    color: #0A1E5C;
}

.sa-gallery-tab.is-active::before,
.sa-gallery-tab:hover::before {
    background: #0A1E5C;
}

.sa-gallery-tab.is-active strong,
.sa-gallery-tab:hover strong {
    background: rgba(10, 30, 92, .12);
    color: #0A1E5C;
}

.sa-game-gallery-tabbed .sa-media-grid.sa-unified-gallery-grid {
    margin-top: .35rem;
}

.sa-gallery-card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .55rem;
    color: #0A1E5C;
    font-weight: 850;
}

.sa-gallery-card-link::before {
    content: "";
    width: .52rem;
    height: .76rem;
    background: #8FE03D;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

@media (max-width: 760px) {
    .sa-game-gallery-toolbar {
        display: block;
    }

    .sa-game-gallery-toolbar > span {
        margin-top: .75rem;
    }

    .sa-gallery-tabs {
        border-radius: 22px;
    }

    .sa-gallery-tab {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Alpha.17 — Real Sims plumbob button mark */
:root {
    --sa-button-plumbob: url("sims-plumbob-64.png");
}

.sa-button::before,
button.sa-button::before,
.sa-media-filter-pill::before,
.sa-gallery-tab::before,
.sa-language-switcher a::before {
    content: '' !important;
    width: 18px !important;
    height: 22px !important;
    flex: 0 0 18px !important;
    display: inline-block !important;
    background: var(--sa-button-plumbob) center / contain no-repeat !important;
    clip-path: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
    filter: drop-shadow(0 5px 10px rgba(143, 224, 61, .35)) !important;
}

.sa-button:hover::before,
button.sa-button:hover::before,
.sa-media-filter-pill:hover::before,
.sa-gallery-tab:hover::before,
.sa-language-switcher a:hover::before {
    transform: translateY(-2px) scale(1.06) rotate(7deg) !important;
    filter: drop-shadow(0 8px 16px rgba(143, 224, 61, .50)) !important;
}

.sa-lightbox-close::before {
    content: none !important;
}


/* Alpha.17.1 — stronger real plumbob and dark gallery compatibility */
:root {
    --sa-button-plumbob: url("sims-plumbob-full.png");
}

.sa-button::before,
button.sa-button::before,
.sa-media-filter-pill::before,
.sa-gallery-tab::before,
.sa-language-switcher a::before,
.sa-gallery-card-link::before {
    content: '' !important;
    display: inline-block !important;
    width: 18px !important;
    height: 22px !important;
    min-width: 18px !important;
    flex: 0 0 18px !important;
    background: var(--sa-button-plumbob) center / contain no-repeat !important;
    clip-path: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 6px 14px rgba(143, 224, 61, .38)) !important;
}

.sa-game-gallery-tabbed,
.sa-public-gallery-archive-page,
.sa-game-gallery-page {
    background: transparent !important;
}

.sa-game-gallery-tabbed .sa-unified-gallery-item,
.sa-public-gallery-archive-page .sa-unified-gallery-item {
    background: transparent !important;
}
