/* Configurable homepage section artwork: color, then image, then interactive content. */
.cg-section--visual{position:relative;isolation:isolate;overflow:hidden;padding:12px 10px 22px 16px;border-radius:0;background:var(--home-section-background,transparent)}
.cg-section--visual .cg-section-header--visual h2{color:var(--home-section-title-color,inherit)}
:root:not([data-theme="light"]) [data-home-style-theme="light"],
:root[data-theme="light"] [data-home-style-theme="dark"],
:root:not([data-theme="light"]) [data-home-visual-theme="light"],
:root[data-theme="light"] [data-home-visual-theme="dark"]{display:none}
.cg-section__games{min-width:0}
.cg-section__games .cg-carousel{max-width:100%}
:root[data-theme="light"] .cg-section--visual{background:var(--home-section-background-light,transparent)}
:root[data-theme="light"] .cg-section--visual .cg-section-header--visual h2{color:var(--home-section-title-color-light,inherit)}
.cg-main--home{padding-right:0;padding-left:11px}
@media(max-width:820px){.cg-main--home{padding-left:10px}}
.cg-main--home .cg-section--visual{max-width:none;margin-right:0;padding-right:0}
.cg-section--visual>.cg-section__background-image{position:absolute;inset:0;z-index:0;background-repeat:no-repeat;background-position:right center;background-size:auto 100%;pointer-events:none}
.cg-section--visual>.cg-section__content{position:relative;z-index:1}
.cg-section--visual .cg-section-header--visual{margin-bottom:4px}
.cg-section--visual:not(:has(.cg-section__description)) .cg-section-header--visual{margin-bottom:10px}
@media(max-width:820px){.cg-section--visual:not(:has(.cg-section__description)) .cg-section-header--visual{margin-bottom:10px}}
.cg-main--home .cg-section-header h2{font-size:21px}
.cg-main--home .cg-section--visual .cg-section-header--visual h2{display:flex;align-items:center;font-size:23px}
@media(max-width:820px){.cg-main--home .cg-section--visual .cg-section-header--visual h2{font-size:21px}}
.cg-section--visual .cg-section-header--visual h2>a{display:inline-flex;align-items:center;min-height:32px;gap:8px;color:inherit;text-decoration:none}
.cg-section__icon{width:32px;height:32px;object-fit:contain;flex:none}
:root:not([data-theme="light"]) .cg-section--visual:has(.cg-section__meta .cg-section__description) .cg-section-header--visual h2>a:has(.cg-section__icon[data-home-visual-theme="dark"]),
:root[data-theme="light"] .cg-section--visual:has(.cg-section__meta .cg-section__description) .cg-section-header--visual h2>a:has(.cg-section__icon[data-home-visual-theme="light"]){position:relative;padding-left:64px}
.cg-section--visual:has(.cg-section__meta .cg-section__description) .cg-section-header--visual .cg-section__icon{position:absolute;top:0;left:0;width:56px;height:56px}
:root:not([data-theme="light"]) .cg-section--visual:has(.cg-section__meta .cg-section__description):has(.cg-section__icon[data-home-visual-theme="dark"]) .cg-section__meta,
:root[data-theme="light"] .cg-section--visual:has(.cg-section__meta .cg-section__description):has(.cg-section__icon[data-home-visual-theme="light"]) .cg-section__meta{margin-left:64px}
:root:not([data-theme="light"]) .cg-section--visual:not(:has(.cg-section__icon[data-home-visual-theme="dark"])) .cg-section__meta:not(:has(.cg-section__chip)),
:root[data-theme="light"] .cg-section--visual:not(:has(.cg-section__icon[data-home-visual-theme="light"])) .cg-section__meta:not(:has(.cg-section__chip)){margin-left:0}
.cg-section__meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;margin:0 0 10px;font-size:12px}
.cg-section--visual .cg-section__meta:has(.cg-section__chip){margin-left:42px}
.cg-section__chip{display:inline-flex;align-items:center;gap:5px;border-radius:30px;padding:2px 8px;background:rgba(0,0,0,.4);white-space:nowrap}.cg-section__chip-icon{display:inline-block;width:14px;height:14px;flex:none;background:currentColor;mask:var(--cg-chip-icon) center/contain no-repeat;-webkit-mask:var(--cg-chip-icon) center/contain no-repeat}
.cg-section__description{color:inherit;opacity:.84;font-size:14px}
@media(max-width:820px){.cg-section--visual{padding:10px 8px 18px 12px}.cg-section--visual .cg-section-header--visual h2>a{min-height:26px}.cg-section__icon{width:26px;height:26px}:root:not([data-theme="light"]) .cg-section--visual:has(.cg-section__meta .cg-section__description) .cg-section-header--visual h2>a:has(.cg-section__icon[data-home-visual-theme="dark"]),:root[data-theme="light"] .cg-section--visual:has(.cg-section__meta .cg-section__description) .cg-section-header--visual h2>a:has(.cg-section__icon[data-home-visual-theme="light"]){padding-left:60px}.cg-section--visual:has(.cg-section__meta .cg-section__description) .cg-section-header--visual .cg-section__icon{width:52px;height:52px}.cg-section__meta{margin-left:0}.cg-section--visual .cg-section__meta:has(.cg-section__chip){margin-left:0}:root:not([data-theme="light"]) .cg-section--visual:has(.cg-section__meta .cg-section__description):has(.cg-section__icon[data-home-visual-theme="dark"]) .cg-section__meta,:root[data-theme="light"] .cg-section--visual:has(.cg-section__meta .cg-section__description):has(.cg-section__icon[data-home-visual-theme="light"]) .cg-section__meta{margin-left:60px}.cg-section--visual>.cg-section__background-image{background-size:auto 72%;background-position:right top}}
/* Site chrome and interactive states */
body,
.cg-topbar {
    background: var(--cg-background);
}

