@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 700 800;
    font-display: swap;
    src: url("../fonts/nunito-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-latin-400.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-latin-500.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/inter-latin-600.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/inter-latin-700.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/inter-latin-800.woff2") format("woff2");
}

@font-face {
    font-family: "Fredoka";
    font-style: normal;
    font-weight: 600 700;
    font-stretch: 100% 112%;
    font-display: swap;
    src: url("../fonts/fredoka-latin.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0, U+2019;
}

/*
 * Clovy Games theme layer. Loaded after all.css / play.css (inherited from the
 * crazygames-like theme) and turns the dark layout into the light Clovy design.
 */

:root {
    --cg-green: #22a94b;
    --cg-green-dark: #1b8f3e;
    --cg-green-soft: #e9f8ee;
    --cg-ink: #1e2a44;
    --cg-text: #334155;
    --cg-muted: #6b7280;
    --cg-line: #e9edf2;
    --cg-card-line: #dcebe2;
    --cg-bg: #E4FCF1;
    --cg-surface: #f5f7fa;
    --cg-card-shadow: 0 1px 2px rgba(20, 60, 35, .06), 0 4px 14px rgba(20, 60, 35, .07);
    --cg-card-shadow-hover: 0 8px 24px rgba(20, 60, 35, .14);
    --cg-radius: 14px;
    --cg-max: none;
    --cg-gutter: clamp(14px, 4.7vw, 120px);

    /* Tag cards on /tags (generated colors in custom-theme.css) */
    --tag-card-left-rgb: 23, 120, 52;
    --tag-card-bg: #177834;
    --tag-card-default-end: #177834;
}

/* ---------- Base ---------- */
html:has(body.cg-body) {
    background:
        linear-gradient(128deg, transparent 0 54%, rgba(6, 92, 40, .34) 54% 61%, transparent 61% 100%),
        linear-gradient(152deg, rgba(4, 78, 34, .28) 0 16%, transparent 16% 100%),
        repeating-linear-gradient(-18deg, rgba(8, 110, 46, .16) 0 16px, transparent 16px 78px),
        linear-gradient(180deg, #8ef6b2 0%, #3fdb74 42%, #22c55e 100%) !important;
    background-attachment: fixed;
}
/* Transparent so the clover decor (z-index -1) shows through behind the content. */
body.cg-body {
    position: relative;
    background: transparent !important;
    color: var(--cg-text);
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    /* A 1px halo is enough for Chrome on Windows to soften stair-stepped glyph edges. */
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
}

body.cg-body,
body.cg-body * {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.cg-body .cg-logo__word,
body.cg-body .cg-logo__word *,
body.cg-body .cg-browse__head h2,
body.cg-body .cg-page-title,
body.cg-body .cg-section__title,
body.cg-body .cg-empty h2,
body.cg-body .cg-auth__title {
    font-family: "Nunito", "Inter", system-ui, sans-serif;
}
body.cg-body .tag-page-card strong,
body.cg-body .categories-page-slider-card .slider-cat-card-text strong {
    font-weight: 800 !important;
}

body.cg-body .fa, body.cg-body .fa-solid, body.cg-body .fa-regular, body.cg-body .fas, body.cg-body .far {
    font-family: "Font Awesome 6 Free" !important;
    text-shadow: none;
}
body.cg-body .fa-brands, body.cg-body .fab {
    font-family: "Font Awesome 6 Brands" !important;
    text-shadow: none;
}
body.cg-body .material-symbols-outlined { font-family: "Material Symbols Outlined" !important; text-shadow: none; }
body.cg-body .material-icons-outlined { font-family: "Material Icons Outlined" !important; text-shadow: none; }

body.cg-body a { color: inherit; text-decoration: none; }
body.cg-body img { max-width: 100%; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.cg-main {
    max-width: var(--cg-max);
    margin: 0 auto;
    padding: 8px var(--cg-gutter) 40px;
    min-height: 60vh;
}

/* ---------- Background decor ---------- */
.cg-decor { display: none; }
body.cg-body .cg-decor {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
body.cg-body .cg-decor::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1400px;
    background:
        linear-gradient(118deg, transparent 60%, rgba(6, 88, 36, .32) 60% 68%, transparent 68%),
        linear-gradient(164deg, rgba(5, 72, 30, .24) 0 14%, transparent 14%),
        radial-gradient(460px 320px at 0 140px, rgba(10, 100, 42, .28), transparent 70%),
        radial-gradient(420px 300px at 100% 90px, rgba(8, 90, 38, .26), transparent 72%);
}
.cg-clover {
    position: absolute;
    width: 120px;
    aspect-ratio: 1;
}
.cg-clover::before,
.cg-clover::after {
    content: "";
    position: absolute;
}
.cg-clover::before {
    inset: -22%;
    background: radial-gradient(closest-side, rgba(255, 238, 160, .5), rgba(170, 238, 190, .32) 55%, transparent);
}
.cg-clover::after {
    inset: 0;
    background: url(../image/clover-soft.svg) center / contain no-repeat;
}
.cg-clover--1 { width: 168px; left: 0; top: 16px; transform: scaleX(-1) rotate(-4deg); }
.cg-clover--2 { width: 152px; right: 0; top: 14px; transform: rotate(6deg); }
.cg-clover--3 { width: 34px; left: 176px; top: 120px; transform: rotate(-12deg); }
.cg-clover--4 { width: 58px; right: 154px; top: 71px; transform: rotate(14deg); }
.cg-clover--5 { width: 68px; right: 0; top: 190px; transform: rotate(-10deg); }
.cg-clover--6 { width: 66px; right: -2px; top: 353px; transform: rotate(8deg); }
.cg-clover--7 { width: 38px; right: 14px; top: 453px; transform: rotate(-16deg); filter: blur(1px); opacity: .9; }
.cg-clover--8 { width: 64px; left: 2px; top: 278px; transform: scaleX(-1) rotate(12deg); }
.cg-clover--9 { width: 42px; left: 17px; top: 382px; transform: rotate(-8deg); filter: blur(1.2px); opacity: .9; }

/* ---------- Header ---------- */
#header.cg-header {
    position: sticky;
    top: 0;
    left: auto; right: auto;
    height: auto;
    z-index: 1000;
    padding: 12px var(--cg-gutter) 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    pointer-events: none;
}

.cg-header__inner {
    pointer-events: auto;
    max-width: var(--cg-max);
    margin: 0 auto;
    height: 64px;
    padding: 0 18px 0 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid rgba(220, 235, 226, .9);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(20, 60, 35, .05), 0 8px 28px rgba(20, 60, 35, .08);
}

.cg-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cg-logo img { width: 38px; height: 38px; }
.cg-logo__word {
    font-weight: 800;
    font-size: 27px;
    letter-spacing: -.02em;
    line-height: 1;
    white-space: nowrap;
}
.cg-logo__a { color: var(--cg-ink); }
.cg-logo__b { color: var(--cg-green); }
.cg-logo--sm img { width: 30px; height: 30px; }
.cg-logo--sm .cg-logo__word { font-size: 22px; }
/* Top-left header logo only: gold-rim clover + Fredoka wordmark. */
.cg-logo--header { gap: 9px; }
.cg-logo--header img { width: 42px; height: 42px; object-fit: contain; }
body.cg-body .cg-logo--header .cg-logo__word,
body.cg-body .cg-logo--header .cg-logo__word * {
    font-family: "Fredoka", "Nunito", system-ui, sans-serif;
}
.cg-logo--header .cg-logo__word {
    font-weight: 650;
    font-stretch: 106%;
    font-size: 30px;
    letter-spacing: -.01em;
}
.cg-logo--header .cg-logo__a { color: #13265C; }
.cg-logo--header .cg-logo__b { color: #17B04B; }

.cg-search {
    position: relative;
    flex: 1 1 200px;
    width: auto;
    min-width: 140px;
    max-width: 340px;
    margin-left: 18px;
}
.cg-random {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe58a 0%, #f0b429 100%);
    color: #6a4208 !important;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 1px 0 #c98a12, 0 6px 14px rgba(176, 112, 16, .28);
    transition: transform .15s, filter .15s;
}
.cg-random:hover { filter: brightness(1.06); }
.cg-header__side { display: contents; }
@media (min-width: 1100px) {
    .cg-header__inner { position: relative; }
    .cg-lang { z-index: 2; }
}
/* The random button sits in the middle column; the side columns share the rest,
   so it stays centred unless one side needs more room than half. */
@media (min-width: 1101px) {
    .cg-header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }
    .cg-header__side { display: flex; align-items: center; gap: 20px; }
    .cg-header__side--start .cg-search { flex: 1 1 auto; margin-left: 0; }
    .cg-header__side--end { justify-content: flex-end; }
    .cg-header__side--end .cg-nav { margin-left: 0; }
    .cg-header .cg-lang__name { display: none; }
    .cg-header .cg-lang__btn { padding: 0 8px 0 6px; gap: 4px; height: 36px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
    .cg-header__inner { gap: 12px; padding: 0 14px 0 18px; }
    .cg-random { padding: 0 13px; }
    .cg-random span, .cg-nav .cg-signup { display: none; }
    .cg-nav__link { padding: 0 9px; }
}
@media (min-width: 1101px) and (max-width: 1919px) {
    .cg-nav > .cg-nav__link { flex-direction: column; justify-content: center; gap: 3px; padding: 0 9px; font-size: 12px; line-height: 1; }
    .cg-nav > .cg-nav__link i { font-size: 18px; }
    .cg-nav > .cg-nav__link.is-active::after { bottom: 4px; }
}
@media (min-width: 1101px) and (max-width: 1365px) {
    .cg-header__inner, .cg-header__side { gap: 12px; }
    .cg-header__side--start .cg-search { min-width: 90px; }
    .cg-header__side--start .cg-search input[type=search] { padding-right: 8px; }
}
.cg-random i { font-size: 15px; }
.cg-search input[type=search] {
    width: 100%;
    height: 42px;
    border: 1px solid var(--cg-card-line);
    border-radius: 999px;
    background: #f7faf8;
    padding: 0 18px 0 46px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cg-ink);
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.cg-search input[type=search]::placeholder { color: #8a94a6; font-weight: 600; }
.cg-search input[type=search] { text-overflow: ellipsis; }
.cg-search input[type=search]:focus {
    background: #fff;
    border-color: var(--cg-green);
    box-shadow: 0 0 0 4px rgba(34, 169, 75, .14);
}
.cg-search__icon {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: #7b8597;
    font-size: 15px;
    pointer-events: none;
}
.cg-search__clear {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    color: #9aa3b2;
    cursor: pointer;
}

.cg-search__results {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 10px);
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--cg-line);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .16);
    padding: 8px;
    z-index: 1100;
}
.cg-search__results a,
.cg-drawer__results a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 10px !important;
    border-radius: 12px;
    color: var(--cg-ink) !important;
    font-weight: 700;
    font-size: 15px;
}
.cg-search__results a:hover,
.cg-drawer__results a:hover { background: var(--cg-green-soft) !important; }
.cg-search__results img,
.cg-drawer__results img {
    width: 56px !important; height: 42px !important;
    object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.cg-search__results a:last-child,
.cg-drawer__results a:last-child {
    justify-content: center;
    color: var(--cg-green) !important;
    margin-top: 4px;
}
.cg-search__results p,
.cg-drawer__results p { padding: 10px; color: var(--cg-muted); }

.cg-search-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .18);
    z-index: 900;
}

.cg-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cg-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 64px;
    padding: 0 12px;
    color: #475569 !important;
    font-weight: 700;
    font-size: 15px;
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s;
}
.cg-nav__link i { font-size: 17px; color: #64748b; transition: color .15s; }
.cg-nav__link:hover, .cg-nav__link:hover i { color: var(--cg-green) !important; }
.cg-nav__link.is-active { color: var(--cg-ink) !important; }
.cg-nav__link.is-active i { color: var(--cg-green); }
.cg-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 8px; right: 8px; bottom: 9px;
    height: 3px;
    border-radius: 3px;
    background: var(--cg-green);
}

