.s4gs {
    width: min(var(--s4gs-width), 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--s4gs-top);
    margin-bottom: var(--s4gs-bottom);
    color: #c7d5e0;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    box-sizing: border-box;
}
.s4gs * { box-sizing: border-box; }
.s4gs-titlebar {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 8px;
    background:
        radial-gradient(ellipse at top center, rgba(102, 192, 244, .12), transparent 65%),
        linear-gradient(90deg, rgba(20, 44, 62, .03), rgba(99, 119, 139, .08), rgba(20, 44, 62, .03));
}
.s4gs-titlebar::before,
.s4gs-titlebar::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(194,213,224,.55), rgba(255,255,255,.02));
    pointer-events: none;
}
.s4gs-titlebar::before { top: 0; }
.s4gs-titlebar::after { bottom: 0; }
.s4gs-shadow-light .s4gs-titlebar { box-shadow: inset 0 10px 24px rgba(255,255,255,.025), inset 0 -10px 24px rgba(0,0,0,.18); }
.s4gs-shadow-medium .s4gs-titlebar { box-shadow: inset 0 14px 32px rgba(255,255,255,.04), inset 0 -14px 32px rgba(0,0,0,.32), 0 8px 24px rgba(0,0,0,.18); }
.s4gs-shadow-strong .s4gs-titlebar { box-shadow: inset 0 20px 44px rgba(255,255,255,.06), inset 0 -20px 44px rgba(0,0,0,.48), 0 12px 32px rgba(0,0,0,.3); }
.s4gs-titlebar h2 {
    margin: 0;
    color: var(--s4gs-title-color);
    font-size: var(--s4gs-title-size);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,.65);
}
.s4gs-frame {
    position: relative;
    width: 100%;
    overflow: visible;
}
.s4gs-viewport {
    overflow: hidden;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.14);
    padding: 10px 0 12px;
}
.s4gs-track {
    display: flex;
    transform: translateX(0);
    transition: transform .36s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}
.s4gs-page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s4gs-gap);
    min-width: 100%;
}
.s4gs-card {
    min-width: 0;
    position: relative;
    background: #000;
    box-shadow: 0 0 0 1px rgba(0,0,0,.65), 0 6px 16px rgba(0,0,0,.35);
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.s4gs-card:not(.s4gs-card-empty):hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px rgba(102,192,244,.5), 0 12px 26px rgba(0,0,0,.48);
    z-index: 2;
}
.s4gs-card-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
    height: 100%;
}
.s4gs-image-wrap {
    height: var(--s4gs-card-height);
    overflow: hidden;
    background: #111923;
}
.s4gs-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.s4gs-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    color: #8f98a0;
    background: linear-gradient(135deg, #15202b, #0b1219);
}
.s4gs-card-bottom {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #050607;
    padding: 0 9px;
    line-height: 1;
}
.s4gs-price {
    color: #dfe3e6;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
    white-space: nowrap;
}
.s4gs-platforms {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: .95;
}
.s4gs-win,
.s4gs-steam,
.s4gs-mac {
    width: 14px;
    height: 14px;
    display: inline-block;
    position: relative;
    opacity: .92;
}
.s4gs-win::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background: #e5eef5;
    box-shadow: 8px 0 #e5eef5, 0 8px #e5eef5, 8px 8px #e5eef5;
}
.s4gs-steam::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #e5eef5;
}
.s4gs-steam::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    width: 7px;
    height: 2px;
    background: #e5eef5;
    transform: rotate(-28deg);
    transform-origin: left center;
}
.s4gs-mac::before {
    content: "●";
    color: #e5eef5;
    font-size: 14px;
    line-height: 14px;
}
.s4gs-card-meta { display: none; }
.s4gs-card-empty { opacity: 0; pointer-events: none; }
.s4gs-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 92px;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(8, 13, 18, .9), rgba(42, 71, 94, .35));
    transform: translateY(-50%);
    opacity: .92;
    transition: opacity .14s ease, filter .14s ease;
}
.s4gs-arrow:hover { opacity: 1; filter: brightness(1.2); }
.s4gs-prev { left: -54px; }
.s4gs-next { right: -54px; transform: translateY(-50%) scaleX(-1); }
.s4gs-arrow span {
    position: absolute;
    left: 17px;
    top: 29px;
    width: 30px;
    height: 30px;
    border-left: 8px solid rgba(255,255,255,.82);
    border-bottom: 8px solid rgba(255,255,255,.82);
    transform: rotate(45deg);
}
.s4gs-dots {
    height: 18px;
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 4px;
}
.s4gs-dots button {
    width: 46px;
    height: 3px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: rgba(255,255,255,.18);
    cursor: pointer;
}
.s4gs-dots button.is-active { background: rgba(255,255,255,.48); }
.s4gs-empty {
    width: 100%;
    max-width: 1050px;
    margin: 20px auto;
    padding: 18px;
    background: #0f1a24;
    color: #c7d5e0;
    border: 1px dashed #35506a;
}
.s4gs-hover-popup {
    position: fixed;
    z-index: 999999;
    width: 330px;
    min-height: 270px;
    background: #2a3138;
    color: #c7d5e0;
    box-shadow: 0 12px 34px rgba(0,0,0,.62);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .1s ease, transform .1s ease;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}
.s4gs-hover-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.s4gs-popup-star {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
    background: #1a9fff;
    border: 1px solid rgba(255,255,255,.55);
    z-index: 3;
}
.s4gs-popup-star::before {
    content: "☆";
    position: absolute;
    left: 5px;
    top: -1px;
    color: #fff;
    font-size: 31px;
    line-height: 34px;
}
.s4gs-popup-media {
    width: 100%;
    height: 178px;
    background: #111923;
    overflow: hidden;
}
.s4gs-popup-media img,
.s4gs-popup-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.s4gs-popup-thumb {
    width: 130px;
    height: 58px;
    margin: -18px 0 0 12px;
    position: relative;
    z-index: 2;
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,.45);
    overflow: hidden;
}
.s4gs-popup-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s4gs-popup-body { padding: 8px 12px 12px; }
.s4gs-popup-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 7px;
}
.s4gs-popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.s4gs-popup-tags span {
    background: rgba(255,255,255,.09);
    color: #c7d5e0;
    padding: 3px 6px;
    font-size: 11px;
    line-height: 1;
}
.s4gs-popup-review {
    color: #66c0f4;
    font-size: 13px;
    margin-bottom: 5px;
}
.s4gs-popup-date,
.s4gs-popup-price {
    color: #8f98a0;
    font-size: 13px;
}
.s4gs-popup-price {
    color: #dfe3e6;
    font-weight: 700;
    margin-top: 4px;
}
@media (max-width: 1200px) {
    .s4gs-prev { left: 4px; }
    .s4gs-next { right: 4px; }
    .s4gs-arrow { width: 34px; height: 72px; background: rgba(8,13,18,.72); }
    .s4gs-arrow span { left: 13px; top: 23px; width: 22px; height: 22px; border-left-width: 6px; border-bottom-width: 6px; }
}
@media (max-width: 760px) {
    .s4gs-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s4gs-image-wrap { height: min(var(--s4gs-card-height), 310px); }
    .s4gs-hover-popup { display: none !important; }
}
@media (max-width: 480px) {
    .s4gs-page { grid-template-columns: 1fr; }
    .s4gs-image-wrap { height: min(var(--s4gs-card-height), 360px); }
    .s4gs-titlebar h2 { font-size: 16px; }
}