/* Stop elastic overscroll at the edge of the surface being scrolled. */
.cg-modal__panel {
    overscroll-behavior: none;
}
.cg-sidebar__scroll,
.cg-search__suggestions,
.cg-locale-switcher .site-locale-switcher__menu {
    overscroll-behavior-y: none;
}
.cg-carousel,
.cg-dot-scroll {
    overscroll-behavior-x: none;
}
.cg-section__games :is(.cg-carousel, .cg-dot-scroll):has(> .cg-section__view-all) {
    padding-inline-end: 10px;
    scroll-padding-inline-end: 10px;
}
/* End the final dot group at the last occupied column so the link follows the games. */
.cg-dot-group:has(+ .cg-section__view-all) {
    grid-template-columns: none;
    grid-auto-columns: var(--dot-cell);
}
.cg-section__view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: clamp(10px, 1vw, 18px);
    border-radius: var(--cg-cover-radius);
    background-color: var(--cg-view-all-background, var(--cg-surface-2));
    color: var(--cg-text);
    line-height: 1.25;
    transition: background-color .18s ease;
}
:root[data-theme="light"] .cg-section__view-all {
    --cg-view-all-background: #e8e8e8;
    --cg-view-all-hover-background: #dedede;
}
.cg-carousel > .cg-section__view-all {
    align-self: start;
    aspect-ratio: 16 / 9;
    scroll-snap-align: end;
}
.cg-dot-scroll > .cg-section__view-all {
    flex: 0 0 var(--dot-cell);
    align-self: stretch;
}
.cg-section__view-all > span {
    display: grid;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.cg-section__view-all strong {
    font-size: clamp(13px, 1vw, 17px);
}
.cg-section__view-all > span > span {
    color: var(--cg-muted);
    font-size: 12px;
}
:root[data-theme="light"] .cg-section__view-all > span > span {
    color: #4d4d4d;
    font-weight: 600;
}
.cg-section__view-all .cg-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    color: var(--cg-text);
    font-size: 16px;
}
.cg-section__view-all:is(:hover, :focus-visible) {
    background-color: var(--cg-view-all-hover-background, var(--cg-surface-3));
}
.cg-section__view-all:focus-visible {
    outline: 2px solid var(--cg-accent);
    outline-offset: -2px;
}

