.acg-game-single,
.acg-game-single * {
    box-sizing: border-box;
}

.acg-game-single {
    margin: clamp(18px, 2.4vw, 38px) auto clamp(60px, 7vw, 110px);
    color: var(--acg-ng-text-primary);
    font-family: inherit;
    isolation: isolate;
}

.acg-game-single .acg-game-icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.acg-game-hero {
    position: relative;
    display: grid;
    border: var(--acg-ng-border-standard);
    background:
        var(--acg-ng-bg-feature);
    box-shadow: var(--acg-ng-shadow-card);
    overflow: hidden;
}

.acg-game-hero::after {
    content: "";
    position: absolute;
    inset: auto 26px 0 26px;
    height: 1px;
    background: var(--acg-ng-bg-feature);
    pointer-events: none;
}

.acg-game-heading-cluster {
    display: flex;
    align-items: flex-start;
}

.acg-game-back {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: var(--acg-ng-border-standard);
    border-radius: var(--acg-ng-radius-card);
    background: var(--acg-ng-bg-control);
    color: var(--acg-ng-text-secondary);
    cursor: pointer;
    transition: transform var(--acg-ng-transition-normal), color var(--acg-ng-transition-normal), border-color var(--acg-ng-transition-normal), background var(--acg-ng-transition-normal);
}

.acg-game-back svg { width: 22px; height: 22px; }
.acg-game-back:hover,
.acg-game-back:focus-visible {
    transform: translateX(-2px);
    color: var(--acg-ng-text-primary);
    border-color: var(--acg-ng-border-accent);
    background: var(--acg-ng-bg-control-hover);
    outline: none;
}

.acg-game-title {
    margin: 0;
    color: var(--acg-ng-text-primary);
    font-weight: 660;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.acg-game-original-title {
    margin: 7px 0 0;
    color: var(--acg-ng-text-secondary);
    font-size: var(--acg-ng-font-body);
    font-weight: 430;
    line-height: 1.45;
    letter-spacing: .015em;
    overflow-wrap: anywhere;
}

.acg-game-metrics {
    align-self: center;
}

.acg-game-single .acg-game-metrics .acg-post-metric-bar {
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.acg-game-main {
    display: grid;
}

.acg-game-card {
    position: relative;
    min-width: 0;
    border: var(--acg-ng-border-standard);
    border-radius: var(--acg-ng-radius-region);
    background:
        var(--acg-ng-bg-card);
    box-shadow: var(--acg-ng-shadow-region);
    overflow: hidden;
}

.acg-game-media-card {
    display: flex;
    flex-direction: column;
}

.acg-game-viewer {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.acg-game-stage {
    display: grid;
    place-items: center;
    border: var(--acg-ng-border-subtle-line);
    border-radius: var(--acg-ng-radius-region);
    background:
        var(--acg-ng-bg-control);
    overflow: hidden;
    outline: none;
}

.acg-game-stage:focus-visible {
    box-shadow: var(--acg-ng-shadow-focus);
}

.acg-game-active-image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.acg-game-active-video,
.acg-game-active-video video,
.acg-game-active-video iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.acg-game-active-video video {
    object-fit: contain;
}

.acg-game-active-video {
    background: var(--acg-ng-bg-media);
}

.acg-game-active-video iframe {
    border: 0;
}

.acg-game-media-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 360px;
    padding: 28px;
    color: var(--acg-ng-text-secondary);
    text-align: center;
}

.acg-game-media-empty svg { width: 40px; height: 40px; color: var(--acg-ng-text-secondary); opacity: .72; }
.acg-game-media-empty strong { color: var(--acg-ng-text-secondary); font-size: var(--acg-ng-font-body); }
.acg-game-media-empty span { font-size: var(--acg-ng-font-caption); line-height: 1.65; }

.acg-game-stage-nav,
.acg-game-expand {
    position: absolute;
    display: grid;
    place-items: center;
    padding: 0;
    border: var(--acg-ng-border-standard);
    background: var(--acg-ng-bg-control);
    color: var(--acg-ng-text-primary);
    -webkit-backdrop-filter: var(--acg-ng-backdrop-subtle);
    backdrop-filter: var(--acg-ng-backdrop-subtle);
    cursor: pointer;
    transition: transform var(--acg-ng-transition-normal), background var(--acg-ng-transition-normal), border-color var(--acg-ng-transition-normal), opacity var(--acg-ng-transition-normal);
}

.acg-game-stage-nav {
    top: 50%;
    width: 42px;
    height: 54px;
    transform: translateY(-50%);
    opacity: .3;
}

.acg-game-stage-nav.is-previous { left: 12px; border-radius: var(--acg-ng-radius-card) var(--acg-ng-radius-control) var(--acg-ng-radius-control) var(--acg-ng-radius-card); }
.acg-game-stage-nav.is-next { right: 12px; border-radius: var(--acg-ng-radius-control) var(--acg-ng-radius-card) var(--acg-ng-radius-card) var(--acg-ng-radius-control); }
.acg-game-stage:hover .acg-game-stage-nav,
.acg-game-stage:focus-within .acg-game-stage-nav { opacity: .92; }
.acg-game-stage-nav:hover,
.acg-game-stage-nav:focus-visible,
.acg-game-expand:hover,
.acg-game-expand:focus-visible {
    background: var(--acg-ng-bg-control-hover);
    border-color: var(--acg-ng-border-accent);
    outline: none;
}
.acg-game-stage-nav:hover { transform: translateY(-50%) scale(1.04); }

.acg-game-stage-toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: none;
}

.acg-game-media-kind,
.acg-game-media-counter {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 10px;
    border: var(--acg-ng-border-standard);
    border-radius: var(--acg-ng-radius-pill);
    background: var(--acg-ng-bg-media);
    color: var(--acg-ng-text-secondary);
    font-size: var(--acg-ng-font-caption);
    font-weight: 650;
    line-height: 1;
    -webkit-backdrop-filter: var(--acg-ng-backdrop-subtle);
    backdrop-filter: var(--acg-ng-backdrop-subtle);
}

.acg-game-media-kind { color: var(--acg-ng-text-highlight); }

.acg-game-expand {
    position: static;
    width: 33px;
    height: 33px;
    border-radius: var(--acg-ng-radius-control);
    pointer-events: auto;
}

.acg-game-thumbs {
    display: flex;
    margin: 11px 2px 0;
    padding: 1px 0 9px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
}

.acg-game-thumb {
    position: relative;
    flex: 0 0 clamp(74px, 7vw, 102px);
    padding: 0;
    border: var(--acg-ng-border-standard);
    border-radius: var(--acg-ng-radius-card);
    background: var(--acg-ng-bg-media);
    color: var(--acg-ng-text-primary);
    overflow: hidden;
    opacity: .62;
    cursor: pointer;
    scroll-snap-align: start;
    transition: opacity var(--acg-ng-transition-normal), transform var(--acg-ng-transition-normal), border-color var(--acg-ng-transition-normal), box-shadow var(--acg-ng-transition-normal);
}

.acg-game-thumb:hover,
.acg-game-thumb:focus-visible {
    opacity: .9;
    transform: translateY(-1px);
    border-color: var(--acg-ng-border-accent);
    outline: none;
}

.acg-game-thumb.is-active {
    opacity: 1;
    border-color: var(--acg-ng-border-accent);
    box-shadow: var(--acg-ng-shadow-media);
}

.acg-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acg-game-thumb-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--acg-ng-text-secondary);
    background: var(--acg-ng-bg-media);
}

