:root {
    --cgr-bg: #f7fbff;
    --cgr-surface: #ffffff;
    --cgr-ink: #20253a;
    --cgr-muted: #687083;
    --cgr-line: #dce6f3;
    --cgr-pink: #ff5f9f;
    --cgr-blue: #29a9e8;
    --cgr-yellow: #ffd24c;
    --cgr-green: #30c98b;
    --cgr-shadow: 0 10px 24px rgba(30, 51, 88, .1);
    --cgr-radius: 8px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--cgr-bg);
    color: var(--cgr-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cgr-pink); }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cgr-site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 0 var(--cgr-line);
    backdrop-filter: blur(10px);
}
.cgr-header-inner {
    display: grid;
    grid-template-columns: auto 1fr minmax(180px, 260px);
    align-items: center;
    gap: 18px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 18px;
}
.cgr-logo,
.cgr-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    font-size: 26px;
    font-weight: 800;
    color: var(--cgr-blue);
}
.cgr-logo-mark {
    color: var(--cgr-pink);
}
.cgr-logo-image,
.cgr-footer-logo-image {
    width: auto;
}
.cgr-logo-image .custom-logo-link,
.cgr-footer-logo-image .custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 190px;
    max-height: 56px;
}
.custom-logo {
    width: auto;
    height: auto;
    max-width: 190px;
    max-height: 56px;
    object-fit: contain;
}
.cgr-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--cgr-line);
    border-radius: var(--cgr-radius);
    background: var(--cgr-surface);
    color: var(--cgr-ink);
    font-size: 22px;
}
.cgr-top-nav .cgr-menu,
.cgr-category-nav .cgr-menu,
.cgr-footer-nav .cgr-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.cgr-top-nav .cgr-menu {
    flex-wrap: wrap;
    justify-content: center;
}
.cgr-menu a {
    display: block;
    padding: 8px 11px;
    border-radius: var(--cgr-radius);
    font-size: 14px;
    font-weight: 700;
    color: var(--cgr-ink);
    background: #f0f6ff;
}
.cgr-category-nav {
    border-top: 1px solid var(--cgr-line);
    overflow-x: auto;
}
.cgr-category-nav .cgr-menu {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 18px;
    white-space: nowrap;
}
.cgr-category-nav .cgr-menu a {
    background: #fff2f8;
    color: #8a2652;
}
.cgr-search input {
    width: 100%;
    border: 1px solid var(--cgr-line);
    border-radius: 999px;
    padding: 10px 14px;
    background: #fff;
    color: var(--cgr-ink);
}

.cgr-site-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px;
}
.cgr-section {
    margin: 18px 0 28px;
}
.cgr-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 12px;
}
h1, h2, h3 {
    margin: 0 0 12px;
    line-height: 1.18;
}
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 14px; }
.cgr-section-heading > a {
    color: var(--cgr-blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.cgr-game-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.cgr-game-card {
    min-width: 0;
}
.cgr-game-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1 / .72;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: var(--cgr-radius);
    background: #eaf2fb;
    box-shadow: var(--cgr-shadow);
}
.cgr-game-thumb img,
.cgr-placeholder-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}
.cgr-placeholder-art {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .5), transparent 24%),
        linear-gradient(135deg, #ff7eb6 0%, #7bdff2 58%, #ffe66d 100%);
}
.cgr-placeholder-art span {
    color: #fff;
    font-size: 58px;
    font-weight: 900;
    text-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}
