/*
Theme Name: CoolGamesUnblocked Child
Theme URI: https://coolgamesunblocked.co.uk/
Description: Custom child theme for CoolGamesUnblocked game website.
Author: CoolGamesUnblocked
Author URI: https://coolgamesunblocked.co.uk/
Template: twentytwentyone
Version: 1.0.0
Text Domain: coolgamesunblocked-child
*/

/* =========================================================
   01. Base / WordPress reset
   ========================================================= */

html,
body,
button,
input,
select,
textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif !important;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Hide default Twenty Twenty-One header/footer/sidebar widgets */
.site-header,
#masthead,
.site-footer,
#colophon,
.widget-area,
.footer-widget-area,
#secondary,
#supplementary,
.footer-widgets,
.entry-header,
.page-header,
.entry-footer {
    display: none !important;
}

.site,
#page,
#content,
.site-main {
    margin: 0 !important;
    padding: 0 !important;
}

.entry-content,
.entry-content > * {
    max-width: none !important;
}

/* Main page backgrounds */
body.home,
body.tax-game_category {
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 255, 255, .38) 0 0, transparent 220px),
        linear-gradient(135deg, #19dfc7 0%, #9fffe8 48%, #2de1c0 100%) !important;
}

body.single-game {
    background: #f4fffb !important;
}

/* Keep category wrapper background consistent */
body.tax-game_category .site,
body.tax-game_category #page,
body.tax-game_category #content,
body.tax-game_category .site-main,
body.tax-game_category .site-content,
body.tax-game_category .content-area,
body.tax-game_category main {
    background: transparent !important;
}

/* =========================================================
   02. Floating brand menu
   Used on home, category, and single game templates.
   ========================================================= */

body.home .cgu-floating-brand,
body.tax-game_category .cgu-floating-brand,
body.single-game .cgu-floating-brand {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: 20 !important;

    width: min(78vw, 980px) !important;
    min-width: 720px !important;
    height: 58px !important;

    margin: 24px auto 28px auto !important;
    padding: 0 16px 0 28px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;

    border-radius: 18px !important;
    overflow: visible !important;

    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.home .cgu-floating-logo,
body.tax-game_category .cgu-floating-logo,
body.single-game .cgu-floating-logo {
    height: auto !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #062d4f !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: -0.4px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.home .cgu-floating-logo span,
body.tax-game_category .cgu-floating-logo span,
body.single-game .cgu-floating-logo span {
    color: #1680ff !important;
}

/* Category anchors in menu */
.cgu-floating-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
}

.cgu-floating-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 36px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;

    color: #062d4f !important;
    background: transparent !important;

    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    transition: background .16s ease, color .16s ease;
}

.cgu-floating-nav a:hover {
    color: #1680ff !important;
    background: #f0f7ff !important;
}

/* Optional icon area: currently heart only */
body.home .cgu-floating-icons,
body.tax-game_category .cgu-floating-icons,
body.single-game .cgu-floating-icons {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-top: 0 !important;
    flex: 0 0 auto !important;
}

body.home .cgu-floating-icons span,
body.tax-game_category .cgu-floating-icons span,
body.single-game .cgu-floating-icons span {
    width: 38px !important;
    height: 38px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 13px !important;
    border: 0 !important;

    background: #f0f7ff !important;
    color: #1680ff !important;

    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

body.home .cgu-floating-icons span + span,
body.tax-game_category .cgu-floating-icons span + span,
body.single-game .cgu-floating-icons span + span {
    border-left: 0 !important;
}

/* =========================================================
   03. Shared bento game grid
   ========================================================= */

.cgu-home-page,
.cgu-category-page,
.cgu-home-page *,
.cgu-category-page * {
    box-sizing: border-box;
}

.cgu-home-page,
.cgu-category-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 255, 255, .38) 0 0, transparent 220px),
        linear-gradient(135deg, #19dfc7 0%, #9fffe8 48%, #2de1c0 100%);
    overflow-x: hidden;
}

.cgu-page-wrap {
    width: min(92vw, 1500px);
    margin: 0 auto;
}

.cgu-bento-section {
    position: relative;
    padding: 22px 0 36px;
}

.cgu-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 96px;
    gap: 16px;
    grid-auto-flow: dense;
    padding-left: 0 !important;
}