.acg-game-thumb-placeholder svg { width: 25px; height: 25px; }

.acg-game-thumb-play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    transform: translate(-50%, -50%);
    border: var(--acg-ng-border-strong-line);
    border-radius: 50%;
    background: var(--acg-ng-bg-media);
    color: var(--acg-ng-text-primary);
}
.acg-game-thumb-play svg { width: 15px; height: 15px; fill: currentColor; stroke: none; margin-left: 2px; }

.acg-game-thumb-number {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--acg-ng-radius-pill);
    background: var(--acg-ng-bg-media);
    color: var(--acg-ng-text-primary);
    font-size: var(--acg-ng-font-caption);
    font-weight: 700;
}

.acg-game-access {
    margin-top: auto;
    border-top: var(--acg-ng-border-standard);
    background: var(--acg-ng-bg-region-soft);
}

.acg-game-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acg-game-meta-pill {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 7px;
    border: var(--acg-ng-border-subtle-line);
    background: var(--acg-ng-bg-control);
}

.acg-game-meta-pill small {
    color: var(--acg-ng-text-secondary);
}

.acg-game-meta-pill strong {
    font-weight: 650;
}

/* Re-skin the authoritative Post Metrics download shortcode without changing its logic. */
.acg-game-single .ccc-download-btns-wrap {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
}

.acg-game-single .ccc-download-group {
    display: flex !important;
    flex: 1 1 auto !important;
    gap: 10px !important;
    margin: 0 !important;
}

.acg-game-single .ccc-download-group:last-child { flex: 0 1 auto !important; }

.acg-game-single .ccc-download-btn {
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: var(--acg-ng-border-strong-line) !important;
    border-radius: var(--acg-ng-radius-card) !important;
    background: var(--acg-ng-bg-control);
    color: var(--acg-ng-text-primary);
    font-size: var(--acg-ng-font-small) !important;
    font-weight: 650 !important;
    box-shadow: var(--acg-ng-shadow-card) !important;
    transition: transform var(--acg-ng-transition-normal), border-color var(--acg-ng-transition-normal), background var(--acg-ng-transition-normal), color var(--acg-ng-transition-normal) !important;
}

.acg-game-single .ccc-download-group-left .ccc-download-btn { flex: 1 1 0 !important; }

.acg-game-single .ccc-download-btn:hover,
.acg-game-single .ccc-download-btn:focus-visible {
    transform: translateY(-1px) !important;
    border-color: var(--acg-ng-border-accent) !important;
    background: var(--acg-ng-bg-control-hover);
    color: var(--acg-ng-text-primary);
    outline: none !important;
}

.acg-game-single .ccc-copy-btn {
    color: var(--acg-ng-text-highlight);
}

.acg-game-single .ccc-download-btn.is-disabled {
    opacity: .45 !important;
    transform: none !important;
}

.acg-game-login-download {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    border: var(--acg-ng-border-strong-line);
    border-radius: var(--acg-ng-radius-card);
    background: var(--acg-ng-bg-card);
    color: var(--acg-ng-text-primary);
    text-decoration: none !important;
    transition: transform var(--acg-ng-transition-normal), border-color var(--acg-ng-transition-normal), background var(--acg-ng-transition-normal);
}

.acg-game-login-download:hover,
.acg-game-login-download:focus-visible {
    transform: translateY(-1px);
    border-color: var(--acg-ng-border-accent);
    background: var(--acg-ng-bg-card);
    color: var(--acg-ng-text-primary);
    outline: none;
}

.acg-game-login-download__icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: var(--acg-ng-radius-card);
    background: var(--acg-ng-bg-card);
    color: var(--acg-ng-text-highlight);
}
.acg-game-login-download__icon svg { width: 20px; height: 20px; }
.acg-game-login-download strong,
.acg-game-login-download small { display: block; }
.acg-game-login-download strong { margin-bottom: 2px; font-size: var(--acg-ng-font-small); font-weight: 650; }
.acg-game-login-download small { color: var(--acg-ng-text-secondary); font-size: var(--acg-ng-font-caption); line-height: 1.4; }

.acg-game-description {
    overflow: auto;
    -webkit-mask-image: var(--acg-ng-mask-vertical-fade);
    mask-image: var(--acg-ng-mask-vertical-fade);
}

.acg-game-prose {
    overflow-wrap: anywhere;
}

.acg-game-prose > :first-child { margin-top: 0 !important; }
.acg-game-prose > :last-child { margin-bottom: 0 !important; }
.acg-game-prose p { margin: 0 0 1.15em; }
.acg-game-prose h1,
.acg-game-prose h2,
.acg-game-prose h3,
.acg-game-prose h4 {
    margin: 1.55em 0 .65em;
    color: var(--acg-ng-text-primary);
    line-height: 1.35;
}
.acg-game-prose h2 { font-size: var(--acg-ng-font-heading); }
.acg-game-prose h3 { font-size: var(--acg-ng-font-heading); }
.acg-game-prose a { color: var(--acg-ng-text-primary); text-underline-offset: 3px; }
.acg-game-prose a:hover { color: var(--acg-ng-text-primary); }
.acg-game-prose ul,
.acg-game-prose ol { margin: .8em 0 1.2em; padding-left: 1.4em; }
.acg-game-prose li + li { margin-top: .35em; }
.acg-game-prose blockquote {
    margin: 1.25em 0;
    padding: .8em 1em;
    border-left: var(--acg-ng-border-strong-heavy-line);
    background: var(--acg-ng-bg-card);
    color: var(--acg-ng-text-primary);
}
.acg-game-prose img,
.acg-game-prose video,
.acg-game-prose iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--acg-ng-radius-card);
}
.acg-game-prose iframe { width: 100%; aspect-ratio: 16 / 9; }
.acg-game-prose table { width: 100%; border-collapse: collapse; }
.acg-game-prose th,
.acg-game-prose td { padding: 8px 10px; border: var(--acg-ng-border-standard); }