.cgr-game-thumb:hover img,
.cgr-game-thumb:hover .cgr-placeholder-art {
    transform: scale(1.05);
}
.cgr-game-card h3 {
    margin: 7px 2px 0;
    font-size: 14px;
    line-height: 1.25;
}
.cgr-game-card h3 a {
    display: -webkit-box;
    min-height: 35px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 800;
}
.cgr-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
}
.cgr-badge-hot { background: var(--cgr-pink); }
.cgr-badge-new { background: var(--cgr-green); }
.cgr-ad {
    display: grid;
    place-items: center;
    min-height: 82px;
    border: 1px dashed #bfd1e6;
    border-radius: var(--cgr-radius);
    background: repeating-linear-gradient(45deg, #f5f9ff, #f5f9ff 10px, #eef5fc 10px, #eef5fc 20px);
    color: #8a98ad;
    font-size: 13px;
    font-weight: 800;
}
.cgr-ad > span {
    text-transform: uppercase;
}
.cgr-ad.is-filled {
    display: block;
    min-height: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}
.cgr-ad-widget {
    width: 100%;
}
.cgr-ad .adsbygoogle,
.cgr-ad iframe,
.cgr-ad ins {
    max-width: 100%;
}
.cgr-game-grid .cgr-ad {
    grid-column: span 2;
}

.cgr-content-panel {
    max-width: 920px;
    padding: 26px;
    border-radius: var(--cgr-radius);
    background: var(--cgr-surface);
    box-shadow: var(--cgr-shadow);
}
.cgr-content-panel p,
.cgr-content-panel ul,
.cgr-content-panel ol {
    color: #3c465c;
}
.cgr-content-panel hr {
    border: 0;
    border-top: 1px solid var(--cgr-line);
    margin: 28px 0;
}
.cgr-content-panel a {
    color: var(--cgr-blue);
    font-weight: 700;
}

.cgr-game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: start;
}
.cgr-play-panel,
.cgr-game-sidebar {
    border-radius: var(--cgr-radius);
    background: var(--cgr-surface);
    box-shadow: var(--cgr-shadow);
}
.cgr-play-panel {
    overflow: hidden;
}
.cgr-player {
    aspect-ratio: 16 / 9;
    background: #111827;
}
.cgr-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.cgr-launch-panel {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.cgr-launch-panel img,
.cgr-launch-panel .cgr-placeholder-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.56);
}
.cgr-play-now {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 8px;
    background: var(--cgr-green);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .24);
}
.cgr-player-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    height: 100%;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.cgr-player-placeholder img,
.cgr-player-placeholder .cgr-placeholder-art {
    position: absolute;
    inset: 0;
    filter: brightness(.55);
}
.cgr-player-placeholder p {
    position: relative;
    max-width: 520px;
    padding: 18px;
    font-weight: 800;
}
.cgr-game-summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
}
.cgr-summary-art {
    width: 72px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--cgr-radius);
}
.cgr-summary-art img,
.cgr-summary-art .cgr-placeholder-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cgr-game-summary h1 {
    margin-bottom: 2px;
}
.cgr-game-summary p {
    margin: 0;
    color: var(--cgr-muted);
    font-weight: 700;
}
.cgr-wishlist,
.cgr-fullscreen {
    min-height: 44px;
    border: 0;
    border-radius: var(--cgr-radius);
    padding: 10px 14px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.cgr-wishlist {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--cgr-pink);
}
.cgr-wishlist span {
    white-space: nowrap;
}
.cgr-wishlist small {
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
    font-size: 12px;
}
.cgr-wishlist.is-active {
    background: #8a2652;
}
.cgr-fullscreen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cgr-blue);
}
.cgr-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}
.cgr-share-row a {
    padding: 8px 11px;
    border-radius: var(--cgr-radius);
    background: #edf5ff;
    color: #39506f;
    font-size: 13px;
    font-weight: 800;
}
.cgr-game-sidebar {
    position: sticky;
    top: 132px;
    padding: 16px;
}