.cg-account { position: relative; }
.cg-account__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cg-green-soft); }
.cg-account__menu {
    display: none;
    position: absolute;
    right: 0; top: calc(100% - 8px);
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--cg-line);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .16);
    padding: 8px;
    z-index: 1100;
}
.cg-account.is-open .cg-account__menu { display: block; }
.cg-account__menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    font-weight: 700; color: var(--cg-text);
}
.cg-account__menu a i { width: 18px; color: var(--cg-muted); }
.cg-account__menu a:hover { background: var(--cg-green-soft); color: var(--cg-green-dark); }

.cg-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: var(--cg-ink);
    font-size: 20px;
    cursor: pointer;
}
.cg-iconbtn:hover { background: var(--cg-surface); }
.cg-header__menu, .cg-header__searchbtn { display: none; }
@media (min-width: 768px) and (max-width: 899px) {
    #header .cg-search { display: none; }
    .cg-header__searchbtn { display: inline-flex; }
}
@media (min-width: 1101px) and (max-width: 1279px) {
    #header .cg-search { display: none; }
    .cg-header__searchbtn { display: inline-flex; }
    .cg-logo--header .cg-logo__word { font-size: 25px; }
    .cg-logo--header img { width: 36px; height: 36px; }
}

/* ---------- Category pills ---------- */
.cg-pills {
    max-width: var(--cg-max);
    margin: 0 auto;
    padding: 16px var(--cg-gutter) 6px;
}
.cg-pills__track {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cg-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--cg-card-line);
    box-shadow: 0 1px 3px rgba(20, 60, 35, .07);
    color: var(--cg-text) !important;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.cg-pill i { font-size: 18px; }
.cg-pill:hover {
    border-color: #cfe9d7;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
}
.cg-pill.is-active {
    background: var(--cg-green);
    border-color: var(--cg-green);
    color: #fff !important;
}
.cg-pill.is-active i { color: #fff !important; }
.cg-pill--overflow { display: none; }

.cg-more { position: relative; flex-shrink: 0; }
.cg-more__toggle { font-family: inherit; }
.cg-more__toggle .fa-ellipsis { color: var(--cg-ink); }
.cg-more__chevron { font-size: 11px !important; color: var(--cg-muted); transition: transform .15s; }
.cg-more.is-open .cg-more__chevron { transform: rotate(180deg); }
.cg-more__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--cg-line);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .16);
    padding: 8px;
    z-index: 950;
}
.cg-more.is-open .cg-more__menu { display: block; }
.cg-more__item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 12px;
    font-weight: 700; color: var(--cg-text) !important;
}
.cg-more__item i { width: 20px; text-align: center; font-size: 17px; }
.cg-more__item:hover, .cg-more__item.is-active { background: var(--cg-green-soft); }
.cg-more__all { border-top: 1px solid var(--cg-line); margin-top: 4px; border-radius: 0 0 12px 12px; color: var(--cg-green) !important; }
.cg-more__all i { color: var(--cg-green); }

/* ---------- Sections ---------- */
.cg-section { margin-top: 26px; }
.cg-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cg-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--cg-ink);
    letter-spacing: -.01em;
}
.cg-section__title i { font-size: 24px; }
.cg-viewall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
    color: var(--cg-green) !important;
    padding: 6px 4px;
}
.cg-viewall i { transition: transform .15s; }
.cg-viewall:hover i { transform: translateX(3px); }


/* ---------- Game tiles ---------- */
/* Image-only tiles; the title and favorite button show on hover/focus. */
:root { --cg-tile-gap: clamp(8px, .62vw, 12px); }
.cg-tile {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #dcefe3;
    box-shadow: 0 1px 2px rgba(20, 60, 35, .10), 0 3px 10px rgba(20, 60, 35, .08);
    transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s ease;
}
.cg-tile--lg, .cg-tile--md { border-radius: 18px; }
.cg-tile__link {
    position: absolute; inset: 0;
    display: block;
    overflow: hidden;
    border-radius: inherit;
}
.cg-tile__link:focus-visible { outline: 3px solid var(--cg-green); outline-offset: 2px; }
.cg-tile__link img,
.cg-tile__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.cg-tile__video {
    opacity: 0;
    transform: scale(1.14);
    transition: opacity .25s ease;
    pointer-events: none;
    background: transparent;
}
.cg-tile.is-previewing .cg-tile__video { opacity: 1; }
.cg-tile__title {
    position: absolute; left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 26px 10px 8px;
    background: linear-gradient(to top, rgba(8, 24, 14, .86), rgba(8, 24, 14, .5) 55%, rgba(8, 24, 14, 0));
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
}
.cg-tile--lg .cg-tile__title { padding: 40px 16px 13px; font-size: 16px; }
.cg-tile--md .cg-tile__title { padding: 32px 13px 10px; font-size: 14px; }
.cg-tile:focus-within .cg-tile__title { opacity: 1; transform: none; }

.cg-heart {
    position: absolute;
    top: 6px; right: 6px;
    z-index: 3;
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    color: #334155;
    font-size: 11px;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .15s ease, transform .15s ease, color .15s, background .15s, visibility 0s .15s;
}
.cg-tile--lg .cg-heart { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 15px; }
.cg-tile__link:focus-visible + .cg-heart,
.cg-heart:focus-visible {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}
.cg-heart:hover { color: #f43f5e; background: #fff; }
.cg-heart:active { transform: scale(.88); }
.cg-heart:focus-visible { outline: 3px solid var(--cg-green); outline-offset: 1px; }
.cg-heart.is-active { color: #f43f5e; }
.cg-heart.is-busy { opacity: .5; pointer-events: none; }

/* html.cg-mouse is set by clovy-tiles.js while the visitor uses a mouse. */
.cg-tile__link img { transition: transform .28s ease; }
.cg-mouse .cg-tile:hover {
    z-index: 2;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(20, 60, 35, .24);
}
.cg-mouse .cg-tile:hover .cg-tile__link img,
.cg-mouse .cg-gcard:hover .cg-gcard__media img { transform: scale(1.05); }
.cg-mouse .cg-tile--lg:hover,
.cg-mouse .cg-tile--md:hover { transform: translateY(-3px); }
.cg-gcard__media img { transition: transform .28s ease; }
.cg-mouse .cg-tile:hover .cg-tile__title { opacity: 1; transform: none; }
.cg-mouse .cg-tile:hover .cg-heart { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
    .cg-tile, .cg-tile__title, .cg-heart { transition: none; }
    .cg-mouse .cg-tile:hover { transform: none; }
}

/* Grid used on list pages (category, new, search, ...) */
.cg-grid,
#game-list-container.cg-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: var(--cg-tile-gap);
}
.cg-grid--mosaic {
    grid-auto-flow: dense;
    grid-auto-rows: 118px;
}
.cg-grid--mosaic > .cg-tile { aspect-ratio: auto; }
.cg-grid--mosaic > .cg-tile--lg {
    grid-column: span 2;
    grid-row: span 2;
}

/* ---------- Home: game wall ---------- */
.cg-wall { margin-top: clamp(11px, 2.3vw, 50px); container-type: inline-size; }
/* Mosaic: rows are as tall as a 4:3 single cell. Featured tiles are 2x2,
   which keeps the biggest pictures from taking over the row. */
.cg-wall__grid {
    --cg-wall-cols: 10;
    display: grid;
    grid-template-columns: repeat(var(--cg-wall-cols), minmax(0, 1fr));
    grid-auto-rows: calc((100cqw - (var(--cg-wall-cols) - 1) * var(--cg-tile-gap)) / var(--cg-wall-cols) * .75);
    grid-auto-flow: row dense;
    gap: var(--cg-tile-gap);
}
.cg-wall__grid > .cg-tile { aspect-ratio: auto; }
.cg-wall__grid > .cg-tile--lg,
.cg-wall__grid > .cg-tile--md { grid-column: span 2; grid-row: span 2; }

.cg-toast {
    position: fixed;
    left: 50%; bottom: 28px;
    transform: translate(-50%, 16px);
    z-index: 3000;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--cg-ink);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.cg-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Home: browse by category ---------- */
.cg-browse { margin-top: 18px; }
.cg-browse__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 14px;
}
.cg-browse__head h2 { font-size: 27px; font-weight: 800; color: var(--cg-ink); letter-spacing: -.01em; }
.cg-browse__head p { font-size: 14.5px; font-weight: 600; color: var(--cg-muted); }
.cg-browse__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.cg-cattile {
    --cat: var(--cg-green);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px 10px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--cat) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--cat) 15%, #fff);
    box-shadow: 0 1px 2px rgba(20, 60, 35, .04), 0 4px 12px rgba(20, 60, 35, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.cg-cattile:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--cat) 35%, #fff);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--cat) 16%, transparent);
}
.cg-cattile__icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--cat) 16%, #fff);
    font-size: 20px;
    color: var(--cat);
    transition: background .16s, transform .16s;
}
.cg-cattile:hover .cg-cattile__icon { transform: scale(1.04); }
.cg-cattile--more .cg-cattile__icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--cat);
    color: #fff;
    font-size: 20px;
}
.cg-cattile__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.cg-cattile__text strong { font-size: 17px; font-weight: 700; color: var(--cat); line-height: 1.25; }
.cg-cattile__text small {
    font-size: 12.5px; font-weight: 600; color: var(--cg-muted); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cg-cattile__chevron { flex-shrink: 0; font-size: 13px; color: var(--cg-ink); transition: transform .15s; }
.cg-cattile:hover .cg-cattile__chevron { transform: translateX(2px); }
.cg-cattile__thumbs { display: flex; gap: 6px; flex-shrink: 0; }
.cg-cattile__thumbs img {
    width: 54px; height: 46px;
    border-radius: 10px;
    object-fit: cover;
    background: #eef2f6;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

/* ---------- Page heads / misc ---------- */
.cg-page-head { margin: 22px 0 18px; }
.cg-page-head__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cg-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--cg-ink);
    letter-spacing: -.01em;
    line-height: 1.2;
}
.cg-page-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--cg-green-soft); font-size: 20px;
}
.cg-count {
    padding: 4px 12px; border-radius: 999px;
    background: var(--cg-surface); color: var(--cg-muted);
    font-weight: 700; font-size: 13px;
}
.cg-page-desc { color: #123524; font-size: 15px; font-weight: 600; margin-top: 6px; max-width: 900px; }
.cg-page-desc .truncated-description { max-width: 720px; }
.cg-link, .cg-accent { color: var(--cg-green) !important; font-weight: 800; cursor: pointer; white-space: nowrap; margin-left: 8px; }
.cg-accent { margin-left: 0; }

.cg-about {
    margin: 40px 0 0;
    padding: 24px 28px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--cg-card-line);
    color: var(--cg-text) !important;
    font-size: 15px;
    line-height: 1.7;
}
.cg-about:not(:has(*)) { display: none; }
.cg-about.is-collapsed {
    max-height: 200px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
}
.cg-about__toggle {
    display: block;
    margin: 10px auto 0;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--cg-line);
    background: #fff;
    color: var(--cg-green);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}