.acg-game-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--acg-ng-text-secondary);
    font-weight: 650;
    letter-spacing: .04em;
}

.acg-game-detail-label svg { width: 16px; height: 16px; color: var(--acg-ng-text-highlight); }
.acg-game-rating-content .acg-rating { max-width: 100%; }

.acg-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-height: 86px;
    overflow: auto;
}

.acg-game-empty,
.acg-game-empty-inline {
    color: var(--acg-ng-text-secondary);
    font-size: var(--acg-ng-font-caption);
}

.acg-game-comments {
    margin-top: clamp(28px, 4vw, 58px);
}

.acg-game-comments > .acg-comment-section,
.acg-game-comments > [data-acg-comments],
.acg-game-comments > .acg-community-comments {
    width: 100%;
    max-width: none;
}

.acg-game-lightbox[hidden] { display: none !important; }
.acg-game-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
}

.acg-game-lightbox__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--acg-ng-bg-floating);
    -webkit-backdrop-filter: var(--acg-ng-backdrop-control);
    backdrop-filter: var(--acg-ng-backdrop-control);
    cursor: zoom-out;
}

.acg-game-lightbox__dialog {
    z-index: 1;
}

.acg-game-lightbox__dialog img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--acg-ng-radius-control);
    box-shadow: var(--acg-ng-shadow-floating);
    pointer-events: auto;
}

.acg-game-lightbox__close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: var(--acg-ng-border-standard);
    border-radius: var(--acg-ng-radius-card);
    background: var(--acg-ng-bg-floating);
    color: var(--acg-ng-text-primary);
    cursor: pointer;
    pointer-events: auto;
}
.acg-game-lightbox__close:hover,
.acg-game-lightbox__close:focus-visible { background: var(--acg-ng-bg-floating); outline: none; }
.acg-game-lightbox__close svg { width: 22px; height: 22px; }

body.acg-game-lightbox-open { overflow: hidden !important; }

.acg-game-dependency-note,
.acg-game-single-admin-note {
    padding: 12px 14px;
    border: var(--acg-ng-border-strong-dashed);
    border-radius: var(--acg-ng-radius-card);
    background: var(--acg-ng-bg-card);
    color: var(--acg-ng-text-secondary);
    font-size: var(--acg-ng-font-caption);
}

@media (max-width: 1180px) {
    .acg-game-single { width: min(100% - 28px, 1120px); }
    .acg-game-main { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr); }
    .acg-game-stage { min-height: 320px; }
    .acg-game-details-card { height: clamp(620px, calc(100vh - 170px), 820px); }
    .acg-game-single .ccc-download-btns-wrap { flex-wrap: wrap !important; }
    .acg-game-single .ccc-download-group:last-child { flex: 1 1 100% !important; }
    .acg-game-single .ccc-download-group:last-child .ccc-download-btn { width: 100% !important; }
}