.cgr-play-page {
    margin: 0;
    background: #f4f7fb;
}
.cgr-play-shell {
    min-height: 100vh;
    padding: 18px;
}
.cgr-play-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 18px;
    border-radius: var(--cgr-radius);
    background: #101828;
    color: #fff;
}
.cgr-play-bar a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}
.cgr-play-frame {
    max-width: 1180px;
    aspect-ratio: 16 / 9;
    margin: 18px auto 0;
    overflow: hidden;
    border-radius: var(--cgr-radius);
    background: #111827;
    box-shadow: var(--cgr-shadow);
}
.cgr-play-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.cgr-play-missing {
    display: grid;
    place-items: center;
    height: 100%;
    color: #fff;
    font-weight: 800;
}
.cgr-play-page.is-fullscreen {
    background: #050812;
}
.cgr-play-page.is-fullscreen .cgr-play-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh;
    padding: 0;
}
.cgr-play-page.is-fullscreen .cgr-play-bar {
    max-width: none;
    margin: 0;
    border-radius: 0;
}
.cgr-play-page.is-fullscreen .cgr-play-frame {
    width: 100%;
    max-width: none;
    height: calc(100vh - 52px);
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.cgr-play-page.is-embed {
    background: #111827;
}
.cgr-play-page.is-embed .cgr-play-shell {
    min-height: 100vh;
    padding: 0;
}
.cgr-play-page.is-embed .cgr-play-frame {
    width: 100%;
    max-width: none;
    height: 100vh;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.cgr-category-cloud .cgr-menu {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0 0 16px;
    list-style: none;
}
.cgr-sidebar-related {
    display: grid;
    gap: 12px;
}
.cgr-sidebar-related h2 {
    margin-bottom: 0;
}
.cgr-sidebar-game-list {
    display: grid;
    gap: 10px;
}
.cgr-sidebar-game {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--cgr-radius);
    background: #f3f8ff;
    color: var(--cgr-ink);
    font-size: 13px;
    font-weight: 900;
}
.cgr-sidebar-game:hover {
    background: #fff2f8;
}
.cgr-sidebar-game-thumb {
    display: block;
    aspect-ratio: 1 / .72;
    overflow: hidden;
    border-radius: var(--cgr-radius);
    background: #eaf2fb;
}
.cgr-sidebar-game-thumb img,
.cgr-sidebar-game-thumb .cgr-placeholder-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cgr-sidebar-game-thumb .cgr-placeholder-art span {
    font-size: 28px;
}
.cgr-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--cgr-muted);
    font-size: 14px;
}
.cgr-breadcrumb a {
    margin-right: 6px;
}
.cgr-game-info,
.cgr-game-faq {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cgr-line);
}
.cgr-game-info dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.cgr-game-info dl > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--cgr-line);
    border-radius: var(--cgr-radius);
    background: #fbfdff;
}
.cgr-game-info dt {
    margin: 0 0 4px;
    color: var(--cgr-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.cgr-game-info dd {
    margin: 0;
    color: #2b3448;
    font-weight: 800;
}
.cgr-game-info dd a {
    display: inline-block;
    margin-right: 6px;
}
.cgr-game-faq {
    display: grid;
    gap: 10px;
}
.cgr-game-faq details {
    border: 1px solid var(--cgr-line);
    border-radius: var(--cgr-radius);
    background: #fbfdff;
}
.cgr-game-faq summary {
    padding: 12px 14px;
    font-weight: 900;
    cursor: pointer;
}
.cgr-game-faq p {
    margin: 0;
    padding: 0 14px 14px;
}
.cgr-reviews {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cgr-line);
}
.cgr-user-rating {
    display: grid;
    gap: 12px;
}
.cgr-rating-score strong {
    display: inline-block;
    margin-right: 8px;
    font-size: 24px;
    color: var(--cgr-pink);
}
.cgr-rating-score span {
    color: var(--cgr-muted);
    font-weight: 700;
}
.cgr-rating-stars {
    display: flex;
    gap: 5px;
}
.cgr-rating-stars button {
    width: 38px;
    height: 38px;
    border: 1px solid #f3c64b;
    border-radius: var(--cgr-radius);
    background: #fff9df;
    color: #d69300;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.cgr-rating-stars button:hover,
.cgr-rating-stars button.is-active {
    background: var(--cgr-yellow);
    color: #6b4600;
}
.cgr-ugc-message {
    min-height: 20px;
    margin: 0;
    color: var(--cgr-muted);
    font-size: 13px;
    font-weight: 700;
}
.cgr-rating-bars {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}
.cgr-rating-bars div {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 10px;
    color: var(--cgr-muted);
    font-size: 13px;
    font-weight: 800;
}
.cgr-rating-bars i {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cgr-yellow), var(--cgr-pink));
}
.cgr-comments {
    max-width: 920px;
    padding: 26px;
    border-radius: var(--cgr-radius);
    background: var(--cgr-surface);
    box-shadow: var(--cgr-shadow);
}
.cgr-comment-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}
.cgr-comment-list .comment-body {
    padding: 14px;
    border: 1px solid var(--cgr-line);
    border-radius: var(--cgr-radius);
    background: #fbfdff;
}
.cgr-comment-list .children {
    margin-top: 12px;
}
.cgr-comments .comment-form {
    display: grid;
    gap: 12px;
}
.cgr-comments .comment-form p {
    margin: 0;
}
.cgr-comments input,
.cgr-comments textarea {
    width: 100%;
    border: 1px solid var(--cgr-line);
    border-radius: var(--cgr-radius);
    padding: 10px 12px;
    background: #fff;
    color: var(--cgr-ink);
    font: inherit;
}
.cgr-comments textarea {
    min-height: 130px;
    resize: vertical;
}
.cgr-comments input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 42px;
    border: 0;
    border-radius: var(--cgr-radius);
    padding: 10px 15px;
    background: var(--cgr-green);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.cgr-pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
}
.cgr-pagination a,
.cgr-pagination span,
.nav-links a,
.nav-links span {
    padding: 8px 12px;
    border-radius: var(--cgr-radius);
    background: var(--cgr-surface);
    box-shadow: 0 1px 0 var(--cgr-line);
    font-weight: 800;
}
.cgr-pagination .current,
.nav-links .current {
    background: var(--cgr-blue);
    color: #fff;
}