.cgu-bento-game-card {
    position: relative;
    display: block;
    overflow: hidden;
    grid-column: span 1;
    grid-row: span 1;
    min-width: 0;
    border-radius: 16px;
    background: #ffffff;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    transform: translateZ(0);
}

.cgu-bento-game-card:nth-child(2),
.cgu-bento-game-card:nth-child(13),
.cgu-bento-game-card:nth-child(27),
.cgu-bento-game-card:nth-child(44) {
    grid-column: span 2;
    grid-row: span 2;
}

.cgu-bento-game-card:nth-child(3),
.cgu-bento-game-card:nth-child(15),
.cgu-bento-game-card:nth-child(31) {
    grid-column: span 3;
    grid-row: span 2;
}

.cgu-bento-game-card:nth-child(8),
.cgu-bento-game-card:nth-child(21),
.cgu-bento-game-card:nth-child(38) {
    grid-column: span 2;
    grid-row: span 1;
}

.cgu-bento-game-card:nth-child(11),
.cgu-bento-game-card:nth-child(25),
.cgu-bento-game-card:nth-child(50) {
    grid-column: span 2;
    grid-row: span 2;
}

.cgu-bento-game-thumb {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(135deg, #fff86b 0%, #21d4fd 45%, #b721ff 100%);
}

.cgu-bento-game-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.cgu-bento-game-card:hover .cgu-bento-game-thumb img {
    transform: scale(1.06);
}

.cgu-bento-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.cgu-bento-game-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px 10px 9px;
    color: #fff;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
}

.cgu-bento-game-card:hover .cgu-bento-game-title {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   04. Homepage category cards + SEO content
   ========================================================= */

.cgu-category-section {
    padding: 34px 0;
}

.cgu-section-title-row {
    margin-bottom: 20px;
    padding-left: 0 !important;
}

.cgu-section-title-row h1,
.cgu-section-title-row h2 {
    margin: 0 0 8px;
    color: #062d4f;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 900;
}

.cgu-section-title-row p {
    max-width: 680px;
    margin: 0;
    color: rgba(6, 45, 79, .72);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}

.cgu-category-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-left: 0 !important;
}

.cgu-category-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: center;
    min-height: 112px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    color: #062d4f;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.cgu-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .16);
}

.cgu-category-card-media {
    display: block;
    width: 116px;
    height: 112px;
    background: linear-gradient(135deg, #fff86b 0%, #21d4fd 45%, #b721ff 100%);
}

.cgu-category-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cgu-category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 112px;
    color: #fff;
    font-size: 40px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.cgu-category-card-content {
    display: block;
    padding: 16px 18px;
}

.cgu-category-card-title {
    display: block;
    color: #062d4f;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cgu-category-card-count {
    display: block;
    margin-top: 7px;
    color: rgba(6, 45, 79, .55);
    font-size: 13px;
    font-weight: 800;
}

/* =========================================================
   05. Game category archive
   ========================================================= */

.cgu-category-single-section {
    padding: 28px 0 24px;
}

.cgu-category-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px;
    padding-left: 0 !important;
    color: rgba(6, 45, 79, .7);
    font-size: 14px;
    font-weight: 700;
}

.cgu-category-breadcrumb a {
    color: rgba(6, 45, 79, .7);
    text-decoration: none;
}

.cgu-category-breadcrumb a:hover {
    color: #062d4f;
}

.cgu-category-feature-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    min-height: 210px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    color: #062d4f;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .14);
}

.cgu-category-feature-media {
    display: block;
    width: 260px;
    height: 210px;
    background: linear-gradient(135deg, #fff86b 0%, #21d4fd 45%, #b721ff 100%);
}

.cgu-category-feature-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cgu-category-feature-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 210px;
    color: #fff;
    font-size: 76px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.cgu-category-feature-content {
    display: block;
    padding: 28px;
}

.cgu-category-feature-label {
    display: block;
    margin-bottom: 8px;
    color: #1680ff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.cgu-category-feature-title {
    display: block;
    color: #062d4f;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cgu-category-feature-desc {
    display: block;
    max-width: 680px;
    margin-top: 12px;
    color: rgba(6, 45, 79, .7);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}

.cgu-category-feature-count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-top: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f0f7ff;
    color: #1680ff;
    font-size: 14px;
    font-weight: 900;
}

.cgu-category-games-section {
    padding-top: 8px;
}

.cgu-pagination {
    margin-top: 30px;
    padding-left: 0 !important;
}