.cg-about__toggle:hover { background: var(--cg-green-soft); }
.cg-about h2, .cg-about h3, .cg-about h4 { color: var(--cg-ink) !important; font-weight: 800; margin: 14px 0 6px; }
.cg-about a { color: var(--cg-green) !important; }
.cg-about p { margin: 6px 0; }

/* ---------- Section cards (category guide, game info) ---------- */
.cg-guide { display: flex; flex-direction: column; gap: 18px; margin: 40px 0 16px; }
.cg-doc, .cg-support { margin-bottom: 20px; }
body.cg-fill { --cg-tile-gap: 8px; }
body.cg-fill .cg-wall,
body.cg-fill .cg-mosaic,
body.cg-fill .cg-loadmore {
    margin-left: calc(10px - var(--cg-gutter));
    margin-right: calc(10px - var(--cg-gutter));
}
.cg-sheet .cg-sec__title { margin-top: 22px; }
.cg-sheet .cg-sec__head { margin-top: 28px; padding-top: 8px; }
.cg-sheet .cg-sec__head .cg-sec__title { margin-top: 0; }
.cg-sheet__title {
    margin: 8px 0 8px;
    font-family: "Fredoka", "Nunito", sans-serif;
    font-size: clamp(28px, 2.6vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    color: var(--cg-ink);
}
.cg-sheet__lead { margin: 0 0 14px; max-width: 68em; color: var(--cg-ink); font-size: 16.5px; line-height: 1.55; font-weight: 700; }
.cg-sheet .cg-ghero__play { margin: 0 0 6px; }
.cg-sheet .cg-terms { margin-top: 16px; }
.cg-aboutgame__top { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 8px; }
.cg-aboutgame__cover { width: 180px; height: 180px; object-fit: cover; border-radius: 18px; background: #dcefe3; box-shadow: 0 8px 20px rgba(8, 50, 24, .16); }
.cg-subhead { margin: 22px 0 8px; color: var(--cg-ink); font-size: 20px; font-weight: 800; line-height: 1.25; }
.cg-subhead a { color: #128a3a; }
.cg-sheet > p { margin: 0 0 10px; color: var(--cg-text); font-size: 15.5px; line-height: 1.6; font-weight: 500; }
.cg-rank { list-style: none; margin: 4px 0 8px; padding: 0; counter-reset: cg-rank; }
.cg-rank li { counter-increment: cg-rank; display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #e7eef2; font-weight: 700; }
.cg-rank li::before { content: counter(cg-rank); width: 1.6em; color: #128a3a; font-weight: 800; }
.cg-rank a { color: #0f7a34; }
.cg-rank a:hover { text-decoration: underline; }
.cg-catchips { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-catchip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px;
    background: #f3f6fb; color: #13265c !important;
    font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.cg-catchip b { color: #128a3a; font-weight: 800; }
.cg-catchip:hover { background: #e7f8ee; }
.cg-faqs--lines { gap: 0; border-top: 1px solid #e6eef2; }
.cg-faqs--lines .cg-faq { border: 0; border-bottom: 1px solid #e6eef2; border-radius: 0; background: transparent; box-shadow: none; }
.cg-faqs--lines .cg-faq summary { padding: 14px 4px; font-weight: 750; }
.cg-catrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.cg-catcard {
    display: flex; align-items: center; gap: 12px; min-width: 0;
    padding: 12px 14px; border-radius: 16px;
    background: #fff; border: 1px solid #e4f3ea;
    box-shadow: 0 1px 2px rgba(8, 40, 20, .06), 0 6px 14px rgba(8, 40, 20, .06);
    color: #13265c; font-size: 13.5px; font-weight: 800; letter-spacing: .01em; line-height: 1.2;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cg-catcard__icon, .cg-gridcat__icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 12px;
    background: color-mix(in srgb, var(--cat, #22a94b) 16%, #fff); font-size: 18px;
}
.cg-gridcat {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    padding: 10px 12px; border-radius: 16px;
    background: #fff; border: 1px solid #e4f3ea;
    box-shadow: 0 1px 2px rgba(8, 40, 20, .06), 0 6px 14px rgba(8, 40, 20, .06);
    color: #13265c;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cg-gridcat__icon { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
.cg-gridcat__name, .cg-catcard > span:last-child {
    font-size: 13px; font-weight: 800; letter-spacing: .01em; line-height: 1.2;
    text-transform: none;
}
.cg-catcard:hover, .cg-gridcat:hover {
    transform: translateY(-2px);
    border-color: #8ed9a8;
    box-shadow: 0 10px 22px rgba(18, 90, 40, .14);
}
.cg-catchip { transition: background .15s, transform .15s; }
.cg-catchip:hover { background: #e7f8ee; transform: translateY(-1px); }
.cg-home-seo {
    margin-top: 40px;
    margin-bottom: 12px;
    padding: 28px 32px 34px;
    background: #fff;
    border: 1px solid var(--cg-card-line);
    border-radius: 22px;
    box-shadow: var(--cg-card-shadow);
    color: var(--cg-text);
}
body.cg-fill .cg-home-seo {
    margin-left: calc(10px - var(--cg-gutter));
    margin-right: calc(10px - var(--cg-gutter));
}
.cg-home-seo h2 {
    margin: 26px 0 10px;
    color: #13265c;
    font-family: "Fredoka", "Nunito", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}
.cg-home-seo h2:first-child { margin-top: 0; }
.cg-home-seo p { margin: 0 0 12px; max-width: none; font-size: 16px; line-height: 1.65; }
.cg-home-seo a { color: #128a3a; font-weight: 700; }
.cg-home-seo a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cg-home-seo .cg-rank { margin-top: 8px; }
.cg-home-seo ul { margin: 8px 0 4px; padding: 0; list-style: none; }
.cg-home-seo ul li { margin: 0 0 10px; padding-left: 16px; position: relative; font-size: 16px; line-height: 1.6; }
.cg-home-seo ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: #22a94b; }
@media (max-width: 767px) {
    .cg-home-seo { padding: 20px 16px 24px; }
    .cg-home-seo h2 { font-size: 22px; }
}
body.cg-body .vote-btn.is-active i { color: #7dffb0; }
@media (max-width: 700px) {
    .cg-aboutgame__top { grid-template-columns: 1fr; }
    .cg-aboutgame__cover { width: 140px; height: 140px; }
}
.cg-sec {
    background: #fff;
    border: 1px solid var(--cg-card-line);
    border-radius: 22px;
    box-shadow: var(--cg-card-shadow);
    padding: 24px 26px;
    min-width: 0;
}
.cg-sec > p, .cg-sec__lead { margin: 0; color: var(--cg-text); font-size: 15px; line-height: 1.65; font-weight: 500; }
.cg-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cg-sec__head .cg-sec__title { margin: 0; }
.cg-sec__title {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 12px;
    font-family: "Fredoka", "Nunito", sans-serif;
    font-size: 23px; font-weight: 700; line-height: 1.2;
    color: var(--cg-ink);
    letter-spacing: -.005em;
}
.cg-sec__title img { width: 26px; height: 26px; flex-shrink: 0; }
.cg-pillbtn {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    height: 38px; padding: 0 16px;
    border-radius: 999px;
    background: var(--cg-green-soft);
    color: var(--cg-green-dark) !important;
    font-size: 14px; font-weight: 800; white-space: nowrap;
    transition: background .15s, color .15s;
}
.cg-pillbtn:hover { background: var(--cg-green); color: #fff !important; }
.cg-pillbtn i { font-size: 12px; transition: transform .15s; }
.cg-pillbtn:hover i { transform: translateX(2px); }

.cg-guide__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.cg-guide__cols--2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

/* Category hero */
.cg-chero {
    --cat: var(--cg-green);
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center;
    padding: 30px 32px;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--cat) 10%, transparent), transparent 60%),
        linear-gradient(180deg, #fff, #f7fdf9);
}
.cg-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: color-mix(in srgb, var(--cat) 12%, #fff);
    color: color-mix(in srgb, var(--cat) 80%, #000);
    font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.cg-chero__title {
    margin: 14px 0 10px;
    font-family: "Fredoka", "Nunito", sans-serif;
    font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.12;
    color: var(--cg-ink);
}
.cg-chero__intro { margin: 0; max-width: 620px; color: var(--cg-text); font-size: 16px; line-height: 1.65; font-weight: 500; }
.cg-feats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cg-feat {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 16px;
    background: #fff; border: 1px solid var(--cg-line);
    box-shadow: 0 1px 2px rgba(20, 60, 35, .05);
}
.cg-feat__icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--feat-bg, #e9f8ee); color: var(--feat, var(--cg-green));
    font-size: 17px;
}
.cg-feat--2 { --feat: #f97316; --feat-bg: #fff1e6; }
.cg-feat--3 { --feat: #8b5cf6; --feat-bg: #f1ebff; }
.cg-feat strong { display: block; color: var(--cg-ink); font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.cg-feat small { display: block; color: var(--cg-muted); font-size: 12.5px; font-weight: 600; line-height: 1.35; margin-top: 2px; }
.cg-chero__art { position: relative; height: 270px; }
.cg-chero__img {
    position: absolute;
    width: 62%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 18px;
    border: 4px solid #fff;
    box-shadow: 0 14px 34px rgba(20, 60, 35, .18);
    background: #dcefe3;
}
.cg-chero__img--1 { left: 19%; top: 8%; z-index: 3; width: 64%; }
.cg-chero__img--2 { left: 0; top: 34%; z-index: 2; width: 44%; transform: rotate(-6deg); }
.cg-chero__img--3 { right: 0; top: 40%; z-index: 4; width: 42%; transform: rotate(5deg); }

/* Game cards with a caption */
.cg-gcards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.cg-gcard { position: relative; min-width: 0; }
.cg-gcard__link { display: block; border-radius: 16px; }
.cg-gcard__link:focus-visible { outline: 3px solid var(--cg-green); outline-offset: 2px; }
.cg-gcard__media {
    position: relative; display: block;
    aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: 16px; background: #dcefe3;
    box-shadow: 0 1px 2px rgba(20, 60, 35, .10), 0 3px 10px rgba(20, 60, 35, .08);
    transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s;
}
.cg-gcard__media img, .cg-gcard__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cg-gcard__video { opacity: 0; transform: scale(1.14); transition: opacity .25s; pointer-events: none; }
.cg-gcard.is-previewing .cg-gcard__video { opacity: 1; }
.cg-gcard__body { display: block; padding: 9px 2px 0; }
.cg-gcard__body strong { display: block; color: var(--cg-ink); font-size: 14px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-gcard__body small { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--cg-muted); font-size: 12.5px; font-weight: 600; }
.cg-gcard__body small i { font-size: 11px; }
.cg-gcard .cg-heart { top: 8px; right: 8px; }
.cg-gcard:focus-within .cg-heart { visibility: visible; opacity: 1; transform: none; }
.cg-mouse .cg-gcard:hover .cg-gcard__media { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 60, 35, .22); }
.cg-mouse .cg-gcard:hover .cg-gcard__body strong { color: var(--cg-green-dark); }
.cg-mouse .cg-gcard:hover .cg-heart { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

/* Category cards */
.cg-ccards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cg-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cg-ccard {
    --cat: var(--cg-green);
    display: flex; flex-direction: column; min-width: 0;
    background: #fff; border: 1px solid var(--cg-card-line); border-radius: 18px;
    box-shadow: var(--cg-card-shadow); overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cg-ccard:hover { transform: translateY(-3px); box-shadow: 0 12px 26px color-mix(in srgb, var(--cat) 18%, transparent); border-color: color-mix(in srgb, var(--cat) 30%, #fff); }
.cg-ccard__media { position: relative; display: block; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--cat) 12%, #fff); overflow: hidden; }
.cg-ccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cg-ccard:hover .cg-ccard__media img { transform: scale(1.05); }
.cg-ccard__body { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.cg-ccard__icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 11px;
    background: color-mix(in srgb, var(--cat) 12%, #fff); font-size: 16px;
}
.cg-ccard__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cg-ccard__text strong { color: var(--cg-ink); font-size: 14.5px; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-ccard__text small { color: var(--cg-muted); font-size: 12.5px; font-weight: 600; }
.cg-ccard__go { color: var(--cg-muted); font-size: 12px; transition: transform .15s, color .15s; }
.cg-ccard:hover .cg-ccard__go { color: var(--cat); transform: translateX(2px); }

/* Lists */
.cg-checks, .cg-terms { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cg-checks li { display: flex; align-items: flex-start; gap: 10px; color: var(--cg-text); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.cg-checks i { color: var(--cg-green); font-size: 17px; margin-top: 1px; }
.cg-terms li { position: relative; padding-left: 18px; color: var(--cg-text); font-size: 14.5px; line-height: 1.5; }
.cg-terms li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--cg-green); }
.cg-terms strong { color: var(--cg-ink); font-weight: 800; }
.cg-terms a { color: var(--cg-green-dark); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--cg-green) 40%, transparent); text-underline-offset: 3px; }
.cg-terms a:hover { color: var(--cg-green); }
.cg-terms span { color: var(--cg-text); }
.cg-terms--num { counter-reset: tip; }
.cg-terms--num li { counter-increment: tip; padding-left: 34px; }
.cg-terms--num li::before {
    content: counter(tip); top: 0;
    width: 24px; height: 24px; left: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--cg-green-soft); color: var(--cg-green-dark);
    font-size: 12.5px; font-weight: 800;
}

/* FAQ */
.cg-faqs { display: flex; flex-direction: column; gap: 10px; }
.cg-faq { border: 1px solid var(--cg-line); border-radius: 16px; background: #fbfdfc; transition: border-color .15s, background .15s; }
.cg-faq[open] { background: #fff; border-color: var(--cg-card-line); box-shadow: 0 1px 2px rgba(20, 60, 35, .05); }
.cg-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 18px;
    list-style: none; cursor: pointer;
    color: var(--cg-ink); font-size: 15.5px; font-weight: 800;
}
.cg-faq summary::-webkit-details-marker { display: none; }
.cg-faq summary i { color: var(--cg-green); font-size: 13px; transition: transform .2s; }
.cg-faq[open] summary i { transform: rotate(180deg); }
.cg-faq p { margin: 0; padding: 0 18px 16px; color: var(--cg-text); font-size: 14.5px; line-height: 1.6; font-weight: 500; }

/* Mosaic grids: fixed columns, 4:3 cells, featured tiles at 2x2 */
.cg-mosaic {
    --cols: 12;
    container-type: inline-size;
    display: grid !important;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--cg-tile-gap)) / var(--cols) * .75);
    grid-auto-flow: row dense;
    gap: var(--cg-tile-gap);
}
.cg-mosaic > .cg-tile { aspect-ratio: auto; }
.cg-mosaic > .cg-tile--lg, .cg-mosaic > .cg-tile--md { grid-column: span 2; grid-row: span 2; }
.cg-mosaic > .cg-cut, .cg-wall__grid > .cg-cut, [data-side-fit] > .cg-cut { display: none; }
.cg-loadmore { display: flex; justify-content: center; margin-top: 22px; }
.cg-btn--ghost { background: #fff; color: var(--cg-green-dark) !important; border: 1px solid var(--cg-card-line); box-shadow: var(--cg-card-shadow); }
.cg-btn--ghost:hover { background: var(--cg-green); color: #fff !important; }
.cg-btn[disabled] { opacity: .6; pointer-events: none; }

/* Game page: one tile column beside the game and the video, then the mosaic */
.cg-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 16px;
    row-gap: var(--cg-tile-gap);
    padding-top: 20px;
    align-items: start;
}
.cg-page-copy { margin: 4px 0 18px; max-width: none; }
.cg-page-copy p { margin: 0 0 14px; max-width: none; color: #123524; font-size: 16px; line-height: 1.65; font-weight: 500; }
.cg-page-copy a { color: #0f7a34; font-weight: 700; }
.cg-page-copy a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cg-stage > .cg-play__main { grid-column: 1; grid-row: 1; }
.cg-stage > .cg-gvideo { grid-column: 1; grid-row: 2; margin-top: 0; }
.cg-stage__side { grid-column: 2; grid-row: 1 / 3; position: relative; align-self: stretch; min-height: 200px; }
.cg-stage > .cg-play-more { grid-column: 1 / -1; margin-top: 0; }
.cg-play__side-inner {
    position: absolute; inset: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start;
    gap: var(--cg-tile-gap);
    overflow: hidden;
    padding: 2px;
    margin: -2px;
}
.cg-play__ad { grid-column: 1 / -1; height: 282px; border-radius: 14px; overflow: hidden; }
.cg-play-more { margin-top: 0; }

/* Game info */
.cg-ghero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 30px; align-items: start; padding: 26px; }
.cg-ghero__media { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #dcefe3; box-shadow: 0 10px 28px rgba(20, 60, 35, .16); }
.cg-ghero__media img { width: 100%; height: 100%; object-fit: cover; }
.cg-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--cg-muted); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cg-crumbs a { color: var(--cg-green-dark); }
.cg-crumbs a:hover { color: var(--cg-green); }
.cg-crumbs i { font-size: 9px; opacity: .6; }
.cg-crumbs span { color: var(--cg-muted); }
.cg-ghero__title { margin: 12px 0 6px; font-family: "Fredoka", "Nunito", sans-serif; font-size: clamp(26px, 2.5vw, 36px); font-weight: 700; line-height: 1.12; color: var(--cg-ink); }
.cg-ghero__cat { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--cg-muted); font-size: 14px; font-weight: 700; }
.cg-ghero__cat a { color: var(--cg-green-dark); }
.cg-ghero__text p:not(.cg-ghero__cat) { margin: 0 0 10px; color: var(--cg-text); font-size: 15px; line-height: 1.7; font-weight: 500; }
.cg-ghero__text .cg-ghero__lead { color: var(--cg-ink); font-size: 16.5px; font-weight: 700; }
.cg-ghero__play { margin-top: 8px; }
.cg-ghero__play i { font-size: 13px; }
.cg-facts { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--cg-line); border-radius: 16px; overflow: hidden; }
.cg-facts th, .cg-facts td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--cg-line); font-size: 14.5px; line-height: 1.5; }
.cg-facts tr:first-child th, .cg-facts tr:first-child td { border-top: 0; }
.cg-facts th { width: 34%; background: #f8fbf9; color: var(--cg-ink); font-weight: 800; white-space: nowrap; }
.cg-facts td { color: var(--cg-text); font-weight: 600; }
.cg-facts a { color: var(--cg-green-dark); }
.cg-facticon {
    display: inline-flex; align-items: center; justify-content: center; vertical-align: -6px;
    width: 26px; height: 26px; margin-right: 10px; border-radius: 8px;
    font-size: 12px; background: #e9f8ee; color: var(--cg-green);
}
.cg-facticon--1 { background: #fff1e6; color: #f97316; }
.cg-facticon--2 { background: #f1ebff; color: #8b5cf6; }
.cg-facticon--3 { background: #e6f2ff; color: #2563eb; }
.cg-facticon--4 { background: #fdeaf3; color: #db2777; }
.cg-facticon--5 { background: #fff8db; color: #ca8a04; }
.cg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-tag { padding: 3px 10px; border-radius: 999px; background: var(--cg-green-soft); color: var(--cg-green-dark) !important; font-size: 12.5px; font-weight: 700; }
.cg-tag:hover { background: var(--cg-green); color: #fff !important; }
.cg-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cg-step { display: flex; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #f8fbf9; border: 1px solid var(--cg-line); }
.cg-step__num {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--cg-green); color: #fff; font-weight: 800; font-size: 15px;
    box-shadow: 0 4px 10px rgba(34, 169, 75, .3);
}
.cg-step strong { display: block; color: var(--cg-ink); font-size: 15px; font-weight: 800; }
.cg-step p { margin: 3px 0 0; color: var(--cg-text); font-size: 14px; line-height: 1.55; font-weight: 500; }

@media (min-width: 1280px) {
    .cg-wall__grid { --cg-wall-cols: 12; }
    .cg-wall__grid > .cg-tile:nth-child(n+285) { display: none; }
}
@media (max-width: 1279px) {
    .cg-mosaic { --cols: 10; }
    .cg-gcards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .cg-gcards > .cg-gcard:nth-child(n+7) { display: none; }
    .cg-ccards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cg-guide__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cg-guide__cols > .cg-sec:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .cg-stage { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1100px) {
    .cg-mosaic { --cols: 8; }
    .cg-chero { grid-template-columns: 1fr; }
    .cg-chero__art { display: none; }
    .cg-stage { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1023px) {
    .cg-stage { grid-template-columns: 1fr; }
    .cg-stage__side { display: none; }
    .cg-stage > .cg-gvideo,
    .cg-stage > .cg-play__main,
    .cg-stage > .cg-play-more { grid-column: 1; grid-row: auto; }
    .cg-gcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cg-gcards > .cg-gcard:nth-child(n+7) { display: block; }
    .cg-guide__cols, .cg-guide__cols--2 { grid-template-columns: 1fr; }
    .cg-ghero { grid-template-columns: 1fr; }
    .cg-ghero__media { max-width: 520px; }
}
@media (max-width: 767px) {
    .cg-mosaic { --cols: 4; }
    .cg-guide { gap: 14px; margin-top: 26px; }
    .cg-sec, .cg-chero, .cg-ghero { padding: 18px; border-radius: 18px; }
    .cg-sec__head { flex-wrap: wrap; }
    .cg-sec__title { font-size: 20px; }
    .cg-sec__title img { width: 22px; height: 22px; }
    .cg-feats { grid-template-columns: 1fr; gap: 8px; }
    .cg-gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .cg-gcards > .cg-gcard:nth-child(n+7) { display: none; }
    .cg-ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cg-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cg-ccard__go { display: none; }
    .cg-facts th { width: auto; white-space: normal; }
    .cg-facts th, .cg-facts td { padding: 10px 12px; font-size: 13.5px; }
    .cg-play-more { padding: 0 16px; }
}
@media (max-width: 420px) {
    .cg-mosaic { --cols: 3; }
}

.cg-empty {
    text-align: center;
    padding: 56px 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--cg-card-line);
    margin: 10px 0 24px;
    grid-column: 1 / -1;
}
.cg-empty > i { font-size: 38px; color: var(--cg-green); margin-bottom: 12px; display: inline-block; }
.cg-empty h2 { font-size: 22px; font-weight: 800; color: var(--cg-ink); }
.cg-empty p { color: var(--cg-muted); font-weight: 600; margin: 6px 0 18px; }

.cg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 24px; border-radius: 999px;
    background: var(--cg-green); color: #fff !important;
    font-weight: 800; font-size: 15px; border: 0; cursor: pointer;
    transition: background .15s, transform .15s;
}
.cg-btn:hover { background: var(--cg-green-dark); transform: translateY(-1px); }

/* Tags overview (classic tag cards) */
body.cg-body .tag-page-card,
body.cg-body .slider-cat-card {
    border-radius: 16px !important;
    box-shadow: var(--cg-card-shadow);
}

/* ---------- Footer ---------- */
.cg-footer {
    margin-top: 64px;
    border-top: 1px solid var(--cg-card-line);
    background: #fff;
}
.cg-footer__inner {
    max-width: var(--cg-max);
    margin: 0 auto;
    padding: 18px var(--cg-gutter) 20px;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(160px, 232px)) minmax(300px, 1fr);
    align-items: center;
}
.cg-footer__brand { padding-right: 24px; }
.cg-logo--footer { gap: 8px; }
.cg-logo--footer img { width: 36px; height: 36px; }
.cg-logo--footer .cg-logo__word { font-size: 25px; }
.cg-footer__col,
.cg-footer__copy {
    align-self: stretch;
    border-left: 1px solid var(--cg-line);
    padding: 2px 34px 2px 34px;
}
.cg-footer__col { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; }
.cg-footer__head {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cg-ink);
}
.cg-footer__link {
    --cg-shield-check: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    color: var(--cg-ink) !important;
    font-size: 13px;
    font-weight: 500;
}
.cg-footer__link > i:first-child { width: 16px; text-align: center; font-size: 14px; color: #2f5a4b; }
.cg-footer__link span { flex: 1; }
.cg-footer__chev { font-size: 10px; color: #64748b; transition: transform .15s; }
.cg-footer__link:hover,
.cg-footer__link.is-active { color: var(--cg-green) !important; }
.cg-footer__link.is-active > i:first-child { color: var(--cg-green); }
.cg-footer__link:hover .cg-footer__chev { transform: translateX(2px); color: var(--cg-green); }
.cg-footer__copy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding-right: 0;
    padding-left: 24px;
    color: var(--cg-muted);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

#BackTop {
    background: var(--cg-green) !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 20px rgba(34, 169, 75, .35);
}

/* ---------- Mobile drawer ---------- */
.cg-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, .35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.cg-drawer-open .cg-drawer { opacity: 1; visibility: visible; }
.cg-drawer-open { overflow: hidden; }
.cg-drawer__panel {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: min(340px, 88vw);
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 8px 0 40px rgba(15, 23, 42, .18);
}
.cg-drawer-open .cg-drawer__panel { transform: none; }
.cg-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 14px 10px 18px;
}
.cg-search--drawer { margin: 4px 16px 10px; max-width: none; flex: none; }
.cg-drawer__results { padding: 0 10px; overflow-y: auto; }
.cg-drawer__body { flex: 1; overflow-y: auto; padding: 6px 10px 24px; }
.cg-drawer__link {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 12px; border-radius: 12px;
    font-weight: 800; font-size: 16px; color: var(--cg-ink) !important;
}
.cg-drawer__link i { width: 22px; text-align: center; color: var(--cg-muted); font-size: 17px; }
.cg-drawer__link:hover, .cg-drawer__link.is-active { background: var(--cg-green-soft); }
.cg-drawer__link.is-active i { color: var(--cg-green); }
.cg-drawer__sep { height: 1px; background: var(--cg-line); margin: 8px 12px; }

/* ---------- Classic markup restyled (inherited partials) ---------- */
body.cg-body .text-white { color: var(--cg-ink) !important; }
body.cg-body .text-opacity-60, body.cg-body .text-opacity-50, body.cg-body .text-opacity-75 { color: var(--cg-muted) !important; }
body.cg-body .bg-gray-800,
body.cg-body [class*="bg-[#212233]"],
body.cg-body [class*="bg-[#1F1F30]"],
body.cg-body [class*="bg-[#373952]"],
body.cg-body [class*="bg-[#2f3150]"] {
    background-color: var(--cg-surface) !important;
}
body.cg-body [class*="bg-[#0C0D14]"] { background-color: #fff !important; }
body.cg-body .text-violet-500, body.cg-body .text-violet-400, body.cg-body .text-violet-600 { color: var(--cg-green) !important; }
body.cg-body .bg-violet-500, body.cg-body .bg-violet-600 { background-color: var(--cg-green) !important; }
body.cg-body .category-section-top strong { color: var(--cg-ink) !important; }
body.cg-body .footer-description { color: var(--cg-text) !important; }
body.cg-body .footer-description :is(h2, h3, h4, h5, h6) { color: var(--cg-ink) !important; }

/* Game page */
body.cg-body .play-now-button { background: var(--cg-green) !important; color: #fff !important; box-shadow: 0 10px 24px rgba(34, 169, 75, .35); }
body.cg-body .play-now-button * { color: #fff !important; fill: #fff !important; }
body.cg-body #gamePlay-content .text-2xl { color: #fff !important; }
body.cg-body .game-container,
body.cg-body #ava-game_container { border-radius: 20px 20px 0 0; overflow: hidden; }
body.cg-body .game-container .vote-btn,
body.cg-body .game-container #report-open-menu,
body.cg-body .game-container .text-white { color: var(--cg-text) !important; }
body.cg-body .vote-btn.active, body.cg-body .vote-btn.is-active { color: var(--cg-green) !important; }
body.cg-body .game-container [class*="bg-[#212233]"] {
    background: #fff !important;
    border: 1px solid var(--cg-line);
    border-top: 0;
    border-radius: 0 0 20px 20px;
}
body.cg-body #report-menu, body.cg-body #report-modal {
    background: #fff !important;
    border: 1px solid var(--cg-line);
    color: var(--cg-text) !important;
}
body.cg-body #report-menu button:hover { background: var(--cg-green-soft) !important; }
body.cg-body #report-modal input, body.cg-body #report-modal textarea, body.cg-body #report-modal select {
    background: var(--cg-surface) !important; color: var(--cg-ink) !important; border: 1px solid var(--cg-line) !important;
}
body.cg-body #gameDiv .rounded-xl, body.cg-body .game-sidebar img, body.cg-body .new-games-list img { border-radius: 12px; }
body.cg-body .new-games-list { border-radius: 12px; box-shadow: var(--cg-card-shadow); }
body.cg-body [class*="border-[#2d2e3b]"] { border-color: var(--cg-line) !important; }
body.cg-body .bg-black.bg-opacity-50 { background: rgba(15, 23, 42, .55) !important; }
body.cg-body .bg-black.bg-opacity-50, body.cg-body .bg-black.bg-opacity-50 * { color: #fff !important; }

body.cg-body [class*="bg-[#1a1b28]"] {
    background: #fff !important;
    border: 1px solid var(--cg-line);
    border-radius: 20px !important;
    box-shadow: var(--cg-card-shadow);
}
body.cg-body [class*="bg-[#181925]"] { background: var(--cg-surface) !important; }
body.cg-body [class*="border-[#28293D]"] { border-color: var(--cg-line) !important; }
body.cg-body [class*="hover:text-violet-200"]:hover { color: var(--cg-green) !important; }
body.cg-body .play-game-desc, body.cg-body .play-game-desc * { color: var(--cg-text) !important; }
body.cg-body [class*="bg-[#3a3d5c]"]:hover, body.cg-body [class*="hover:bg-[#3a3d5c]"]:hover { background: var(--cg-green-soft) !important; }
body.cg-body #report-modal-overlay { background: rgba(15, 23, 42, .45) !important; }

body.cg-body .vote-btn[data-type="favorite"].is-active,
body.cg-body .vote-btn[data-type="favorite"].is-active i { color: #f43f5e !important; }
.cg-fav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 18px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
    color: #fff !important; font-weight: 800; font-size: 14px; cursor: pointer;
}
.cg-fav-toggle * { color: #fff !important; }
.cg-fav-toggle.is-active { background: #fff; border-color: #fff; }
.cg-fav-toggle.is-active span { color: var(--cg-ink) !important; }
.cg-fav-toggle.is-active i { color: #f43f5e !important; }

body.cg-body #top-section { border-radius: 0 0 24px 24px; overflow: hidden; }
body.cg-body #top-section, body.cg-body #top-section .text-white, body.cg-body #top-section div { color: #fff !important; }
body.cg-body #top-section .bg-gradient-to-b { background: linear-gradient(180deg, rgba(15, 23, 42, .1) 0%, rgba(15, 23, 42, .78) 60%, rgba(15, 23, 42, .92) 100%) !important; }

.cg-chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 14px; border-radius: 999px;
    background: var(--cg-surface); border: 1px solid var(--cg-line);
    color: var(--cg-text) !important; font-weight: 700; font-size: 14px;
    transition: background .15s, color .15s, border-color .15s;
}
.cg-chip:hover { background: var(--cg-green-soft); border-color: #cfe9d7; color: var(--cg-green-dark) !important; }
.cg-chip__count { font-size: 11px; color: var(--cg-muted); font-weight: 700; }
body.cg-body .play-game-page-container h1 { color: var(--cg-ink) !important; }
body.cg-body .play-game-page-container [class*="hover:text-violet-200"] { color: var(--cg-green) !important; }

/* Breadcrumbs / description card on the game page */
body.cg-body .game-description, body.cg-body .game-info-box { color: var(--cg-text) !important; }

/* Login */
body.cg-auth { background: var(--cg-bg) !important; }
body.cg-auth .cg-main { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; }
.cg-auth__wrap { width: 100%; display: flex; justify-content: center; padding: 40px 0; }
.cg-auth__card {
    width: 100%; max-width: 420px;
    background: #fff; border: 1px solid var(--cg-line); border-radius: 24px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .10);
    padding: 32px 30px 26px;
    text-align: center;
}
.cg-auth__logo { margin-bottom: 18px; }
.cg-auth__title { font-size: 26px; font-weight: 800; color: var(--cg-ink); }
.cg-auth__sub { color: var(--cg-muted); font-weight: 600; margin: 4px 0 22px; }
.cg-auth__form { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.cg-field { display: flex; flex-direction: column; gap: 6px; }
.cg-field span { font-size: 13px; font-weight: 800; color: var(--cg-text); }
.cg-field input {
    height: 48px; border-radius: 14px; border: 1px solid var(--cg-line) !important;
    background: var(--cg-surface) !important; color: var(--cg-ink) !important;
    padding: 0 16px !important; font-size: 15px; font-weight: 600; outline: none;
    box-shadow: none !important;
}
.cg-field input:focus { border-color: var(--cg-green) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(34, 169, 75, .14) !important; }
.cg-auth__submit { width: 100%; height: 50px; margin-top: 6px; font-size: 16px; }
.cg-auth__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--cg-muted) !important; font-weight: 700; font-size: 14px; }
.cg-auth__back:hover { color: var(--cg-green) !important; }
body.cg-auth .copyright { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1679px) {
    .cg-nav__link { padding: 0 8px; }
    .cg-search { min-width: 120px; }
}
@media (max-width: 1279px) {
    .cg-wall__grid { --cg-wall-cols: 8; }
    .cg-browse__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cg-nav__link { padding: 0 8px; }
    .cg-search { margin-left: 16px; }
}

@media (max-width: 1200px) {
    .cg-search { max-width: 240px; }
}
@media (max-width: 1100px) {
    .cg-wall__grid { --cg-wall-cols: 6; }
    .cg-wall__grid > .cg-tile--lg { grid-column: span 2; grid-row: span 2; }
    .cg-wall__grid > .cg-tile:nth-child(n+267) { display: none; }
    .cg-nav__label { display: none; }
    .cg-nav__link { padding: 0 12px; }
    .cg-nav__link i { font-size: 19px; }
    .cg-pill--overflow { display: none; }
}

@media (min-width: 1024px) {
    .cg-pills__track { flex-wrap: nowrap; }
}

@media (max-width: 1023px) {
    .cg-pills__track {
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin: 0 calc(var(--cg-gutter) * -1);
        padding-left: var(--cg-gutter);
        padding-right: var(--cg-gutter);
        scroll-padding: 0 var(--cg-gutter);
    }
    .cg-pills__track::-webkit-scrollbar { display: none; }
    .cg-pill--overflow { display: inline-flex; }
    .cg-more { display: none; }
}

@media (max-width: 767px) {
    #header.cg-header { padding: 8px 10px 0; }
    .cg-header__inner { height: 58px; gap: 6px; padding: 0 10px; border-radius: 16px; }
    .cg-header__menu, .cg-header__searchbtn { display: inline-flex; }
    .cg-header__menu { margin-left: -8px; }
    .cg-logo img { width: 34px; height: 34px; }
    .cg-logo__word { font-size: 24px; }
    .cg-logo--header { gap: 7px; }
    .cg-logo--header img { width: 36px; height: 36px; }
    .cg-logo--header .cg-logo__word { font-size: 25px; }
    #header .cg-search, .cg-nav, .cg-random span { display: none; }
    .cg-random { padding: 0 12px; }
    .cg-header__searchbtn { margin-left: auto; }

    .cg-wall { margin-top: 4px; }
    .cg-wall__grid { --cg-wall-cols: 4; }
    .cg-wall__grid > .cg-tile:nth-child(n+222) { display: none; }
    .cg-wall__grid > .cg-tile--right { grid-column-end: -1; }
    .cg-tile { border-radius: 11px; }
    .cg-tile--lg, .cg-tile--md { border-radius: 14px; }
    .cg-heart, .cg-tile--lg .cg-heart { top: 4px; right: 4px; width: 24px; height: 24px; font-size: 11.5px; }

    .cg-browse { margin-top: 26px; }
    .cg-browse__head { flex-direction: column; }
    .cg-browse__head h2 { font-size: 22px; }
    .cg-browse__head p { font-size: 13.5px; }
    .cg-browse__grid { grid-template-columns: 1fr; gap: 10px; }
    .cg-cattile { padding: 9px 10px 9px 12px; gap: 10px; }
    .cg-cattile__icon { width: 38px; height: 38px; font-size: 25px; }
    .cg-cattile__text strong { font-size: 16px; }
    .cg-cattile__thumbs img { width: 46px; height: 40px; border-radius: 8px; }
    .cg-clover--3, .cg-clover--4, .cg-clover--7, .cg-clover--8, .cg-clover--9 { display: none; }
    .cg-clover--1 { width: 110px; left: -26px; top: 70px; }
    .cg-clover--2 { width: 120px; right: -26px; top: -10px; }

    .cg-pills { padding-top: 12px; }
    .cg-pill { height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
    .cg-pill i { font-size: 16px; }

    .cg-section { margin-top: 22px; }
    .cg-section__title { font-size: 21px; }
    .cg-section__title i { font-size: 19px; }
    .cg-viewall { font-size: 14px; }

    .cg-grid, #game-list-container.cg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cg-page-title { font-size: 23px; }
    .cg-about { padding: 18px; }
    .cg-footer__copy { margin-left: 0; }
}

/* Profile */
.cg-profile { display: flex; align-items: center; gap: 18px; margin: 24px 0 8px; padding: 20px; background: #fff; border: 1px solid var(--cg-line, #e8edf3); border-radius: 22px; }
.cg-profile__avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 4px solid #e7f7ec; flex-shrink: 0; }
.cg-profile .cg-page-title { margin: 0; }
.cg-profile__empty { grid-column: 1 / -1; color: var(--cg-muted); font-weight: 600; }
.cg-profile__empty a { color: var(--cg-green); font-weight: 800; }

@media (max-width: 420px) {
    .cg-wall__grid { --cg-wall-cols: 3; }
    .cg-cattile__thumbs img:nth-child(3) { display: none; }
}

/* ---------- Header: section item + Sign In ---------- */
.cg-signin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    margin-left: 10px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--cg-green);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(34, 169, 75, .28);
    transition: background .15s, transform .15s;
}
.cg-signin i { font-size: 15px; color: #fff; }
.cg-signin:hover { background: var(--cg-green-dark); transform: translateY(-1px); }
.cg-nav__link--section.is-active,
.cg-nav__link--section.is-active i { color: var(--cg-green) !important; }

/* Shield with a check cut out of it (Font Awesome Free has no shield-check). */
.cg-ico-shieldcheck { position: relative; }
.cg-ico-shieldcheck::after {
    content: "\f00c";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -46%);
    font-size: .5em;
    font-weight: 900;
    color: var(--cg-shield-check, #fff);
}

/* ---------- Support pages (FAQ, Cookie Policy, Contact, About) ---------- */
.cg-support {
    --cg-sup-ink: #13265C;
    --cg-sup-text: #5a6482;
    --cg-sup-icon-bg: #e3f6ea;
    --cg-sup-icon: #2f5a4b;
    max-width: 1180px;
    margin: 18px auto 0;
}
body.cg-body .cg-hero__title,
body.cg-body .cg-qa__title,
body.cg-body .cg-topic__title,
body.cg-body .cg-helpbar__text strong,
body.cg-body .cg-doc__title,
body.cg-body .cg-doc__head {
    font-family: "Nunito", "Inter", system-ui, sans-serif;
}

.cg-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 40px 36px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 1px 2px rgba(20, 60, 35, .04), 0 10px 30px rgba(20, 60, 35, .05);
    text-align: center;
}
.cg-hero__text { position: relative; z-index: 1; }
.cg-hero__title {
    margin: 0;
    color: var(--cg-sup-ink);
    font-size: clamp(34px, 3.9vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}
.cg-hero__sub {
    margin: 10px 0 0;
    color: var(--cg-sup-text);
    font-size: clamp(15px, 1.25vw, 18px);
    font-weight: 500;
    line-height: 1.45;
}
.cg-hero__art { position: absolute; inset: 0; pointer-events: none; }
.cg-hero__pale {
    position: absolute;
    aspect-ratio: 1;
    background: url(../image/clover-pale.svg) center / contain no-repeat;
}
.cg-hero--pale .cg-hero__pale--1 { width: 84px; left: 10px; top: 34px; transform: rotate(-14deg); }
.cg-hero--pale .cg-hero__pale--2 { width: 28px; left: 84px; top: 14px; transform: rotate(10deg); }
.cg-hero--pale .cg-hero__pale--3 { width: 86px; right: 26px; top: 36px; transform: rotate(12deg); }
.cg-hero--pale .cg-hero__pale--4 { width: 24px; right: 122px; top: 70px; transform: rotate(-8deg); }

/* FAQ answer pages: left-aligned title, glossy clovers on the right. */
.cg-hero--gold { --cg-fit: 56; text-align: left; padding: 46px 268px 44px 48px; }
.cg-hero--gold .cg-hero__title { font-size: clamp(30px, calc(var(--cg-fit) * 100vw / 1440), calc(var(--cg-fit) * 1px)); }
.cg-hero--gold .cg-hero__sub { margin-top: 12px; font-size: clamp(16px, 1.6vw, 23px); }
.cg-hero--gold .cg-hero__pale--1 { width: 96px; right: 4px; top: 26px; transform: rotate(14deg); }
.cg-hero--gold .cg-hero__pale--3 { width: 42px; right: 206px; top: 142px; transform: rotate(-10deg); }
.cg-hero--gold .cg-hero__pale--5 { width: 34px; left: 12px; top: 132px; transform: rotate(-12deg); }
.cg-hero__gold {
    position: absolute;
    right: 118px; top: 26px;
    width: 128px; height: auto;
    filter: drop-shadow(0 8px 14px rgba(120, 90, 10, .22));
}
.cg-hero__mini { position: absolute; height: auto; filter: drop-shadow(0 3px 5px rgba(120, 90, 10, .2)); }
.cg-hero__mini--1 { width: 30px; right: 250px; top: 16px; transform: rotate(-12deg); }
.cg-hero__mini--2 { width: 28px; right: 246px; top: 116px; transform: rotate(8deg); }
.cg-hero__mini--3 { width: 36px; right: 70px; top: 128px; transform: rotate(-6deg); }

/* Landing cards (FAQ questions, cookie topics) */
.cg-topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.cg-topic {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 86px;
    padding: 14px 22px 14px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e3f1e8;
    box-shadow: 0 1px 2px rgba(20, 60, 35, .04), 0 6px 18px rgba(20, 60, 35, .05);
    transition: transform .16s, box-shadow .16s, border-color .16s;
}
.cg-topic:hover { transform: translateY(-2px); border-color: #cdeedb; box-shadow: 0 10px 26px rgba(20, 60, 35, .1); }
.cg-topic:focus-visible { outline: 3px solid rgba(34, 169, 75, .45); outline-offset: 2px; }
.cg-topic .cg-qa__icon { width: 48px; height: 48px; font-size: 21px; }
.cg-topic__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cg-topic__title { color: var(--cg-sup-ink); font-size: 17px; font-weight: 800; line-height: 1.3; }
.cg-topic__text { color: var(--cg-sup-text); font-size: 14px; line-height: 1.45; }
.cg-topic__chev { flex-shrink: 0; color: var(--cg-sup-ink); font-size: 14px; transition: transform .15s, color .15s; }
.cg-topic:hover .cg-topic__chev { transform: translateX(3px); color: var(--cg-green); }
.cg-support--cookie .cg-topics { gap: 14px 16px; }
.cg-support--cookie .cg-topic { min-height: 110px; }

/* Answer cards */
.cg-qa__icon {
    --cg-shield-check: var(--cg-sup-icon-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--cg-sup-icon-bg);
    color: var(--cg-sup-icon);
    font-size: 27px;
}
.cg-qa__icon i { color: inherit; }
.cg-qa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 12px;
    margin-top: 16px;
}
.cg-qa {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    min-height: 196px;
    padding: 24px 30px 26px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e3f1e8;
    box-shadow: 0 1px 2px rgba(20, 60, 35, .04), 0 6px 18px rgba(20, 60, 35, .05);
}
.cg-qa__body { min-width: 0; padding-top: 6px; }
.cg-qa__title { margin: 0; color: var(--cg-sup-ink); font-size: 25px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.cg-qa__text { margin: 8px 0 0; color: var(--cg-sup-text); font-size: 19px; line-height: 1.5; }
.cg-qa__link { color: inherit !important; text-decoration: underline; text-decoration-color: rgba(34, 169, 75, .45); text-underline-offset: 3px; }
.cg-qa__link:hover { color: var(--cg-green) !important; }
.cg-support--cookie .cg-qa { min-height: 180px; }
.cg-support--cookie .cg-qa__title { font-size: 23px; }
.cg-support--cookie .cg-qa__text { font-size: 17.5px; }

/* "Need more help?" bar */
.cg-helpbar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
    padding: 12px 20px 12px 28px;
    border-radius: 16px;
    background: #dcf5e6;
    border: 1px solid #cdeedb;
}
.cg-helpbar__clover { width: 48px; height: 48px; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(120, 90, 10, .18)); }
.cg-helpbar__text { display: flex; flex-direction: column; gap: 2px; margin-right: auto; padding-right: 16px; }
.cg-helpbar__text strong { color: var(--cg-sup-ink); font-size: 21px; font-weight: 800; line-height: 1.2; }
.cg-helpbar__text span { color: var(--cg-sup-text); font-size: 14px; white-space: nowrap; }
.cg-helpbar__links { display: flex; gap: 12px; }
.cg-helpbar__btn {
    --cg-shield-check: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 226px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e3f1e8;
    color: var(--cg-sup-ink) !important;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(20, 60, 35, .05);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cg-helpbar__btn > i:first-child { width: 22px; text-align: center; font-size: 19px; color: var(--cg-sup-icon); }
.cg-helpbar__btn span { flex: 1; }
.cg-helpbar__chev { font-size: 12px; color: var(--cg-sup-ink); }
.cg-helpbar__btn:hover { transform: translateY(-1px); border-color: #b9e6cb; box-shadow: 0 6px 16px rgba(20, 60, 35, .1); }
.cg-helpbar__btn:hover span, .cg-helpbar__btn:hover .cg-helpbar__chev { color: var(--cg-green); }

/* Contact */
.cg-contact { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.cg-qa--wide { min-height: 0; align-items: center; gap: 40px; padding: 22px 32px 22px 24px; }
.cg-qa--wide .cg-qa__icon { width: 84px; height: 84px; font-size: 32px; }
.cg-qa--wide .cg-qa__body { padding-top: 0; }
.cg-qa--wide .cg-qa__title { font-size: 21px; }
.cg-qa--wide .cg-qa__text { margin-top: 6px; font-size: 15.5px; }
.cg-contact__email { display: inline-block; margin-top: 6px; color: var(--cg-green) !important; font-size: 17px; font-weight: 700; }
.cg-contact__email:hover { text-decoration: underline; text-underline-offset: 3px; }

/* About */
.cg-doc {
    padding: 36px 44px 40px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e3f1e8;
    box-shadow: 0 1px 2px rgba(20, 60, 35, .04), 0 10px 30px rgba(20, 60, 35, .06);
    color: var(--cg-text);
    font-size: 16px;
    line-height: 1.6;
}
.cg-doc p { margin: 0 0 14px; max-width: 62em; }
.cg-doc__title { margin: 0 0 18px; color: var(--cg-sup-ink); font-size: clamp(32px, 2.8vw, 42px); font-weight: 800; line-height: 1.1; }
.cg-doc__head { margin: 0 0 10px; color: var(--cg-sup-ink); font-size: 24px; font-weight: 800; }
.cg-doc__rule { margin: 26px 0 24px; border: 0; border-top: 1px solid var(--cg-line); }
.cg-doc__list { margin: 0 0 6px; padding: 0; list-style: none; }
.cg-doc__list li { position: relative; padding: 3px 0 3px 26px; }
.cg-doc__list li::before {
    content: "";
    position: absolute;
    left: 6px; top: 50%;
    width: 8px; height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--cg-green);
}
.cg-doc a { color: var(--cg-green-dark) !important; font-weight: 600; }
.cg-doc a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1279px) {
    .cg-footer__inner { grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(150px, 210px)) minmax(180px, 1fr); }
    .cg-footer__col, .cg-footer__copy { padding-left: 24px; padding-right: 24px; }
    .cg-footer__copy { white-space: normal; padding-right: 0; }
    .cg-signin { width: 42px; padding: 0; justify-content: center; margin-left: 4px; }
    .cg-signin .cg-nav__label { display: none; }
    .cg-helpbar { flex-wrap: wrap; padding-left: 22px; }
    .cg-helpbar__links { width: 100%; }
    .cg-helpbar__btn { width: auto; flex: 1; }
}

@media (max-width: 1100px) {
    .cg-hero--gold { padding-right: 300px; }
    .cg-hero--gold .cg-hero__mini--2 { display: none; }
    .cg-qa { min-height: 0; }
    .cg-qa__title { font-size: 22px; }
    .cg-qa__text { font-size: 17px; }
    .cg-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
    .cg-footer__brand { grid-column: 1 / -1; padding: 0; }
    .cg-footer__col:nth-of-type(1) { border-left: 0; padding-left: 0; }
    .cg-footer__copy { grid-column: 1 / -1; border-left: 0; justify-content: flex-start; padding: 12px 0 0; border-top: 1px solid var(--cg-line); white-space: normal; }
}

@media (max-width: 860px) {
    .cg-topics, .cg-qa-grid { grid-template-columns: 1fr; }
    .cg-hero--gold { padding: 32px 170px 34px 30px; }
    .cg-hero--gold .cg-hero__gold { right: 36px; top: 24px; width: 104px; }
    .cg-hero--gold .cg-hero__mini--1 { right: 150px; top: 20px; }
    .cg-hero--gold .cg-hero__mini--3 { right: 18px; top: auto; bottom: 14px; }
    .cg-hero--gold .cg-hero__pale--3 { right: 150px; top: auto; bottom: 10px; }
}

@media (max-width: 767px) {
    .cg-support { margin-top: 12px; }
    .cg-hero { padding: 26px 20px 28px; border-radius: 18px; }
    .cg-hero__title { font-size: 34px; }
    .cg-hero__sub { font-size: 15px; }
    .cg-hero--pale .cg-hero__pale--1 { width: 54px; left: -8px; top: auto; bottom: 6px; }
    .cg-hero--pale .cg-hero__pale--2 { width: 20px; left: 30px; top: 10px; }
    .cg-hero--pale .cg-hero__pale--3 { width: 58px; right: -10px; top: 8px; }
    .cg-hero--pale .cg-hero__pale--4 { display: none; }
    .cg-hero--gold { padding: 22px 104px 24px 20px; }
    .cg-hero--gold .cg-hero__title { font-size: 28px; }
    .cg-hero--gold .cg-hero__sub { font-size: 15px; margin-top: 8px; }
    .cg-hero--gold .cg-hero__gold { right: 14px; top: 18px; width: 78px; }
    .cg-hero--gold .cg-hero__mini--1 { width: 22px; right: 80px; top: 10px; }
    .cg-hero--gold .cg-hero__mini--3 { width: 26px; right: 8px; bottom: 10px; }
    .cg-hero--gold .cg-hero__pale--1 { width: 60px; right: -12px; top: auto; bottom: -6px; }
    .cg-hero--gold .cg-hero__pale--3, .cg-hero--gold .cg-hero__pale--5 { display: none; }

    .cg-topics, .cg-qa-grid { gap: 10px; margin-top: 12px; }
    .cg-topic { gap: 14px; min-height: 0; padding: 14px 16px; }
    .cg-support--cookie .cg-topic { min-height: 0; }
    .cg-topic .cg-qa__icon { width: 42px; height: 42px; font-size: 18px; }
    .cg-topic__title { font-size: 16px; }
    .cg-topic__text { font-size: 13.5px; }
    .cg-topic__text br { display: none; }

    .cg-qa, .cg-support--cookie .cg-qa { gap: 14px; min-height: 0; padding: 18px 18px 20px 16px; }
    .cg-qa .cg-qa__icon { width: 48px; height: 48px; font-size: 21px; }
    .cg-qa__body { padding-top: 2px; }
    .cg-qa__title, .cg-support--cookie .cg-qa__title { font-size: 19px; }
    .cg-qa__text, .cg-support--cookie .cg-qa__text { font-size: 15.5px; margin-top: 6px; }
    .cg-qa--wide { align-items: flex-start; }
    .cg-qa--wide .cg-qa__icon { width: 52px; height: 52px; font-size: 22px; }
    .cg-qa--wide .cg-qa__text br { display: none; }
    .cg-contact__email { font-size: 16px; word-break: break-all; }

    .cg-helpbar { gap: 12px; padding: 16px; }
    .cg-helpbar__clover { width: 44px; height: 44px; }
    .cg-helpbar__text { flex: 1; padding-right: 0; }
    .cg-helpbar__text strong { font-size: 19px; }
    .cg-helpbar__text span { font-size: 13.5px; white-space: normal; }
    .cg-helpbar__links { flex-direction: column; gap: 8px; }
    .cg-helpbar__btn { width: 100%; flex: none; }

    .cg-doc { padding: 24px 20px 26px; font-size: 15px; }
    .cg-doc__head { font-size: 21px; }

    .cg-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding-top: 22px; padding-bottom: 24px; }
    .cg-footer__col { border-left: 0; padding: 0; }
    .cg-footer__col:nth-of-type(3) { grid-column: 1 / -1; }
    .cg-footer__link { padding: 6px 0; font-size: 14px; }
    .cg-footer__col:nth-of-type(3) .cg-footer__link { max-width: calc(50% - 8px); }
}
@media (max-width: 767px) {
    .cg-play-more .cg-mosaic > .cg-tile:nth-child(n+37) { display: none; }
}
.cg-ccards .cg-ccard__go { display: none; }

/* Gameplay video under the game */
.cg-gvideo { margin-top: 22px; padding: 22px 24px 24px; }
.cg-gvideo__intro { margin: 10px 0 16px; max-width: 900px; color: var(--cg-text); font-size: 15.5px; line-height: 1.6; }
.cg-gvideo__frame { width: 100%; aspect-ratio: 16 / 9; max-height: 460px; border-radius: 14px; overflow: hidden; background: #0f1f17; }
video.cg-gvideo__frame { display: block; object-fit: contain; }
.cg-gvideo__frame:empty { background: #0f1f17 url("../image/clover.svg") center / 64px no-repeat; }
@media (max-width: 600px) {
    .cg-gvideo { margin: 18px 12px 0; padding: 16px; }
}

.cg-signup {
    display: inline-flex;
    align-items: center;
    height: 42px;
    margin-left: 8px;
    padding: 0 8px;
    color: var(--cg-ink) !important;
    font-weight: 800;
    font-size: 15px;
}
.cg-signup:hover { color: var(--cg-green) !important; }
.cg-fullbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--cg-green);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}
.cg-fullbtn:hover { background: var(--cg-green-dark); }

.cg-lang { position: relative; flex-shrink: 0; }
.cg-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 10px 0 6px;
    border-radius: 999px;
    border: 1.5px solid #17B04B;
    background: #fff;
    color: #13265C;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}
.cg-lang__btn:hover { background: #f3fbf6; }
.cg-lang__btn:focus-visible { outline: 3px solid rgba(23, 176, 75, .35); outline-offset: 2px; }
.cg-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}
.cg-flag svg { width: 100%; height: 100%; display: block; }
.cg-lang__chev { width: 12px; height: 12px; color: #17B04B; flex-shrink: 0; transition: transform .15s; }
.cg-lang__btn[aria-expanded="true"] .cg-lang__chev { transform: rotate(180deg); }
.cg-lang__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    background: #fff;
    border: 1px solid rgba(220, 235, 226, .95);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .16);
    padding: 6px;
    z-index: 1200;
}
.cg-lang__menu[hidden] { display: none; }
.cg-lang__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
}
.cg-lang__menu a:hover { background: #f3fbf6; }
.cg-lang__menu a[aria-selected="true"] { background: #e8f8ee; }
.cg-lang__check { width: 16px; height: 16px; margin-left: auto; color: #17B04B; flex-shrink: 0; }
.cg-auth__card .cg-lang { display: flex; justify-content: center; margin: 0 0 12px; }
.cg-auth__card .cg-lang__menu { left: 50%; right: auto; transform: translateX(-50%); }
.cg-suggest { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 10px auto 0; max-width: var(--cg-max, 1240px); background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.cg-suggest p { margin: 0; font-weight: 650; }
.cg-suggest__x { border: 0; background: transparent; color: #64748b; font-weight: 800; cursor: pointer; }
@media (max-width: 1520px) {
    .cg-header .cg-lang__name { display: none; }
    .cg-header .cg-lang__btn { padding: 0 8px 0 6px; gap: 4px; height: 36px; }
}
@media (max-width: 767px) {
    .cg-suggest { margin: 8px 10px 0; border-radius: 14px; }
}

@media (hover: none), (pointer: coarse) {
    .cg-tile .cg-heart, .cg-gcard .cg-heart {
        visibility: visible;
        opacity: 1;
        transform: none;
    }
}