.cgr-site-footer {
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 32px 18px 42px;
    border-top: 1px solid var(--cgr-line);
    background: #fff;
    color: var(--cgr-muted);
    text-align: center;
}
.cgr-footer-nav .cgr-menu {
    flex-wrap: wrap;
    justify-content: center;
}
.cgr-footer-nav .cgr-menu a {
    background: transparent;
    color: var(--cgr-muted);
}
.cgr-site-footer p {
    margin: 0;
    max-width: 760px;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .cgr-game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .cgr-game-layout { grid-template-columns: 1fr; }
    .cgr-game-sidebar { position: static; }
}

@media (max-width: 860px) {
    .cgr-header-inner {
        grid-template-columns: auto 1fr;
    }
    .cgr-menu-toggle { display: inline-grid; place-items: center; }
    .cgr-logo { justify-self: start; }
    .cgr-top-nav,
    .cgr-search {
        display: none;
        grid-column: 1 / -1;
    }
    .cgr-site-header.is-open .cgr-top-nav,
    .cgr-site-header.is-open .cgr-search {
        display: block;
    }
    .cgr-top-nav .cgr-menu {
        justify-content: flex-start;
    }
    .cgr-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cgr-game-grid .cgr-ad { grid-column: 1 / -1; }
    .cgr-game-summary {
        grid-template-columns: 58px minmax(0, 1fr);
    }
    .cgr-wishlist,
    .cgr-fullscreen {
        grid-column: 1 / -1;
        width: 100%;
    }
    h1 { font-size: 26px; }
}

@media (max-width: 560px) {
    .cgr-site-main { padding: 12px; }
    .cgr-game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .cgr-content-panel { padding: 18px; }
    .cgr-game-summary {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
    }
    .cgr-game-summary h1 { font-size: 22px; }
    .cgr-wishlist,
    .cgr-fullscreen {
        grid-column: 1 / -1;
        width: 100%;
    }
    .cgr-comments {
        padding: 18px;
    }
    .cgr-game-info dl {
        grid-template-columns: 1fr;
    }
    .cgr-rating-stars button {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
}