.cg-topbar {
    backdrop-filter: none;
    border-bottom-color: transparent;
}
.cg-sidebar { background: rgba(255, 255, 255, .96); }
@media (min-width: 821px) {
    .cg-sidebar {
        top: calc(var(--cg-topbar) + 10px);
        bottom: auto;
        left: 8px;
        display: flex;
        flex-direction: column;
        width: calc(var(--cg-sidebar) - 8px);
        max-height: calc(100dvh - var(--cg-topbar) - 22px);
        padding-block: 14px;
        border: 0;
        border-radius: 30px;
        corner-shape: superellipse(1.6);
        background: #fff;
        box-shadow: 0 2px 12px rgba(39, 45, 81, .08);
    }
    .cg-sidebar__scroll {
        height: auto;
        min-height: 0;
        padding: 0 6px;
    }
    .cg-sidebar__link {
        padding-inline: 11px;
    }
    .cg-sidebar__link + .cg-sidebar__link {
        margin-block-start: 4px;
    }
    .cg-sidebar:is(:hover, :focus-within) {
        box-shadow: 0 4px 16px rgba(39, 45, 81, .10);
    }
}
.cg-footer {
    display: grid;
    grid-template-columns: minmax(232px, 1fr) repeat(2, minmax(108px, 150px));
    justify-content: center;
    align-items: start;
    gap: 24px clamp(32px, calc(10vw - 40px), 120px);
    margin-left: var(--cg-sidebar);
    padding: 48px 22px 20px;
    padding-inline: max(22px, calc((100% - var(--cg-sidebar) - 1000px) / 2));
    background: transparent;
    color: var(--cg-muted);
    font-size: 13px;
}
.cg-footer__brand,
.cg-footer__group {
    display: grid;
    justify-items: start;
}
.cg-footer__brand { gap: 16px; }
.cg-footer__home img {
    display: block;
    width: 156px;
    height: auto;
}
.cg-footer .cg-app-downloads {
    flex-wrap: wrap;
    gap: 8px;
}
.cg-footer .cg-app-download { padding: 0; }
[data-theme="dark"] .cg-footer .cg-app-download {
    isolation: isolate;
    overflow: hidden;
    border-radius: 6px;
    background: var(--cg-surface-2);
}
[data-theme="dark"] .cg-footer .cg-app-download img { mix-blend-mode: lighten; }
.cg-footer .cg-app-download img {
    display: block;
    width: auto;
    height: 32px;
}
.cg-footer__group { gap: 4px; }
.cg-footer__group strong {
    color: var(--cg-text);
    font-weight: 600;
    margin-bottom: 4px;
}
.cg-footer__group a,
.cg-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}
.cg-footer a:is(:hover, :focus-visible) { color: var(--cg-accent-hover); }
.cg-footer__bottom,
.cg-footer__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.cg-footer__bottom {
    grid-column: 1 / -1;
    justify-content: space-between;
    font-size: 12px;
}
.cg-footer__bottom small {
    color: var(--cg-subtle);
    font-size: inherit;
}
@media (max-width: 820px) {
    .cg-footer {
        margin-left: 0;
        padding-inline: 10px;
    }
}
@media (max-width: 600px) {
    .cg-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .cg-footer__brand { grid-column: 1 / -1; }
}

.cg-sidebar__link .cg-sidebar__category-image { display:block; width:26px; height:26px; flex:0 0 26px; object-fit:contain; }
.cg-account-nav .cg-icon-btn,
.cg-login-btn[data-signed-in] {
    border-radius: 18px;
    corner-shape: superellipse(2);
}
.cg-account-nav .cg-icon-btn:focus-visible {
    color: var(--cg-accent-hover);
    background: var(--cg-selection);
}

.cg-app-download,
.cg-modal__close,
.cg-carousel-controls button,
.cg-search__game-title strong,
.cg-seo-copy :is(h1, h2),
.cg-library-empty h3 { color: var(--cg-text); }

.cg-search input::placeholder,
.cg-auth__form input::placeholder {
    color: var(--cg-subtle);
    opacity: 1;
}