.cgu-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.cgu-pagination a,
.cgu-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    color: #062d4f;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .1);
}

.cgu-pagination .current {
    background: #1680ff;
    color: #fff;
}

.cgu-empty-box {
    margin-left: 0 !important;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    color: #062d4f;
    font-weight: 800;
}

/* =========================================================
   06. SEO/content card sections
   ========================================================= */

.cgu-seo-content-section {
    padding: 0 0 72px;
}

.cgu-seo-content-card {
    margin-left: 0 !important;
    padding: 34px 42px;
    border-radius: 0;
    background: #fff;
    color: #062d4f;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .08);
}

/* =========================================================
   07. Single game page
   ========================================================= */

.cgu-play-page,
.cgu-play-page * {
    box-sizing: border-box;
}

.cgu-play-page {
    width: 100%;
    padding: 0 0 48px;
}

.cgu-play-wrap {
    width: min(96vw, 1640px);
    margin: 0 auto;
}

.cgu-play-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}

.cgu-player-panel {
    min-width: 0;
    background: #111;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
}

.cgu-player-frame {
    width: 100%;
    background: #000;
}

.cgu-player-frame iframe {
    display: block;
    width: 100%;
    height: min(70vh, 720px);
    min-height: 580px;
    border: 0;
    background: #000;
}

.cgu-player-empty {
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.cgu-player-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    color: #111;
}

.cgu-game-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cgu-game-head-thumb {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
}

.cgu-game-head-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cgu-game-head-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    color: #111;
}

.cgu-game-head-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.cgu-game-head-cats a {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f0f4ff;
    color: #1778ff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cgu-game-head-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}

.cgu-game-head-breadcrumb a {
    color: #777;
    text-decoration: none;
}

.cgu-game-head-breadcrumb a:hover {
    color: #111;
}

.cgu-player-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
}

.cgu-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: #f1f7ff;
    color: #0084ff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.cgu-fullscreen-btn:hover {
    background: #e2f0ff;
}

.cgu-sidebar {
    min-width: 0;
}

.cgu-sidebar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cgu-sidebar-game {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #eaeaea;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.cgu-sidebar-game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .18s ease;
}

.cgu-sidebar-game:hover img {
    transform: scale(1.06);
}

.cgu-sidebar-game-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 8px 8px;
    color: #fff;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 800;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
    opacity: 0;
    transform: translateY(8px);
    transition: .18s ease;
}

.cgu-sidebar-game:hover .cgu-sidebar-game-title {
    opacity: 1;
    transform: translateY(0);
}

.cgu-sidebar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 32px;
    font-weight: 900;
}

.cgu-content-wrap {
    max-width: 1120px;
    margin-top: 28px;
}

.cgu-breadcrumb-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #777;
    font-size: 14px;
}

.cgu-breadcrumb-main a {
    color: #777;
    text-decoration: none;
}

.cgu-breadcrumb-main a:hover {
    color: #111;
}

.cgu-overview {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 22px;
}

.cgu-cover {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background: #eee;
}