@media (max-width: 900px) {
    .acg-game-single { width: min(100% - 24px, 760px); margin-top: 14px; }
    .acg-game-hero { grid-template-columns: 1fr; align-items: start; gap: 16px; }
    .acg-game-metrics { width: 100%; }
    .acg-game-single .acg-game-metrics .acg-post-metric-bar { justify-content: space-between !important; width: 100% !important; }
    .acg-game-main { grid-template-columns: 1fr; }
    .acg-game-details-card { height: auto; min-height: 0; grid-template-rows: auto auto auto auto; }
    .acg-game-description {
        max-height: none;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .acg-game-tags { max-height: none; }
}

@media (max-width: 600px) {
    .acg-game-single {
        width: calc(100% - 16px);
        margin-top: 8px;
        margin-bottom: 64px;
    }
    .acg-game-hero { padding: 14px; border-radius: var(--acg-ng-radius-region); }
    .acg-game-heading-cluster { gap: 10px; }
    .acg-game-back { width: 40px; height: 40px; border-radius: var(--acg-ng-radius-card); }
    .acg-game-title { font-size: var(--acg-ng-font-heading); }
    .acg-game-original-title { font-size: var(--acg-ng-font-caption); }
    .acg-game-single .acg-game-metrics .acg-post-metric-bar { gap: 8px !important; }
    .acg-game-card { border-radius: var(--acg-ng-radius-region); }
    .acg-game-viewer { padding: 8px 8px 0; }
    .acg-game-stage { min-height: 0; aspect-ratio: 16 / 10; border-radius: var(--acg-ng-radius-card); }
    .acg-game-stage-nav { width: 36px; height: 46px; opacity: .75; }
    .acg-game-stage-nav.is-previous { left: 7px; }
    .acg-game-stage-nav.is-next { right: 7px; }
    .acg-game-stage-toolbar { top: 8px; right: 8px; gap: 5px; }
    .acg-game-media-kind { display: none; }
    .acg-game-media-counter { min-height: 29px; padding: 0 9px; }
    .acg-game-expand { width: 31px; height: 31px; }
    .acg-game-thumb { flex-basis: 74px; height: 50px; }
    .acg-game-access { padding: 15px 13px; }
    .acg-game-meta-pills { width: 100%; justify-content: flex-start; }
    .acg-game-meta-pill { flex: 1 1 auto; }
    .acg-game-single .ccc-download-btns-wrap,
    .acg-game-single .ccc-download-group { display: grid !important; grid-template-columns: 1fr !important; }
    .acg-game-single .ccc-download-btn { width: 100% !important; }
    .acg-game-description { padding: 18px 16px; }
    .acg-game-prose { font-size: var(--acg-ng-font-small); line-height: 1.82; }
    .acg-game-comments { margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .acg-game-single *,
    .acg-game-single *::before,
    .acg-game-single *::after {
        scroll-behavior: auto !important;
        transition-duration: var(--acg-ng-motion-reduced) !important;
        animation-duration: var(--acg-ng-motion-reduced) !important;
        animation-iteration-count: 1 !important;
    }
}

.acg-game-hero {
    align-items: center;
    gap: clamp(16px, 2vw, 30px);
}

.acg-game-heading-cluster {
    width: 100%;
    min-width: 0;
}

.acg-game-titles {
    flex: 1 1 auto;
    min-width: 0;
}

.acg-game-title {
    max-width: none;
    text-wrap: pretty;
}

.acg-game-details-card {
    height: auto !important;
}

.acg-game-description {
    padding: clamp(22px, 2vw, 32px);
}

.acg-game-access {
    padding-top: clamp(14px, 1.4vw, 20px);
}

.acg-game-meta-pills {
    justify-content: flex-start;
}

.acg-game-meta-pill strong,
.acg-game-single .ccc-copy-btn {
    color: var(--acg-ng-text-secondary);
}

.acg-game-single .ccc-copy-btn {
    border-color: var(--acg-ng-border-default) !important;
    background: var(--acg-ng-bg-control);
}

.acg-game-comments {
    width: min(100%, 1500px);
    margin-right: auto;
    margin-left: auto;
}

/* Use the exact shared homepage/search tag component instead of a local pill design. */
.acg-game-tags.acgsl-tags {
    max-height: 92px;
    overflow: auto;
}


/* The active image is a neutral media surface, not a themed button. */
.acg-game-single .acg-game-active-image,
.acg-game-single .acg-game-active-image:hover,
.acg-game-single .acg-game-active-image:focus,
.acg-game-single .acg-game-active-image:focus-visible,
.acg-game-single .acg-game-active-image:active {
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

/* Video discoverability and fullscreen controls. */

.acg-game-video-play {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 5 !important;
    display: grid !important;
    place-items: center !important;
    width: clamp(62px, 5vw, 78px) !important;
    height: clamp(62px, 5vw, 78px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translate(-50%, -50%) !important;
    border: var(--acg-ng-border-strong-line) !important;
    border-radius: 50% !important;
    background: var(--acg-ng-bg-control);
    color: var(--acg-ng-text-primary);
    box-shadow: var(--acg-ng-shadow-media) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    filter: none !important;
    transition: transform var(--acg-ng-transition-normal), background-color var(--acg-ng-transition-normal), border-color var(--acg-ng-transition-normal) !important;
}

.acg-game-video-play:hover,
.acg-game-video-play:focus-visible {
    border-color: var(--acg-ng-border-accent) !important;
    background: var(--acg-ng-bg-media);
    color: var(--acg-ng-text-primary);
    outline: none !important;
}

.acg-game-video-play[hidden] {
    display: none !important;
}

.acg-game-video-play svg {
    width: 31px !important;
    height: 31px !important;
    margin-left: 4px;
    fill: currentColor;
    stroke: none;
}

.acg-game-video-fullscreen {
    position: static !important;
    display: grid !important;
    place-items: center !important;
    width: 33px !important;
    height: 33px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: var(--acg-ng-border-standard) !important;
    border-radius: var(--acg-ng-radius-control) !important;
    background: var(--acg-ng-bg-media);
    color: var(--acg-ng-text-primary);
    box-shadow: none !important;
    cursor: pointer !important;
    pointer-events: auto;
    opacity: 1 !important;
    filter: none !important;
}

.acg-game-video-fullscreen:hover,
.acg-game-video-fullscreen:focus-visible {
    border-color: var(--acg-ng-border-accent) !important;
    background: var(--acg-ng-bg-media);
    color: var(--acg-ng-text-primary);
    outline: none !important;
}

.acg-game-video-fullscreen[hidden] {
    display: none !important;
}

.acg-game-video-fullscreen svg {
    width: 17px;
    height: 17px;
}

.acg-game-active-video video:fullscreen,
.acg-game-active-video iframe:fullscreen,
.acg-game-active-video:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    background: var(--acg-ng-bg-media);
}

/* Isolate every viewer control from unrelated global red button hover rules. */
.acg-game-single .acg-game-stage-nav,
.acg-game-single .acg-game-expand,
.acg-game-single .acg-game-back,
.acg-game-single .acg-game-thumb,
.acg-game-lightbox .acg-game-lightbox__close {
    -webkit-appearance: none !important;
    appearance: none !important;
    filter: none !important;
}

.acg-game-single .acg-game-stage-nav:hover,
.acg-game-single .acg-game-stage-nav:focus-visible,
.acg-game-single .acg-game-expand:hover,
.acg-game-single .acg-game-expand:focus-visible {
    background: var(--acg-ng-bg-control-hover);
    border-color: var(--acg-ng-border-accent) !important;
    color: var(--acg-ng-text-primary);
}

.acg-game-single .acg-game-thumb:hover,
.acg-game-single .acg-game-thumb:focus-visible {
    background: var(--acg-ng-bg-media);
    border-color: var(--acg-ng-border-accent) !important;
    color: var(--acg-ng-text-primary);
}

/* Expanded images are inert. Only the close control is interactive. */
.acg-game-lightbox,
.acg-game-lightbox * {
    -webkit-tap-highlight-color: transparent;
}

.acg-game-lightbox__backdrop,
.acg-game-lightbox__backdrop:hover {
    background: var(--acg-ng-bg-floating);
    background-color: var(--acg-ng-bg-floating);
    filter: none !important;
    opacity: 1 !important;
}

.acg-game-lightbox__dialog img,
.acg-game-lightbox__dialog img:hover,
.acg-game-lightbox__dialog img:focus,
.acg-game-lightbox__dialog img:active {
    mix-blend-mode: normal !important;
}

.acg-game-lightbox .acg-game-lightbox__close,
.acg-game-lightbox .acg-game-lightbox__close:hover,
.acg-game-lightbox .acg-game-lightbox__close:focus-visible,
.acg-game-lightbox .acg-game-lightbox__close:active {
    top: 12px;
    right: 12px;
    border: var(--acg-ng-border-accent-line) !important;
    background: var(--acg-ng-bg-floating);
    background-color: var(--acg-ng-bg-floating);
    color: var(--acg-ng-text-primary);
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.acg-game-lightbox .acg-game-lightbox__close:hover,
.acg-game-lightbox .acg-game-lightbox__close:focus-visible {
    border-color: var(--acg-ng-border-accent) !important;
    background: var(--acg-ng-bg-floating);
    outline: none !important;
}

@media (max-width: 1280px) {
    .acg-game-single {
        width: calc(100% - 32px);
        max-width: none;
    }

    .acg-game-main {
        grid-template-columns: minmax(0, 1.24fr) minmax(390px, 1fr);
    }
}

@media (max-width: 980px) {
    .acg-game-single {
        width: calc(100% - 24px);
    }

    .acg-game-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .acg-game-metrics {
        justify-self: stretch;
        max-width: none;
    }

    .acg-game-main {
        grid-template-columns: 1fr;
    }

    .acg-game-details-card {
        grid-template-rows: auto auto auto;
    }

    .acg-game-description {
        max-height: none;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .acg-game-tags.acgsl-tags {
        max-height: none;
    }
}

@media (max-width: 600px) {
    .acg-game-single {
        width: calc(100% - 16px);
    }

    .acg-game-video-play {
        width: 58px !important;
        height: 58px !important;
    }

    .acg-game-video-play svg {
        width: 27px !important;
        height: 27px !important;
    }

    .acg-game-video-fullscreen {
        width: 31px !important;
        height: 31px !important;
    }
}

/* Elementor's old template containers may still carry overflow:hidden. */
.acg-game-host {
    overflow: visible !important;
}

.elementor-widget-shortcode.acg-game-host,
.elementor-widget-shortcode.acg-game-host > .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
}

/* Center the 90vw page inside the viewport instead of inside a narrower Elementor widget. */
.acg-game-single {
    position: relative;
    width: min(90vw, 1920px) !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-bottom: clamp(60px, 7vw, 110px) !important;
    margin-left: calc(50% - min(45vw, 960px)) !important;
}

/* Keep both desktop cards equal-height so only the body panel scrolls. */
.acg-game-main {
    min-height: 0;
}

.acg-game-media-card,
.acg-game-details-card {
    height: 100% !important;
    min-height: 0 !important;
}

.acg-game-details-card {
    display: grid !important;
    align-self: stretch !important;
}

.acg-game-description {
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.acg-game-viewer {
    min-height: 0 !important;
}

/* Main media always uses contain. Global image/video styles must not override it. */
.acg-game-single .acg-game-active-image,
.acg-game-single .acg-game-active-video {
    min-width: 0 !important;
    min-height: 0 !important;
}

.acg-game-single .acg-game-active-video video,
.acg-game-single .acg-game-active-video iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Use grid overlay centering for the play control; it cannot drift with theme button offsets. */
.acg-game-active-video {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
}

.acg-game-active-video > video,
.acg-game-active-video > iframe,
.acg-game-active-video > .acg-game-video-play {
    grid-area: 1 / 1 !important;
}

.acg-game-video-play,
.acg-game-video-play:hover,
.acg-game-video-play:focus,
.acg-game-video-play:focus-visible,
.acg-game-video-play:active {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 5 !important;
    margin: auto !important;
    transform: none !important;
}

.acg-game-video-play:hover,
.acg-game-video-play:focus-visible {
    transform: scale(1.06) !important;
}

/* Completely isolate carousel controls from persistent global red active/focus rules. */
.acg-game-single .acg-game-stage-nav,
.acg-game-single .acg-game-stage-nav:hover,
.acg-game-single .acg-game-stage-nav:focus,
.acg-game-single .acg-game-stage-nav:focus-visible,
.acg-game-single .acg-game-stage-nav:active {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    background-color: var(--acg-ng-bg-overlay);
    color: var(--acg-ng-text-secondary);
    border-color: var(--acg-ng-border-default) !important;
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
}

.acg-game-single .acg-game-stage-nav:hover,
.acg-game-single .acg-game-stage-nav:focus-visible {
    background-color: var(--acg-ng-bg-control-hover);
    color: var(--acg-ng-text-primary);
    border-color: var(--acg-ng-border-accent) !important;
}

.acg-game-single .acg-game-stage-nav.is-previous,
.acg-game-single .acg-game-stage-nav.is-previous:focus,
.acg-game-single .acg-game-stage-nav.is-previous:active {
    transform: translateY(-50%) !important;
}

.acg-game-single .acg-game-stage-nav.is-next,
.acg-game-single .acg-game-stage-nav.is-next:focus,
.acg-game-single .acg-game-stage-nav.is-next:active {
    transform: translateY(-50%) !important;
}

.acg-game-single .acg-game-stage-nav.is-previous:hover,
.acg-game-single .acg-game-stage-nav.is-next:hover {
    transform: translateY(-50%) scale(1.04) !important;
}

/* The enlarged image itself is the second-click close target, with no visual hover state. */
.acg-game-lightbox__dialog img,
.acg-game-lightbox__dialog img:hover,
.acg-game-lightbox__dialog img:focus,
.acg-game-lightbox__dialog img:active {
    pointer-events: auto !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: var(--acg-ng-shadow-focus) !important;
}

/* Preserve two columns considerably longer; stack only when there truly is not enough room. */
@media (max-width: 980px) and (min-width: 761px) {
    .acg-game-main {
        grid-template-columns: minmax(0, 1.12fr) minmax(290px, .92fr) !important;
    }

    .acg-game-details-card {
        height: 100% !important;
        grid-template-rows: minmax(0, 1fr) auto auto !important;
    }

    .acg-game-description {
        overflow-y: auto !important;
        -webkit-mask-image: var(--acg-ng-mask-vertical-fade) !important;
        mask-image: var(--acg-ng-mask-vertical-fade) !important;
    }
}

@media (max-width: 760px) {
    .acg-game-single {
        width: calc(100vw - 16px) !important;
        margin-left: calc(50% - 50vw + 8px) !important;
    }

    .acg-game-main {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .acg-game-media-card,
    .acg-game-details-card {
        height: auto !important;
    }

    .acg-game-details-card {
        grid-template-rows: auto auto auto !important;
    }

    .acg-game-description {
        overflow: visible !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .acg-game-stage {
        min-height: 0 !important;
        aspect-ratio: 16 / 10 !important;
    }
}

.acg-game-single {
}

/* Let the title consume all remaining space. The metrics surface should only
 * be as wide as its four visible items, with no inert area on the left. */
.acg-game-hero {
    grid-template-columns: minmax(0, 1fr) max-content !important;
}

.acg-game-metrics {
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-self: end !important;
}

.acg-game-single .acg-game-metrics .acg-post-metric-bar {
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
}

/* Use the original ACF attachment rather than a potentially hard-cropped
 * WordPress derivative. Natural dimensions constrained on both axes are more
 * robust than stretching the replaced element to 100% x 100%. */
.acg-game-single .acg-game-active-image,
.acg-game-single .acg-game-active-image:hover,
.acg-game-single .acg-game-active-image:focus,
.acg-game-single .acg-game-active-image:focus-visible,
.acg-game-single .acg-game-active-image:active {
    display: grid !important;
    place-items: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Match the Community Comments reading scale. */
.acg-game-prose {
    color: var(--acg-ng-text-primary);
    font-family: inherit !important;
    font-size: var(--acg-ng-font-body) !important;
    line-height: 1.65 !important;
}

.acg-game-detail-label {
    font-size: var(--acg-ng-font-body) !important;
}

.acg-game-empty,
.acg-game-empty-inline,
.acg-game-login-download small {
    font-size: var(--acg-ng-font-small) !important;
}

.acg-game-login-download strong,
.acg-game-single .ccc-download-btn {
    font-size: var(--acg-ng-font-body) !important;
}

/* Restore normal scroll chaining. At the top/bottom of the body panel, wheel
 * and touch scrolling continue onto the page instead of being trapped. */
.acg-game-description {
    overscroll-behavior: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y;
}

/* Resource size/version now occupy the unused right side of the rating row. */

.acg-game-rating-content {
    min-width: 0;
}

.acg-game-meta-pill {
    min-height: 42px;
    padding: 9px 13px;
    border-radius: var(--acg-ng-radius-card);
}

.acg-game-meta-pill small {
    font-size: var(--acg-ng-font-small) !important;
}

.acg-game-meta-pill strong {
    color: var(--acg-ng-text-secondary);
    font-size: var(--acg-ng-font-body) !important;
}

.acg-game-downloads {
    margin-top: 0 !important;
}

/* The lightbox always fits the complete original image inside the dynamic
 * viewport. Portrait images cannot exceed viewport height. */
.acg-game-lightbox {
    padding: 0 !important;
}

.acg-game-lightbox__backdrop,
.acg-game-lightbox__backdrop:hover {
    pointer-events: auto !important;
    cursor: zoom-out !important;
}

.acg-game-lightbox__dialog {
    pointer-events: auto !important;
    cursor: zoom-out;
}

.acg-game-lightbox__dialog img,
.acg-game-lightbox__dialog img:hover,
.acg-game-lightbox__dialog img:focus,
.acg-game-lightbox__dialog img:active {
    display: block !important;
    cursor: zoom-out !important;
}

@media (max-width: 980px) {
    .acg-game-hero {
        grid-template-columns: 1fr !important;
    }

    .acg-game-metrics {
        width: max-content !important;
        justify-self: start !important;
    }
}

@media (max-width: 640px) {
    .acg-game-single {
    }

    .acg-game-lightbox__dialog {
        padding: 8px !important;
    }

    .acg-game-lightbox__dialog img,
    .acg-game-lightbox__dialog img:hover,
    .acg-game-lightbox__dialog img:focus,
    .acg-game-lightbox__dialog img:active {
        max-width: calc(100dvw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
    }
}
.acg-game-single {
    margin-top: 6px !important;
}

.acg-game-hero {
    margin-bottom: 12px !important;
    padding: 10px 18px !important;
    border-radius: var(--acg-ng-radius-region) !important;
}

.acg-game-heading-cluster {
    gap: 12px !important;
}

.acg-game-back {
    width: 40px !important;
    height: 40px !important;
    margin-top: 1px !important;
}

.acg-game-title {
    font-size: var(--acg-ng-font-heading) !important;
    line-height: 1.1 !important;
}

.acg-game-original-title {
    margin-top: 4px !important;
}
.acg-game-main {
    grid-template-columns: minmax(0, 1.16fr) minmax(360px, 1fr) !important;
    align-items: start !important;
    height: auto !important;
    gap: clamp(14px, 1.6vw, 22px) !important;
}

.acg-game-media-card {
    height: auto !important;
}

.acg-game-details-card {
    min-height: 0 !important;
    overflow: hidden !important;
}

.acg-game-viewer {
    flex: none !important;
    padding: 10px 10px 0 !important;
}

.acg-game-stage {
    position: relative !important;
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
}
.acg-game-single .acg-game-active-image,
.acg-game-single .acg-game-active-image:hover,
.acg-game-single .acg-game-active-image:focus,
.acg-game-single .acg-game-active-image:focus-visible,
.acg-game-single .acg-game-active-image:active {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    background-color: var(--acg-ng-bg-media);
    filter: none !important;
    transform: none !important;
}

.acg-game-thumbs {
    gap: 8px !important;
    margin-top: 8px !important;
    padding-bottom: 7px !important;
}

.acg-game-thumb {
    flex-basis: clamp(72px, 6.2vw, 94px) !important;
    height: clamp(48px, 4.1vw, 60px) !important;
}

.acg-game-access {
    padding: 12px 14px !important;
}

.acg-game-single .ccc-download-btn {
    height: 42px !important;
}
.acg-game-lightbox__dialog {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 16px 68px !important;
}

.acg-game-lightbox__dialog img,
.acg-game-lightbox__dialog img:hover,
.acg-game-lightbox__dialog img:focus,
.acg-game-lightbox__dialog img:active {
    grid-area: 1 / 1 !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100dvw - 136px) !important;
    max-height: calc(100dvh - 32px) !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.acg-game-lightbox__nav {
    position: fixed !important;
    top: 50% !important;
    z-index: 4 !important;
    display: grid !important;
    place-items: center !important;
    width: 50px !important;
    height: 66px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    border: var(--acg-ng-border-standard) !important;
    border-radius: var(--acg-ng-radius-region) !important;
    background: var(--acg-ng-bg-floating);
    color: var(--acg-ng-text-primary);
    box-shadow: none !important;
    filter: none !important;
    cursor: pointer !important;
    -webkit-backdrop-filter: var(--acg-ng-backdrop-control) !important;
    backdrop-filter: var(--acg-ng-backdrop-control) !important;
}

.acg-game-lightbox__nav.is-previous { left: 14px !important; }
.acg-game-lightbox__nav.is-next { right: 14px !important; }

.acg-game-lightbox__nav:hover,
.acg-game-lightbox__nav:focus,
.acg-game-lightbox__nav:focus-visible,
.acg-game-lightbox__nav:active {
    transform: translateY(-50%) !important;
    border-color: var(--acg-ng-border-accent) !important;
    background: var(--acg-ng-bg-floating);
    color: var(--acg-ng-text-primary);
    box-shadow: none !important;
    outline: none !important;
}

.acg-game-lightbox__nav svg {
    width: 25px !important;
    height: 25px !important;
}

.acg-game-lightbox__counter {
    position: fixed !important;
    left: 50% !important;
    bottom: 14px !important;
    z-index: 4 !important;
    min-width: 58px !important;
    padding: 7px 12px !important;
    transform: translateX(-50%) !important;
    border: var(--acg-ng-border-standard) !important;
    border-radius: var(--acg-ng-radius-pill) !important;
    background: var(--acg-ng-bg-floating);
    color: var(--acg-ng-text-secondary);
    font-size: var(--acg-ng-font-caption) !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    text-align: center !important;
    pointer-events: none !important;
}

@media (max-width: 1180px) {
    .acg-game-main {
        grid-template-columns: minmax(0, 1.08fr) minmax(330px, 1fr) !important;
    }
}

@media (max-width: 760px) {
    .acg-game-single {
        margin-top: 2px !important;
    }

    .acg-game-hero {
        padding: 9px 11px !important;
        margin-bottom: 10px !important;
    }

    .acg-game-main {
        grid-template-columns: 1fr !important;
    }

    .acg-game-details-card {
        height: auto !important;
    }

    .acg-game-stage {
        aspect-ratio: 16 / 10 !important;
    }

    .acg-game-lightbox__dialog {
        padding: 8px 48px !important;
    }

    .acg-game-lightbox__dialog img,
    .acg-game-lightbox__dialog img:hover,
    .acg-game-lightbox__dialog img:focus,
    .acg-game-lightbox__dialog img:active {
        max-width: calc(100dvw - 96px) !important;
        max-height: calc(100dvh - 16px) !important;
    }

    .acg-game-lightbox__nav {
        width: 40px !important;
        height: 56px !important;
        border-radius: var(--acg-ng-radius-card) !important;
    }

    .acg-game-lightbox__nav.is-previous { left: 5px !important; }
    .acg-game-lightbox__nav.is-next { right: 5px !important; }
}
.acg-game-single .acg-game-active-video,
.acg-game-single .acg-game-active-video:hover,
.acg-game-single .acg-game-active-video:focus-within {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--acg-ng-bg-media);
    transform: none !important;
    filter: none !important;
}

.acg-game-single .acg-game-active-video > video,
.acg-game-single .acg-game-active-video > iframe {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: var(--acg-ng-bg-media);
    transform: none !important;
}

.acg-game-video-poster {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--acg-ng-bg-media);
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    pointer-events: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

.acg-game-video-poster[hidden],
.acg-game-active-video.is-playing .acg-game-video-poster {
    display: none !important;
}
.acg-game-single .acg-game-video-play,
.acg-game-single .acg-game-video-play:hover,
.acg-game-single .acg-game-video-play:focus,
.acg-game-single .acg-game-video-play:focus-visible,
.acg-game-single .acg-game-video-play:active {
    position: absolute !important;
    inset: auto !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    z-index: 3 !important;
    align-self: auto !important;
    justify-self: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

.acg-game-single .acg-game-video-play:hover,
.acg-game-single .acg-game-video-play:focus-visible {
    transform: translate(-50%, -50%) scale(1.06) !important;
}
.acg-game-tags-block {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 14px !important;
    row-gap: 0 !important;
}

.acg-game-tags-block .acg-game-detail-label {
    margin: 5px 0 0 !important;
    white-space: nowrap !important;
}

.acg-game-tags-block .acg-game-tags.acgsl-tags {
    display: flex !important;
    align-items: center !important;
    align-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: var(--acg-ng-tag-gap) !important;
    min-width: 0 !important;
    width: 100% !important;
    max-height: 112px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}


.acg-game-tags-block .acg-game-empty-inline {
    align-self: center;
    font-size: var(--acg-ng-font-body) !important;
}

@media (max-width: 640px) {
    .acg-game-tags-block {
        column-gap: 10px !important;
    }

    .acg-game-tags-block .acg-game-tags.acgsl-tags {
        max-height: none !important;
    }
}
.acg-game-details-card {
    grid-template-rows: minmax(0, 1fr) auto !important;
}

.acg-game-info-footer {
    --acg-game-info-left-width: max-content;
    display: grid !important;
    grid-template-columns: minmax(0, var(--acg-game-info-left-width)) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: clamp(16px, 1.35vw, 22px) !important;
    min-width: 0 !important;
    padding: 12px 16px 13px !important;
    border-top: var(--acg-ng-border-standard) !important;
    background: var(--acg-ng-bg-region);
}

.acg-game-info-footer.is-tags-only {
    grid-template-columns: minmax(0, 1fr) !important;
}

.acg-game-rating-meta-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 9px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.acg-game-rating-meta-column .acg-game-rating-content,
.acg-game-rating-meta-column .acg-rating,
.acg-game-rating-meta-column .acg-rating--interactive {
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.acg-game-rating-meta-column .acg-game-meta-pills {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.acg-game-rating-meta-column .acg-game-meta-pill {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    min-width: 0 !important;
    min-height: 38px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 7px 12px !important;
    overflow: visible !important;
    border: var(--acg-ng-border-standard) !important;
    border-radius: var(--acg-ng-radius-card) !important;
    background: var(--acg-ng-bg-accent-soft);
    color: var(--acg-ng-text-primary);
    white-space: normal !important;
}

.acg-game-rating-meta-column .acg-game-meta-pill small,
.acg-game-rating-meta-column .acg-game-meta-pill strong {
    min-width: 0 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    color: inherit !important;
}

.acg-game-rating-meta-column .acg-game-meta-pill small {
    flex: 0 0 auto !important;
    color: var(--acg-ng-text-secondary);
    font-size: var(--acg-ng-font-small) !important;
    font-weight: 500 !important;
}

.acg-game-rating-meta-column .acg-game-meta-pill strong {
    flex: 0 1 auto !important;
    overflow: visible !important;
    font-size: var(--acg-ng-font-body) !important;
    font-weight: 680 !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
}
.acg-game-info-footer .acg-game-tags-block {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    align-items: start !important;
    align-self: stretch !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 0 clamp(14px, 1.1vw, 20px) !important;
    border: 0 !important;
    border-left: var(--acg-ng-border-standard) !important;
    background: transparent !important;
}

.acg-game-info-footer .acg-game-tags-block .acg-game-detail-label {
    align-self: start !important;
    margin: 6px 0 0 !important;
    white-space: nowrap !important;
}

.acg-game-info-footer .acg-game-tags-block .acg-game-tags.acgsl-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    gap: var(--acg-ng-tag-gap) !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.acg-game-info-footer .acg-game-tags-block .acg-game-tags.acgsl-tags > [hidden] {
    display: none !important;
}
.acg-game-single .acg-game-tags-toggle,
.acg-game-single .acg-game-tags-toggle:hover,
.acg-game-single .acg-game-tags-toggle:focus,
.acg-game-single .acg-game-tags-toggle:focus-visible,
.acg-game-single .acg-game-tags-toggle:active {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px 13px !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    border: var(--acg-ng-border-accent-line) !important;
    border-radius: var(--acg-ng-radius-card) !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--acg-ng-text-primary);
    font: inherit !important;
    font-size: var(--acg-ng-font-body) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: border-color var(--acg-ng-transition-normal), background-color var(--acg-ng-transition-normal) !important;
}

.acg-game-single .acg-game-tags-toggle:hover,
.acg-game-single .acg-game-tags-toggle:focus-visible {
    border-color: var(--acg-ng-border-accent) !important;
    background: var(--acg-ng-bg-control-hover);
}

.acg-game-single .acg-game-tags-toggle.is-expanded {
    color: var(--acg-ng-text-secondary);
}

@media (max-width: 760px) {
    .acg-game-details-card {
        grid-template-rows: auto auto !important;
    }

    .acg-game-info-footer {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        padding: 13px 15px 15px !important;
    }

    .acg-game-rating-meta-column {
        width: 100% !important;
    }

    .acg-game-rating-meta-column .acg-game-meta-pills {
        width: 100% !important;
    }

    .acg-game-info-footer .acg-game-tags-block {
        padding: 13px 0 0 !important;
        border-left: 0 !important;
        border-top: var(--acg-ng-border-standard) !important;
    }

    .acg-game-single .acg-game-tags-toggle,
    .acg-game-single .acg-game-tags-toggle:hover,
    .acg-game-single .acg-game-tags-toggle:focus,
    .acg-game-single .acg-game-tags-toggle:focus-visible,
    .acg-game-single .acg-game-tags-toggle:active {
        font-size: var(--acg-ng-font-body) !important;
    }
}
.acg-game-original-title {
    min-height: 1.45em;
}

.acg-game-original-title.is-empty {
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

.acg-game-thumbs {
    min-height: calc(clamp(48px, 4.1vw, 60px) + 15px);
}

@media (max-width: 767px) {
    .acg-game-original-title {
        min-height: 1.45em;
    }
}

/* 1.0.21: The image-expand and video-fullscreen toolbar controls are neutral
 * viewer controls. Keep every focus/pressed state inside the Night Glass
 * palette so theme-level destructive/red button rules cannot leak in after
 * the lightbox or native fullscreen view closes. */
html body article.acg-game-single button.acg-game-expand,
html body article.acg-game-single button.acg-game-expand:hover,
html body article.acg-game-single button.acg-game-expand:focus,
html body article.acg-game-single button.acg-game-expand:focus-visible,
html body article.acg-game-single button.acg-game-expand:active,
html body article.acg-game-single button.acg-game-video-fullscreen,
html body article.acg-game-single button.acg-game-video-fullscreen:hover,
html body article.acg-game-single button.acg-game-video-fullscreen:focus,
html body article.acg-game-single button.acg-game-video-fullscreen:focus-visible,
html body article.acg-game-single button.acg-game-video-fullscreen:active {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: var(--acg-ng-border-standard) !important;
    border-color: var(--acg-ng-border-default) !important;
    background: var(--acg-ng-bg-control) !important;
    background-color: var(--acg-ng-bg-control) !important;
    background-image: none !important;
    color: var(--acg-ng-text-secondary) !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    outline: none !important;
}

html body article.acg-game-single button.acg-game-expand:hover,
html body article.acg-game-single button.acg-game-expand:focus-visible,
html body article.acg-game-single button.acg-game-video-fullscreen:hover,
html body article.acg-game-single button.acg-game-video-fullscreen:focus-visible {
    border-color: var(--acg-ng-border-accent) !important;
    background: var(--acg-ng-bg-control-hover) !important;
    background-color: var(--acg-ng-bg-control-hover) !important;
    color: var(--acg-ng-text-primary) !important;
    box-shadow: var(--acg-ng-shadow-focus) !important;
}

html body article.acg-game-single button.acg-game-expand:active,
html body article.acg-game-single button.acg-game-video-fullscreen:active {
    border-color: var(--acg-ng-border-accent) !important;
    background: var(--acg-ng-bg-control-active) !important;
    background-color: var(--acg-ng-bg-control-active) !important;
    color: var(--acg-ng-text-primary) !important;
    box-shadow: none !important;
}

html body article.acg-game-single button.acg-game-expand::before,
html body article.acg-game-single button.acg-game-expand::after,
html body article.acg-game-single button.acg-game-video-fullscreen::before,
html body article.acg-game-single button.acg-game-video-fullscreen::after {
    content: none !important;
    display: none !important;
}

html body article.acg-game-single button.acg-game-expand svg,
html body article.acg-game-single button.acg-game-expand svg *,
html body article.acg-game-single button.acg-game-video-fullscreen svg,
html body article.acg-game-single button.acg-game-video-fullscreen svg * {
    color: currentColor !important;
    fill: none !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Keep the lightbox close control neutral as well. This is separate from the
 * toolbar expand button fixed above. */
html body .acg-game-lightbox button.acg-game-lightbox__close,
html body .acg-game-lightbox button.acg-game-lightbox__close:hover,
html body .acg-game-lightbox button.acg-game-lightbox__close:focus,
html body .acg-game-lightbox button.acg-game-lightbox__close:focus-visible,
html body .acg-game-lightbox button.acg-game-lightbox__close:active {
    -webkit-appearance: none !important;
    appearance: none !important;
    top: 12px !important;
    right: 12px !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: var(--acg-ng-border-accent-line) !important;
    border-color: var(--acg-ng-border-accent) !important;
    border-radius: var(--acg-ng-radius-card) !important;
    background: var(--acg-ng-bg-floating) !important;
    background-color: var(--acg-ng-bg-floating) !important;
    background-image: none !important;
    color: var(--acg-ng-text-primary) !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    outline: none !important;
    transform: none !important;
}

html body .acg-game-lightbox button.acg-game-lightbox__close::before,
html body .acg-game-lightbox button.acg-game-lightbox__close::after {
    content: none !important;
    display: none !important;
}

html body .acg-game-lightbox button.acg-game-lightbox__close svg,
html body .acg-game-lightbox button.acg-game-lightbox__close svg * {
    color: currentColor !important;
    fill: none !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    filter: none !important;
}

/* 1.0.22: Use the browser/provider player directly. The previous custom
 * poster and play-button layers sat above the native control strip and seek
 * bar. Keep them disabled as a cache-safe guard for stale server markup. */
.acg-game-single .acg-game-video-poster,
.acg-game-single .acg-game-video-play {
    display: none !important;
    pointer-events: none !important;
}

.acg-game-single .acg-game-active-video > video,
.acg-game-single .acg-game-active-video > iframe {
    z-index: 1 !important;
    pointer-events: auto !important;
}


/* 1.0.23: Mobile-resilient media rendering. Active images use a real eager
 * <img> element while the wrapper retains the existing lightbox interaction.
 * High specificity isolates it from Elementor/theme image sizing rules. */
.acg-game-single .acg-game-active-image > .acg-game-active-image__media,
.acg-game-single .acg-game-active-image:hover > .acg-game-active-image__media,
.acg-game-single .acg-game-active-image:focus > .acg-game-active-image__media,
.acg-game-single .acg-game-active-image:focus-visible > .acg-game-active-image__media,
.acg-game-single .acg-game-active-image:active > .acg-game-active-image__media {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: var(--acg-ng-bg-media) !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: none !important;
}

/* Do not depend solely on aspect-ratio for the mobile stage. Older embedded
 * WebViews can otherwise collapse absolutely positioned media to zero height. */
@media (max-width: 760px) {
    .acg-game-single .acg-game-stage {
        min-height: min(62.5vw, 520px) !important;
    }
}