[data-theme="dark"] .cg-search {
    background: #141414;
    border-color: rgb(255 255 255 / .2);
}
.cg-topbar .cg-search {
    --cg-search-transition: .46s cubic-bezier(.42, 0, .3, 1);
    transition: border-color var(--cg-search-transition), box-shadow var(--cg-search-transition);
}
.cg-topbar .cg-search:focus-within {
    border-color: var(--cg-accent);
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--cg-accent) 18%, transparent),
        0 0 24px 3px color-mix(in srgb, var(--cg-accent) 42%, transparent);
}
.cg-topbar .cg-search__suggestions { border-radius: 18px; }
@media (max-width: 820px) {
    .cg-topbar .cg-search input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .cg-topbar .cg-search { transition: none; }
}

.cg-sidebar__link:hover,
.cg-icon-btn:hover,
.cg-login-btn[data-signed-in]:is(:hover, :focus-visible),
.cg-search__suggestions a:is(:hover, [aria-selected="true"]),
.cg-locale-switcher .site-locale-switcher__btn:is(:hover, [aria-expanded="true"]) {
    color: var(--cg-accent-hover);
    background: var(--cg-selection);
}

.cg-sidebar .cg-sidebar__link[aria-current="page"] {
    background: var(--cg-accent);
    color: var(--cg-on-accent);
}

.cg-locale-switcher .site-locale-switcher__menu {
    width: min(328px, calc(100vw - 32px));
    min-width: 0;
    max-height: min(400px, calc(100dvh - var(--cg-topbar) - 24px));
    padding: 8px;
    border-radius: 16px;
    scroll-padding-block: 8px;
}
.cg-locale-switcher .site-locale-switcher__menu:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 6px;
}
.cg-locale-switcher .site-locale-switcher__opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    height: 100%;
    padding: 8px 10px;
    gap: 6px;
    border-radius: 9px;
    color: var(--cg-text);
    line-height: 1.4;
}
.cg-locale-switcher .site-locale-switcher__opt::before { order: 1; flex: none; }
.cg-locale-switcher .site-locale-switcher__opt-name { font-weight: 400; overflow-wrap: anywhere; }
.cg-locale-switcher .site-locale-switcher__opt:hover {
    background: var(--cg-surface-2);
    color: var(--cg-text);
}
.cg-locale-switcher .site-locale-switcher__opt:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}
.cg-locale-switcher .site-locale-switcher__opt.is-active {
    background: var(--cg-selection);
    color: var(--cg-accent-hover);
}
.cg-locale-switcher .is-active .site-locale-switcher__opt-name { font-weight: 600; }
@media (max-width: 360px) {
    .cg-locale-switcher .site-locale-switcher__menu { width: min(212px, calc(100vw - 24px)); }
    .cg-locale-switcher .site-locale-switcher__menu:not([hidden]) { grid-template-columns: 1fr; }
}

.cg-search__suggestions .cg-search__all,
.cg-modal__eyebrow,
.cg-auth__links button { color: var(--cg-accent-hover); }

.cg-auth__form input:focus {
    border-color: var(--cg-accent);
    box-shadow: 0 0 0 3px rgba(77, 91, 253, .18);
}

.cg-game-card__play,
.cg-library-item .li-play-rounded {
    width: 36px;
    height: 36px;
    border-radius: var(--cg-control-radius);
    background: var(--cg-accent);
    color: var(--cg-on-accent);
    font-size: 18px;
}

.cg-login-btn,
.cg-auth__form > button { background: var(--cg-accent); color: var(--cg-on-accent); }