.cgu-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cgu-card {
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.cgu-card + .cgu-card {
    margin-top: 22px;
}

.cgu-meta-row {
    margin-top: 14px;
    font-size: 15px;
}

.cgu-meta-row a {
    font-weight: 700;
    text-decoration: none;
}

.cgu-related-bottom .cgu-game-grid {
    margin-top: 14px;
}

/* =========================================================
   08. Content typography
   ========================================================= */

.cgu-content-wrap,
.cgu-content-card,
.cgu-card,
.cgu-main-content,
.cgu-home-content,
.cgu-category-content,
.cgu-bottom-content,
.cgu-page-content,
.cgu-seo-content-card,
.entry-content {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
    color: #062d4f;
}

.cgu-content-wrap p,
.cgu-content-card p,
.cgu-card p,
.cgu-main-content p,
.cgu-home-content p,
.cgu-category-content p,
.cgu-bottom-content p,
.cgu-page-content p,
.cgu-seo-content-card p,
.entry-content p {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
}

.cgu-content-wrap h1,
.cgu-content-card h1,
.cgu-card h1,
.cgu-main-content h1,
.cgu-home-content h1,
.cgu-category-content h1,
.cgu-bottom-content h1,
.cgu-page-content h1,
.cgu-seo-content-card h1,
.entry-content h1 {
    color: #062d4f;
    font-size: 34px !important;
    line-height: 1.2 !important;
    font-weight: 900;
    margin-top: 30px !important;
    margin-bottom: 12px !important;
}

.cgu-content-wrap h2,
.cgu-content-card h2,
.cgu-card h2,
.cgu-main-content h2,
.cgu-home-content h2,
.cgu-category-content h2,
.cgu-bottom-content h2,
.cgu-page-content h2,
.cgu-seo-content-card h2,
.entry-content h2 {
    color: #062d4f;
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 900;
    margin-top: 26px !important;
    margin-bottom: 10px !important;
}

.cgu-content-wrap h3,
.cgu-content-card h3,
.cgu-card h3,
.cgu-main-content h3,
.cgu-home-content h3,
.cgu-category-content h3,
.cgu-bottom-content h3,
.cgu-page-content h3,
.cgu-seo-content-card h3,
.entry-content h3 {
    color: #062d4f;
    font-size: 19px !important;
    line-height: 1.3 !important;
    font-weight: 900;
    margin-top: 22px !important;
    margin-bottom: 8px !important;
}

.cgu-content-wrap li,
.cgu-content-card li,
.cgu-card li,
.cgu-main-content li,
.cgu-home-content li,
.cgu-category-content li,
.cgu-bottom-content li,
.cgu-page-content li,
.cgu-seo-content-card li,
.entry-content li {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 6px !important;
}

.cgu-content-wrap a,
.cgu-content-card a,
.cgu-card a,
.cgu-main-content a,
.cgu-home-content a,
.cgu-category-content a,
.cgu-bottom-content a,
.cgu-page-content a,
.cgu-seo-content-card a,
.entry-content a {
    color: #0b7cff;
    font-weight: 800;
    text-decoration: none;
}

.cgu-content-wrap a:hover,
.cgu-content-card a:hover,
.cgu-card a:hover,
.cgu-main-content a:hover,
.cgu-home-content a:hover,
.cgu-category-content a:hover,
.cgu-bottom-content a:hover,
.cgu-page-content a:hover,
.cgu-seo-content-card a:hover,
.entry-content a:hover {
    text-decoration: underline;
}

.cgu-content-wrap ul,
.cgu-content-wrap ol,
.cgu-content-card ul,
.cgu-content-card ol,
.cgu-card ul,
.cgu-card ol,
.cgu-main-content ul,
.cgu-main-content ol,
.cgu-home-content ul,
.cgu-home-content ol,
.cgu-category-content ul,
.cgu-category-content ol,
.cgu-bottom-content ul,
.cgu-bottom-content ol,
.cgu-page-content ul,
.cgu-page-content ol,
.cgu-seo-content-card ul,
.cgu-seo-content-card ol,
.entry-content ul,
.entry-content ol {
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 24px;
}

/* =========================================================
   09. Custom footer
   ========================================================= */

.cgu-site-footer,
.cgu-site-footer * {
    box-sizing: border-box;
}

.cgu-site-footer {
    width: min(92vw, 1180px);
    margin: 56px auto 28px;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    color: #062d4f;
}

.cgu-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.cgu-footer-brand {
    max-width: 560px;
}

.cgu-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: #062d4f;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -0.4px;
}

.cgu-footer-logo span {
    color: #1680ff;
}

.cgu-footer-brand p {
    margin: 0;
    color: rgba(6, 45, 79, 0.72);
    font-size: 15px;
    line-height: 1.65;
}

.cgu-footer-links {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cgu-footer-links h3 {
    margin: 0 0 6px;
    color: #062d4f;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}

.cgu-footer-links a {
    color: rgba(6, 45, 79, 0.72);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

.cgu-footer-links a:hover {
    color: #1680ff;
}

.cgu-footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(6, 45, 79, 0.10);
}

.cgu-footer-bottom p {
    margin: 0;
    color: rgba(6, 45, 79, 0.55);
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   10. Responsive
   ========================================================= */

@media (max-width: 1399px) {
    .cgu-bento-grid {
        grid-template-columns: repeat(10, 1fr);
        grid-auto-rows: 88px;
    }

    .cgu-category-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) {
    .cgu-play-grid {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 16px;
    }

    .cgu-sidebar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cgu-player-frame iframe {
        min-height: 520px;
    }
}

@media (max-width: 1099px) {
    .cgu-bento-grid {
        grid-template-columns: repeat(8, 1fr);
        grid-auto-rows: 82px;
    }

    .cgu-category-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 849px) {
    .cgu-page-wrap {
        width: min(94vw, 760px);
    }

    .cgu-bento-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 76px;
        gap: 11px;
    }

    .cgu-bento-game-card {
        border-radius: 14px;
    }

    .cgu-bento-game-card:nth-child(3),
    .cgu-bento-game-card:nth-child(15),
    .cgu-bento-game-card:nth-child(31) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .cgu-category-card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cgu-category-feature-card {
        grid-template-columns: 190px minmax(0, 1fr);
        min-height: 170px;
    }

    .cgu-category-feature-media,
    .cgu-category-feature-placeholder {
        width: 190px;
        height: 170px;
    }

    .cgu-play-wrap {
        width: min(94vw, 760px);
    }

    .cgu-play-grid {
        grid-template-columns: 1fr;
    }

    .cgu-sidebar-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 9px;
    }

    .cgu-sidebar-game-title {
        display: none;
    }

    .cgu-player-frame iframe {
        height: 58vh;
        min-height: 430px;
    }

    .cgu-overview {
        grid-template-columns: 140px minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    body.home .cgu-floating-brand,
    body.tax-game_category .cgu-floating-brand,
    body.single-game .cgu-floating-brand {
        width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 58px !important;
        flex-wrap: wrap !important;
        margin: 12px auto 18px auto !important;
        padding: 12px 14px !important;
        gap: 10px !important;
        border-radius: 18px !important;
    }

    body.home .cgu-floating-logo,
    body.tax-game_category .cgu-floating-logo,
    body.single-game .cgu-floating-logo {
        font-size: 20px !important;
    }

    body.home .cgu-floating-icons span,
    body.tax-game_category .cgu-floating-icons span,
    body.single-game .cgu-floating-icons span {
        width: 36px !important;
        height: 36px !important;
        font-size: 17px !important;
    }

    .cgu-floating-nav {
        order: 3 !important;
        width: 100% !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding-bottom: 2px !important;
    }

    .cgu-floating-nav a {
        min-height: 34px !important;
        padding: 0 12px !important;
        background: #f0f7ff !important;
        color: #1680ff !important;
        font-size: 13px !important;
    }

    .cgu-site-footer {
        width: calc(100vw - 24px);
        margin: 36px auto 18px;
        padding: 22px;
        border-radius: 20px;
    }

    .cgu-footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .cgu-footer-logo {
        font-size: 22px;
    }

    .cgu-footer-brand p,
    .cgu-footer-links a {
        font-size: 14px;
    }
}

@media (max-width: 549px) {
    .cgu-page-wrap {
        width: min(94vw, 520px);
    }

    .cgu-bento-section {
        padding-top: 14px;
    }

    .cgu-bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 72px;
        gap: 9px;
    }

    .cgu-bento-game-card:nth-child(2),
    .cgu-bento-game-card:nth-child(3),
    .cgu-bento-game-card:nth-child(8),
    .cgu-bento-game-card:nth-child(11),
    .cgu-bento-game-card:nth-child(13),
    .cgu-bento-game-card:nth-child(15),
    .cgu-bento-game-card:nth-child(21),
    .cgu-bento-game-card:nth-child(25),
    .cgu-bento-game-card:nth-child(27),
    .cgu-bento-game-card:nth-child(31),
    .cgu-bento-game-card:nth-child(38),
    .cgu-bento-game-card:nth-child(44),
    .cgu-bento-game-card:nth-child(50) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .cgu-bento-placeholder {
        font-size: 32px;
    }

    .cgu-section-title-row h1,
    .cgu-section-title-row h2 {
        font-size: 30px;
    }

    .cgu-section-title-row p {
        font-size: 14px;
    }

    .cgu-category-card {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 100px;
        border-radius: 16px;
    }

    .cgu-category-card-media,
    .cgu-category-placeholder {
        width: 104px;
        height: 100px;
    }

    .cgu-category-card-title {
        font-size: 13px;
    }

    .cgu-category-feature-card {
        grid-template-columns: 1fr;
    }

    .cgu-category-feature-media,
    .cgu-category-feature-placeholder {
        width: 100%;
        height: 180px;
    }

    .cgu-category-feature-content {
        padding: 20px;
    }

    .cgu-category-feature-title {
        font-size: 30px;
    }

    .cgu-category-feature-desc {
        font-size: 14px;
    }

    .cgu-seo-content-card {
        padding: 22px 18px;
    }

    .cgu-player-frame iframe {
        height: 62vh;
        min-height: 380px;
    }

    .cgu-player-bottom {
        padding: 10px;
    }

    .cgu-game-head-thumb {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .cgu-game-head-title {
        font-size: 17px;
    }

    .cgu-game-head-breadcrumb {
        display: none;
    }

    .cgu-fullscreen-text {
        display: none;
    }

    .cgu-fullscreen-btn {
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .cgu-sidebar-grid {
        padding: 0 10px;
        grid-template-columns: repeat(4, 1fr);
        gap: 9px;
    }

    .cgu-content-wrap {
        padding: 0 12px;
    }

    .cgu-overview {
        grid-template-columns: 1fr;
    }

    .cgu-cover {
        width: 120px;
    }

    .cgu-card {
        padding: 16px;
        border-radius: 14px;
    }

    .cgu-card h2 {
        font-size: 21px;
    }

    .cgu-content-wrap,
    .cgu-content-card,
    .cgu-card,
    .cgu-main-content,
    .cgu-home-content,
    .cgu-category-content,
    .cgu-bottom-content,
    .cgu-page-content,
    .cgu-seo-content-card,
    .entry-content {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .cgu-content-wrap p,
    .cgu-content-card p,
    .cgu-card p,
    .cgu-main-content p,
    .cgu-home-content p,
    .cgu-category-content p,
    .cgu-bottom-content p,
    .cgu-page-content p,
    .cgu-seo-content-card p,
    .entry-content p,
    .cgu-content-wrap li,
    .cgu-content-card li,
    .cgu-card li,
    .cgu-main-content li,
    .cgu-home-content li,
    .cgu-category-content li,
    .cgu-bottom-content li,
    .cgu-page-content li,
    .cgu-seo-content-card li,
    .entry-content li {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .cgu-content-wrap h1,
    .cgu-content-card h1,
    .cgu-card h1,
    .cgu-main-content h1,
    .cgu-home-content h1,
    .cgu-category-content h1,
    .cgu-bottom-content h1,
    .cgu-page-content h1,
    .cgu-seo-content-card h1,
    .entry-content h1 {
        font-size: 28px !important;
    }

    .cgu-content-wrap h2,
    .cgu-content-card h2,
    .cgu-card h2,
    .cgu-main-content h2,
    .cgu-home-content h2,
    .cgu-category-content h2,
    .cgu-bottom-content h2,
    .cgu-page-content h2,
    .cgu-seo-content-card h2,
    .entry-content h2 {
        font-size: 22px !important;
    }

    .cgu-content-wrap h3,
    .cgu-content-card h3,
    .cgu-card h3,
    .cgu-main-content h3,
    .cgu-home-content h3,
    .cgu-category-content h3,
    .cgu-bottom-content h3,
    .cgu-page-content h3,
    .cgu-seo-content-card h3,
    .entry-content h3 {
        font-size: 18px !important;
    }
}
/* Single game: hide upper breadcrumb, keep lower breadcrumb */
body.single-game .cgu-game-head-breadcrumb {
    display: none !important;
}

/* Single game: reduce gap between game player and content */
body.single-game .cgu-content-wrap {
    margin-top: 24px !important;
}

/* Limit right sidebar height so it does not push content too far down */
body.single-game .cgu-sidebar-grid {
    max-height: 760px !important;
    overflow: hidden !important;
}

/* Keep sidebar clean */
body.single-game .cgu-sidebar {
    align-self: start !important;
}

/* Tablet/mobile: no need to limit sidebar too much */
@media (max-width: 849px) {
    body.single-game .cgu-sidebar-grid {
        max-height: none !important;
        overflow: visible !important;
    }

    body.single-game .cgu-content-wrap {
        margin-top: 20px !important;
    }
}
/* True fullscreen game player fix */
body.single-game .cgu-player-frame:fullscreen,
body.single-game .cgu-player-frame:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: #000 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

body.single-game .cgu-player-frame:fullscreen iframe,
body.single-game .cgu-player-frame:-webkit-full-screen iframe {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    border: 0 !important;
    display: block !important;
    background: #000 !important;
}

/* If browser fullscreen applies directly to iframe */
body.single-game iframe:fullscreen,
body.single-game iframe:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    border: 0 !important;
    background: #000 !important;
}