:is(.cg-game-card, .cg-player-toolbar) :is([data-game-like], [data-favorite-toggle]) {
    --cg-action-selected-color: #2caefe;
}
.cg-player-toolbar [data-game-dislike] {
    --cg-action-selected-color: #ec7f63;
}
.cg-player-toolbar {
    --cg-action-selected-background: var(--cg-surface-2);
}
.cg-game-card :is(.cg-favorite-btn, .cg-like-btn),
.cg-player-toolbar :is([data-game-like], [data-game-dislike], [data-favorite-toggle]) {
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .12s ease-out;
}
.cg-game-card :is(.cg-favorite-btn, .cg-like-btn)[aria-pressed="true"],
.cg-player-toolbar :is([data-game-like], [data-game-dislike], [data-favorite-toggle])[aria-pressed="true"] {
    background: var(--cg-action-selected-background, transparent);
    color: var(--cg-text);
    box-shadow: none;
}
.cg-game-card :is(.cg-favorite-btn, .cg-like-btn)[aria-pressed="true"] .cg-icon,
.cg-player-toolbar :is([data-game-like], [data-game-dislike], [data-favorite-toggle])[aria-pressed="true"] .cg-icon {
    color: var(--cg-action-selected-color);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .65));
}
.cg-game-card :is(.cg-favorite-btn, .cg-like-btn):focus-visible {
    outline: 2px solid var(--cg-on-accent);
    outline-offset: 2px;
}
[data-game-like] .cg-icon {
    position: relative;
}
.cg-like-splash {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--cg-action-selected-color);
    pointer-events: none;
}
[data-game-like][aria-pressed="false"] .cg-like-splash {
    visibility: hidden;
}
.cg-like-splash > span {
    grid-area: 1 / 1;
    width: 4px;
    height: 6px;
    border-radius: 65% 65% 55% 55%;
    background: currentColor;
}
.cg-like-splash > span:nth-child(even) {
    width: 3px;
    height: 4px;
}
.cg-player-toolbar nav {
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
    margin-inline-start: auto;
}
@media (prefers-reduced-motion: no-preference) {
    .cg-player-toolbar :is([data-game-like], [data-game-dislike], [data-favorite-toggle]):active {
        transform: scale(.97);
    }
}
@media (max-width: 520px) {
    .cg-player-toolbar { flex-wrap: wrap; row-gap: 8px; }
    .cg-player-toolbar nav { gap: 4px; }
    .cg-player-toolbar nav button { padding-inline: 10px; }
}

.cg-login-btn:is(:hover, :focus-visible) {
    background: var(--cg-accent-hover);
    color: var(--cg-on-accent);
}
:root[data-theme="light"] .cg-home-actions .cg-home-actions__button--random {
    border-color: #e3e3e3;
}
.cg-home-actions .cg-home-actions__button--top {
    background: var(--cg-accent);
    border-color: var(--cg-accent);
    color: var(--cg-on-accent);
}
.cg-home-actions .cg-home-actions__button--top:is(:hover, :focus-visible):not(:disabled) {
    background: var(--cg-accent-hover);
    border-color: var(--cg-accent-hover);
    transform: none;
}
.cg-home-actions .cg-home-actions__button--top:focus-visible {
    outline-color: var(--cg-accent);
}
.cg-login-btn .cg-account-avatar { display: none; }
.cg-login-btn[data-signed-in] {
    display: inline-flex;
    gap: 12px;
    padding-inline: 12px;
    background: transparent;
    color: var(--cg-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}
.cg-login-btn[data-signed-in]:focus-visible {
    outline: 2px solid var(--cg-accent);
    outline-offset: 2px;
}
.cg-login-btn[data-signed-in] > .cg-icon { display: none; }
.cg-login-btn[data-signed-in] .cg-account-avatar { display: block; }
.cg-account-avatar {
    display: block;
    position: relative;
    flex: none;
    width: 32px;
    height: 32px;
    background: url("../assets/brand/account-avatar-background.svg") no-repeat;
}
.cg-account-avatar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/brand/account-avatar-eyes.svg") 9.075px 16.892px no-repeat,
                url("../assets/brand/account-avatar-cat.svg") 2.6px 6.8px no-repeat;
    mask: url("../assets/brand/account-avatar-mask.svg") center no-repeat;
}
.cg-login-btn[data-signed-in] .cg-login-btn__label {
    max-inline-size: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 820px) {
    .cg-login-btn[data-signed-in] { padding-inline: 0; }
}
.cg-search > button,
.cg-toast i,
.cg-brand__mark,
.cg-cookie button,
.cg-primary-btn,
.cg-favorite-btn.active,
.cg-library-empty a { color: var(--cg-on-accent); }

.cg-dot-tile .cg-game-card__body,
.cg-featured-grid .cg-game-card__body { color: #fff; }

.cg-game-card:is(:hover, :focus-within) .cg-game-card__link {
    background: var(--cg-accent);
    border-color: var(--cg-accent);
    box-shadow: 0 12px 28px rgba(41, 51, 125, .22);
}

.cg-dot-tile .cg-game-card:is(:hover, :focus-within) .cg-game-card__body,
.cg-featured-grid .cg-game-card:is(:hover, :focus-within) .cg-game-card__body,
.cg-game-card:is(:hover, :focus-within) .cg-game-card__body {
    background: var(--cg-cover-hover);
}

/* Only the artwork needs rounded clipping; the caption must stay outside the clip. */
.cg-player-recommendations .cg-game-card__link {
    overflow: visible;
    border-radius: 0;
}
.cg-player-recommendations .cg-game-card:is(:hover, :focus-within) {
    transform: none;
}
.cg-player-recommendations .cg-game-card:is(:hover, :focus-within) .cg-game-card__link {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.cg-player-recommendations .cg-game-card:is(:hover, :focus-within) .cg-game-card__media {
    border-radius: var(--cg-cover-small-radius);
}
.cg-player-recommendations .cg-game-card:is(:hover, :focus-within) .cg-game-card__body {
    position: static;
    padding: 5px 1px 0;
    background: transparent;
}
.cg-player-recommendations .cg-game-card:is(:hover, :focus-within) .cg-game-card__title {
    color: var(--cg-accent-hover);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    text-shadow: none;
}
.cg-player-recommendations .cg-game-card:is(:hover, :focus-within)
    :is(.cg-game-card__stats, .cg-game-card__shade, .cg-game-card__play) {
    display: none;
}
@media (hover: hover) and (pointer: fine) {
    .cg-player-recommendations .cg-game-card:is(:hover, :focus-within) .cg-game-card__badge {
        opacity: 0;
    }
    .cg-player-recommendations .cg-game-card:is(:hover, :focus-within) img {
        transform: scale(1.05);
        filter: none;
    }
    .cg-player-recommendations .cg-like-btn {
        width: 26px;
        height: 26px;
        top: 4px;
        right: 34px;
    }
}

.cg-auth__form label,
.cg-auth__divider { color: var(--cg-muted); }
.cg-auth__form input,
.cg-auth__code > button,
.cg-auth__guest {
    color: var(--cg-text);
    background: var(--cg-surface-2);
    border-color: var(--cg-stroke);
}
.cg-auth__divider::before,
.cg-auth__divider::after { background: var(--cg-stroke); }
.cg-auth__error {
    color: #912438;
    background: #fff2f4;
    border-color: #efb7c0;
}
.cg-toast { color: var(--cg-text); background: var(--cg-selection); border-color: var(--cg-stroke); }

/* Surfaces, controls and type shared across catalog and content pages. */
.cg-player-shell:not(:fullscreen), .cg-player-recommendations, .cg-game-details__overview,
.cg-game-details__description, .cg-content-page, .cg-seo-copy, .cg-news-heading,
.cg-news-card, .cg-modal__panel { border-radius: var(--cg-panel-radius); }
.cg-player-layout > .cg-player-shell:is(:fullscreen, :-webkit-full-screen, .cg-player--expanded) {
    display: grid;
    grid-template: minmax(0, 1fr) auto / minmax(0, 1fr);
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
}
.cg-player-shell.cg-player--expanded {
    position: fixed;
    inset: 0;
    z-index: 3100;
}
html:has(.cg-player-shell.cg-player--expanded),
body:has(.cg-player-shell.cg-player--expanded) {
    overflow: hidden;
}
.cg-player-shell:is(:fullscreen, :-webkit-full-screen, .cg-player--expanded) > .cg-player-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
}
.cg-category-sort :is(select, button), .cg-sort-pills a, .cg-clear-search, .cg-category-chip,
.cg-player-toolbar button, .cg-game-details__actions button,
.cg-pagination:not(.cg-pagination--category) a, .cg-primary-btn, .cg-player-unavailable a,
.cg-auth__form input, .cg-auth__form > button, .cg-auth__code > button,
.cg-auth__social, .cg-auth__guest, .cg-library-empty a { border-radius: var(--cg-control-radius); }
.cg-auth__social { color: var(--cg-text); border: 1px solid var(--cg-stroke); }
.cg-modal__backdrop { background: rgba(28, 30, 56, .32); }
.cg-breadcrumb a:hover, .gp-news-back-link, .cg-content-page a { color: var(--cg-accent-hover); }
.cg-game-details :is(h1,h2,h3), .cg-content-page :is(h1,h2,h3,h4),
.gp-news-related__name { color: var(--cg-text); }
.cg-game-details__description p, .gp-news-lead { color: var(--cg-muted); }
.gp-news-updated, .gp-news-related__date { color: var(--cg-subtle); }
.cg-player-toolbar button:hover { color: var(--cg-on-accent); }
.cg-loading-art {
    position: relative;
    width: clamp(138px, 18.75vw, 200px);
    aspect-ratio: 8 / 5;
    mask-image: linear-gradient(to right, transparent, #000 8% 92%, transparent),
                linear-gradient(to bottom, transparent, #000 8% 92%, transparent);
    mask-composite: intersect;
}
.cg-loading-art > video { display: block; width: 100%; height: 100%; object-fit: contain; }
.cg-loading-art:not(:has(> video:not([hidden]))) { display: none; }
.cg-loading-art > [hidden] { display: none; }
.cg-player-loading p { margin: 10px 16px 0; text-align: center; font-weight: 500; }
.cg-player-loading, .cg-player-unavailable { background: var(--cg-surface-2); color: var(--cg-muted); }
[data-theme="light"] .cg-player-loading { background: #fcfbfa; }
[data-theme="dark"] .cg-player-loading { background: #2d2d2d; }
.cg-player-unavailable h2 { color: var(--cg-text); }
.gp-support-email-unavailable {
  background: var(--cg-selection); color: var(--cg-accent-hover);
}
.cg-player-stage { background: var(--cg-surface-2); }
.cg-pagination--category a:hover:not(.active) { color: var(--cg-accent-hover); }
.cg-listing-page .cg-pagination--category { box-shadow: var(--cg-shadow); }
[data-theme="dark"] .cg-pagination--category :is(a:not(.active), .cg-pagination__disabled) {
    background: transparent;
    color: var(--cg-muted);
}
[data-theme="dark"] .cg-pagination--category a:not(.active):is(:hover, :focus-visible) {
    background: var(--cg-selection);
    color: #b4baff;
}
[data-theme="dark"] .cg-pagination--category .cg-pagination__disabled { opacity: .55; }
.gp-legal-page, .gp-page-content { border-radius: var(--cg-panel-radius) !important; }
.gp-news-related__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(160px,100%),1fr)); gap: 16px; }
.gp-news-related__item { display: grid; align-content: start; gap: 6px; }
.gp-news-related__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--cg-cover-small-radius); }
.gp-news-article > .mb-3 img { border-radius: var(--cg-cover-radius) !important; }

/* Empty account dialogs share a compact panel. */
.cg-modal__panel:has(.cg-modal-empty) {
    width: min(460px, 100%);
}
.cg-modal__close {
    background: transparent;
}
.cg-modal__close .li-x {
    transform: scale(1.1);
}
.cg-modal__panel:has(.cg-modal-empty, .cg-favorites-note) h2 {
    margin: 0 40px 16px 0;
}
.cg-modal__panel > :is(.cg-modal__eyebrow, p):empty { display: none; }
.cg-modal-empty {
    min-height: 0;
    padding: 0 0 8px;
}
.cg-empty-state-art {
    width: min(155px, 55%);
    aspect-ratio: 330 / 300;
    /* Match the square source crop within the original Figma component. */
    background: url("../assets/brand/favorites-empty.webp") 45.61% 50.69% / 134.55% auto no-repeat;
}
#cgRecentPageEmpty {
    padding-block-start: clamp(24px, 5vh, 48px);
}
.cg-empty > .cg-empty-state-art + h2 {
    margin-bottom: 8px;
}
.cg-empty > .cg-empty-state-art + h2 + p {
    margin-top: 0;
}
.cg-player-stage:has(> .cg-player-unavailable) { display: grid; }
.cg-player-stage > .cg-player-unavailable { position: relative; }
@media (max-width: 600px) {
    .cg-player-unavailable > .cg-empty-state-art { width: 96px; }
}
.cg-modal-empty p {
    margin: 14px 0 20px;
    max-width: 32ch;
}
.cg-modal-empty a {
    border-radius: 999px;
    padding-inline: 20px;
}
.cg-favorites-note {
    color: var(--cg-muted);
    font-size: 12px;
    margin: 16px 0 0;
}

.cg-modal__panel:has(.cg-favorites-note) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#cgModalContent:has(.cg-favorites-note) {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 3px;
    margin: -3px;
}
.cg-library-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 14px;
}
.cg-library-item img {
    height: auto;
    aspect-ratio: 4 / 3;
}
.cg-library-item strong {
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}
@media (max-width: 620px) {
    .cg-library-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }
}

/* Keep the same centered brand mark while a cover is pending or unavailable. */
:root {
    --cg-cover-placeholder: var(--cg-placeholder-bg, #f4f4f4) url("../assets/brand/mellowcade-tab.png") center / min(32%, 96px) auto no-repeat;
}
:is(.cg-game-card__media, .cg-library-item, .cg-search__game, .cg-news-card__media, .gp-news-article > .mb-3) img:not([data-cover-state="ready"]),
.gp-news-related__img:not([data-cover-state="ready"]),
.cg-news-card__media--placeholder {
    background: var(--cg-cover-placeholder);
    color: transparent;
}
:is(.cg-game-card__media, .cg-library-item, .cg-search__game) img[src$="/assets/img/gameIcom.png"],
.gp-news-related__img[src$="/assets/img/favicon.png"],
img[data-cover-state="missing"] {
    content: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
    background: var(--cg-cover-placeholder);
}
.gp-news-article > .mb-3 img:not([data-cover-state="ready"]) {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.cg-account-nav .cg-theme-toggle {
    display: inline-grid;
    place-items: center;
}
:root[data-theme="dark"] { --cg-placeholder-bg: var(--cg-surface-2); }
[data-theme="dark"] .cg-sidebar { background: var(--cg-surface); box-shadow: var(--cg-shadow); }
[data-theme="dark"] .cg-modal__backdrop { background: rgb(0 0 0 / .55); }
[data-theme="dark"] .cg-game-preview__play { background: rgb(18 18 18 / .72); }
[data-theme="dark"] :is(.cg-news-heading, .cg-news-card__media) {
    --cg-selection: var(--cg-surface-2);
}
[data-theme="dark"] :is(.cg-search__all, .gp-news-back-link,
    .cg-content-page a:not(.btn, .btn-primary, .cg-primary-btn), .cg-news-card__more):not(:hover, :focus-visible) {
    color: var(--cg-muted);
    text-decoration: underline;
    text-underline-offset: .18em;
}
[data-theme="dark"] :is(.cg-modal__eyebrow, .cg-news-heading .cg-page-heading__eyebrow, .cg-news-kicker) {
    color: var(--cg-subtle);
}
[data-theme="dark"] :is(.cg-breadcrumb a:hover,
    .cg-icon-btn:hover, .cg-account-nav .cg-icon-btn:focus-visible, .cg-sidebar__link:hover:not([aria-current="page"]), .cg-search__suggestions a:is(:hover, [aria-selected="true"]),
    .cg-login-btn[data-signed-in]:is(:hover, :focus-visible),
    .cg-locale-switcher .site-locale-switcher__opt.is-active,
    .cg-locale-switcher .site-locale-switcher__btn:hover,
    .cg-auth__links button, .gp-news-back-link:hover, .cg-content-page a:hover,
    .cg-footer a:hover) {
    color: #b4baff;
}
[data-theme="dark"] .cg-auth__social { background: var(--cg-surface-2); }
[data-theme="dark"] .cg-auth__error {
    color: #ffc4cc;
    background: #402730;
    border-color: #74414c;
}
